/*
 * Forster – Gestaltung nach Entwurf 2b (hell, Jost wie traegerwerk.com + JetBrains Mono, Logofarben).
 * Farben und Schriften kommen aus theme.json (--wp--preset--…). Hier: Aufbau, Bauteile, Bewegung.
 * Bereichsfarben (--c / --auf je .fw-b-…) setzt functions.php aus inc/bereiche.php.
 */

:root {
	--fw-hell: var(--wp--preset--color--hell);
	--fw-weiss: var(--wp--preset--color--weiss);
	--fw-linie: var(--wp--preset--color--linie);
	--fw-text: var(--wp--preset--color--anthrazit);
	--fw-grau: var(--wp--preset--color--grau);
	--fw-blau: var(--wp--preset--color--blau);
	--fw-weinrot: var(--wp--preset--color--weinrot);
	--fw-petrol: var(--wp--preset--color--petrol);
	--fw-stahl: var(--wp--preset--color--stahl);
	--fw-gruen: var(--wp--preset--color--gruen);
	--fw-gruen-hell: var(--wp--preset--color--gruen-hell);
	--fw-sans: var(--wp--preset--font-family--jost);
	--fw-mono: var(--wp--preset--font-family--mono);

	--fw-inhalt: 1440px;
	--fw-rand: 48px;
	--fw-balken: 6px;
	--fw-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--fw-feinlinie: rgb(38 50 58 / 0.16);
}

/* ---------- Grundlagen ---------- */

/* (0,1,1): stärker als die Body-Regeln aus theme.json/Plugins (früher nötig gegen das Elementor-Kit; Elementor ist seit 08.10.2026 weg). */
:root body {
	background-color: var(--fw-hell);
	color: var(--fw-text);
	font-family: var(--fw-sans);
}

body { -webkit-font-smoothing: antialiased; }

/* Fester Kopf: „overflow-x: hidden“ an html/body (setzte früher Elementor) hebelt position: sticky aus.
   „clip“ verhindert seitliches Rollen genauso, ohne den Kopf zu lösen. */
html:root, :root body { overflow: visible; overflow-x: clip; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; }
html { scroll-behavior: smooth; }

:where(a, button, input, summary):focus-visible {
	outline: 3px solid var(--fw-blau);
	outline-offset: 3px;
}

.wp-site-blocks > *,
.fw-start > * { margin-block: 0; }

/* Raster bis 1440 px bei 48 px Rand, schmal 24 px (Entwurf hatte 1104 px; seit 08.10. breiter – Vergleich mit Goldbeck,
   Max Bögl, SMS, Liebherr – dort 1280–1720 px). */
.fw-breit {
	width: min(var(--fw-inhalt), 100% - 2 * var(--fw-rand));
	margin-inline: auto;
}
/* Große Bilder randlos über die ganze Fensterbreite: Kopfbild/-video mit Farbbalken, Bildfelder der Startseite. */
.fw-hauptbild.fw-breit,
.fw-farbbalken.fw-breit,
.fw-felder.fw-breit,
.fw-balkenreihe.fw-breit { width: 100%; }
/* Fließtext bleibt lesbar schmal (≈ 75–85 Zeichen), auch wenn die Spalte breiter wird. */
.fw-einstieg p,
.fw-spalten p,
.fw-bildtext p,
.fw-abschnitt > p { max-width: 42rem; }

.fw-kennung {
	display: block;
	margin: 0;
	font-family: var(--fw-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fw-grau);
}

/* ---------- Knöpfe und Links ---------- */

.fw-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.fw-knopf {
	display: inline-flex;
	align-items: center;
	padding: 14px 22px;
	font-family: var(--fw-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	color: var(--fw-weiss);
	background: var(--fw-text);
	border: 1.5px solid var(--fw-text);
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.fw-knopf:hover { background: var(--fw-blau); border-color: var(--fw-blau); color: var(--fw-weiss); }
.fw-knopf--linie { background: transparent; color: var(--fw-text); }
.fw-knopf--linie:hover { background: var(--fw-text); border-color: var(--fw-text); color: var(--fw-weiss); }
.fw-knopf--tel { font-family: var(--fw-mono); font-size: 1rem; }

.fw-linklinie {
	display: inline-block;
	font-weight: 600;
	text-decoration: none;
	color: var(--fw-text);
	border-bottom: 2px solid currentColor;
	padding-bottom: 6px;
}
.fw-linklinie:hover { color: var(--fw-blau); }

/* ---------- Kopf ---------- */

.fw-seitenkopf {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}
/* Milchglas auf einer eigenen Ebene: backdrop-filter direkt am Kopf macht ihn zum Bezugsrahmen für position: fixed,
   dann blieb das Handy-Menü (Overlay des Navigations-Blocks) in der Kopfleiste eingesperrt (13.10.2026). */
.fw-seitenkopf::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: color-mix(in srgb, var(--fw-hell) 92%, transparent);
	backdrop-filter: saturate(1.2) blur(12px);
	-webkit-backdrop-filter: saturate(1.2) blur(12px);
}

.fw-kopfleiste {
	display: flex;
	align-items: center;
	gap: 24px;
	/* Volle Fensterbreite wie das Kopfbild (Ludwig 09.10.2026), nicht das 1440-px-Raster des Inhalts. */
	width: calc(100% - 2 * var(--fw-rand));
	margin-inline: auto;
	padding-block: 18px;
	border-bottom: 1px solid var(--fw-feinlinie);
}
.fw-kopfleiste > * { margin-block: 0; }

.fw-logo { display: block; flex: none; line-height: 0; }
.fw-logo img { height: 54px; width: auto; }

.fw-nav { margin-left: auto; }
.fw-nav .wp-block-navigation__container { gap: 4px 24px; }
.fw-nav .wp-block-navigation-item__content {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--fw-text);
	text-decoration: none;
	padding-block: 6px;
}
.fw-nav .wp-block-navigation-item__content:hover { color: var(--fw-blau); }

/* Untermenü: beim Überfahren zieht sich unter dem Namen eine Linie in der Bereichsfarbe auf (wie unterstrichen; Ludwig 07.10.2026). */
.fw-nav .wp-block-navigation__submenu-container {
	min-width: 300px !important;
	padding: 8px 0 !important;
	background: var(--fw-weiss) !important;
	border: 0 !important;
	border-top: 4px solid var(--fw-text) !important;
	box-shadow: 0 20px 40px rgb(0 0 0 / 0.14);
}
.fw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	padding: 10px 20px;
	color: var(--fw-text) !important;
}
.fw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
	padding-bottom: 4px;
	background: linear-gradient(var(--c, var(--fw-text)), var(--c, var(--fw-text))) no-repeat left bottom / 0 3px;
	transition: background-size 0.45s var(--fw-ease);
}
.fw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover .wp-block-navigation-item__label,
.fw-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible .wp-block-navigation-item__label { background-size: 100% 3px; }

.fw-sprachen {
	display: flex;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--fw-mono);
	font-size: 0.8125rem;
}
.fw-sprachen a { display: block; padding: 4px 6px; color: var(--fw-grau); text-decoration: none; }
.fw-sprachen a:hover { color: var(--fw-text); }
.fw-sprachen a[aria-current] { color: var(--fw-text); box-shadow: inset 0 -2px 0 var(--fw-text); }

/* Mobiles Menü (Overlay des Navigations-Blocks) */
.fw-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--fw-hell) !important;
	padding: 24px var(--fw-rand) !important;
}
.fw-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; }
.fw-nav .is-menu-open .wp-block-navigation__submenu-container { border-top: 0 !important; box-shadow: none; min-width: 0 !important; background: transparent !important; }

/* ---------- Überschriften mit Farbbalken ---------- */

.fw-kopfbalken {
	position: relative;
	margin: 0;
	padding-bottom: 0.4em;
}
.fw-kennung + .fw-kopfbalken { margin-top: 16px; }
.fw-kopfbalken::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 72px;
	height: var(--fw-balken);
	background: var(--fb, var(--fw-text));
	transform-origin: left center;
}
.fw-js .fw-kopfbalken::after { transform: scaleX(0); transition: transform 0.9s var(--fw-ease) 0.15s; }
.fw-js .fw-kopfbalken.ist-sichtbar::after { transform: scaleX(1); }

/* ---------- Startseite: Leitsatz ---------- */

.fw-titel { padding: 30px 0 24px; }
.fw-titel .fw-kennung span { margin-left: 0.75em; color: var(--fw-stahl); }
/* Kennzeile ist die H1 (Suchbegriff), der Leitsatz ein Absatz – Aussehen wie vorher. */
.fw-titel h1.fw-kennung { line-height: 1.5; letter-spacing: 0.12em; }
p.fw-leitsatz { font-family: var(--fw-sans); color: var(--fw-text); }

.fw-leitsatz {
	display: flex;
	flex-wrap: wrap;
	gap: 0.06em 0.3em;
	margin: 12px 0 18px;
	font-size: clamp(1.875rem, 3.2vw, 2.75rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.035em;
}
.fw-wort {
	position: relative;
	display: inline-block;
	padding-bottom: 0.18em;
	animation: fw-heben 0.9s var(--fw-ease) both;
	animation-delay: calc(0.05s + var(--i) * 0.12s);
}
.fw-wort::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0.12em;
	bottom: 0;
	height: clamp(4px, 0.42vw, 6px);
	background: var(--fb);
	transform-origin: left center;
	animation: fw-ziehen 0.9s var(--fw-ease) both;
	animation-delay: calc(0.55s + var(--i) * 0.2s);
}
@keyframes fw-heben { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
@keyframes fw-ziehen { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.fw-titel-unten {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px 48px;
	align-items: end;
	animation: fw-heben 0.9s var(--fw-ease) 0.9s both;
}
.fw-titel-text { margin: 0; max-width: 44rem; font-size: 1rem; line-height: 1.55; color: #3a3f45; }

/* ---------- Startseite: Bildfelder ---------- */

/* Höhe nach Bildschirm: auf üblichen Laptops ist der Abschnitt ohne Scrollen ganz zu sehen. */
.fw-felder { display: flex; height: clamp(340px, calc(100svh - 420px), 600px); gap: 4px; }
.fw-feld {
	position: relative;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	color: var(--fw-weiss);
	text-decoration: none;
	transition: flex 0.5s var(--fw-ease);
}
.fw-feld img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 1.2s var(--fw-ease);
}
.fw-feld-text {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px;
	background: linear-gradient(transparent, rgb(38 50 58 / 0.94) 45%);
}
.fw-feld-nr { display: flex; align-items: center; gap: 10px; font-family: var(--fw-mono); font-size: 0.75rem; }
.fw-feld-nr i { width: 28px; height: 4px; background: var(--c); transition: width 0.5s var(--fw-ease); }
.fw-feld-titel {
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	hyphens: manual;
	transition: font-size 0.4s;
}
.fw-feld-beschreibung { max-width: 420px; max-height: 0; font-size: 0.9375rem; color: #c4c7cc; opacity: 0; transition: opacity 0.4s; }
.fw-feld.ist-aktiv { flex: 3; }
.fw-feld.ist-aktiv img { transform: scale(1.03); }
.fw-feld.ist-aktiv .fw-feld-titel { font-size: 2.75rem; }
.fw-feld.ist-aktiv .fw-feld-beschreibung { max-height: 6em; opacity: 1; }
.fw-feld.ist-aktiv .fw-feld-nr i { width: 56px; }

.fw-balkenreihe { display: flex; gap: 8px; margin-top: 8px; }
.fw-balkenreihe span {
	flex: 1;
	height: var(--fw-balken);
	background: var(--c);
	transform-origin: left center;
	animation: fw-ziehen 0.9s var(--fw-ease) both;
}
.fw-balkenreihe span:nth-child(2) { animation-delay: 0.08s; }
.fw-balkenreihe span:nth-child(3) { animation-delay: 0.16s; }
.fw-balkenreihe span:nth-child(4) { animation-delay: 0.24s; }
.fw-balkenreihe span:nth-child(5) { animation-delay: 0.32s; }

.fw-partner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 32px;
	padding: 20px 0;
	border-bottom: 1.5px solid var(--fw-text);
	font-size: 0.875rem;
}
.fw-partner a { font-weight: 600; color: var(--fw-text); text-decoration: none; }
.fw-partner a:hover { color: var(--fw-blau); }

/* ---------- Startseite: Was wir tun ---------- */

.fw-wir { margin-top: 96px; background: var(--fw-weiss); }
.fw-wir-innen { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 96px 48px; }
.fw-wir .fw-kennung { color: var(--fw-blau); }
.fw-wir .fw-kopfbalken { font-size: clamp(2.25rem, 4.4vw, 3.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.fw-wir-text { margin: 28px 0 28px; max-width: 460px; font-size: 1.0625rem; line-height: 1.55; color: #3a3f45; }
.fw-werte {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	align-self: start;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--fw-feinlinie);
	border: 1px solid var(--fw-feinlinie);
}
.fw-werte li { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--fw-weiss); transition: background 0.25s; }
.fw-werte li:hover { background: var(--fw-hell); }
.fw-werte span { font-family: var(--fw-mono); font-size: 0.75rem; color: var(--fw-blau); }
.fw-werte p { margin: 0; font-size: 1.1875rem; font-weight: 600; line-height: 1.2; text-wrap: wrap; }

/* ---------- Startseite: Kennzahlen ---------- */

.fw-fakten { margin-top: 96px; }
.fw-fakten dl {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 0;
	border-top: 1.5px solid var(--fw-text);
	border-bottom: 1.5px solid var(--fw-text);
}
.fw-fakten dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 36px 0; }
.fw-fakten dl > div + div { padding-left: 36px; border-left: 1px solid var(--fw-feinlinie); }
.fw-fakten dt { font-size: 0.9375rem; color: var(--fw-grau); }
.fw-fakten dd { margin: 0; font-size: clamp(3.25rem, 6vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.fw-plus { color: var(--fw-blau); }

/* ---------- Startseite: Referenzen ---------- */

.fw-referenzen { padding: 80px 0; }
.fw-ref-kopf { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.fw-ref-kopf .fw-kopfbalken { font-size: clamp(2rem, 3.4vw, 2.5rem); }
.fw-pfeile { display: flex; gap: 8px; }
.fw-pfeile button {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	font: inherit;
	font-size: 1.125rem;
	color: var(--fw-text);
	background: transparent;
	border: 1.5px solid var(--fw-text);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.fw-pfeile button:hover { background: var(--fw-text); color: var(--fw-weiss); }
.fw-pfeile .fw-vor { background: var(--fw-blau); border-color: var(--fw-blau); color: var(--fw-weiss); }
.fw-pfeile .fw-vor:hover { background: #134d77; border-color: #134d77; }

.fw-band {
	display: flex;
	gap: 20px;
	margin-top: 32px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	scroll-behavior: smooth;
}
.fw-band::-webkit-scrollbar { display: none; }
.fw-band a { flex: none; width: 460px; display: flex; flex-direction: column; gap: 14px; color: var(--fw-text); text-decoration: none; scroll-snap-align: start; }
/* Muss bleiben: ohne „relative“ legt sich die Deckfläche der Referenzbilder über den Seitenanfang. */
.fw-bildrahmen { position: relative; display: block; height: 320px; overflow: hidden; background: #dfe3e5; }
.fw-bildrahmen img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 0.8s var(--fw-ease); }
.fw-band a:hover img { transform: scale(1.04); }
.fw-ref-titel { font-size: 1.375rem; font-weight: 600; }
.fw-band a:hover .fw-ref-titel { color: var(--fw-blau); }

/* Aufdecken: Deckfläche fährt nach oben weg (Observer beobachtet die Karte, nicht die Fläche). */
.fw-js .fw-bildrahmen::after {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: 2;
	pointer-events: none;
	background: var(--fw-hell);
	transform-origin: top center;
	transition: transform 1.1s var(--fw-ease);
	transition-delay: inherit;
}
.fw-js .fw-band a.ist-sichtbar .fw-bildrahmen::after { transform: scaleY(0); }

/* ---------- Startseite: Warum ---------- */

.fw-warum { margin-bottom: 64px; }
.fw-warum-innen { padding: 48px; background: var(--fw-weiss); border: 1px solid var(--fw-linie); }
.fw-warum .fw-kopfbalken { margin-bottom: 28px; font-size: 1.875rem; }
.fw-gruende { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fw-gruende > div { padding: 22px 22px 24px; border: 1px solid var(--fw-linie); border-top: 4px solid var(--c); transition: transform 0.25s; }
.fw-gruende > div:hover { transform: translateY(-3px); }
.fw-gruende h3 { margin: 0 0 10px; font-family: inherit; font-size: 1.0625rem; font-weight: 600; line-height: 1.6; letter-spacing: normal; color: inherit; text-wrap: wrap; }
.fw-gruende p { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--fw-grau); }
.fw-branchen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; padding: 18px 22px; border: 1px solid var(--fw-linie); font-size: 0.9375rem; }
.fw-branchen .fw-kennung { color: #8a8f96; }
.fw-branchen a { margin-left: auto; font-weight: 600; color: var(--fw-text); text-decoration: none; }
.fw-branchen a:hover { color: var(--fw-blau); }
.fw-ansprech { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; margin-top: 16px; padding: 24px 28px; border: 1px solid var(--fw-linie); }
.fw-ansprech .fw-ansprech-titel { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 600; line-height: 1.6; color: var(--fw-text); text-wrap: wrap; }
.fw-ansprech p { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--fw-grau); }
.fw-ansprech strong { color: var(--fw-text); font-weight: 600; }

/* ---------- Startseite: Über Forster ---------- */

.fw-ueber { margin-bottom: 64px; }
.fw-ueber-innen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; padding: 48px; background: var(--fw-weiss); border: 1px solid var(--fw-linie); }
.fw-ueber .fw-kopfbalken { margin: 0; font-size: 1.875rem; }
.fw-ueber-text { margin: 24px 0 0; font-size: 1.0625rem; line-height: 1.6; color: #3a3f45; }
.fw-ueber-teile > div + div { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--fw-linie); }
.fw-ueber-teile h3 { margin: 0 0 10px; font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.fw-ueber-teile p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--fw-grau); }
.fw-ueber-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 16px; font-size: 0.9375rem; }
.fw-ueber-links .fw-linklinie { padding-bottom: 4px; }

/* ---------- Startseite: Stahl ist grün + Zertifikate ---------- */

.fw-baender { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 64px; border-top: 1px solid var(--fw-linie); border-bottom: 1px solid var(--fw-linie); }
.fw-gruen, .fw-zert { display: flex; flex-direction: column; gap: 16px; padding: 56px 48px; }
.fw-gruen { background: var(--fw-gruen-hell); }
.fw-gruen .fw-kennung { color: #56780c; }
.fw-zert { background: var(--fw-weiss); }
.fw-zert .fw-kennung { color: #8a8f96; }
.fw-band-text { font-size: 1.875rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.fw-gruen a, .fw-zert a { align-self: flex-start; font-weight: 600; color: var(--fw-text); text-decoration: none; }
.fw-gruen a:hover { color: #56780c; }
.fw-zert a:hover { color: var(--fw-blau); }
.fw-siegel { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fw-siegel li { flex: 1; display: flex; align-items: center; justify-content: center; height: 72px; padding: 0 8px; border: 1px solid var(--fw-linie); font-size: 0.875rem; font-weight: 700; text-align: center; }

/* ---------- Fuß ---------- */

.fw-fuss {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
	padding: 28px 0 40px;
	border-top: 1px solid var(--fw-feinlinie);
	font-size: 0.8125rem;
	color: var(--fw-grau);
}
.fw-fuss p { margin: 0; }
.fw-fuss a { color: var(--fw-grau); text-decoration: none; }
.fw-fuss a:hover { color: var(--fw-blau); }
.fw-fuss-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fw-fuss-netz { display: inline-flex; gap: 14px; padding-left: 18px; border-left: 1px solid var(--fw-feinlinie); }

/* ---------- Inhaltsseiten: gemeinsamer Kopf ---------- */

.fw-seite { padding-block: 64px 96px; }
.fw-seitentitel { font-size: clamp(2.25rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }

.fw-seitenkopf-inhalt { padding: 48px 0 32px; }
.fw-seitenkopf-inhalt .fw-kennung a { color: inherit; text-decoration: none; }
.fw-seitenkopf-inhalt .fw-kennung a:hover { color: var(--fw-blau); }
.fw-seitenkopf-inhalt .fw-seitentitel { margin-top: 14px; max-width: 18ch; }
/* Video im Seitenkopf (Stahlbau): liegt über dem Standbild und blendet ein, sobald es läuft. */
.fw-hauptvideo { position: relative; }
.fw-hauptvideo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s var(--fw-ease); }
.fw-hauptvideo.ist-video video { opacity: 1; }
.fw-videoknopf { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; padding: 0; color: var(--fw-weiss); background: rgb(38 50 58 / 0.55); border: 1px solid rgb(255 255 255 / 0.5); border-radius: 50%; cursor: pointer; transition: background-color 0.2s; }
.fw-videoknopf:hover { background: rgb(38 50 58 / 0.85); }
/* Zeichen: zwei Balken = anhalten, Dreieck = abspielen */
.fw-videoknopf::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 12px; transform: translate(-50%, -50%); border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.fw-videoknopf.ist-pause::before { width: 0; height: 0; margin-left: 2px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }

/* Bereich mit eigenem Logo (Traegerwerk): Logo rechts neben dem Titel, auf dem Handy darunter. */
.fw-mit-logo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.fw-bereichslogo { display: block; flex: 0 1 auto; line-height: 0; transition: opacity 0.2s; }
.fw-bereichslogo img { display: block; width: clamp(220px, 28vw, 340px); height: auto; }
.fw-bereichslogo:hover { opacity: 0.8; }
.fw-bereichslogo:focus-visible { outline: 2px solid var(--fw-blau); outline-offset: 4px; }

.fw-hauptbild { height: clamp(260px, 52vh, 580px); margin-block: 0; overflow: hidden; background: #dfe3e5; }
.fw-hauptbild img { width: 100%; height: 100% !important; object-fit: cover; animation: fw-ruhig-zoom 2.4s var(--fw-ease) both; }
@keyframes fw-ruhig-zoom { from { transform: scale(1.04); } to { transform: none; } }
.fw-farbbalken { height: var(--fw-balken); margin-top: 8px; background: var(--c); transform-origin: left center; animation: fw-ziehen 1s var(--fw-ease) 0.2s both; }

/* Referenz: Steckbrief als Zeile unter dem Titel – wie ein Schriftfeld auf der Zeichnung. */
.fw-ref-kopfraster { display: grid; gap: 28px; }
.fw-ref-kopfraster .fw-seitentitel { max-width: none; overflow-wrap: break-word; hyphens: manual; }
.fw-steckbrief { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; background: var(--fw-weiss); border: 1.5px solid var(--fw-text); }
.fw-steckbrief > div { padding: 14px 18px; border-left: 1px solid var(--fw-linie); }
.fw-steckbrief > div:first-child { border-left: 0; }
.fw-steckbrief dt { margin-bottom: 4px; font-family: var(--fw-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fw-grau); }
.fw-steckbrief dd { margin: 0; font-size: 1.0625rem; font-weight: 600; }

/* ---------- Inhaltsseiten: Text aus dem Editor ---------- */

.fw-inhalt { padding-block: 64px 32px; }
.fw-inhalt > * + * { margin-block-start: 1.25rem; }
.fw-inhalt p { line-height: 1.65; }
.fw-inhalt .fw-unterzeile { font-size: 1.5rem; font-weight: 700; }
.fw-inhalt .fw-lead { font-size: 1.25rem; line-height: 1.55; color: #3a3f45; }
.fw-inhalt strong { font-weight: 600; color: var(--fw-text); }

.fw-abschnitte { margin-block: 56px !important; display: grid; gap: 56px; }
.fw-abschnitte > * { margin: 0 !important; }
.fw-bildtext { grid-template-columns: 50% auto; background: var(--fw-weiss); }
.fw-bildtext .wp-block-media-text__media { align-self: stretch; height: 100%; min-height: 320px; overflow: hidden; }
.fw-bildtext .wp-block-media-text__media img { width: 100%; height: 100% !important; object-fit: cover; }
.fw-bildtext .wp-block-media-text__content { padding: 40px 44px !important; }
.fw-bildtext h2 { margin: 0 0 16px; font-size: 1.625rem; font-weight: 700; position: relative; padding-bottom: 14px; }
.fw-bildtext h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; background: var(--fb, var(--fw-blau)); }
.fw-bildtext p { margin: 0 0 12px; font-size: 0.9875rem; color: #3a3f45; }

.fw-aufklapp { border-top: 1.5px solid var(--fw-text); }
.fw-aufklapp + .fw-aufklapp { margin-top: 0 !important; border-top: 1px solid var(--fw-feinlinie); }
.fw-aufklapp:last-of-type { border-bottom: 1.5px solid var(--fw-text); }
.fw-aufklapp summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 1.25rem; font-weight: 600; cursor: pointer; list-style: none; }
.fw-aufklapp summary::-webkit-details-marker { display: none; }
.fw-aufklapp summary::after { content: "+"; font-family: var(--fw-mono); font-weight: 400; transition: transform 0.3s var(--fw-ease); }
.fw-aufklapp[open] summary::after { transform: rotate(45deg); }
.fw-aufklapp summary:hover { color: var(--fw-blau); }
.fw-aufklapp > p { margin: 0 0 24px; color: #3a3f45; }

/* Die Kachelbreite rechnet der Kern mit dieser Variable – muss zum gap passen, sonst bleibt rechts ein Spalt. */
.fw-galerie { --wp--style--unstable-gallery-gap: 12px; gap: 12px !important; margin-block: 40px !important; }
.fw-galerie img { transition: transform 0.8s var(--fw-ease); }
.fw-galerie .wp-block-image { overflow: hidden; }
.fw-galerie .wp-block-image:hover img { transform: scale(1.03); }
/* Bildunterschriften in Galerien (z. B. Behälter-Referenzen): unter dem Bild statt darüber, gut lesbar. */
.fw-galerie.wp-block-gallery.has-nested-images figure.wp-block-image { flex-direction: column; }
.fw-galerie.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: static;
	max-height: none;
	padding: 10px 2px 4px;
	background: none;
	color: var(--fw-text);
	font-family: var(--fw-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	text-shadow: none;
}
.fw-galerie figcaption::before { display: none; }
.fw-bu-zusatz { display: block; margin-top: 2px; font-family: var(--fw-mono); font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fw-grau); }
.fw-galerie.columns-3 figure.wp-block-image img { aspect-ratio: 4 / 3; height: auto !important; flex: none; }
/* Galerien: gleich große Kacheln, die letzte Reihe wird nicht auf volle Breite gezogen. */
.fw-galerie.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { flex-grow: 0; }
/* flex: none – sonst setzt der WordPress-Kern (mit #-Selektor) flex-basis 0, und Bilder unter Querformat-Nachbarn fallen auf Höhe 0. */
.fw-galerie.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img { aspect-ratio: 4 / 3; height: auto !important; flex: none; }
/* Galerie als Karussell (Klasse „fw-karussell“ an der Galerie, z. B. „Impressionen“ auf Stahl- und Anlagenbau): eine Reihe,
   3 Bilder sichtbar (Tablet 2, Handy 1), blättert per Skript weiter; Pfeile + Pause legt forster.js darüber an. */
.fw-karussell-steuerung { display: flex; justify-content: flex-end; margin-top: 28px; }
.fw-karussell-steuerung + .fw-galerie { margin-top: 16px !important; }
.fw-pfeile .fw-pause { font-size: 0.875rem; }
.fw-galerie.fw-karussell.wp-block-gallery.has-nested-images {
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.fw-galerie.fw-karussell::-webkit-scrollbar { display: none; }
.fw-galerie.fw-karussell.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	flex: 0 0 auto;
	width: calc((100% - 24px) / 3) !important;
	scroll-snap-align: start;
}
@media (max-width: 960px) {
	.fw-galerie.fw-karussell.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc((100% - 12px) / 2) !important; }
}
@media (max-width: 640px) {
	.fw-galerie.fw-karussell.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: 85% !important; }
}
.fw-messwert { padding: 12px 0; border-bottom: 1px solid var(--fw-feinlinie); }
.fw-messwert strong { display: inline-block; min-width: 5.5rem; font-family: var(--fw-mono); color: var(--fb, var(--fw-blau)); }
.fw-inhaltsbild { margin-block: 40px !important; }
.fw-inhaltsbild img { width: 100%; max-height: 640px; object-fit: cover; }

/* ---------- Bereichsseiten: Abschnitte ----------
   Jede Bereichsseite besteht aus gleichen Abschnitten auf der vollen Inhaltsbreite:
   links Kennung + Überschrift, rechts der Inhalt – wie Schriftfeld und Zeichnung.
   Bausteine (Klassen am Gruppen-/Listenblock im Editor):
   fw-abschnitt      Abschnitt mit Abstand und Trennlinie oben
   fw-spalten        darin: erste Gruppe = Kopfspalte, zweite = Inhalt
   fw-einstieg       Einleitung + Kasten „Auf einen Blick“
   fw-daten          Liste als Datenzeilen („<strong>Begriff</strong> Wert“)
   fw-teileliste     Liste als Raster mit Linien (Produkte)
   fw-marken         Liste als Schlagworte (Branchen)
   fw-haken          Liste mit Haken in Bereichsfarbe                                  */

.fw-inhalt > .fw-abschnitt { margin-block: clamp(72px, 9vw, 120px) 0; }
.fw-inhalt > .fw-abschnitt:first-child { margin-top: 0; }
.fw-inhalt > .fw-abschnitt + :not(.fw-abschnitt) { margin-top: 48px; }
.fw-abschnitt > * { margin-block: 0; }
.fw-abschnitt > * + * { margin-top: 32px; }
.fw-abschnitt .fw-kennung { margin-bottom: 14px; }
.fw-abschnitt h2 { margin: 0; font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.fw-abschnitt h2.fw-kopfbalken { padding-bottom: 0.45em; }
.fw-abschnitt h3 { margin: 0 0 12px; font-size: 1.1875rem; font-weight: 600; }

.fw-spalten { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px; align-items: start; padding-top: 28px; border-top: 1.5px solid var(--fw-text); }
.fw-spalten > * { margin: 0 !important; }
.fw-spalten > :first-child { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 112px); }
.fw-spalten > :first-child p:not(.fw-kennung) { margin-top: 18px; color: #3a3f45; }
.fw-spalten > :last-child > * { margin-block: 0; }
.fw-spalten > :last-child > * + * { margin-top: 20px; }
.fw-spalten > :last-child > h3:not(:first-child) { margin-top: 40px; }

/* Einstieg: großer Einleitungstext, daneben die wichtigsten Fakten. */
.fw-einstieg { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: start; }
.fw-einstieg > * { margin: 0 !important; }
.fw-einstieg .fw-lead { margin: 0; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.5; color: var(--fw-text); }
.fw-einstieg .fw-lead + p { margin-top: 20px; color: #3a3f45; }
.fw-einstieg .fw-linklinie { margin-top: 28px; }
.fw-blick { padding: 28px 30px 30px; background: var(--fw-weiss); border-top: var(--fw-balken) solid var(--fb, var(--fw-text)); }
.fw-blick > * { margin: 0; }
.fw-blick .fw-kennung { margin-bottom: 8px; }

.fw-daten { margin: 0; padding: 0; list-style: none; }
.fw-daten li { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 4px 20px; padding: 13px 0; border-bottom: 1px solid var(--fw-feinlinie); line-height: 1.45; }
.fw-daten li:last-child { border-bottom: 0; padding-bottom: 0; }
.fw-daten strong { padding-top: 3px; font-family: var(--fw-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fw-grau); }
.fw-spalten .fw-daten { border-top: 1.5px solid var(--fw-text); }
.fw-daten--breit li { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
.fw-daten a { color: inherit; }

/* Fließtext allgemeiner Seiten (Datenschutz, Cookie-Richtlinie): ruhige Lesespalte mit klaren Überschriften. */
.fw-allgemein .fw-inhalt > h2 { margin-top: 64px; padding-top: 24px; font-size: clamp(1.5rem, 2.2vw, 1.875rem); border-top: 1.5px solid var(--fw-text); }
.fw-allgemein .fw-inhalt > h2:first-child { margin-top: 0; }
.fw-allgemein .fw-inhalt > h3 { margin-top: 36px; font-size: 1.1875rem; font-weight: 700; }
.fw-allgemein .fw-inhalt > ul { padding-left: 1.25rem; line-height: 1.65; }
.fw-allgemein .fw-inhalt a { color: var(--fw-blau); overflow-wrap: anywhere; }
.fw-spalten .fw-daten li:last-child { border-bottom: 1px solid var(--fw-feinlinie); padding-bottom: 13px; }

.fw-teileliste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--fw-text); }
.fw-teileliste li { position: relative; padding: 16px 16px 16px 26px; font-size: 1.0625rem; font-weight: 600; border-bottom: 1px solid var(--fw-feinlinie); }
.fw-teileliste li:nth-child(odd) { border-right: 1px solid var(--fw-feinlinie); }
.fw-teileliste li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--fb, var(--fw-text)); }

.fw-marken { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fw-marken li { padding: 7px 14px; font-size: 0.9375rem; background: var(--fw-weiss); border: 1px solid var(--fw-linie); }

.fw-haken { margin: 0; padding: 0; list-style: none; }
.fw-haken li { position: relative; padding: 9px 0 9px 32px; line-height: 1.45; border-bottom: 1px solid var(--fw-feinlinie); }
.fw-haken li:last-child { border-bottom: 0; }
.fw-haken li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 7px; border-left: 2.5px solid var(--fb, var(--fw-text)); border-bottom: 2.5px solid var(--fb, var(--fw-text)); transform: rotate(-45deg); }

/* Aufklapper in der Inhaltsspalte: die Abschnittslinie ersetzt die obere Linie. */
.fw-spalten > :last-child > .fw-aufklapp:first-child { border-top: 0; }
.fw-spalten > :last-child > .fw-aufklapp:first-child summary { padding-top: 0; }
.fw-aufklapp > * { margin-block: 0 20px; }
.fw-aufklapp > .fw-galerie { margin-block: 0 24px !important; }
.fw-aufklapp h3 { margin: 24px 0 12px; font-size: 1.0625rem; }

/* Ablauf: echte Reihenfolge, deshalb nummeriert. */
.fw-ablauf { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; counter-reset: fw-schritt; border-top: 1.5px solid var(--fw-text); }
.fw-ablauf li { flex: 1 1 8rem; padding: 12px 14px 12px 0; font-weight: 600; counter-increment: fw-schritt; border-bottom: 1px solid var(--fw-feinlinie); }
.fw-ablauf li::before { content: counter(fw-schritt, decimal-leading-zero); display: block; margin-bottom: 4px; font-family: var(--fw-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.1em; color: var(--fb, var(--fw-grau)); }

/* Filme: erster groß, weitere darunter nebeneinander. */
.fw-filme { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fw-filme > * { margin: 0 !important; }
.fw-filme > .wp-block-embed:first-child { grid-column: 1 / -1; }
.fw-abschnitt > .fw-filme { margin-top: 36px; }

/* Schallpegel: der Balken unter jeder Zeile zeigt den Pegel im Verhältnis zu 120 dB. */
.fw-pegel { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--fw-text); }
.fw-pegel li { position: relative; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 4px 20px; padding: 16px 0 20px; line-height: 1.45; border-bottom: 1px solid var(--fw-feinlinie); }
.fw-pegel strong { font-family: var(--fw-mono); font-size: 1.25rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.fw-pegel li::after { content: ""; position: absolute; left: 0; bottom: -1px; width: var(--pegel); height: 4px; background: var(--fb, var(--fw-text)); }
.fw-pegel li:nth-child(1) { --pegel: 29%; }
.fw-pegel li:nth-child(2) { --pegel: 46%; }
.fw-pegel li:nth-child(3) { --pegel: 58%; }
.fw-pegel li:nth-child(4) { --pegel: 71%; }
.fw-pegel li:nth-child(5) { --pegel: 88%; }
.fw-pegel li:nth-child(6) { --pegel: 100%; }

/* Schrittfolge aus Bild-Text-Kästen (KBZF): eng gestapelt, Bild abwechselnd links/rechts. */
.fw-schritte > .fw-bildtext + .fw-bildtext { margin-top: 16px; }
.fw-schritte .fw-bildtext .wp-block-media-text__media { min-height: 280px; }

/* Karten (KBZF-Schritte): gleiches Bildformat, Nummer in Bereichsfarbe, 2 × 2. */
.fw-karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fw-karten > * { margin: 0 !important; }
.fw-karte { display: flex; flex-direction: column; background: var(--fw-weiss); }
.fw-karte > * { margin: 0; }
.fw-karte > :not(.wp-block-image) { margin-inline: 28px; }
.fw-karte > .wp-block-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fw-karte > .fw-kennung { margin-top: 24px; color: var(--fb, var(--fw-grau)); }
.fw-karte > h3 { margin-top: 8px; font-size: 1.375rem; font-weight: 700; }
.fw-karte > p:not(.fw-kennung), .fw-karte > ul { margin-top: 14px; color: #3a3f45; }
.fw-karte > :last-child { margin-bottom: 28px; }
.fw-abschnitt > .fw-karten { margin-top: 36px; }

/* Aufruf: weißes Band mit Farbkante, Text links, Knopf rechts (Traegerwerk). */
.fw-aufruf { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; padding: 36px 40px; background: var(--fw-weiss); border-left: var(--fw-balken) solid var(--fb, var(--fw-text)); }
.fw-aufruf > * { margin: 0 !important; }
.fw-aufruf h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.fw-aufruf p { margin: 10px 0 0; color: #3a3f45; }

/* Bild und Text im Abschnitt: weißer Kasten, Bild füllt die Höhe. */
.fw-abschnitt .fw-bildtext { margin: 0; }
.fw-abschnitt .fw-bildtext h2 { margin-bottom: 20px; font-size: 1.625rem; }
.fw-bildtext p.fw-kennung { margin: 0 0 10px; font-size: 0.75rem; color: var(--fw-grau); }
.fw-spalten h2 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); }
.fw-spalten .fw-teileliste { border-top: 0; }
.fw-spalten .fw-teileliste li:nth-child(-n+2) { padding-top: 0; }
.fw-spalten .fw-teileliste li:nth-child(-n+2)::before { margin-top: -13px; }
.fw-abschnitt .fw-galerie { margin-block: 36px 0 !important; }
.fw-abschnitt .fw-inhaltsbild { margin-block: 0 !important; }
.fw-abschnitt .fw-inhaltsbild img { max-height: 420px; }

/* ---------- News ---------- */

/* Einleitung allgemeiner Seiten (News, Jobs): linksbündig auf der Inhaltsbreite, Text nicht breiter als 46rem. */
.fw-einleitung { padding: 16px 0 48px; }
.fw-einleitung > * { max-width: 46rem; margin: 0; }
.fw-einleitung > * + * { margin-top: 16px; }
.fw-einleitung .fw-lead { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.5; }
.fw-einleitung p:not(.fw-lead) { line-height: 1.65; color: #3a3f45; }

.fw-newsliste { padding-bottom: 96px; }
.fw-newskarte { display: flex; flex-direction: column; background: var(--fw-weiss); color: var(--fw-text); text-decoration: none; }
.fw-newsbild { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #dfe3e5; }
.fw-newsbild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--fw-ease); }
.fw-newskarte:hover .fw-newsbild img { transform: scale(1.03); }
.fw-newstext { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 24px 28px 28px; }
.fw-newstitel { font-size: 1.375rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; transition: color 0.2s; }
.fw-newskarte:hover .fw-newstitel { color: var(--fw-blau); }
.fw-newsauszug { font-size: 0.9375rem; line-height: 1.6; color: #3a3f45; }
.fw-linkpfeil { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--fb, var(--fw-blau)); }
/* Neueste Meldung quer: Bild links, Text rechts. */
.fw-newskarte--gross { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
/* Bild füllt die Kartenhöhe, ohne sie zu bestimmen (Hochformat würde die Karte sonst strecken). */
.fw-newskarte--gross .fw-newsbild { position: relative; aspect-ratio: auto; min-height: 420px; }
.fw-newskarte--gross .fw-newsbild img { position: absolute; inset: 0; }
.fw-newskarte--gross .fw-newstext { justify-content: center; padding: 44px 48px; }
.fw-newskarte--gross .fw-newstitel { font-size: clamp(1.625rem, 2.6vw, 2.25rem); }
.fw-newskarte--gross .fw-newsauszug { font-size: 1.0625rem; }
.fw-newskarte--gross .fw-linkpfeil { margin-top: 12px; }
.fw-newsraster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }

.fw-newsartikel { width: min(720px, 100% - 2 * var(--fw-rand)); margin: 56px auto 0; }
.fw-newsartikel > * { margin: 0 0 18px; }
.fw-newsartikel p { font-size: 1.0625rem; line-height: 1.7; }
.fw-newsartikel > p:first-child { font-size: 1.25rem; line-height: 1.55; }
.fw-newsartikel h2, .fw-newsartikel h3 { margin: 40px 0 10px; font-size: 1.25rem; font-weight: 700; }
.fw-newsartikel-bild { margin: 40px 0; }
.fw-newsartikel-bild img { display: block; width: 100%; }
.fw-newszurueck { margin-top: 48px !important; }
.fw-newsweitere { padding: 96px 0 32px; }
.fw-newsweitere .fw-kopfbalken { margin-bottom: 12px; font-size: clamp(1.75rem, 2.6vw, 2.25rem); }

/* ---------- Jobs ---------- */

/* Übersicht: Karten wie auf großen Karriereseiten – Bild, Titel, Anriss, Schlagworte als Chips, Link mit Pfeil. */
.fw-jobs { padding-bottom: 64px; }
.fw-jobgruppe { margin-top: 24px; }
.fw-jobgruppe + .fw-jobgruppe { margin-top: clamp(56px, 7vw, 96px); }
.fw-jobgruppe .fw-kennung { margin-bottom: 14px; }
.fw-jobs .fw-kopfbalken { margin-bottom: 28px; font-size: clamp(1.5rem, 2.2vw, 1.875rem); }
.fw-jobs > .fw-abschnitt { margin-top: clamp(56px, 7vw, 96px); }
.fw-jobkarten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.fw-jobkarte a { display: flex; flex-direction: column; height: 100%; overflow: hidden; color: var(--fw-text); text-decoration: none; background: var(--fw-weiss); border-radius: 10px; box-shadow: 0 1px 2px rgb(38 50 58 / 0.06), 0 4px 16px rgb(38 50 58 / 0.06); transition: box-shadow 0.3s, transform 0.3s var(--fw-ease); }
.fw-jobkarte a:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(38 50 58 / 0.08), 0 14px 32px rgb(38 50 58 / 0.12); }
.fw-jobbild { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #dfe3e5; }
.fw-jobbild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--fw-ease); }
.fw-jobkarte a:hover .fw-jobbild img { transform: scale(1.04); }
.fw-jobtext { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px 22px 18px; }
.fw-jobtitel { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.fw-jobanriss { font-size: 0.9375rem; line-height: 1.5; color: #3a3f45; }
.fw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
.fw-chips span { padding: 6px 13px; font-size: 0.8125rem; line-height: 1.2; color: var(--fw-text); background: #eef0f1; border-radius: 999px; }
.fw-jobmehr { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; font-size: 0.875rem; font-weight: 600; color: var(--fb, var(--fw-blau)); }
.fw-jobmehr span { text-decoration: underline; text-underline-offset: 3px; }
.fw-jobmehr i { font-size: 1.5rem; font-style: normal; line-height: 1; transition: transform 0.3s var(--fw-ease); }
.fw-jobkarte a:hover .fw-jobmehr i { transform: translateX(4px); }

/* Einzelne Stelle: Text in Lesebreite, daneben Bewerbungskasten (bleibt beim Scrollen stehen). */
.fw-chips--kopf { margin-top: 20px; }
.fw-chips--kopf span { background: var(--fw-weiss); border: 1px solid var(--fw-linie); }
.fw-jobseite { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; padding: 56px 0 96px; }
.fw-jobseite-text { max-width: 46rem; }
.fw-jobseite-text > * { margin: 0 0 16px; }
.fw-jobseite-text p { font-size: 1.0625rem; line-height: 1.7; color: #3a3f45; }
.fw-jobseite-text h2, .fw-jobseite-text h3 { margin: 36px 0 10px; font-size: 1.25rem; font-weight: 700; }
.fw-jobseite-text h2:first-child, .fw-jobseite-text h3:first-child { margin-top: 0; }
.fw-jobseite-text .fw-haken li { padding: 7px 0 7px 32px; border: 0; }
.fw-jobseite-text .fw-haken li::before { top: 13px; }
.fw-jobseite-text a { color: var(--fw-blau); }
.fw-jobseite-kasten { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 112px); padding: 28px; background: var(--fw-weiss); border-top: var(--fw-balken) solid var(--fb, var(--fw-blau)); }
.fw-jobseite-kasten > * { margin: 0; }
.fw-jobseite-kasten > * + * { margin-top: 16px; }
.fw-jobseite-kasten p { line-height: 1.55; color: #3a3f45; }
.fw-jobseite-kasten .fw-knopf { box-sizing: border-box; width: 100%; justify-content: center; }
/* Aufzählungen aus dem Editor (ul ohne Klasse) wie die Haken-Listen der übrigen Seiten. */
.fw-jobseite-text ul:not([class*="fw-"]) { margin-left: 0; padding: 0; list-style: none; }
.fw-jobseite-text ul:not([class*="fw-"]) li { position: relative; padding: 7px 0 7px 32px; line-height: 1.5; color: #3a3f45; }
.fw-jobseite-text ul:not([class*="fw-"]) li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 7px; border-left: 2.5px solid var(--fb, var(--fw-text)); border-bottom: 2.5px solid var(--fb, var(--fw-text)); transform: rotate(-45deg); }
.fw-jobseite-mail a { font-size: 0.875rem; color: var(--fw-text); overflow-wrap: anywhere; }

/* ---------- Team ---------- */

/* Wie die bisherige Seite: Abteilung als zentrierte Versal-Überschrift mit kurzem Strich, drei Fotos pro Reihe,
   Name und Funktion zentriert darunter; Klick öffnet die Person. */
.fw-team { padding-bottom: 96px; }
.fw-teamgruppe { padding-top: clamp(56px, 7vw, 96px); scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 80px); }
.fw-teamtitel { margin: 0 0 56px; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 300; line-height: 1.25; letter-spacing: 0.01em; text-align: center; text-transform: uppercase; }
.fw-teamtitel::after { content: ""; display: block; width: 72px; height: 3px; margin: 28px auto 0; background: var(--fb); }
.fw-personen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; margin: 0; padding: 0; list-style: none; }
.fw-person a { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--fw-text); text-decoration: none; }
.fw-personbild { display: block; width: 100%; aspect-ratio: 3 / 2; margin-bottom: 20px; overflow: hidden; background: #dfe3e5; }
.fw-personbild img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 0.6s var(--fw-ease); }
.fw-person a:hover .fw-personbild img { transform: scale(1.03); }
.fw-personname { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; text-transform: uppercase; transition: color 0.2s; }
.fw-person a:hover .fw-personname { color: var(--fb); }
.fw-personfunktion { margin-top: 4px; font-size: 0.6875rem; font-weight: 500; line-height: 2; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fw-grau); }

/* Einzelne Person */
.fw-personseite { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; padding: 56px 0 96px; }
.fw-personseite-bild { margin: 0; }
.fw-personseite-bild img { display: block; width: 100%; height: auto; }
.fw-personseite-text .fw-kennung a { color: inherit; text-decoration: none; }
.fw-personseite-text .fw-kennung a:hover { color: var(--fw-blau); }
.fw-personseite-text .fw-seitentitel { margin-top: 14px; font-size: clamp(2rem, 3.6vw, 2.75rem); }
.fw-personseite-funktion { margin: 18px 0 0; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--fw-grau); }
.fw-personseite-funktion + .fw-personseite-funktion { margin-top: 4px; }
.fw-kontaktbloecke { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin: 36px 0; padding-top: 28px; border-top: 1.5px solid var(--fw-text); }
.fw-kontaktblock p { margin: 6px 0 0; line-height: 1.55; }
.fw-kontaktblock a { color: var(--fw-text); text-decoration: none; }
.fw-kontaktblock a:hover { color: var(--fw-blau); text-decoration: underline; }
.fw-kontaktblock a[href^="tel:"] { font-family: var(--fw-mono); font-size: 0.9375rem; }

/* Allgemeine Seiten: Luft vor dem Fuß. */
.fw-allgemein > .fw-inhalt { padding-bottom: 96px; }

/* 404 und Suche */
.fw-404 { padding-bottom: 96px; }
.fw-404 .fw-knoepfe { margin-top: 28px; }
.fw-suche { margin-top: 40px; max-width: 32rem; }
.fw-suche label { display: block; margin-bottom: 8px; font-family: var(--fw-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fw-grau); }
.fw-suche span { display: flex; }
.fw-suche input { flex: 1; min-width: 0; padding: 13px 16px; font: inherit; color: var(--fw-text); background: var(--fw-weiss); border: 1.5px solid var(--fw-text); border-right: 0; border-radius: 0; }
.fw-suche .fw-knopf { cursor: pointer; }
.fw-suchseite { padding-bottom: 96px; }
.fw-suchseite .fw-suche { margin: 0 0 40px; }
.fw-treffer { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--fw-text); }
.fw-treffer a { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; color: var(--fw-text); text-decoration: none; border-bottom: 1px solid var(--fw-feinlinie); }
.fw-treffer .fw-kennung { grid-row: span 2; padding-top: 4px; }
.fw-treffer b { font-size: 1.1875rem; font-weight: 700; transition: color 0.2s; }
.fw-treffer a:hover b { color: var(--fw-blau); }
.fw-treffer a > span:last-child:not(.fw-kennung) { font-size: 0.9375rem; line-height: 1.55; color: #3a3f45; }
.fw-suchseite .nav-links { display: flex; gap: 8px; margin-top: 32px; }
.fw-suchseite .page-numbers { padding: 8px 14px; color: var(--fw-text); text-decoration: none; border: 1px solid var(--fw-linie); background: var(--fw-weiss); }
.fw-suchseite .page-numbers.current { color: var(--fw-weiss); background: var(--fw-text); border-color: var(--fw-text); }
@media (max-width: 560px) { .fw-treffer a { grid-template-columns: minmax(0, 1fr); } .fw-treffer .fw-kennung { grid-row: auto; } }

/* ---------- Zertifikate ---------- */

.fw-urkunden { padding-bottom: 96px; }
.fw-urkundengruppe + .fw-urkundengruppe { margin-top: clamp(56px, 7vw, 96px); }
.fw-urkundengruppe .fw-kennung { margin-bottom: 14px; }
.fw-urkundengruppe .fw-kopfbalken { margin-bottom: 28px; font-size: clamp(1.5rem, 2.2vw, 1.875rem); }
.fw-urkundenraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.fw-urkunde { display: flex; flex-direction: column; background: var(--fw-weiss); }
/* Dokument ganz zeigen (Hochformat), auf hellem Grund wie auf dem Tisch. */
.fw-urkundenbild { display: flex; justify-content: center; padding: 28px 28px 0; background: #e6e8e9; overflow: hidden; }
.fw-urkundenbild img { display: block; width: 72%; height: auto; box-shadow: 0 10px 28px rgb(38 50 58 / 0.18); transform: translateY(12px); transition: transform 0.5s var(--fw-ease); }
.fw-urkundenbild:hover img { transform: translateY(0); }
.fw-urkundentext { display: flex; flex: 1; flex-direction: column; padding: 24px 28px 26px; }
.fw-urkundentext > * { margin: 0; }
.fw-urkundentext h3 { margin-top: 8px; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.fw-urkundentext p { margin-top: 10px; font-size: 0.9375rem; line-height: 1.55; color: #3a3f45; }
.fw-urkunde-bis { padding-top: 10px; border-top: 1px solid var(--fw-feinlinie); font-family: var(--fw-mono); font-size: 0.75rem !important; letter-spacing: 0.06em; text-transform: uppercase; }
.fw-urkunde-bis { margin-top: auto !important; }
.fw-urkunde-bis b { color: var(--fw-text); font-weight: 600; }
.fw-urkunde-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fw-urkunde-links a { font-weight: 600; color: var(--fb, var(--fw-blau)); text-decoration: none; }
.fw-urkunde-links a:hover { text-decoration: underline; }

/* ---------- Zeitleiste (Projekt: Zukunft) ---------- */

.fw-zeitleiste { position: relative; margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--fw-text); }
.fw-zeitleiste li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 20px; padding: 16px 0; line-height: 1.5; border-bottom: 1px solid var(--fw-feinlinie); }
.fw-zeitleiste strong { font-family: var(--fw-mono); font-size: 1.125rem; font-weight: 600; color: var(--fb, var(--fw-blau)); }
/* Gleiches Jahr wie in der Zeile davor: Jahreszahl blass, damit die Jahre als Gruppen lesbar sind. */
.fw-zeitleiste li.fw-gleiches-jahr strong { opacity: 0.28; }

.fw-signet { max-width: 180px; margin-top: 32px !important; }
.fw-signet img { display: block; width: 100%; height: auto; }

/* ---------- Inhaltsseiten: Abschluss ---------- */

.fw-abschluss { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; margin-bottom: 64px; }
.fw-abschluss .fw-kopfbalken { margin-bottom: 24px; font-size: 1.5rem; }
.fw-abschluss .fw-ansprech { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 0; background: var(--fw-weiss); }
.fw-abschluss .fw-ansprech .fw-knopf { justify-self: start; }
.fw-bereichsliste { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--fw-text); }
.fw-bereichsliste li { border-bottom: 1px solid var(--fw-feinlinie); }
.fw-bereichsliste a { position: relative; isolation: isolate; display: flex; justify-content: space-between; padding: 12px 14px 12px 18px; font-weight: 600; color: var(--fw-text); text-decoration: none; transition: color 0.3s; }
.fw-bereichsliste a::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: 4px; background: var(--c); transition: width 0.45s var(--fw-ease); }
.fw-bereichsliste a:hover, .fw-bereichsliste a:focus-visible { color: var(--auf); }
.fw-bereichsliste a:hover::before, .fw-bereichsliste a:focus-visible::before { width: 100%; }
.fw-abschluss-einzeln { margin-bottom: 64px; }
.fw-abschluss-einzeln .fw-ansprech { background: var(--fw-weiss); }
.fw-referenzseite .fw-referenzen, .fw-bereichsseite .fw-referenzen { padding-top: 48px; }

/* ---------- Schmal ---------- */

@media (max-width: 960px) {
	:root { --fw-rand: 24px; }
	.fw-titel { padding: 28px 0 24px; }
	.fw-titel-unten { grid-template-columns: minmax(0, 1fr); }
	.fw-felder { flex-direction: column; height: auto; }
	.fw-feld { flex: none !important; height: 200px; }
	.fw-feld.ist-aktiv { height: 320px; }
	.fw-feld.ist-aktiv .fw-feld-titel { font-size: 2rem; }
	.fw-wir { margin-top: 64px; }
	.fw-wir-innen { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 32px 20px; }
	.fw-werte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fw-werte li { padding: 16px 14px; }
	.fw-werte p { font-size: 1rem; hyphens: auto; overflow-wrap: break-word; }
	.fw-fakten { margin-top: 64px; }
	.fw-fakten dl { grid-template-columns: 1fr; }
	.fw-fakten dl > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--fw-feinlinie); }
	.fw-referenzen { padding: 64px 0; }
	.fw-band a { width: 82vw; }
	.fw-bildrahmen { height: 240px; }
	.fw-warum-innen { padding: 28px 20px; }
	.fw-gruende { grid-template-columns: 1fr; }
	.fw-ueber-innen { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px 20px; }
	.fw-branchen a { margin-left: 0; }
	.fw-ansprech { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
	.fw-ansprech .fw-knopf { justify-content: center; }
	.fw-baender { grid-template-columns: 1fr; }
	.fw-gruen, .fw-zert { padding: 40px 24px; }
	.fw-siegel { flex-wrap: wrap; }
	.fw-siegel li { flex: 1 1 30%; }
	.fw-fuss-netz { padding-left: 0; border-left: 0; }
	.fw-ref-kopfraster, .fw-abschluss { grid-template-columns: minmax(0, 1fr); }
	.fw-bildtext .wp-block-media-text__content { padding: 24px 20px !important; }
	.fw-inhalt { padding-block: 40px 16px; }
	.fw-spalten, .fw-einstieg { grid-template-columns: minmax(0, 1fr); }
	.fw-spalten > :first-child { position: static; }
	.fw-teileliste { grid-template-columns: minmax(0, 1fr); }
	.fw-teileliste li:nth-child(odd) { border-right: 0; }
	.fw-daten li { grid-template-columns: minmax(0, 1fr); }
	.fw-filme, .fw-karten, .fw-aufruf { grid-template-columns: minmax(0, 1fr); }
	.fw-aufruf { padding: 28px 24px; }
	.fw-newskarte--gross { grid-template-columns: minmax(0, 1fr); }
	.fw-newskarte--gross .fw-newsbild { min-height: 0; aspect-ratio: 16 / 9; }
	.fw-newskarte--gross .fw-newsbild img { position: static; }
	.fw-newskarte--gross .fw-newstext { padding: 24px 24px 28px; }
	.fw-jobkarten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fw-jobseite { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
	.fw-jobseite-kasten { position: static; }
	.fw-personen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
	.fw-teamtitel { margin-bottom: 40px; }
	.fw-zeitleiste li { grid-template-columns: 4rem minmax(0, 1fr); gap: 12px; }
	.fw-personseite { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
	.fw-pegel li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.fw-personen { grid-template-columns: minmax(0, 1fr); }
	.fw-jobkarten { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
	.fw-titel .fw-kennung span { display: block; margin: 6px 0 0; }
	.fw-logo img { height: 44px; }
	.fw-knoepfe .fw-knopf { flex: 1 1 100%; justify-content: center; }
	/* Startseite am Handy: Die Bereiche folgen direkt darunter, zwei Knöpfe über die volle Breite wirkten wie eine Wand
	   (Ludwig 13.10.2026). „Bereiche ansehen“ entfällt, „Offene Stellen“ wird zum Linienlink wie „Unsere Philosophie →“. */
	.fw-titel .fw-knoepfe .fw-knopf:not(.fw-knopf--linie) { display: none; }
	.fw-titel .fw-knoepfe .fw-knopf--linie { flex: none; padding: 0 0 6px; background: none; border: 0; border-bottom: 2px solid currentColor; }
	.fw-titel .fw-knoepfe .fw-knopf--linie::after { content: " →"; white-space: pre; }
	.fw-titel .fw-knoepfe .fw-knopf--linie:hover { background: none; color: var(--fw-blau); }
}

/* ---------- Cookie-Banner (Complianz) ---------- */

/* Ab 1024 px legt Complianz die drei Knöpfe nebeneinander in eine dritte Spalte (770 px breit). Unter ~1440 px bleibt
   für den Text zu wenig: er wird links abgeschnitten, der Banner scrollt seitwärts. Knöpfe dort untereinander → Spalte 250 px. */
@media (min-width: 1024px) and (max-width: 1439px) {
	.cmplz-cookiebanner.cmplz-bottom.cmplz-categories-type-view-preferences .cmplz-buttons { flex-direction: column; }
}

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
	.fw-js .fw-kopfbalken::after { transform: none; }
	.fw-js .fw-bildrahmen::after { display: none; }
}
