/*
 * Wintrich – Kompositionen 1.0 (Redesign „Neuinterpretation“).
 * Kopf und Fuß, Bühne, Faktenleiste, Leistungs-Index, Reiter, Kapitel, horizontale Galerie, Band, Ablauf,
 * Fragen, Abschluss. Werte ausschließlich aus tokens.css; Bewegungsmechanik in bewegung.css.
 */

:root {
	interpolate-size: allow-keywords;
	--w-rand-links: max(var(--w-layout-gutter), calc((100vw - var(--w-layout-container)) / 2));
	--w-schleier: var(--w-color-kapitel);
}

/* =====================================================================
 * Kopf
 * ===================================================================== */
.w-header {
	color: var(--w-color-text);
}
.w-header .w-logo,
.w-header .w-nav__list a,
.w-header .w-tel {
	color: inherit;
	transition: color var(--w-motion-dauer-kurz) ease;
}

/* Über der Bühne: transparent und hell, bis gescrollt wird */
.hat-buehne .w-header {
	margin-bottom: calc(-1 * var(--w-layout-header-height));
}
.hat-buehne .w-header:not(.is-kompakt):not(.is-open) {
	background: transparent;
	border-bottom-color: transparent;
	color: var(--w-color-auf-dunkel);
}
.hat-buehne .w-header:not(.is-kompakt):not(.is-open) .w-btn--primary {
	background: var(--w-color-weiss);
	color: var(--w-color-primaer);
}
.hat-buehne .w-header:not(.is-kompakt):not(.is-open) :focus-visible {
	outline-color: var(--w-color-auf-dunkel);
}
.hat-buehne .w-header:not(.is-kompakt):not(.is-open)::after {
	opacity: 0;
}

/* Leistungen-Flyout (Untermenü der Hauptnavigation) */
@media (min-width: 75em) {
	.w-nav__list .sub-menu {
		left: calc(var(--w-space-5) * -1);
		min-width: 22rem;
		padding: var(--w-space-4) var(--w-space-5) var(--w-space-5);
		color: var(--w-color-text);
		counter-reset: flyout;
		box-shadow: 0 1.5rem 3rem var(--w-color-schatten);
	}
	.w-nav__list .sub-menu li {
		counter-increment: flyout;
	}
	.w-nav__list .sub-menu a {
		display: flex;
		gap: var(--w-space-4);
		align-items: baseline;
		padding-block: var(--w-space-2);
		color: var(--w-color-text);
		background: none;
		border-bottom: var(--w-border-haarlinie) solid var(--w-color-linie);
	}
	.w-nav__list .sub-menu li:last-child a {
		border-bottom: 0;
	}
	/* Nummern nur, wenn es wirklich eine Folge ist (ab drei Unterpunkten). */
	.w-nav__list .sub-menu:has(> li:nth-child(3)) a::before {
		content: counter(flyout, decimal-leading-zero);
		font-size: var(--w-type-label-size);
		color: var(--w-color-akzent-text);
		font-variant-numeric: tabular-nums;
	}
	.w-nav__list .sub-menu a:hover {
		color: var(--w-color-primaer);
		text-decoration: underline;
		text-underline-offset: 0.25em;
	}
}

/* Mobil: Vollbild-Menü auf dunklem Grund, große Einträge erscheinen gestaffelt */
@media (max-width: 74.99em) {
	.w-header.is-open {
		background: var(--w-color-kapitel);
		color: var(--w-color-auf-dunkel);
		border-bottom-color: transparent;
	}
	.js .w-header__panel {
		position: fixed;
		top: var(--w-layout-header-height);
		left: 0;
		right: 0;
		height: calc(100dvh - var(--w-layout-header-height));
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: var(--w-space-7);
		padding: var(--w-space-6) var(--w-layout-gutter) var(--w-space-7);
		overflow-y: auto;
		background: var(--w-color-kapitel);
		color: var(--w-color-auf-dunkel);
		border: 0;
		visibility: hidden;
		opacity: 0;
		transition:
			opacity 0.4s var(--w-motion-ease-expo),
			visibility 0s linear 0.4s;
	}
	.js .w-header.is-open .w-header__panel {
		display: flex;
		visibility: visible;
		opacity: 1;
		transition: opacity 0.4s var(--w-motion-ease-expo);
	}
	.w-header__panel .w-nav__list {
		gap: var(--w-space-2);
		font-size: var(--w-type-h2-size);
		font-weight: var(--w-font-weight-light);
		font-stretch: var(--w-type-display-stretch);
		text-transform: uppercase;
		line-height: var(--w-type-h2-leading);
	}
	.w-header__panel .w-nav__list > li {
		opacity: 0;
		transform: translateY(1.25rem);
		transition:
			opacity 0.5s var(--w-motion-ease-expo),
			transform 0.7s var(--w-motion-ease-expo);
	}
	.w-header.is-open .w-header__panel .w-nav__list > li {
		opacity: 1;
		transform: none;
	}
	.w-header.is-open .w-header__panel .w-nav__list > li:nth-child(2) { transition-delay: 60ms; }
	.w-header.is-open .w-header__panel .w-nav__list > li:nth-child(3) { transition-delay: 120ms; }
	.w-header.is-open .w-header__panel .w-nav__list > li:nth-child(4) { transition-delay: 180ms; }
	.w-header.is-open .w-header__panel .w-nav__list > li:nth-child(5) { transition-delay: 240ms; }
	.w-header.is-open .w-header__panel .w-nav__list > li:nth-child(6) { transition-delay: 300ms; }
	.w-header__panel .w-nav__list a {
		color: var(--w-color-auf-dunkel);
	}
	.w-header__panel .w-nav__list .sub-menu {
		font-size: var(--w-type-l-size);
		text-transform: none;
		font-stretch: 100%;
		letter-spacing: 0;
	}
	.w-header__panel .w-header__actions {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--w-space-4);
	}
	.w-header__panel .w-tel {
		color: var(--w-color-auf-dunkel);
		font-size: var(--w-type-l-size);
		font-weight: var(--w-font-weight-light);
		font-stretch: var(--w-type-display-stretch);
	}
	.w-header__panel .w-btn--primary {
		background: var(--w-color-weiss);
		color: var(--w-color-primaer);
	}
	.w-menue-offen body {
		overflow: hidden;
	}
}

/* =====================================================================
 * Bühne (Startseite)
 * ===================================================================== */
.w-buehne {
	position: relative;
	height: 100svh;
	min-height: 40rem;
	max-height: 68rem;
	overflow: hidden;
	background: var(--w-color-kapitel);
	color: var(--w-color-auf-dunkel);
	isolation: isolate;
}
.w-buehne__bilder {
	position: absolute;
	inset: 0;
	z-index: -2;
	transform-origin: 50% 40%;
}
.w-buehne__bild {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
}
.w-buehne__bild:first-child {
	opacity: 1;
}
.w-buehne__bild img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.w-buehne__unterschrift {
	position: absolute;
	right: var(--w-rand-links);
	bottom: clamp(1.5rem, 4vh, 3rem);
	display: flex;
	gap: var(--w-space-4);
	align-items: baseline;
	font-size: var(--w-type-label-size);
	color: var(--w-color-auf-dunkel-weich);
	text-align: right;
}
.w-buehne__zaehler {
	font-variant-numeric: tabular-nums;
	color: var(--w-color-akzent);
}
@media (prefers-reduced-motion: no-preference) {
	.w-buehne__bild {
		animation: w-buehne-wechsel calc(var(--w-anzahl, 3) * 7s) linear infinite both;
		animation-delay: calc(var(--i) * 7s - 1.5s);
	}
	.w-bearbeiten .w-buehne__bild {
		animation-play-state: paused;
	}
}
@keyframes w-buehne-wechsel {
	0% {
		opacity: 0;
		transform: scale(1.12);
	}
	7% {
		opacity: 1;
	}
	33% {
		opacity: 1;
	}
	40% {
		opacity: 0;
		transform: scale(1);
	}
	100% {
		opacity: 0;
		transform: scale(1);
	}
}
.w-buehne__schleier {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--w-schleier) 62%, transparent) 0%, transparent 28%),
		linear-gradient(0deg, color-mix(in srgb, var(--w-schleier) 90%, transparent) 0%, color-mix(in srgb, var(--w-schleier) 55%, transparent) 45%, transparent 80%),
		linear-gradient(90deg, color-mix(in srgb, var(--w-schleier) 62%, transparent) 0%, color-mix(in srgb, var(--w-schleier) 25%, transparent) 45%, transparent 70%);
}
.w-buehne__inhalt {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: var(--w-space-6);
	height: 100%;
	padding-top: calc(var(--w-layout-header-height) + var(--w-space-6));
	padding-bottom: clamp(4.5rem, 10vh, 7rem);
}
/* Auf dem Foto trägt Weiß die Kennzeichnung, das Gold bleibt in der Linie. Über dem Display eine Stufe größer,
   der Abstand zur Überschrift wächst mit ihr. */
.w-buehne .w-label,
.w-abschluss .w-label {
	font-size: var(--w-type-eyebrow-size-display);
}
.w-buehne .w-label {
	color: var(--w-color-auf-dunkel);
}
/* Schmal: die lange Kennzeichnung bleibt einzeilig – kleiner, weniger gesperrt, ohne Linie. */
@media (max-width: 47.99em) {
	.w-buehne .w-label {
		font-size: var(--w-type-eyebrow-size);
		font-stretch: 100%;
		letter-spacing: var(--w-type-eyebrow-tracking-schmal);
	}
	.w-buehne .w-label::before {
		display: none;
	}
}
.w-abschluss .w-label + * {
	margin-top: var(--w-space-5);
}
.w-buehne .w-label + .w-buehne__titel {
	margin-top: calc(var(--w-type-display-size) * 0.12 - var(--w-space-6) + var(--w-space-5));
}
/* H1 aus Überzeile und Claim: verhält sich wie die bisherigen zwei Geschwister im Inhaltsbereich. */
.w-buehne__kopf {
	display: flex;
	flex-direction: column;
	gap: var(--w-space-6);
	font: inherit;
}
.w-buehne__titel {
	display: block;
	color: var(--w-color-auf-dunkel);
	/* Schmal: jede Pencilino-Zeile bleibt eine Zeile („Sie vorhaben.“ nicht zerrissen). */
	font-size: min(var(--w-type-display-size), 9.6vw);
}
.w-buehne__titel .w-h1__zeile {
	display: block;
}
.w-buehne__akzent {
	color: var(--w-color-akzent);
}
.w-buehne__unten {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--w-space-6);
}
/* Einleitung: etwa 60 Zeichen je Zeile bei Stufe M. */
.w-buehne__text {
	max-width: 46rem;
}
.w-buehne__text .w-lead {
	text-wrap: pretty;
}
.w-buehne__text > * + * {
	margin-top: var(--w-space-6);
}
.w-buehne .w-lead {
	color: var(--w-color-auf-dunkel-weich);
}
.w-buehne .w-link {
	color: var(--w-color-auf-dunkel);
}
.w-buehne__hinweis {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: var(--w-space-3);
	color: var(--w-color-auf-dunkel);
	text-decoration: none;
}
.w-buehne__linie {
	display: block;
	width: 1px;
	height: 3.5rem;
	background: var(--w-color-linie-auf-dunkel-stark);
	position: relative;
	overflow: hidden;
}
.w-buehne__linie::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--w-color-akzent);
	transform-origin: 50% 0;
	transform: scaleY(0.35);
}
@media (prefers-reduced-motion: no-preference) {
	.w-buehne__linie::after {
		animation: w-hinweis 2.4s var(--w-motion-ease-roll) infinite;
	}
}
@keyframes w-hinweis {
	0% {
		transform: scaleY(0);
		transform-origin: 50% 0;
	}
	50% {
		transform: scaleY(1);
		transform-origin: 50% 0;
	}
	51% {
		transform-origin: 50% 100%;
	}
	100% {
		transform: scaleY(0);
		transform-origin: 50% 100%;
	}
}
@media (max-width: 47.99em) {
	.w-buehne {
		min-height: 36rem;
	}
	.w-buehne__unterschrift {
		display: none;
	}
	.w-buehne__hinweis {
		display: none;
	}
}
/* Tablet: Die breitere Einleitung füllt die Zeile, der Scroll-Hinweis würde sonst in eine eigene Zeile rutschen. */
@media (max-width: 63.99em) {
	.w-buehne__hinweis {
		display: none;
	}
}

/* ---------- Bühne der Aufbau-Seite (Gäste): ohne Kopf, Logo steht in der Bühne ---------- */
.w-buehne--aufbau {
	height: calc(100svh - 3.5rem);
}
.w-buehne--aufbau .w-buehne__inhalt {
	padding-top: var(--w-space-6);
}
.w-buehne__oben {
	margin-bottom: auto;
}
/* Unten rechts steht hier das Wappen; die Bildunterschrift entfällt. */
.w-buehne--aufbau .w-buehne__unterschrift {
	display: none;
}
.w-buehne .w-logo {
	color: var(--w-color-auf-dunkel);
}
.w-logo--aufbau .w-bildzeichen svg {
	height: clamp(3rem, 2.4rem + 1.6vw, 4.5rem);
}
.w-logo--aufbau .w-wortmarke {
	font-size: var(--w-type-wortmarke-size-aufbau);
}
.w-buehne__tel {
	margin-top: var(--w-space-6);
	white-space: nowrap;
}
.w-buehne__tel .w-tel {
	color: var(--w-color-auf-dunkel);
	text-decoration: none;
	background: linear-gradient(var(--w-color-akzent), var(--w-color-akzent)) 0 100% / 100% 1px no-repeat;
	transition: background-size 0.6s var(--w-motion-ease-expo);
}
.w-buehne__tel .w-tel:hover {
	background-size: 100% 3px;
}
.w-buehne__zeichen {
	color: var(--w-color-akzent);
}
.w-buehne__zeichen svg {
	height: clamp(6rem, 3rem + 7vw, 11rem);
	width: auto;
}
@media (max-width: 47.99em) {
	.w-buehne__zeichen {
		display: none;
	}
}
/* Der schlichte Fuß schließt die Aufbau-Seite dunkel ab. */
.w-buehne--aufbau + .w-footer--schlicht,
body:has(.w-buehne--aufbau) .w-footer--schlicht {
	background: var(--w-color-kapitel);
	color: var(--w-color-auf-dunkel-leise);
}
body:has(.w-buehne--aufbau) .w-footer__firma,
body:has(.w-buehne--aufbau) .w-footer__list--zeile a {
	color: var(--w-color-auf-dunkel-leise);
}
body:has(.w-buehne--aufbau) .w-footer__list--zeile a:hover {
	color: var(--w-color-auf-dunkel);
}

/* =====================================================================
 * Seiteneinstieg der Unterseiten
 * ===================================================================== */
.w-einstieg {
	padding-top: clamp(3.5rem, 1.5rem + 7vw, 8.5rem);
	padding-bottom: var(--w-space-section);
}
.w-einstieg--band {
	padding-bottom: 0;
}
.w-einstieg__raster {
	display: grid;
	gap: var(--w-space-7) var(--w-layout-raster-abstand);
}
@media (min-width: 60em) {
	.w-einstieg__raster {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: end;
	}
	/* Textspalte 5 von 12: Einleitung und Buttons haben mehr Raum. */
	.w-einstieg__kopf {
		grid-column: 1 / span 7;
	}
	.w-einstieg__text {
		grid-column: 8 / span 5;
	}
}
.w-einstieg__kopf > .w-label + * {
	margin-top: var(--w-space-5);
}
.w-einstieg__titel {
	max-width: 19ch;
	font-size: var(--w-type-h1-size);
	font-weight: var(--w-font-weight-light);
	line-height: var(--w-type-h1-leading);
	letter-spacing: var(--w-type-h1-tracking);
	color: var(--w-color-text);
	text-wrap: balance;
	hyphens: manual;
}
.w-einstieg__text > * + * {
	margin-top: var(--w-space-6);
}
.w-einstieg__linie {
	grid-column: 1 / -1;
	margin-top: var(--w-space-5);
}
.w-einstieg__band {
	margin-top: var(--w-space-block);
	margin-bottom: 0;
}

/* =====================================================================
 * Unterleiste (Leistungen): steht unter dem Kopf, markiert das aktive Gewerk
 * ===================================================================== */
.w-unterleiste {
	--w-anteil: 0;
	position: sticky;
	top: var(--w-layout-header-height-kompakt);
	z-index: 40;
	background: var(--w-color-glas);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-block: var(--w-border-haarlinie) solid var(--w-color-linie);
	transition:
		top 0.45s var(--w-motion-ease-expo),
		transform 0.45s var(--w-motion-ease-expo),
		opacity 0.3s ease;
}
.w-unterleiste.is-vorbei {
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
}
.w-kopf-versteckt .w-unterleiste {
	top: 0;
}
.w-unterleiste__liste {
	display: flex;
	gap: var(--w-space-6);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
}
.w-unterleiste__liste::-webkit-scrollbar {
	display: none;
}
@media (min-width: 64em) {
	.w-unterleiste__liste {
		justify-content: space-between;
	}
}
.w-unterleiste a {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: var(--w-space-2);
	padding-block: var(--w-space-4);
	color: var(--w-color-text-leise);
	font-size: var(--w-type-label-size);
	letter-spacing: var(--w-type-label-tracking);
	text-decoration: none;
	transition: color var(--w-motion-dauer-kurz) ease;
}
.w-unterleiste a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--w-color-akzent);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.6s var(--w-motion-ease-expo);
}
.w-unterleiste a:hover,
.w-unterleiste a[aria-current='true'] {
	color: var(--w-color-text);
}
.w-unterleiste a[aria-current='true']::after {
	transform: scaleX(1);
}
.w-unterleiste__nr {
	color: var(--w-color-akzent-text);
	font-variant-numeric: tabular-nums;
}
.w-unterleiste__fortschritt {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background: var(--w-color-akzent);
	transform: scaleX(var(--w-anteil));
	transform-origin: 0 50%;
	opacity: 0.5;
}

/* =====================================================================
 * Leistung als Kapitel: Konturzahl, großes Bild, versetzter Text
 * ===================================================================== */
.w-leistung {
	padding-block: clamp(4rem, 2rem + 5vw, 8rem);
	scroll-margin-top: calc(var(--w-layout-header-height-kompakt) + 3.5rem);
}
.w-leistung__raster {
	display: grid;
	gap: var(--w-space-7) var(--w-layout-raster-abstand);
}
.w-leistung__kopf > * + * {
	margin-top: var(--w-space-5);
}
.w-leistung__kopf > .w-label + * {
	margin-top: var(--w-space-4);
}
.w-leistung__nr {
	font-size: var(--w-type-zahl-display-size);
	color: var(--w-color-akzent-text);
}
.w-leistung__linie {
	max-width: 12rem;
}
.w-leistung__text {
	max-width: var(--w-type-measure);
}
@media (min-width: 60em) {
	.w-leistung__raster {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-template-rows: auto 1fr;
		align-items: start;
	}
	.w-leistung__bild {
		grid-column: 1 / span 6;
		grid-row: 1 / span 2;
	}
	.w-leistung__kopf {
		grid-column: 8 / span 5;
		grid-row: 1;
	}
	.w-leistung__text {
		grid-column: 8 / span 4;
		grid-row: 2;
	}
	.w-leistung--umgekehrt .w-leistung__bild {
		grid-column: 7 / span 6;
	}
	.w-leistung--umgekehrt .w-leistung__kopf {
		grid-column: 1 / span 5;
	}
	.w-leistung--umgekehrt .w-leistung__text {
		grid-column: 2 / span 4;
	}
}
.w-leistungen__band {
	margin-block: 0;
}

/* =====================================================================
 * Zeit-Kapitel (Über uns): 1942 → Heute
 * ===================================================================== */
.w-zeit__zahlen {
	display: grid;
	margin-top: var(--w-space-7);
	color: var(--w-color-akzent);
}
.w-zeit__zahl {
	font-size: var(--w-type-zahl-display-size);
}
@media (min-width: 60em) {
	.w-zeit__bild {
		grid-column: 7 / span 6;
	}
}
.w-kapitel.is-gepinnt .w-zeit__bild .w-frame {
	height: min(74vh, 46rem);
	aspect-ratio: auto;
}
.w-zeit.is-gepinnt .w-zeit__zahl[data-w-kapitel-schritt] {
	grid-area: 1 / 1;
	opacity: 0;
	transform: translate3d(0, 0.12em, 0);
	transition:
		opacity 0.7s var(--w-motion-ease-expo),
		transform 1s var(--w-motion-ease-expo);
}
.w-zeit.is-gepinnt .w-zeit__zahl[data-w-kapitel-schritt].is-aktiv {
	opacity: 1;
	transform: none;
}
/* Vor „Heute“ steht das Foto in Schwarzweiß – ein Bild der Zeit, kein vorgetäuschtes Archivfoto. */
.w-zeit.is-gepinnt .w-zeit__bild img {
	filter: grayscale(1) contrast(1.05);
	transition: filter 1.4s var(--w-motion-ease-expo);
}
.w-zeit.is-gepinnt:has(.w-zeit__zahl--heute.is-aktiv) .w-zeit__bild img {
	filter: none;
}

/* =====================================================================
 * Aussagen (Haltung): nummeriert, groß, mit Krepp-Linie
 * ===================================================================== */
.w-aussagen {
	margin: 0;
	padding: 0;
	list-style: none;
}
.w-aussage {
	display: grid;
	gap: var(--w-space-4) var(--w-layout-raster-abstand);
	padding-block: var(--w-space-7);
}
.w-aussage__linie {
	grid-column: 1 / -1;
	margin-bottom: var(--w-space-4);
}
.w-aussage__nr {
	font-size: var(--w-type-label-size);
	color: var(--w-color-akzent-text);
	font-variant-numeric: tabular-nums;
}
.w-aussage__text {
	max-width: var(--w-type-measure);
}
@media (min-width: 60em) {
	.w-aussage {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: baseline;
	}
	.w-aussage__nr {
		grid-column: 1 / span 1;
	}
	.w-aussage__titel {
		grid-column: 2 / span 6;
	}
	.w-aussage__text {
		grid-column: 9 / span 4;
	}
}

/* =====================================================================
 * Faktenleiste
 * ===================================================================== */
.w-fakten {
	border: 0;
	padding-block: clamp(3.5rem, 2rem + 5vw, 7rem);
}
.w-fakten__raster {
	display: grid;
	gap: var(--w-space-7) var(--w-layout-raster-abstand);
	align-items: end;
}
@media (min-width: 60em) {
	.w-fakten__raster {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.w-fakten__jahr {
		grid-column: 1 / span 6;
	}
	.w-fakten__liste {
		grid-column: 8 / span 5;
	}
}
.w-fakten__jahr {
	display: grid;
	gap: var(--w-space-3);
}
.w-fakten__zahl {
	color: var(--w-color-primaer);
}
.w-fakten__liste {
	display: grid;
	gap: var(--w-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}
.w-fakten__liste li {
	display: inline-flex;
	align-items: center;
	gap: 0.75em;
}
.w-fakten__punkt {
	display: grid;
	gap: var(--w-space-4);
}

/* =====================================================================
 * Leistungs-Index
 * ===================================================================== */
.w-index-raster {
	display: grid;
	gap: var(--w-space-8) var(--w-layout-raster-abstand);
	align-items: start;
}
/* Nebeneinander erst, wenn die Kopfspalte die Überschrift ohne Trennung fasst. */
@media (min-width: 75em) {
	.w-index-raster {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.w-index-raster__kopf {
		grid-column: 1 / span 5;
		position: sticky;
		top: calc(var(--w-layout-header-height-kompakt) + var(--w-space-6));
	}
	.w-index {
		grid-column: 7 / span 6;
	}
}
.w-index {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: var(--w-border-haarlinie) solid var(--w-color-linie);
}
.w-index__zeile {
	position: relative;
}
/* Ruhige Liste: Nummer, Titel, Kurztext immer sichtbar. Beim Überfahren zieht sich die Krepp-Linie unter der Zeile auf. */
.w-index__link {
	position: relative;
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr) 2rem;
	gap: var(--w-space-4);
	align-items: baseline;
	padding-block: var(--w-space-6);
	color: var(--w-color-text);
	text-decoration: none;
}
.w-index__link::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background: var(--w-color-akzent);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.8s var(--w-motion-ease-expo);
}
.w-index__nr {
	font-size: var(--w-type-label-size);
	font-variant-numeric: tabular-nums;
	color: var(--w-color-akzent-text);
}
.w-index__titel {
	display: block;
	transition: color 0.4s ease;
}
.w-index__text {
	max-width: 52ch;
	margin-top: var(--w-space-3);
	color: var(--w-color-text-weich);
}
.w-index__pfeil {
	justify-self: end;
	color: var(--w-color-akzent-text);
	transition: transform 0.6s var(--w-motion-ease-expo);
}
.w-index__link:is(:hover, :focus-visible)::after {
	transform: scaleX(1);
}
.w-index__link:is(:hover, :focus-visible) .w-index__titel {
	color: var(--w-color-primaer);
}
.w-index__link:is(:hover, :focus-visible) .w-index__pfeil {
	transform: translateX(0.35rem);
}

/* =====================================================================
 * Reiter (Zielgruppen)
 * ===================================================================== */
.w-reiter {
	display: grid;
	gap: var(--w-space-8);
}
.w-reiter__liste {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 0 var(--w-layout-raster-abstand);
}
.w-reiter__knopf {
	display: flex;
	gap: var(--w-space-4);
	align-items: baseline;
	width: 100%;
	padding: var(--w-space-5) 0;
	border: 0;
	border-top: 2px solid var(--w-color-linie);
	background: none;
	color: var(--w-color-text-leise);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition:
		color 0.3s ease,
		border-color 0.3s ease;
}
.w-reiter__knopf:hover {
	color: var(--w-color-text);
}
.w-reiter__knopf[aria-selected='true'] {
	color: var(--w-color-text);
	border-top-color: var(--w-color-akzent);
}
.w-reiter__nr {
	font-size: var(--w-type-label-size);
	color: var(--w-color-akzent-text);
	font-variant-numeric: tabular-nums;
}
.w-reiter__feld {
	display: grid;
	gap: var(--w-space-7) var(--w-layout-raster-abstand);
	align-items: center;
}
.w-reiter__feld[hidden] {
	display: none;
}
@media (min-width: 60em) {
	.w-reiter__feld {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
}
.ist-reiter .w-reiter__titel {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}
@media (prefers-reduced-motion: no-preference) {
	.ist-reiter .w-reiter__feld.is-aktiv .w-reiter__text {
		animation: w-reiter-ein 0.7s var(--w-motion-ease-expo) both;
	}
	.ist-reiter .w-reiter__feld.is-aktiv .w-frame {
		animation: w-reiter-wisch var(--w-motion-dauer-kante) var(--w-motion-ease-kante) both;
	}
}
@keyframes w-reiter-ein {
	from {
		opacity: 0;
		transform: translateY(1rem);
	}
}
@keyframes w-reiter-wisch {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

/* =====================================================================
 * Kapitel (dunkel, auf Desktop stehend)
 * ===================================================================== */
.w-kapitel__raster {
	display: grid;
	gap: var(--w-space-8) var(--w-layout-raster-abstand);
	align-items: center;
}
@media (min-width: 60em) {
	.w-kapitel__raster {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.w-kapitel__text {
		grid-column: 1 / span 5;
	}
	.w-kapitel__bilder {
		grid-column: 7 / span 6;
	}
}
.w-kapitel.is-gepinnt {
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: center;
	padding-block: calc(var(--w-layout-header-height-kompakt) + var(--w-space-6)) var(--w-space-7);
}
.w-kapitel.is-gepinnt .w-kapitel__bilder {
	height: min(74vh, 46rem);
}
.w-kapitel.is-gepinnt .w-kapitel__bild .w-frame {
	height: 100%;
	aspect-ratio: auto;
}
.w-kapitel__stufen {
	--w-anteil: 0;
	position: relative;
	display: grid;
	margin: 0;
	padding: 0 0 0 var(--w-space-5);
	list-style: none;
	border-left: var(--w-border-haarlinie) solid var(--w-color-linie-auf-dunkel);
}
.w-kapitel__stufen::before {
	content: '';
	position: absolute;
	left: -1px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--w-color-akzent);
	transform: scaleY(var(--w-anteil));
	transform-origin: 50% 0;
}
.w-kapitel__stufe {
	display: flex;
	gap: var(--w-space-4);
	align-items: baseline;
	padding-block: var(--w-space-3);
	color: var(--w-color-auf-dunkel);
}
.w-kapitel__stufe-nr {
	font-size: var(--w-type-label-size);
	color: var(--w-color-akzent);
	font-variant-numeric: tabular-nums;
}
.w-kapitel:not(.is-gepinnt) .w-kapitel__bilder {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =====================================================================
 * Horizontale Galerie
 * ===================================================================== */
.w-section--galerie {
	overflow: hidden;
}
.w-horizontal {
	--w-galerie-hoehe: clamp(18rem, 60vw, 26rem);
	--w-rand-links: max(var(--w-layout-gutter), calc((100vw - var(--w-layout-container)) / 2));
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--w-space-7);
}
@media (min-width: 60em) {
	.w-horizontal {
		--w-galerie-hoehe: clamp(22rem, 52vh, 34rem);
	}
}
.w-horizontal.is-gepinnt {
	min-height: 100vh;
	align-content: center;
	padding-block: calc(var(--w-layout-header-height-kompakt) + var(--w-space-5)) var(--w-space-6);
}
.w-horizontal__kopf-raster {
	display: grid;
	gap: var(--w-space-6) var(--w-layout-raster-abstand);
	align-items: end;
}
@media (min-width: 60em) {
	.w-horizontal__kopf-raster {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	}
}
.w-horizontal__spur {
	margin: 0;
	list-style: none;
	padding-block: 0;
	align-items: flex-start;
}
.w-horizontal__eintrag {
	flex: 0 0 auto;
	display: grid;
	gap: var(--w-space-3);
}
.w-horizontal__eintrag .w-frame {
	height: var(--w-galerie-hoehe);
	width: auto;
}

/* =====================================================================
 * Band (randabfallendes Bild) und Betrieb
 * ===================================================================== */
.w-band {
	margin-block: var(--w-space-block);
	overflow: hidden;
}
.w-band__bild.w-frame {
	aspect-ratio: 16 / 9;
}
@media (min-width: 60em) {
	.w-band__bild.w-frame {
		aspect-ratio: 21 / 9;
	}
}
.w-betrieb__titel {
	max-width: 18ch;
}
.w-betrieb__links {
	align-self: end;
}

/* =====================================================================
 * Ablauf
 * ===================================================================== */
.w-ablauf__raster {
	display: grid;
	gap: var(--w-space-8) var(--w-layout-raster-abstand);
	align-items: start;
}
@media (min-width: 60em) {
	.w-ablauf__raster {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.w-ablauf__seite {
		grid-column: 1 / span 5;
		position: sticky;
		top: calc(var(--w-layout-header-height-kompakt) + var(--w-space-6));
		display: grid;
		gap: var(--w-space-7);
	}
	.w-ablauf__schritte {
		grid-column: 7 / span 6;
	}
}
.w-ablauf__zahl-fenster {
	display: block;
	height: 0.82em;
	overflow: hidden;
	color: var(--w-color-primaer);
}
.w-ablauf__zahl-spur > span {
	display: block;
	height: 1em;
	line-height: var(--w-type-zahl-display-leading);
}
.w-ablauf__schritte {
	position: relative;
	padding-left: var(--w-space-6);
}
.w-ablauf__schritte::before,
.w-ablauf__linie {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
}
.w-ablauf__schritte::before {
	width: 1px;
	background: var(--w-color-linie);
}
.w-ablauf__linie {
	background: var(--w-color-akzent);
	transform: scaleY(1);
}
.w-ablauf .w-steps {
	border-bottom: 0;
}
.w-ablauf .w-step {
	padding-block: var(--w-space-7);
	border-top: 0;
}
.w-ablauf.is-aktiviert .w-step {
	opacity: 0.38;
	transition: opacity 0.5s ease;
}
.w-ablauf.is-aktiviert .w-step.is-aktiv {
	opacity: 1;
}
@media (min-width: 60em) {
	.w-ablauf.is-aktiviert .w-step {
		grid-template-columns: 1fr;
	}
	.w-ablauf.is-aktiviert .w-step__nr {
		display: none;
	}
}
@media (max-width: 59.99em) {
	.w-ablauf__zahl {
		display: none !important;
	}
}

/* =====================================================================
 * Fragen: weiches Auf- und Zuklappen
 * ===================================================================== */
.w-faq__eintrag::details-content {
	block-size: 0;
	overflow: hidden;
	transition:
		block-size 0.5s var(--w-motion-ease-expo),
		content-visibility 0.5s allow-discrete;
}
.w-faq__eintrag[open]::details-content {
	block-size: auto;
}

/* =====================================================================
 * Abschluss
 * ===================================================================== */
.w-abschluss__inner {
	display: grid;
	gap: var(--w-space-7);
	align-items: start;
}
/* Über die volle Breite, eine Stufe unter dem Bühnen-Claim: höchstens drei ruhige Zeilen. */
.w-abschluss__titel {
	color: var(--w-color-auf-dunkel);
	max-width: 22ch;
	font-size: var(--w-type-h1-size);
}
.w-abschluss__unten {
	display: grid;
	gap: var(--w-space-7) var(--w-layout-raster-abstand);
	align-items: end;
}
@media (min-width: 60em) {
	.w-abschluss__unten {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	}
}
.w-abschluss__handlung {
	display: grid;
	gap: var(--w-space-6);
	justify-items: start;
}
.w-abschluss__alternative {
	display: grid;
	gap: var(--w-space-2);
	font-size: var(--w-type-ui-size);
	color: var(--w-color-auf-dunkel-weich);
}
.w-abschluss__oder {
	font-size: var(--w-type-label-size);
}

/* =====================================================================
 * Fuß (dunkel)
 * ===================================================================== */
.w-footer--kapitel {
	background: var(--w-color-kapitel);
	color: var(--w-color-auf-dunkel-weich);
	border-top: 0;
	padding-block: var(--w-space-section) var(--w-space-6);
}
.w-footer--kapitel a {
	color: var(--w-color-auf-dunkel);
}
.w-footer--kapitel .w-label {
	color: var(--w-color-akzent);
}
.w-footer--kapitel .w-logo {
	color: var(--w-color-auf-dunkel);
}
.w-footer--kapitel .w-footer__text {
	color: var(--w-color-auf-dunkel-weich);
	margin-top: var(--w-space-5);
}
.w-footer--kapitel .w-footer__firma {
	color: var(--w-color-linie-stark);
}
.w-footer--kapitel .w-logo--fuss .w-bildzeichen svg {
	height: 3rem;
}
.w-footer--kapitel .w-logo--fuss .w-wortmarke {
	font-size: var(--w-type-wortmarke-size);
}
.w-footer--kapitel :focus-visible {
	outline-color: var(--w-color-auf-dunkel);
}
.w-footer__schluss {
	display: grid;
	gap: var(--w-space-7);
	align-items: end;
	padding-bottom: var(--w-space-block);
}
@media (min-width: 60em) {
	.w-footer__schluss {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}
.w-footer__statement {
	color: var(--w-color-auf-dunkel);
	font-size: var(--w-type-h1-size);
}
.w-footer__statement-akzent {
	color: var(--w-color-akzent);
}
.w-footer__zeichen {
	color: var(--w-color-akzent);
	justify-self: end;
}
.w-footer__zeichen svg {
	height: clamp(7rem, 4rem + 8vw, 12rem);
	width: auto;
}
.w-footer__kontaktzeile {
	display: grid;
	gap: var(--w-space-4) var(--w-layout-raster-abstand);
	padding-bottom: var(--w-space-block);
}
@media (min-width: 60em) {
	.w-footer__kontaktzeile {
		grid-template-columns: auto auto;
		justify-content: space-between;
	}
	.w-footer__kontaktzeile .w-krepp {
		grid-column: 1 / -1;
	}
}
/* Telefon und E-Mail stehen ungebrochen in einer Zeile; die Größe richtet sich nach der Breite. */
.w-footer__gross {
	font-size: min(5.4vw, var(--w-type-l-size));
	white-space: nowrap;
}
.w-footer__gross a {
	color: var(--w-color-auf-dunkel);
	text-decoration: none;
	background: linear-gradient(var(--w-color-akzent), var(--w-color-akzent)) 0 100% / 0 2px no-repeat;
	transition: background-size 0.6s var(--w-motion-ease-expo);
}
.w-footer__gross a:hover {
	background-size: 100% 2px;
}
.w-footer--kapitel .w-footer__raster {
	padding-block: 0 var(--w-space-block);
}
.w-footer__unten {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--w-space-4);
	padding-top: var(--w-space-5);
	border-top: var(--w-border-haarlinie) solid var(--w-color-linie-auf-dunkel);
}
.w-footer__hoch {
	font-size: var(--w-type-label-size);
	text-decoration: none;
}

/* Wappen-Linie: Umriss zeichnet sich, dann füllt sich die Fläche */
.w-bildzeichen--zeichnen svg path {
	stroke: currentColor;
	stroke-width: 1.4;
	vector-effect: non-scaling-stroke;
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
	fill-opacity: 1;
}
.w-motion .w-bildzeichen--zeichnen svg path {
	stroke-dashoffset: 1;
	fill-opacity: 0;
	transition:
		stroke-dashoffset 2.8s var(--w-motion-ease-roll),
		fill-opacity 1.2s ease 2.2s;
}
.w-motion .w-bildzeichen--zeichnen.is-visible svg path {
	stroke-dashoffset: 0;
	fill-opacity: 1;
}
.w-motion .w-bildzeichen--zeichnen[data-w-einblenden] {
	transform: none;
}
.w-bearbeiten .w-bildzeichen--zeichnen svg path {
	stroke-dashoffset: 0 !important;
	fill-opacity: 1 !important;
}

/* ---------- Porträts: dezenter Zoom beim Überfahren ---------- */
.w-person .w-frame > img {
	transition: transform 1.2s var(--w-motion-ease-expo);
}
@media (hover: hover) {
	.w-person:hover .w-frame > img {
		transform: scale(1.04);
	}
}

/* ---------- Stellen: große Karten mit Krepp-Kante beim Überfahren ---------- */
.w-stelle {
	position: relative;
	padding: var(--w-space-7) var(--w-space-6);
	background: var(--w-color-weiss);
	border: var(--w-border-haarlinie) solid var(--w-color-linie);
	transition: border-color 0.4s ease, transform 0.6s var(--w-motion-ease-expo);
}
.w-stelle::before {
	content: '';
	position: absolute;
	left: -1px;
	right: -1px;
	top: -1px;
	height: 2px;
	background: var(--w-color-akzent);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.8s var(--w-motion-ease-expo);
}
@media (hover: hover) {
	.w-stelle:hover {
		transform: translateY(-4px);
	}
	.w-stelle:hover::before {
		transform: scaleX(1);
	}
}
/* Stellen: eine Liste untereinander, jede Stelle als breite Zeile über die volle Containerbreite,
   links der Titel, rechts Text und Button. So sieht der Abschnitt mit einer wie mit fünf Stellen gleich aus.
   Ohne offene Stelle steht an derselben Stelle eine Karte mit Hinweis und Initiativ-Button (.w-stelle--leer).
   Angemeldet liegt der Inhalt in der Pencilino-Region, die deshalb das Raster übernimmt. */
.w-stelle,
.w-stelle > .pencil-managed-region {
	display: flex;
	flex-direction: column;
}
.w-stelle .w-btn {
	align-self: flex-start;
}
.w-stelle :has(+ .w-btn) {
	margin-bottom: var(--w-space-6);
}
@media (min-width: 40em) {
	.w-stelle:not(:has(> .pencil-managed-region)),
	.w-stelle > .pencil-managed-region {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		column-gap: var(--w-space-8);
		align-items: start;
	}
	.w-stelle .w-stelle__titel {
		grid-column: 1;
		grid-row: 1 / span 10;
		margin: 0;
	}
	.w-stelle .w-stelle__titel ~ * {
		grid-column: 2;
		max-width: 38rem;
		margin-top: 0;
	}
	.w-stelle .w-btn {
		justify-self: start;
	}
}
@media (min-width: 60em) {
	.w-stelle {
		padding: var(--w-space-8);
	}
}
.w-stelle--leer {
	background: transparent;
	border-style: dashed;
}
@media (hover: hover) {
	.w-stelle--leer:hover {
		transform: none;
	}
}

/* ---------- Team: alle Porträts gleich groß im Hochformat 4 : 5 ----------
   Wer allein in seiner Zeile steht (ist-quer-m / ist-quer-l), wird quer gestellt: Bild 5, Text 7 von 12 Spalten. */
.w-person__bild {
	--w-frame-ratio: 4 / 5;
}
@media (min-width: 40em) and (max-width: 59.99em) {
	.w-person.ist-quer-m:not(:has(> .pencil-managed-region)),
	.w-person.ist-quer-m > .pencil-managed-region {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		column-gap: var(--w-space-7);
		align-items: end;
	}
	.w-person.ist-quer-m .w-person__text {
		margin-top: 0;
	}
}
@media (min-width: 60em) {
	.w-person.ist-quer-l:not(:has(> .pencil-managed-region)),
	.w-person.ist-quer-l > .pencil-managed-region {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		column-gap: var(--w-space-8);
		align-items: end;
	}
	.w-person.ist-quer-l .w-person__text {
		margin-top: 0;
	}
}

/* =====================================================================
 * Kontakt geteilt: links dunkel der direkte Weg, rechts das Formular auf Papier
 * ===================================================================== */
.w-kontakt {
	--w-rand: max(var(--w-layout-gutter), calc((100vw - var(--w-layout-container)) / 2));
}
.w-kontakt__raster {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}
.w-kontakt__direkt {
	padding: var(--w-space-section) var(--w-layout-gutter);
	background: var(--w-color-kapitel);
	color: var(--w-color-auf-dunkel-weich);
}
.w-kontakt__formular {
	padding: var(--w-space-section) var(--w-layout-gutter);
	background: var(--w-color-papier);
}
@media (min-width: 60em) {
	.w-kontakt__raster {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}
	.w-kontakt__direkt {
		padding-inline: var(--w-rand) var(--w-space-8);
	}
	.w-kontakt__direkt-inhalt {
		position: sticky;
		top: calc(var(--w-layout-header-height-kompakt) + var(--w-space-6));
	}
	.w-kontakt__formular {
		padding-inline: var(--w-space-8) var(--w-rand);
	}
}
.w-kontakt__direkt .w-label {
	color: var(--w-color-akzent);
}
.w-kontakt__gross {
	white-space: nowrap;
}
.w-kontakt__mail {
	font-size: var(--w-type-h3-size);
	font-stretch: var(--w-type-display-stretch);
}
.w-kontakt__direkt :is(.w-kontakt__gross, .w-kontakt__mail) a {
	color: var(--w-color-auf-dunkel);
	text-decoration: none;
	background: linear-gradient(var(--w-color-akzent), var(--w-color-akzent)) 0 100% / 0 1px no-repeat;
	transition: background-size 0.6s var(--w-motion-ease-expo);
}
.w-kontakt__direkt :is(.w-kontakt__gross, .w-kontakt__mail) a:hover {
	background-size: 100% 1px;
}
.w-kontakt__direkt .w-krepp {
	margin-top: var(--w-space-7);
}
.w-kontakt__adresse {
	display: grid;
	gap: var(--w-space-1);
	margin-top: var(--w-space-6);
}
.w-kontakt__firma {
	color: var(--w-color-auf-dunkel);
}
.w-kontakt__direkt .w-frame {
	margin-top: var(--w-space-7);
}

/* =====================================================================
 * Einblicke (Projekte): editoriales Raster mit Filter nach Gewerk
 * ===================================================================== */
.w-filter {
	display: flex;
	flex-wrap: wrap;
	gap: var(--w-space-2) var(--w-space-5);
	margin-bottom: var(--w-space-7);
	padding-bottom: var(--w-space-4);
	border-bottom: var(--w-border-haarlinie) solid var(--w-color-linie);
}
.w-filter[hidden] {
	display: none;
}
.w-filter__knopf {
	position: relative;
	padding: var(--w-space-2) 0;
	background: none;
	border: 0;
	font: inherit;
	font-size: var(--w-type-ui-size);
	font-weight: var(--w-font-weight-medium);
	letter-spacing: var(--w-type-ui-tracking);
	color: var(--w-color-text-leise);
	cursor: pointer;
	transition: color 0.3s ease;
}
.w-filter__knopf::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(var(--w-space-4) * -1 - 1px);
	height: 2px;
	background: var(--w-color-akzent);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.6s var(--w-motion-ease-expo);
}
.w-filter__knopf:hover,
.w-filter__knopf[aria-pressed='true'] {
	color: var(--w-color-text);
}
.w-filter__knopf[aria-pressed='true']::after {
	transform: scaleX(1);
}
.w-einblicke__raster {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 1;
	column-gap: var(--w-layout-raster-abstand);
}
@media (min-width: 40em) {
	.w-einblicke__raster {
		columns: 2;
	}
}
@media (min-width: 60em) {
	.w-einblicke__raster {
		columns: 3;
	}
}
.w-einblick {
	break-inside: avoid;
	margin-bottom: var(--w-space-7);
}
.w-einblick[hidden] {
	display: none;
}
.w-einblick__unterschrift {
	margin-top: var(--w-space-3);
	font-size: var(--w-type-label-size);
	color: var(--w-color-text-leise);
}
.w-einblick__gewerk {
	display: block;
	color: var(--w-color-akzent-text);
}

/* =====================================================================
 * Rechtstexte: ruhiger Satz, Inhaltsverzeichnis in der Randspalte
 * ===================================================================== */
.w-rechtstext .w-einstieg {
	padding-bottom: var(--w-space-block);
}
.w-rechtstext__raster {
	display: grid;
	gap: var(--w-space-7) var(--w-layout-raster-abstand);
	padding-bottom: var(--w-space-section);
}
.w-rechtstext__inhalt {
	max-width: var(--w-type-measure);
}
.w-rechtstext .w-prose h2 {
	scroll-margin-top: calc(var(--w-layout-header-height-kompakt) + var(--w-space-6));
}
.w-verzeichnis__titel {
	font-size: var(--w-type-label-size);
	font-weight: var(--w-font-weight-medium);
	color: var(--w-color-text);
}
.w-verzeichnis__liste {
	display: grid;
	gap: 0;
	margin: var(--w-space-4) 0 0;
	padding: 0;
	list-style: none;
	border-left: var(--w-border-haarlinie) solid var(--w-color-linie);
}
.w-verzeichnis__liste a {
	position: relative;
	display: block;
	padding: var(--w-space-2) 0 var(--w-space-2) var(--w-space-5);
	font-size: var(--w-type-label-size);
	line-height: var(--w-type-label-leading);
	color: var(--w-color-text-leise);
	text-decoration: none;
	transition: color 0.3s ease;
}
.w-verzeichnis__liste a::before {
	content: '';
	position: absolute;
	left: -1px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--w-color-akzent);
	transform: scaleY(0);
	transition: transform 0.5s var(--w-motion-ease-expo);
}
.w-verzeichnis__liste a:hover,
.w-verzeichnis__liste a[aria-current='true'] {
	color: var(--w-color-text);
}
.w-verzeichnis__liste a[aria-current='true']::before {
	transform: scaleY(1);
}
@media (min-width: 60em) {
	.w-rechtstext__raster.hat-verzeichnis {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: start;
	}
	.hat-verzeichnis .w-verzeichnis {
		grid-column: 1 / span 3;
		position: sticky;
		top: calc(var(--w-layout-header-height-kompakt) + var(--w-space-6));
	}
	.hat-verzeichnis .w-rechtstext__inhalt {
		grid-column: 5 / span 7;
	}
}

/* Schmal: Filter als Wischstreifen statt drei Zeilen. */
@media (max-width: 39.99em) {
	.w-filter {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin-inline: calc(var(--w-layout-gutter) * -1);
		padding-inline: var(--w-layout-gutter);
		white-space: nowrap;
	}
	.w-filter::-webkit-scrollbar {
		display: none;
	}
	.w-filter__knopf::after {
		bottom: 0;
	}
}

/* =====================================================================
 * Über uns: Arbeitsweise (Text und Bild im Wechsel)
 * ===================================================================== */
.w-flow > .w-arbeitsweise {
	margin-top: var(--w-space-block);
}

/* Über uns: Kapitel mit Anker (Unterleiste und Menü), gleicher Sprungabstand wie auf Leistungen. */
.w-ueber-kapitel {
	scroll-margin-top: calc(var(--w-layout-header-height-kompakt) + 3.5rem);
}

/* Über uns, Team: Abstand zwischen Kopf der Ansprechpartner und den Porträts. */
.w-flow > .w-personen {
	margin-top: var(--w-space-block);
}
