/*
 * Wintrich – Basis und Komponenten.
 * Alle Werte kommen aus tokens.css (generiert aus brand/design-tokens.json).
 * Klassen tragen das Präfix „w-“, um Konflikte mit WordPress-Oberflächen zu vermeiden
 * (Pencilino lädt die Mediathek im Frontend).
 */

/* ---------- Schrift (lokal, variable Archivo: Gewicht 100–900, Breite 62–125 %) ---------- */
@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url('../fonts/archivo-var-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url('../fonts/archivo-var-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Basis (nur sichere globale Regeln) ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--w-layout-header-height) + var(--w-space-4));
}

body {
	margin: 0;
	background: var(--w-color-weiss);
	color: var(--w-color-text);
	font-family: var(--w-font-family-base);
	font-size: var(--w-type-body-size);
	font-weight: var(--w-font-weight-regular);
	line-height: var(--w-type-body-leading);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, fieldset {
	margin: 0;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--w-color-primaer);
}

:focus-visible {
	outline: 2px solid var(--w-color-primaer);
	outline-offset: 3px;
}

::selection {
	background: var(--w-color-flaeche);
	color: var(--w-color-text);
}

code {
	font-size: 0.9em;
	background: var(--w-color-flaeche);
	padding: 0.1em 0.35em;
}

/* ---------- Hilfsklassen ---------- */
.w-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.w-skip {
	position: absolute;
	left: var(--w-space-4);
	top: -100px;
	z-index: 100;
	padding: var(--w-space-3) var(--w-space-4);
	background: var(--w-color-primaer);
	color: var(--w-color-auf-dunkel);
	text-decoration: none;
}
.w-skip:focus {
	top: var(--w-space-4);
}

.w-container {
	width: min(100% - 2 * var(--w-layout-gutter), var(--w-layout-container));
	margin-inline: auto;
}

/* Rhythmus: Kennzeichnung gehört eng zur Überschrift, Überschrift → Text mit Luft, Handlungen klar abgesetzt.
   Abschnittskopf → Inhalt bekommt den großen Blockabstand (siehe .w-container.w-flow). */
.w-flow > * + * {
	margin-top: var(--w-space-5);
}
.w-flow > .w-label + * {
	margin-top: var(--w-space-4);
}
.w-flow > :is(.w-h1, .w-h2) + * {
	margin-top: var(--w-space-6);
}
.w-flow > * + :is(.w-reihe, .w-btn, .w-link) {
	margin-top: var(--w-space-7);
}
.w-container.w-flow > :not(.w-label, .w-h1, .w-h2, .w-h3, .w-sr) + :not(.w-reihe, .w-offen, .w-btn, .w-link) {
	margin-top: var(--w-space-block);
}
.w-container.w-flow > .w-sr + * {
	margin-top: var(--w-space-6);
}

.w-text {
	max-width: var(--w-type-measure);
}

.w-reihe {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--w-space-4) var(--w-space-6);
}

.w-klein {
	font-size: var(--w-type-label-size);
	color: var(--w-color-text-leise);
}

.w-main:focus {
	outline: none;
}

/* ---------- Abschnitte ---------- */
.w-section {
	padding-block: var(--w-space-section);
}
.w-section--papier {
	background: var(--w-color-papier);
}
.w-section--primaer {
	background: var(--w-color-primaer);
	color: var(--w-color-auf-dunkel);
}
.w-section--primaer :focus-visible {
	outline-color: var(--w-color-auf-dunkel);
}
/* Auf Grün: Überschriften weiß, Kennzeichnung und Akzent in hellem Gold (4,84:1), Text in Linie-Grau. */
.w-section--primaer .w-h1,
.w-section--primaer .w-h2,
.w-section--primaer .w-h3 {
	color: var(--w-color-auf-dunkel);
}
.w-section--primaer .w-label,
.w-section--primaer .w-h1__akzent {
	color: var(--w-color-akzent);
}
.w-section--primaer .w-lead,
.w-section--primaer .pencil-richtext {
	color: var(--w-color-auf-dunkel-weich);
}
.w-section--primaer a:not(.w-btn) {
	color: var(--w-color-auf-dunkel);
}

/* ---------- Typografie ---------- */
.w-h1,
.w-h2,
.w-h3 {
	font-weight: var(--w-font-weight-light);
	color: var(--w-color-text);
	text-wrap: balance;
	overflow-wrap: break-word;
	hyphens: manual;
}
.w-h1 {
	font-size: var(--w-type-h1-size);
	line-height: var(--w-type-h1-leading);
	letter-spacing: var(--w-type-h1-tracking);
	text-transform: uppercase;
}
.w-h1__akzent {
	display: block;
	color: var(--w-color-akzent-text);
}
.w-h2 {
	font-size: var(--w-type-h2-size);
	line-height: var(--w-type-h2-leading);
	letter-spacing: var(--w-type-h2-tracking);
}
/* Einleitung: Stufe M in Light und weicher Textfarbe (gleiche Größe wie H3, Unterschied über Schnitt und Farbe). */
.w-lead {
	font-size: var(--w-type-lead-size);
	font-weight: var(--w-font-weight-light);
	line-height: var(--w-type-lead-leading);
	color: var(--w-color-text-weich);
}
/* Display: Hero-Überschriften und große Aussagen. Archivo breit (Breitenachse), Versalien, Light. */
.w-display {
	/* Optischer Randausgleich: die Vorbreite der Versalien (G, F, W …) würde die Zeile sonst sichtbar einrücken. */
	margin-inline-start: -0.055em;
	font-size: var(--w-type-display-size);
	font-weight: var(--w-font-weight-light);
	font-stretch: var(--w-type-display-stretch);
	line-height: var(--w-type-display-leading);
	letter-spacing: var(--w-type-display-tracking);
	text-transform: uppercase;
	text-wrap: balance;
	hyphens: manual;
}
/* Zahl-Display: 1942, Kapitel- und Schrittzahlen. */
.w-zahl-display {
	display: block;
	font-size: var(--w-type-zahl-display-size);
	font-weight: var(--w-font-weight-light);
	font-stretch: var(--w-type-display-stretch);
	line-height: var(--w-type-zahl-display-leading);
	letter-spacing: var(--w-type-zahl-display-tracking);
	font-variant-numeric: tabular-nums lining-nums;
}
.w-zahl {
	font-size: var(--w-type-l-size);
	font-weight: var(--w-font-weight-light);
	line-height: var(--w-type-zahl-leading);
	color: var(--w-color-primaer);
	font-variant-numeric: tabular-nums;
}

/* Typo-Hierarchie: Jede Stufe ist genau einmal definiert. Komponenten, die eine Stufe tragen, stehen in deren
   Selektorliste und setzen selbst keine Größe, kein Gewicht und keine Zeilenhöhe.
   Display (Bühne) › Zahl-Display › H1 › H2 (XL) › L › M (H3 und Einleitung) › Text › UI › S (klein) · Kennung
   Die Stufen M, L und Kennung mit ihren Komponenten stehen am Ende dieser Datei, damit sie Basisregeln wie .w-tel
   oder .w-btn sicher überstimmen. */

.w-label {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 0.9em;
	color: var(--w-color-akzent-text);
	padding: 0;
	border: 0;
}
.w-label::before {
	content: '';
	flex: none;
	width: var(--w-type-eyebrow-strich);
	height: 1px;
	background: var(--w-color-akzent);
}

/* Fließtext aus Pencilino und WordPress */
.pencil-richtext > * + *,
.w-prose > * + * {
	margin-top: 1em;
}
.pencil-richtext ul,
.pencil-richtext ol,
.w-prose ul,
.w-prose ol {
	padding-left: 1.25em;
}
.pencil-richtext li + li,
.w-prose li + li {
	margin-top: 0.35em;
}
.pencil-richtext a,
.w-prose a {
	color: var(--w-color-primaer);
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}
.w-prose h2 {
	margin-top: var(--w-space-8);
}
.w-prose h2 + * {
	margin-top: var(--w-space-4);
}

/* ---------- Buttons und Links ---------- */
.w-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75em;
	min-height: 3rem;
	padding: 0.85em 1.5em;
	border: var(--w-border-haarlinie) solid transparent;
	border-radius: var(--w-border-radius);
	font: inherit;
	font-size: var(--w-type-ui-size);
	letter-spacing: var(--w-type-ui-tracking);
	font-weight: var(--w-font-weight-medium);
	line-height: var(--w-type-eng-leading);
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color var(--w-motion-dauer-kurz) ease,
		color var(--w-motion-dauer-kurz) ease,
		border-color var(--w-motion-dauer-kurz) ease;
}
.w-btn--primary {
	background: var(--w-color-primaer);
	color: var(--w-color-auf-dunkel);
}
.w-btn--primary:hover {
	background: var(--w-color-primaer-tief);
	color: var(--w-color-auf-dunkel);
}
.w-btn--secondary {
	background: transparent;
	color: var(--w-color-text);
	border-color: var(--w-color-text);
}
.w-btn--secondary:hover {
	background: var(--w-color-text);
	color: var(--w-color-auf-dunkel);
}
.w-btn--hell {
	background: var(--w-color-weiss);
	color: var(--w-color-primaer);
}
.w-btn--hell:hover {
	background: var(--w-color-papier);
	color: var(--w-color-primaer);
}
.w-btn--klein {
	min-height: 2.5rem;
	padding: 0.6em 1.1em;
	font-size: var(--w-type-label-size);
}
.w-btn__icon {
	display: inline-block;
	transition: transform var(--w-motion-dauer-kurz) var(--w-motion-ease);
}
.w-btn:hover .w-btn__icon {
	transform: translateX(0.25em);
}

.w-link {
	display: inline-block;
	color: var(--w-color-primaer);
	font-weight: var(--w-font-weight-medium);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
	transition: text-underline-offset var(--w-motion-dauer-kurz) ease;
}
.w-link:hover {
	text-underline-offset: 0.4em;
}
.w-link--pfeil::after {
	content: ' →';
}
/* Handlungslinks neben Knöpfen sprechen dieselbe Stufe wie die Knöpfe (UI), nicht die des umgebenden Texts. */
.w-link--pfeil {
	font-size: var(--w-type-ui-size);
	letter-spacing: var(--w-type-ui-tracking);
}

.w-tel {
	color: var(--w-color-primaer);
	font-weight: var(--w-font-weight-medium);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.w-tel:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

/* ---------- Logo ---------- */
.w-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75em;
	color: var(--w-color-text);
	text-decoration: none;
}
.w-bildzeichen {
	display: inline-block;
	flex: none;
	line-height: 0;
}
.w-bildzeichen svg {
	height: 3rem;
	width: auto;
}
.w-wortmarke {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0 0.28em;
	text-transform: uppercase;
	font-size: var(--w-type-wortmarke-size);
	line-height: var(--w-type-zahl-leading);
	letter-spacing: var(--w-type-ui-tracking);
}
.w-wortmarke__teil {
	font-weight: var(--w-font-weight-medium);
}
.w-wortmarke__name {
	font-weight: var(--w-font-weight-extrabold);
}
.w-logo--fuss .w-bildzeichen svg {
	height: clamp(3.5rem, 3rem + 1.5vw, 4.5rem);
}
.w-logo--fuss .w-wortmarke {
	font-size: var(--w-type-wortmarke-size-fuss);
}
.w-section--primaer .w-logo,
.w-demo-dunkel .w-logo {
	color: var(--w-color-auf-dunkel);
}

/* ---------- Kopfbereich ---------- */
.w-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--w-color-weiss);
	border-bottom: var(--w-border-haarlinie) solid var(--w-color-linie);
}
.admin-bar .w-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}
.w-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--w-space-5);
	min-height: var(--w-layout-header-height);
}
.w-header__panel {
	display: flex;
	align-items: center;
	gap: var(--w-space-6);
}
.w-header__actions {
	display: flex;
	align-items: center;
	gap: var(--w-space-5);
}
.w-nav__list {
	display: flex;
	gap: var(--w-space-5);
	font-size: var(--w-type-ui-size);
	margin: 0;
	padding: 0;
	list-style: none;
}
.w-nav__list a {
	font-weight: var(--w-font-weight-medium);
	letter-spacing: var(--w-type-ui-tracking);
	color: var(--w-color-text);
	text-decoration: none;
	padding-block: var(--w-space-2);
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size var(--w-motion-dauer-kurz) var(--w-motion-ease);
}
.w-nav__list a:hover,
.w-nav__list .current-menu-item > a {
	background-size: 100% 1px;
}

.w-nav-toggle {
	display: none;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--w-color-text);
	cursor: pointer;
}
.w-nav-toggle__bars,
.w-nav-toggle__bars::before,
.w-nav-toggle__bars::after {
	display: block;
	width: 1.5rem;
	height: 1px;
	margin-inline: auto;
	background: currentColor;
	transition: transform var(--w-motion-dauer-kurz) ease, opacity var(--w-motion-dauer-kurz) ease;
}
.w-nav-toggle__bars {
	position: relative;
}
.w-nav-toggle__bars::before,
.w-nav-toggle__bars::after {
	content: '';
	position: absolute;
	left: 0;
}
.w-nav-toggle__bars::before { top: -7px; }
.w-nav-toggle__bars::after { top: 7px; }
.w-nav-toggle[aria-expanded='true'] .w-nav-toggle__bars { background: transparent; }
.w-nav-toggle[aria-expanded='true'] .w-nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.w-nav-toggle[aria-expanded='true'] .w-nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 74.99em) {
	.w-wortmarke {
		font-size: var(--w-type-wortmarke-size-kompakt);
	}
	.w-bildzeichen svg {
		height: 2.25rem;
	}
	.js .w-nav-toggle {
		display: block;
	}
	.js .w-header__panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: var(--w-space-6);
		padding: var(--w-space-6) var(--w-layout-gutter) var(--w-space-7);
		background: var(--w-color-weiss);
		border-bottom: var(--w-border-haarlinie) solid var(--w-color-linie);
	}
	.js .w-header.is-open .w-header__panel {
		display: flex;
	}
	.w-header__inner {
		position: relative;
		flex-wrap: wrap;
	}
	.w-nav__list {
		flex-direction: column;
		gap: var(--w-space-3);
	}
	.w-header__actions {
		flex-wrap: wrap;
	}
}

/* ---------- Fußbereich ---------- */
.w-footer {
	background: var(--w-color-papier);
	padding-block: var(--w-space-section) var(--w-space-6);
	border-top: var(--w-border-haarlinie) solid var(--w-color-linie);
	font-size: var(--w-type-ui-size);
}
.w-footer__raster {
	display: grid;
	gap: var(--w-space-7) var(--w-space-6);
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	padding-block: var(--w-space-7);
}
.w-footer__kontakt {
	display: grid;
	justify-items: start;
	gap: var(--w-space-3);
}
.w-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.w-footer__firma {
	font-size: var(--w-type-label-size);
	color: var(--w-color-text-leise);
}
@media (min-width: 60em) {
	.w-footer__raster {
		grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	}
}
.w-footer__spalte > * + * {
	margin-top: var(--w-space-4);
}
.w-footer__text {
	max-width: 34rem;
	color: var(--w-color-text-weich);
}
.w-footer__firmenname {
	font-weight: var(--w-font-weight-medium);
}
.w-footer__spalte .w-anschrift + .w-footer__firmenname {
	margin-top: var(--w-space-6);
}
.w-footer__spalte .w-footer__firmenname + .w-buerozeiten {
	margin-top: var(--w-space-1);
}
.w-footer__list li + li {
	margin-top: var(--w-space-2);
}
.w-footer__list a {
	color: var(--w-color-text);
	text-decoration: none;
}
.w-footer__list a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
/* Schlichter Fuß (Aufbau-Seite und Rechtstexte): eine Zeile. */
.w-footer--schlicht {
	padding-block: var(--w-space-4);
}
.w-footer__zeile {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--w-space-2) var(--w-space-5);
}
.w-footer__list--zeile {
	display: flex;
	flex-wrap: wrap;
	gap: var(--w-space-5);
	font-size: var(--w-type-label-size);
}
.w-footer__list--zeile a {
	color: var(--w-color-text-leise);
	text-underline-offset: 0.2em;
}
.w-footer__list--zeile a:hover {
	color: var(--w-color-text);
}

/* ---------- Bildrahmen (Format kommt vom Rahmen, nie von der Datei) ---------- */
.w-frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--w-frame-ratio, 3 / 2);
	background: var(--w-color-flaeche);
}
.w-frame > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--w-frame-position, 50% 50%);
}
.w-frame__badge {
	position: absolute;
	left: var(--w-space-3);
	bottom: var(--w-space-3);
	padding: 0.2em 0.6em;
	background: var(--w-color-weiss);
	color: var(--w-color-text-leise);
	font-size: var(--w-type-label-size);
	letter-spacing: var(--w-type-label-tracking);
}

/* ---------- Arbeitsschritte mit Haarlinien ---------- */
.w-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: var(--w-border-haarlinie) solid var(--w-color-linie);
}
.w-step {
	display: grid;
	grid-template-columns: 3rem 1fr;
	gap: var(--w-space-4);
	align-items: baseline;
	padding-block: var(--w-space-6);
	border-top: var(--w-border-haarlinie) solid var(--w-color-linie);
}
.w-step__nr {
	color: var(--w-color-akzent-text);
	font-variant-numeric: tabular-nums;
}

/* ---------- Auswahl im Formular ---------- */
.w-choices {
	display: flex;
	flex-wrap: wrap;
	gap: var(--w-space-3);
	margin: 0;
	padding: 0;
	border: 0;
}
.w-choices__legende {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.75em;
	margin-bottom: var(--w-space-4);
	padding: 0;
	font-weight: var(--w-font-weight-medium);
}
.w-choices__legende span {
	font-weight: var(--w-font-weight-regular);
	font-size: var(--w-type-label-size);
	color: var(--w-color-text-leise);
}
.w-choice {
	position: relative;
	cursor: pointer;
}
.w-choice input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}
.w-choice span {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	min-height: 2.75rem;
	padding: 0.55em 1.1em;
	font-size: var(--w-type-ui-size);
	border: var(--w-border-haarlinie) solid var(--w-color-linie-stark);
	background: var(--w-color-weiss);
	transition: background-color var(--w-motion-dauer-kurz) ease, border-color var(--w-motion-dauer-kurz) ease, color var(--w-motion-dauer-kurz) ease;
}
.w-choice:hover span {
	border-color: var(--w-color-text);
}
.w-choice input:checked + span {
	background: var(--w-color-primaer);
	border-color: var(--w-color-primaer);
	color: var(--w-color-auf-dunkel);
}
/* Häkchen zeigt die Auswahl auch ohne Farbunterscheidung. */
.w-choice input:checked + span::before {
	content: '✓';
	color: var(--w-color-akzent);
}
.w-choice input:focus-visible + span {
	outline: 2px solid var(--w-color-primaer);
	outline-offset: 3px;
}

/* ---------- Hero-Satz (siehe docs/designsystem.md → Feste Sätze) ---------- */
/* Kennzeichnung → Hauptüberschrift (max. 3 Zeilen) → Einleitung → eine Handlung. */
.w-hero-satz {
	container-type: inline-size;
}
/* Überschrift so groß wie die Skala erlaubt, aber nie breiter als die Spalte.
   --w-hero-zeile = Breite der längsten Zeile in em („Gutes Handwerk.“ ≈ 9,4 em in Archivo Light, Versalien). */
.w-hero-satz .w-h1 {
	font-size: min(var(--w-type-h1-size), calc(100cqi / var(--w-hero-zeile, 9.6)));
}
.w-hero-satz > .w-label + .w-h1 {
	margin-top: var(--w-space-5);
}
.w-hero-satz__text {
	margin-top: var(--w-space-6);
	max-width: 34rem;
}
.w-hero-satz__text > * + * {
	margin-top: var(--w-space-7);
}
.w-h1__zeile {
	display: block;
}

.w-tel--hero {
	display: inline-block;
	font-size: var(--w-type-h3-size);
	font-weight: var(--w-font-weight-regular);
	line-height: var(--w-type-h3-leading);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}
.w-tel--hero:hover {
	text-underline-offset: 0.45em;
}

/* ---------- Komponentenübersicht (intern) ---------- */
.w-satz-muster {
	display: grid;
	gap: var(--w-space-6);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
	align-items: start;
}
.w-satz-muster > * {
	padding: var(--w-space-6);
	background: var(--w-color-weiss);
	border: var(--w-border-haarlinie) solid var(--w-color-linie);
}
.w-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: var(--w-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}
.w-swatch {
	display: grid;
	gap: 0.15rem;
	font-size: var(--w-type-label-size);
}
.w-swatch__farbe {
	display: block;
	aspect-ratio: 3 / 2;
	margin-bottom: var(--w-space-2);
	border: var(--w-border-haarlinie) solid var(--w-color-linie);
}
.w-swatch__name {
	font-size: var(--w-type-ui-size);
	font-weight: var(--w-font-weight-medium);
}
.w-swatch__wert,
.w-swatch__rolle,
.w-swatch__status {
	color: var(--w-color-text-leise);
}
.w-swatch__status {
	font-style: italic;
}
.w-typo-reihe {
	display: grid;
	gap: var(--w-space-2);
	padding-top: var(--w-space-5);
	border-top: var(--w-border-haarlinie) solid var(--w-color-linie);
}
.w-typo-meta {
	font-size: var(--w-type-label-size);
	letter-spacing: var(--w-type-label-tracking);
	color: var(--w-color-text-leise);
}
.w-demo-dunkel {
	padding: var(--w-space-6);
}
.w-bildraster {
	display: grid;
	gap: var(--w-space-5);
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	align-items: start;
}
.w-bildraster > div > .w-klein {
	display: block;
	margin-top: var(--w-space-2);
}
.w-karten {
	display: grid;
	gap: var(--w-space-5);
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.w-karte {
	padding: var(--w-space-6);
	background: var(--w-color-papier);
}
.w-karte > * + * {
	margin-top: var(--w-space-3);
}

/* ---------- Bewegung: siehe assets/css/bewegung.css (Bewegungssprache 1.0) ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* =====================================================================
 * Seiten-Komponenten (Inhaltskonzept 1.1)
 * ===================================================================== */

/* ---------- Offene Punkte (nur für Angemeldete ausgegeben) ---------- */
.w-offen {
	display: block;
	max-width: var(--w-type-measure);
	padding: var(--w-space-3) var(--w-space-4);
	border-left: 3px solid var(--w-color-akzent);
	background: var(--w-color-papier);
	color: var(--w-color-akzent-text);
	font-size: var(--w-type-label-size);
	line-height: var(--w-type-label-leading);
}
.w-section--papier .w-offen {
	background: var(--w-color-weiss);
}
span.w-offen {
	display: inline;
	padding: 0.1em 0.4em;
	border-left-width: 2px;
}

/* ---------- Raster-Helfer ---------- */
.w-zweispaltig,
.w-split {
	display: grid;
	gap: var(--w-space-7) var(--w-space-8);
	grid-template-columns: minmax(0, 1fr);
}
.w-split {
	align-items: center;
}
@media (min-width: 60em) {
	.w-zweispaltig {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
	}
	.w-split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
	.w-split--umgekehrt > :first-child {
		order: 2;
	}
}
.w-spalte > * + * {
	margin-top: var(--w-space-4);
}
.w-spalte > .w-spalte__kennung + * {
	margin-top: var(--w-space-3);
}
.w-spalte > * + :is(.w-btn, .w-link, .w-definition) {
	margin-top: var(--w-space-6);
}
.w-spalte__kennung {
	font-size: var(--w-type-label-size);
	font-weight: var(--w-font-weight-medium);
	color: var(--w-color-akzent-text);
}
/* ---------- Raster ----------
   Listen, die ein Template ausgibt, nutzen .w-verteilt: Das Template berechnet die Zeilen
   (wintrich_raster_verteilung) und gibt je Element die Spaltenbreite als Variable mit, schmal 2 Spalten,
   mittel 6, breit 12. So geht jede Anzahl ohne Lücke auf. Stellen stehen immer untereinander. */
.w-galerie,
.w-verteilt,
.w-stellen {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}
.w-verteilt {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.w-verteilt > * {
	grid-column: span var(--w-span-s, 2);
}
@media (min-width: 40em) {
	.w-verteilt {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
	.w-verteilt > * {
		grid-column: span var(--w-span-m, 3);
	}
}
@media (min-width: 60em) {
	.w-verteilt {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.w-verteilt > * {
		grid-column: span var(--w-span-l, 3);
	}
}
/* Galerien: Bilder bleiben auch mobil nebeneinander; drei Bilder stehen ab 40em in einer Zeile. */
.w-galerie {
	gap: var(--w-space-5);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.w-galerie:has(> :last-child:nth-child(odd)) > :first-child {
	grid-column: span 2;
}
@media (min-width: 40em) {
	.w-galerie:has(> :last-child:nth-child(3)) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.w-galerie:has(> :last-child:nth-child(3)) > :first-child {
		grid-column: auto;
	}
}
@media (min-width: 60em) {
	.w-galerie:has(> :last-child:nth-child(4)) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---------- Unterseiten-Einstieg (Seiten-Satz) ---------- */
.w-seitenkopf__titel {
	max-width: 22ch;
}
.w-leistung {
	scroll-margin-top: var(--w-layout-header-height);
}

/* ---------- Begriff + Text ---------- */
.w-definition__begriff {
	font-weight: var(--w-font-weight-medium);
	color: var(--w-color-text);
}
.w-definition__begriff + * {
	margin-top: var(--w-space-2);
}
.w-definition + .w-definition,
.w-flow > * + .w-definition {
	margin-top: var(--w-space-6);
}

/* ---------- Häufige Fragen ---------- */
.w-faq {
	border-top: var(--w-border-haarlinie) solid var(--w-color-linie);
}
.w-faq__eintrag {
	border-bottom: var(--w-border-haarlinie) solid var(--w-color-linie);
}
.w-faq__frage {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--w-space-5);
	padding-block: var(--w-space-6);
	cursor: pointer;
	list-style: none;
}
.w-faq__frage::-webkit-details-marker {
	display: none;
}
.w-faq__frage::after {
	content: '+';
	flex: none;
	font-weight: var(--w-font-weight-light);
	font-size: var(--w-type-h3-size);
	line-height: var(--w-type-zahl-leading);
	color: var(--w-color-akzent-text);
	transition: transform var(--w-motion-dauer-kurz) var(--w-motion-ease);
}
.w-faq__eintrag[open] > .w-faq__frage::after {
	transform: rotate(45deg);
}
.w-faq__antwort {
	max-width: var(--w-type-measure);
	padding-bottom: var(--w-space-6);
	color: var(--w-color-text-weich);
}

/* ---------- Schritte (Ergänzung zum vorhandenen .w-steps) ---------- */
.w-step__inhalt > * + * {
	margin-top: var(--w-space-3);
}

/* ---------- Abschluss auf Grün (Aufbau in komposition.css) ---------- */
.w-abschluss__handlung > * + * {
	margin-top: var(--w-space-5);
}
.w-section--primaer .w-tel {
	color: var(--w-color-auf-dunkel);
}

/* ---------- Angaben, Personen, Stellen ---------- */
.w-projekt__daten {
	display: flex;
	flex-wrap: wrap;
	gap: var(--w-space-2) var(--w-space-6);
	margin: 0;
}
.w-projekt__daten dt,
.w-kontaktliste dt {
	font-size: var(--w-type-label-size);
	color: var(--w-color-text-leise);
}
.w-projekt__daten dd,
.w-kontaktliste dd {
	margin: 0;
	font-weight: var(--w-font-weight-medium);
}
.w-personen,
.w-stellen {
	margin: 0;
	padding: 0;
	list-style: none;
}
.w-personen {
	gap: var(--w-space-7) var(--w-space-5);
}
@media (min-width: 60em) {
	.w-personen {
		gap: var(--w-space-8) var(--w-space-6);
	}
}
.w-stellen {
	gap: var(--w-space-5);
}
.w-person > * + *,
.w-stelle > * + *,
.w-stelle .pencil-managed-region > * + * {
	margin-top: var(--w-space-4);
}
/* Porträt-Unterschrift wie die Kennzeichnungen: goldene Linie, Name in Stufe M, Funktion in gesperrten Versalien. */
.w-person .w-person__text {
	margin-top: var(--w-space-5);
}
.w-person__text::before {
	content: '';
	display: block;
	width: var(--w-type-eyebrow-strich);
	height: 1px;
	margin-bottom: var(--w-space-4);
	background: var(--w-color-akzent);
}
.w-person__name {
	color: var(--w-color-text);
}
.w-person__funktion {
	margin-top: var(--w-space-2);
	color: var(--w-color-akzent-text);
}

/* ---------- Kontakt ---------- */
.w-kontakt__firma {
	font-weight: var(--w-font-weight-medium);
}
.w-kontaktliste {
	display: grid;
	gap: var(--w-space-5);
	margin: 0;
}
.w-kontaktliste dt {
	margin-bottom: var(--w-space-1);
}
.w-flow > * + .w-kontaktliste {
	margin-top: var(--w-space-7);
}
.w-kontakt__firma + p {
	margin-top: var(--w-space-1);
}
.w-anschrift p {
	margin: 0;
}

/* ---------- Formular ---------- */
.w-form > * + * {
	margin-top: var(--w-space-6);
}
.w-form > .w-choices + * {
	margin-top: var(--w-space-7);
}
.w-form__zeile {
	display: grid;
	gap: var(--w-space-4);
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 48em) {
	.w-form__zeile {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.w-form__zeile--zwei {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Feld mit Beschriftung im Feld: Sie steht wie ein Platzhalter im Feld und rückt bei Fokus oder Inhalt nach oben.
   Das Label bleibt ein echtes <label> (Screenreader, Klickfläche); placeholder=" " dient nur als Zustand. */
.w-feld {
	position: relative;
	display: grid;
	margin: 0;
}
.w-feld input,
.w-feld textarea {
	width: 100%;
	min-height: 3.75rem;
	padding: 1.6rem 1rem 0.45rem;
	border: var(--w-border-haarlinie) solid var(--w-color-linie-stark);
	border-radius: var(--w-border-radius);
	background: var(--w-color-weiss);
	color: var(--w-color-text);
	font: inherit;
	font-size: var(--w-type-ui-size);
	line-height: var(--w-type-ui-leading);
	appearance: none;
	transition: border-color var(--w-motion-dauer-kurz) ease;
}
.w-feld textarea {
	min-height: 11rem;
	padding-top: 2rem;
	resize: vertical;
}
.w-feld label {
	position: absolute;
	top: 1.2rem;
	left: 1rem;
	max-width: calc(100% - 2rem);
	overflow: hidden;
	color: var(--w-color-text-leise);
	font-size: var(--w-type-ui-size);
	line-height: var(--w-type-ui-leading);
	white-space: nowrap;
	text-overflow: ellipsis;
	pointer-events: none;
	transform-origin: 0 0;
	transition: transform var(--w-motion-dauer-kurz) var(--w-motion-ease), color var(--w-motion-dauer-kurz) ease;
}
.w-feld :is(input, textarea):is(:focus, :not(:placeholder-shown)) + label {
	color: var(--w-color-text-weich);
	transform: translateY(-0.7rem) scale(0.8);
}
.w-feld :is(input, textarea):hover {
	border-color: var(--w-color-text);
}
.w-feld :is(input, textarea):focus-visible {
	outline: 2px solid var(--w-color-primaer);
	outline-offset: 1px;
	border-color: var(--w-color-primaer);
}
.w-feld.is-fehler :is(input, textarea) {
	border-color: var(--w-color-fehler);
	border-width: 2px;
}
.w-feld__fehler {
	margin-top: var(--w-space-2);
	color: var(--w-color-fehler);
	font-size: var(--w-type-label-size);
	font-weight: var(--w-font-weight-medium);
}
.w-form__abschluss {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--w-space-4) var(--w-space-6);
}
.w-form__datenschutz {
	flex: 1 1 18rem;
	max-width: 40rem;
	font-size: var(--w-type-label-size);
	color: var(--w-color-text-leise);
}
.w-form__honig,
/* Felder von WP Armour – falls dessen CSS fehlt, dürfen sie das Layout nicht verschieben. */
.w-form .altEmail_container,
.w-form .wpa_hidden_field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.w-form__meldung {
	padding: var(--w-space-4) var(--w-space-5);
	border-left: 3px solid var(--w-color-primaer);
	background: var(--w-color-weiss);
}
.w-form__meldung--fehler {
	border-left-color: var(--w-color-fehler);
	color: var(--w-color-fehler);
}
.w-form__meldung--hinweis {
	border-left-color: var(--w-color-akzent);
}

/* ---------- Untermenü der Hauptnavigation (Über uns → Team) ---------- */
.w-nav__list .menu-item-has-children {
	position: relative;
}
.w-nav__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 75em) {
	.w-nav__list .sub-menu {
		position: absolute;
		top: 100%;
		left: calc(var(--w-space-4) * -1);
		min-width: 12rem;
		padding: var(--w-space-3) var(--w-space-4);
		background: var(--w-color-weiss);
		border: var(--w-border-haarlinie) solid var(--w-color-linie);
		opacity: 0;
		visibility: hidden;
		transform: translateY(0.25rem);
		transition: opacity var(--w-motion-dauer-kurz) ease, transform var(--w-motion-dauer-kurz) ease, visibility 0s linear var(--w-motion-dauer-kurz);
	}
	.w-nav__list .menu-item-has-children:hover > .sub-menu,
	.w-nav__list .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}
}
@media (max-width: 74.99em) {
	.w-nav__list .sub-menu {
		padding-left: var(--w-space-5);
		margin-top: var(--w-space-2);
		font-size: var(--w-type-ui-size);
	}
}

/* =====================================================================
 * Typo-Stufen M, L und Kennung (siehe Abschnitt Typografie)
 * ===================================================================== */
/* Stufe M, Regular: Zwischenüberschriften und Zeilen in Überschriftgröße. */
.w-h3,
.w-prose h2,
.w-step__nr,
.w-step__titel,
.w-faq__frage,
.w-person__name,
.w-fakten__liste,
.w-reiter__knopf,
.w-kapitel__stufe {
	font-size: var(--w-type-h3-size);
	font-weight: var(--w-font-weight-regular);
	line-height: var(--w-type-h3-leading);
}
/* Stufe L, Light: Index-Zeilen, Titel großer Karten, Telefon und E-Mail groß. */
.w-l,
.w-index__titel,
.w-stelle__titel,
.w-buehne__tel,
.w-abschluss__tel,
.w-footer__gross,
.w-kontakt__gross {
	font-size: var(--w-type-l-size);
	font-weight: var(--w-font-weight-light);
	line-height: var(--w-type-l-leading);
}
/* Stufe L breit: Kontaktwege groß, in der Breite des Displays. */
.w-l--breit,
.w-buehne__tel,
.w-abschluss__tel,
.w-footer__gross,
.w-kontakt__gross {
	font-stretch: var(--w-type-display-stretch);
}
/* Kennung: gesperrte Versalien aus der Display-Welt (Kennzeichnung, Funktion im Team, Scrollhinweis). */
.w-label,
.w-person__funktion,
.w-buehne__hinweis {
	font-size: var(--w-type-eyebrow-size);
	font-weight: var(--w-font-weight-medium);
	font-stretch: var(--w-type-display-stretch);
	letter-spacing: var(--w-type-eyebrow-tracking);
	line-height: var(--w-type-eng-leading);
	text-transform: uppercase;
}
/* Kennzeichnung (Eyebrow): aus derselben Schriftwelt wie das Display – Versalien, breit, gesperrt –,
   eingeleitet von einer kurzen goldenen Krepp-Linie statt eines Quadrats. */
