/*
 * Naventec Handwerk – Bereiche: die Abschnitte der Screens (Figma Screens 0:1), Werte aus design/entwurf/*.dc.html.
 * Volle Flächen (Span, Waldschatten) laufen über die ganze Breite, ihr Inhalt bleibt in 1216 px (1280 px minus Rand).
 */

:root { --spalte: 1216px; }

.voll-innen,
.flaeche-span.abschnitt,
.flaeche-dunkel.abschnitt {
	padding-inline: max(var(--rand), calc((100% - var(--spalte)) / 2));
}

.abschnitt-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 48px;
}
.abschnitt-kopf .leise { max-width: 36rem; }
.titel-gross { font-size: clamp(2.125rem, 4.4vw, 4rem); line-height: 1.05; max-width: 12ch; }
.lead { font-size: 1.25rem; line-height: 1.55; }
.link-fett a { font-weight: 600; text-underline-offset: 4px; }
/* Zielgröße 44 px (CD Abschnitt 5) ohne Versatz im Layout: Polster nach oben und unten, gleich großer Gegenzug. */
.link-fett a, .link-allein a { display: inline-block; padding-block: 12.5px; margin-block: -12.5px; }

/* Fotoformate: Das Bild trägt das Format und füllt es im Anschnitt. */
:where(.foto-16-9, .foto-4-3, .foto-3-4, .foto-1-1) img { width: 100%; height: auto; object-fit: cover; }
.foto-16-9 img { aspect-ratio: 16 / 9; }
.foto-4-3 img { aspect-ratio: 4 / 3; }
.foto-3-4 img { aspect-ratio: 3 / 4; }
.foto-1-1 img { aspect-ratio: 1; }
:where(.foto-21-9, .foto-4-5, .foto-16-10, .foto-3-2, .foto-2-3, .foto-16-7) img { width: 100%; height: auto; object-fit: cover; }
.foto-21-9 img { aspect-ratio: 21 / 9; }
.foto-4-5 img { aspect-ratio: 4 / 5; }
.foto-16-10 img { aspect-ratio: 16 / 10; }
.foto-3-2 img { aspect-ratio: 3 / 2; }
.foto-2-3 img { aspect-ratio: 2 / 3; }
.foto-16-7 img { aspect-ratio: 16 / 7; }
.atmen { overflow: hidden; }

/* ---------- Hero ---------- */

/* Ohne Zeile über dem Titel (design-slop G1, naventec-gmbh/claude#191) oben so viel Luft wie die Seitenköpfe
   (.hero-referenzen); vorher clamp(40px, 6vw, 88px) plus die Eyebrow mit 24 px Abstand. */
.hero-kopf {
	max-width: var(--weit);
	margin-inline: auto;
	padding: clamp(48px, 7vw, 104px) var(--rand) 0;
}
.hero-titel {
	font-size: clamp(3rem, 9.2vw, 9.25rem);
	line-height: .98;
	letter-spacing: -.02em;
	max-width: 13ch;
}
/* Jede Zeile des Titels steht für sich (Zeilenfall und Auftritt, bewegung.css); auch der Schluss (.akzent) bleibt in
   der Farbe des Titels, ohne Akzent in Tanne (design-slop G10, naventec-gmbh/claude#191). */
.hero-titel .zeile, .wp-block-post-title .zeile { display: block; }

.hero-buehne {
	display: flex;
	flex-wrap: wrap-reverse;
	align-items: flex-end;
	gap: 40px 24px;
	max-width: var(--weit);
	margin-inline: auto;
	padding: clamp(40px, 5vw, 72px) 0 0 var(--rand);
}
.hero-text { flex: 1 1 280px; max-width: 380px; padding: 0 16px 8px 0; }
.hero-text .lead { margin-bottom: 32px; }
.hero-bild { flex: 999 1 560px; min-width: 0; display: flex; gap: 20px; }
.hero-bild .is-style-masskette-senkrecht { flex: 0 0 22px; }
.hero-bild-rahmen { flex: 1 1 auto; min-width: 0; }
.hero-bild-rahmen .is-style-masskette { margin-bottom: 16px; margin-right: calc(var(--rand) - 5px); }

/* ---------- Start: Leistungsindex ---------- */

.leistungsindex { max-width: var(--inhalt); margin-inline: auto; padding: clamp(80px, 10vw, 160px) var(--rand) 0; }
.index { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; container-type: inline-size; }
.index-vorschau { flex: 1 1 340px; max-width: 460px; position: sticky; top: 24px; display: grid; }
/* Untereinander (unter 340 + 48 + 480 px) stünde die Vorschau beim Scrollen über der Liste: dann nicht mitlaufen (#4). */
@container (width < 868px) {
	.index-vorschau { position: static; }
}
.index-bild { grid-area: 1 / 1; visibility: hidden; }
.index-liste { flex: 999 1 480px; min-width: 0; border-bottom: 1px solid var(--wp--preset--color--linie); container-type: inline-size; }
/* Zeilen ohne Nummer davor (bis naventec-gmbh/claude#191 „01“ bis „05“ in einer Spalte von 64 px, design-slop V4). */
.index-zeile {
	position: relative;
	padding: 28px 0;
	border-top: 1px solid var(--wp--preset--color--linie);
}
.index-zeile h3 {
	margin: 0 0 8px;
	/* Höchstens Liste ÷ k; „Einbauschränke“ bis 7,96 em (bei 24,5 px). */
	font-size: min(clamp(1.75rem, 3.6vw, 3.25rem), 100cqi / 8.05);
	line-height: 1.08;
	color: var(--wp--preset--color--nussbaum);
}
.zeile-text .leise { max-width: 36rem; }
.zeile-mehr { margin-top: 8px; font-weight: 600; }
.zeile-mehr a { text-decoration: none; }
/* Der Link „Mehr zu …“ gilt für die ganze Zeile. */
.zeile-mehr a::after { content: ""; position: absolute; inset: 0; }

/* Aktiv ist die Zeile unter Maus oder Fokus, sonst die erste; ihr Bild steht in der Vorschau. */
.index:not(:has(.index-zeile:hover, .index-zeile:focus-within)) .index-zeile:first-child h3,
.index-zeile:hover h3,
.index-zeile:focus-within h3 { color: var(--wp--preset--color--tanne); }
.index:not(:has(.index-zeile:hover, .index-zeile:focus-within)) .index-bild:first-child { visibility: visible; }
.index:has(.index-zeile:nth-child(1):is(:hover, :focus-within)) .index-bild:nth-child(1),
.index:has(.index-zeile:nth-child(2):is(:hover, :focus-within)) .index-bild:nth-child(2),
.index:has(.index-zeile:nth-child(3):is(:hover, :focus-within)) .index-bild:nth-child(3),
.index:has(.index-zeile:nth-child(4):is(:hover, :focus-within)) .index-bild:nth-child(4),
.index:has(.index-zeile:nth-child(5):is(:hover, :focus-within)) .index-bild:nth-child(5) { visibility: visible; }

/* ---------- Text-Bild ---------- */

.text-bild { margin-top: clamp(96px, 11vw, 176px); }
.text-bild-innen {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 96px;
	align-items: center;
	padding-block: clamp(64px, 8vw, 128px);
}
.text-bild-foto { flex: 1 1 300px; max-width: 480px; }
.text-bild-text { flex: 1 1 360px; max-width: 560px; }
.text-bild-text h2 { margin-bottom: 24px; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.1; }
.text-bild-text p { margin-bottom: 24px; }
.text-bild-text p:last-child { margin-bottom: 0; }

/* ---------- Ablauf mit Werkstattzeichnung ---------- */

.ablauf { max-width: var(--inhalt); margin-inline: auto; padding: clamp(96px, 10vw, 160px) var(--rand) 0; }
/* Unter dem Titel stand bis naventec-gmbh/claude#191 die Maßkette „vom Aufmaß zum Möbel“ (16 px + 22 px + 64 px);
   sie maß nichts (design-slop G5), der Abstand bleibt in der Größenordnung. */
.titel-ablauf { margin-bottom: 64px; font-size: clamp(2.5rem, 6vw, 6rem); line-height: 1; }
.ablauf-buehne { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.ablauf-schritte { flex: 1 1 320px; max-width: 440px; }
.schritt { padding-top: 24px; }
.schritt-ziffer {
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 600;
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-size: 7.5rem;
	line-height: 1;
	color: var(--wp--preset--color--eichenhonig);
}
.schritt h3 { margin: 16px 0 12px; font-size: 2.125rem; line-height: 1.3; }
.zeichnung-spalte { flex: 999 1 520px; min-width: 0; }
.zeichnung {
	position: relative;
	container-type: inline-size;
	aspect-ratio: 4 / 3;
	background: var(--wp--preset--color--papier);
	border: 1px solid var(--wp--preset--color--linie);
}
.zeichnung-linien { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.zeichnung-linien .strich { stroke-dasharray: 1; }
/* Die Zeichnungen in patterns/start-ablauf.php und inc/leistung.php tragen font-family="Source Sans 3" an der
   Beschriftung, ebenso die Seiten in der Datenbank, die die Befüllung daraus anlegt. CSS geht vor und setzt Handwerk
   Sans. Die Muster bleiben unverändert: Eine Änderung zöge einen Lauf der Befüllung und einen neuen Golden-Dump nach
   sich. */
.zeichnung-linien text { font-family: var(--wp--preset--font-family--handwerk-sans); }
/* CD: kein Text unter 14 px. Die Beschriftung (15 von 800 Einheiten) fällt unter 747 px Breite darunter und entfällt. */
@container (max-width: 746px) {
	.zeichnung-linien text { display: none; }
}
.zeichnung-foto { position: absolute; inset: 0; margin: 0; }
.zeichnung-foto img { width: 100%; height: 100%; object-fit: cover; }
.zeichnung-spalte > .is-style-masskette { margin-top: 16px; }
@media (width < 1024px) {
	.schritt { padding-bottom: 56px; }
}

/* ---------- Zitat ---------- */

.zitat { margin-top: clamp(96px, 10vw, 160px); padding-block: clamp(64px, 9vw, 144px); }
.is-style-zitat-gross { margin: 0; padding: 0; border: 0; }
.is-style-zitat-gross p {
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 600;
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-size: clamp(1.875rem, 4.2vw, 3.75rem);
	line-height: 1.15;
	max-width: 22ch;
}
.is-style-zitat-gross cite {
	display: block;
	margin-top: 32px;
	color: var(--wp--preset--color--nussbaum-gedaempft);
	font: 400 .875rem/1.45 var(--wp--preset--font-family--handwerk-sans);
	font-variation-settings: normal;
	font-style: normal;
}

/* ---------- Referenz-Karten (Query Loop) ---------- */

.karten .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.karte-bild { margin: 0; overflow: hidden; }
.karte-bild a { display: block; }
/* Das Bild schneidet einen äußeren Fokusrahmen ab (overflow) und überdeckt beim Heranrücken (transform) einen inneren;
   der Rahmen liegt deshalb auf einer eigenen Fläche über dem Bild. */
.karte-bild a { position: relative; }
.karte-bild a:focus-visible { outline: none; }
.karte-bild a:focus-visible::after { content: ""; position: absolute; inset: 0; z-index: 1; outline: var(--fokus); outline-offset: -3px; pointer-events: none; }
.karte-bild img { width: 100%; height: auto; object-fit: cover; }
/* Metazeile unter dem Titel (design-slop G1): „Ausgeführt: <Datum>“, darunter in eigener Zeile die Leistung oder auf
   Start das Holz, ohne Trennzeichen (G3) und ohne Versalien (G2; naventec-gmbh/claude#191). */
.karte-titel { margin: 20px 0 6px; font-size: 1.75rem; line-height: 1.2; }
.karte-meta {
	margin: 0 0 8px;
	color: var(--wp--preset--color--eichenhonig);
	font-size: .875rem;
	line-height: 1.6;
	font-weight: 600;
}
.karte-meta > * { display: inline; margin: 0; }
.karte-meta > p::after { content: " "; }
.karte-meta > :is(.karte-holz, .wp-block-post-terms) { display: block; }
.karte-holz:empty { display: none; }
.karte-titel a { color: var(--wp--preset--color--nussbaum); text-decoration: none; }
.karte-titel a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.karte-auszug, .karte-auszug p { margin: 0; color: var(--wp--preset--color--nussbaum-gedaempft); }
.karte-mehr { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Start „Ausgeführte Arbeiten“: Hochformat, Querformat versetzt, Panorama mit Maßkette (Main.dc.html). */
.referenzen-teaser { max-width: var(--inhalt); margin-inline: auto; padding: clamp(96px, 10vw, 160px) var(--rand) 0; }
.referenzen-teaser .abschnitt-kopf { margin-bottom: 64px; }
.referenzen-teaser .titel-gross { font-size: clamp(2.25rem, 5vw, 4.75rem); line-height: 1.02; max-width: none; }
.karten-start { position: relative; }
.karten-start .wp-block-post-template { display: flex; flex-wrap: wrap; gap: 48px 24px; align-items: flex-start; }
.karten-start .karte-mehr, .karten-start .karte-masskette { display: none; }
.karten-start li:nth-child(1) { flex: 1 1 300px; max-width: 420px; }
.karten-start li:nth-child(1) .karte-bild img { aspect-ratio: 3 / 4; }
.karten-start li:nth-child(2) { flex: 1.6 1 420px; max-width: 760px; margin-top: clamp(0px, 12vw, 200px); }
.karten-start li:nth-child(2) .karte-bild img { aspect-ratio: 4 / 3; }
.karten-start li:nth-child(2) .karte-auszug { max-width: 36rem; }
.karten-start li:nth-child(3) {
	flex: 1 1 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	grid-template-areas: "bild text" "kette text";
	gap: 16px 48px;
	margin-top: clamp(64px, 8vw, 120px);
}
.karten-start li:nth-child(3) .karte-bild { grid-area: bild; }
.karten-start li:nth-child(3) .karte-bild img { aspect-ratio: 16 / 7; }
.karten-start li:nth-child(3) .karte-masskette { grid-area: kette; display: flex; }
.karten-start li:nth-child(3) .karte-text { grid-area: text; align-self: end; padding-bottom: 80px; }
.karten-start li:nth-child(3) .karte-titel { margin-top: 0; }
.karten-start li:nth-child(3) .karte-auszug { margin-bottom: 0; }
.karten-knopf { position: absolute; right: 0; bottom: 0; width: 280px; }
@media (max-width: 900px) {
	.karten-start li:nth-child(3) {
		display: flex;
		flex-direction: column;
		gap: 0;
	}
	.karten-start li:nth-child(3) .karte-masskette { margin-top: 16px; }
	.karten-start li:nth-child(3) .karte-titel { margin-top: 20px; }
	.karten-start li:nth-child(3) .karte-text { padding-bottom: 0; }
	.karten-knopf { position: static; width: auto; margin-top: 32px; }
}

/* ---------- CTA-Band ---------- */

.cta {
	margin-top: clamp(112px, 12vw, 192px);
	padding-top: clamp(80px, 10vw, 160px);
	padding-bottom: clamp(64px, 8vw, 112px);
}
.cta-titel {
	margin-bottom: 32px;
	font-size: clamp(2.75rem, 7.6vw, 7.75rem);
	line-height: .98;
	letter-spacing: -.02em;
	max-width: 11ch;
}
.cta-titel.breite-12 { max-width: 12ch; }
.cta-titel.breite-13 { max-width: 13ch; }
.cta-zeile { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; }
.cta-zeile > .lead { flex: 1 1 280px; max-width: 36rem; }
.cta-wege { flex: 1 1 360px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.cta-telefon {
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 600;
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.1;
}
.cta-telefon a { display: inline-block; padding-block: 6px; margin-block: -6px; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.cta > .is-style-masskette { margin-top: 72px; }

/* ---------- Leistungen: Aufmaß-Blätter ---------- */

.bereiche { max-width: var(--inhalt); margin-inline: auto; padding: clamp(96px, 11vw, 176px) var(--rand) 0; }
.bereiche-kopf { margin-bottom: clamp(32px, 4vw, 56px); }
.titel-bereiche { font-size: clamp(2.5rem, 6vw, 6rem); line-height: 1; max-width: 11ch; }
.blatt {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 32px 56px;
	padding: clamp(56px, 7vw, 112px) 0;
	border-top: 1px solid var(--wp--preset--color--linie);
}
.blatt.um { flex-direction: row-reverse; }
.blatt:last-child { border-bottom: 1px solid var(--wp--preset--color--linie); }
.blatt-bild { flex: 999 1 520px; min-width: 0; }
.blatt-bild.blatt-4-5 { max-width: 600px; }
.blatt-bild.blatt-16-10 { max-width: 820px; }
.blatt-bild.blatt-3-4 { max-width: 520px; }
.blatt-bild.blatt-16-9 { max-width: 860px; }
.blatt-bild.blatt-4-3 { max-width: 680px; }
.blatt-text { flex: 1 1 300px; max-width: 420px; }
/* Ohne große Nummer über dem Titel (bis naventec-gmbh/claude#191 „01“ bis „05“, design-slop V4). */
.blatt-text h3 { margin: 0 0 16px; font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.06; }
.blatt-text .leise { margin-bottom: 20px; }

/* ---------- Ablauf als Maßkette ---------- */

.ablauf-kette-abschnitt { max-width: var(--inhalt); margin-inline: auto; padding: clamp(96px, 10vw, 160px) var(--rand) 0; }
.titel-kette { margin-bottom: clamp(48px, 6vw, 88px); font-size: clamp(2.5rem, 6vw, 6rem); line-height: 1; max-width: 14ch; }
.kette { display: flex; flex-wrap: wrap; gap: 48px 0; }
.kette-schritt { flex: 1 1 240px; min-width: 0; padding-right: 28px; }
/* Die Kette hat nur links Endmarken, der letzte Abschnitt schließt rechts. */
.kette-ziffer.is-style-masskette {
	margin-bottom: 24px;
	padding-right: 0;
	margin-right: 0;
	background: url(../zeichen/endmarke-eichenhonig.svg) left center / 11px 22px no-repeat;
	font-family: var(--wp--preset--font-family--fraunces);
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-size: 2.5rem;
	line-height: 1.2;
	letter-spacing: 0;
}
.kette-ende .kette-ziffer.is-style-masskette {
	padding-right: 18px;
	margin-right: -5px;
	background:
		url(../zeichen/endmarke-eichenhonig.svg) left center / 11px 22px no-repeat,
		url(../zeichen/endmarke-eichenhonig.svg) right center / 11px 22px no-repeat;
}
.kette-schritt h3 { margin: 0 0 12px; font-size: 1.875rem; line-height: 1.15; }
.kette-gesamt { text-align: center; }

/* ---------- Fragen (core/accordion) ---------- */

.fragen {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 96px;
	align-items: flex-start;
	max-width: var(--inhalt);
	margin-inline: auto;
	padding: clamp(96px, 10vw, 160px) var(--rand) 0;
}
.fragen-titel { flex: 1 1 260px; max-width: 360px; font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.05; }
.fragen-liste { flex: 999 1 520px; min-width: 0; }
.fragen-liste .wp-block-accordion-item { border-top: 1px solid var(--wp--preset--color--linie); }
.fragen-liste .wp-block-accordion-item:last-child { border-bottom: 1px solid var(--wp--preset--color--linie); }
.fragen-liste .wp-block-accordion-heading { margin: 0; font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.25; }
.fragen-liste .wp-block-accordion-heading__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	min-height: 44px;
	padding: 28px 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--nussbaum);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.fragen-liste .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title { text-decoration: none; }
.fragen-liste .wp-block-accordion-heading__toggle-icon {
	position: relative;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	font-size: 0;
	color: var(--wp--preset--color--eichenhonig);
}
.fragen-liste .wp-block-accordion-heading__toggle-icon::before,
.fragen-liste .wp-block-accordion-heading__toggle-icon::after {
	content: "";
	position: absolute;
	left: 4.67px;
	top: 13.25px;
	width: 18.67px;
	height: 1.5px;
	border-radius: 1px;
	background: currentColor;
}
.fragen-liste .wp-block-accordion-heading__toggle-icon::after { transform: rotate(90deg); }
.fragen-liste .is-open .wp-block-accordion-heading__toggle-icon { transform: rotate(45deg); }
.fragen-liste .wp-block-accordion-panel p { margin: 0 0 32px; max-width: 40rem; color: var(--wp--preset--color--nussbaum-gedaempft); }

/* ---------- Leistung: Hero ---------- */

.hero-leistung {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 64px;
	align-items: flex-end;
	max-width: var(--weit);
	margin-inline: auto;
	padding: clamp(48px, 7vw, 104px) var(--rand) 0; /* wie .hero-kopf, ohne Brotkrumen über dem Titel */
}
.hero-leistung-text { flex: 999 1 560px; min-width: 0; }
.hero-leistung-text .hero-titel { margin-bottom: 40px; font-size: clamp(2.75rem, 7.2vw, 7.25rem); line-height: 1; max-width: 15ch; }
.hero-leistung-text .lead { margin-bottom: 32px; max-width: 34rem; }
.hero-bild.hero-leistung-bild { flex: 1 1 360px; max-width: 520px; }
.hero-leistung-bild .hero-bild-rahmen .is-style-masskette { margin-right: -5px; }

/* ---------- Leistung: Zeichnung zum Foto ---------- */

.mass { height: 1800px; margin-top: clamp(96px, 10vw, 160px); }
.mass-buehne {
	position: sticky;
	top: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 48px 80px;
	align-items: center;
	padding-block: clamp(64px, 8vw, 112px);
}
.mass-text { flex: 1 1 320px; max-width: 460px; }
.titel-mass { margin-bottom: 24px; font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.05; }
.zeichnung-spalte.mass-figur { flex: 999 1 520px; }
/* Ohne Werkstattzeichnung zum Motiv (inc/leistung.php) steht das Foto still, die Scrollstrecke entfällt. */
.mass:not(.zeichnung-zeitachse) { height: auto; }
.mass:not(.zeichnung-zeitachse) .mass-buehne { position: static; }
@media (max-width: 900px) {
	.mass { height: auto; }
	.mass-buehne { position: static; }
}

/* ---------- Leistung: Stückliste ---------- */

.stueckliste { max-width: var(--inhalt); margin-inline: auto; padding: clamp(96px, 10vw, 160px) var(--rand) 0; }
.stueckliste .titel-kette { margin-bottom: clamp(40px, 5vw, 72px); max-width: none; }
.positionen { display: flex; flex-wrap: wrap; gap: 56px 48px; }
.position { flex: 1 1 300px; min-width: 0; padding-top: 28px; border-top: 1px solid var(--wp--preset--color--linie); }
.position h3 { margin: 0 0 12px; font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.15; }
.position .leise { max-width: 32rem; }
.kette-gesamt { margin-top: 56px; }
.kette-gesamt .is-style-masskette { font-size: 1rem; }
.kette-gesamt .leise { margin-top: 20px; }

/* ---------- Leistung: Gebaute Beispiele ---------- */

.beispiele .abschnitt-kopf { margin-bottom: 56px; }
.titel-beispiele.titel-gross { font-size: clamp(2.25rem, 5vw, 4.75rem); line-height: 1.02; max-width: none; }
.karten-leistung .wp-block-post-template { display: flex; flex-wrap: wrap; gap: 48px 32px; align-items: flex-start; }
.karten-leistung li:nth-child(1) { flex: 1.6 1 420px; max-width: 760px; }
.karten-leistung li:nth-child(1) .karte-bild img { aspect-ratio: 4 / 3; }
.karten-leistung li:nth-child(2) { flex: 1 1 300px; max-width: 420px; margin-top: clamp(0px, 10vw, 160px); }
.karten-leistung li:nth-child(2) .karte-bild img { aspect-ratio: 3 / 4; }
.karten-leistung .wp-block-post-terms, .karten-leistung .karte-masskette { display: none; }
.karten-leistung li:nth-child(1) .karte-auszug { max-width: 36rem; }

/* ---------- Referenzen: Hero ---------- */

.hero-referenzen { max-width: var(--inhalt); margin-inline: auto; padding: clamp(48px, 7vw, 104px) var(--rand) 0; }
.hero-referenzen-zeile { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; container-type: inline-size; }
.hero-referenzen .hero-titel {
	flex: 999 1 560px;
	min-width: 0;
	max-width: none;
	/* „Suchergebnisse“ bis 7,12 em (bei 38 px). Die Grenze wirkt, wo der Titel die ganze Zeile hat (unter 924 px Zeile);
	   daneben steht der Lead, dort ist Platz für Wörter bis etwa 5,4 em (tests/umbruch). */
	font-size: min(clamp(3.25rem, 10vw, 9.75rem), 100cqi / 7.2);
	line-height: .94;
	letter-spacing: -.025em;
}
.hero-referenzen .lead { flex: 1 1 300px; max-width: 26rem; margin-bottom: 12px; }
.hero-referenzen > .is-style-masskette { margin-top: clamp(40px, 5vw, 72px); }

/* ---------- Referenzen: alle Karten im Formatrhythmus (R1-Referenzen.dc.html) ---------- */

.referenzen-alle { padding-top: clamp(96px, 10vw, 160px); }
.referenzen-kopf { max-width: var(--inhalt); margin: 0 auto; padding: 0 var(--rand); gap: 24px 96px; }
.titel-alle { flex: 1 1 360px; font-size: clamp(2.5rem, 6vw, 6rem); line-height: 1; }
.referenzen-kopf .leise { flex: 1 1 320px; max-width: 30rem; margin-bottom: 8px; }

/* Bänder 2 + 1 + 3 + 1 + 2: Die Liste ist so breit wie die Panoramen (1440 px), die Bänder sitzen im Inhalt (1216 px). */
.karten-rhythmus {
	--band: max(0px, (100% - var(--spalte)) / 2);
	--abstand: clamp(96px, 10vw, 160px);
	max-width: var(--weit);
	margin-inline: auto;
	padding: clamp(56px, 6vw, 96px) var(--rand) 0;
}
.karten-rhythmus .wp-block-post-template { display: flex; flex-wrap: wrap; gap: 56px 48px; align-items: flex-start; }
.karten-rhythmus .karte-bild { overflow: hidden; }
.karten-rhythmus .karte-auszug { margin-bottom: 4px; }
.karten-rhythmus .karte-mehr { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; }
.karten-rhythmus .karte-masskette { display: none; }
.karten-rhythmus li:nth-child(9n+1) { flex: 1 1 340px; max-width: 480px; margin-left: var(--band); }
.karten-rhythmus li:nth-child(9n+1) .karte-bild img { aspect-ratio: 4 / 5; }
.karten-rhythmus li:nth-child(9n+2) { flex: 1.6 1 420px; max-width: 720px; margin-top: clamp(0px, 14vw, 220px); margin-right: var(--band); }
.karten-rhythmus li:nth-child(9n+2) .karte-bild img { aspect-ratio: 3 / 2; }
.karten-rhythmus li:nth-child(9n+4) { flex: 1.5 1 380px; max-width: 560px; margin-top: calc(var(--abstand) - 56px); margin-left: var(--band); }
.karten-rhythmus li:nth-child(9n+4) .karte-bild img { aspect-ratio: 4 / 3; }
.karten-rhythmus li:nth-child(9n+5) { flex: 1 1 280px; max-width: 360px; margin-top: clamp(0px, 9vw, 140px); margin-left: -8px; }
.karten-rhythmus li:nth-child(9n+5) .karte-bild img { aspect-ratio: 1; }
.karten-rhythmus li:nth-child(9n+6) { flex: 1 1 260px; max-width: 320px; margin-top: clamp(0px, 3vw, 48px); margin-left: -8px; margin-right: var(--band); }
.karten-rhythmus li:nth-child(9n+6) .karte-bild img { aspect-ratio: 3 / 4; }
.karten-rhythmus li:is(:nth-child(9n+5), :nth-child(9n+6)) .karte-titel { font-size: 1.625rem; }
.karten-rhythmus li:nth-child(9n+8) { flex: 1 1 300px; max-width: 400px; margin-top: calc(var(--abstand) - 56px + clamp(0px, 8vw, 128px)); margin-left: var(--band); }
.karten-rhythmus li:nth-child(9n+8) .karte-bild img { aspect-ratio: 2 / 3; }
.karten-rhythmus li:nth-child(9n) { flex: 1.8 1 440px; max-width: 760px; margin-left: 16px; margin-right: var(--band); }
.karten-rhythmus li:nth-child(9n) .karte-bild img { aspect-ratio: 16 / 9; }
.karten-rhythmus li:nth-child(9n) .karte-auszug { max-width: 36rem; }
/* Steht ein Band in einer Zeile, beginnen alle seine Karten am Bandanfang; bricht es um, gilt nur der Versatz. */
@media (min-width: 1064px) {
	.karten-rhythmus li:nth-child(9n+5) { margin-top: calc(var(--abstand) - 56px + clamp(0px, 9vw, 140px)); }
	.karten-rhythmus li:nth-child(9n+6) { margin-top: calc(var(--abstand) - 56px + clamp(0px, 3vw, 48px)); }
}
@media (min-width: 868px) {
	.karten-rhythmus li:nth-child(9n) { margin-top: calc(var(--abstand) - 56px); }
}
@media (max-width: 1063.98px) {
	.karten-rhythmus li:is(:nth-child(9n+5), :nth-child(9n+6), :nth-child(9n)) { margin-left: 0; }
}

/* Panoramen: Maßkette über dem Bild, darunter Kopf und Text in zwei Spalten (max. 1280 px). */
.karten-rhythmus li:is(:nth-child(9n+3), :nth-child(9n+7)) {
	flex: 1 1 100%;
	display: flex;
	flex-direction: column;
	margin-top: calc(var(--abstand) - 56px);
}
.karten-rhythmus li:is(:nth-child(9n+3), :nth-child(9n+7)) .karte-masskette { display: flex; order: -1; margin-bottom: 16px; }
.karten-rhythmus li:is(:nth-child(9n+3), :nth-child(9n+7)) .karte-bild img { aspect-ratio: 21 / 9; }
.karten-rhythmus li:is(:nth-child(9n+3), :nth-child(9n+7)) .karte-text {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 64px;
	align-items: flex-start;
	width: 100%;
	max-width: var(--inhalt);
	margin-inline: auto;
	padding-top: 28px;
}
.karten-rhythmus li:is(:nth-child(9n+3), :nth-child(9n+7)) .karte-kopf { flex: 1 1 420px; min-width: 0; }
.karten-rhythmus li:is(:nth-child(9n+3), :nth-child(9n+7)) .karte-meta { margin: 12px 0 0; }
.karten-rhythmus li:is(:nth-child(9n+3), :nth-child(9n+7)) .karte-titel { margin: 0; font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.08; max-width: 16ch; }
.karten-rhythmus li:is(:nth-child(9n+3), :nth-child(9n+7)) .karte-rest { flex: 1 1 340px; max-width: 34rem; padding-top: 30px; }

/* Karten heranrücken bei Hover und Fokus (scale 1,03) steht in bewegung.css. */

/* ---------- Referenz-Einzelseite (Figma 2:2, R1-Referenz-Kochinsel.dc.html) ---------- */

.einzel-kopf { max-width: var(--inhalt); margin-inline: auto; padding: clamp(24px, 3vw, 40px) var(--rand) 0; container-type: inline-size; }
.zurueck a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-weight: 600;
	text-underline-offset: 4px;
}
.zurueck a::before {
	content: "";
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background: currentColor;
	mask: url(../zeichen/pfeil-links.svg) center / 20px 20px no-repeat;
}
/* Datum unter dem Titel (design-slop G1, naventec-gmbh/claude#191). */
.einzel-meta { margin: 20px 0 0; }
.einzel-titel {
	margin: clamp(32px, 4vw, 56px) 0 0;
	color: var(--wp--preset--color--nussbaum);
	font-size: min(clamp(2.75rem, 7vw, 7rem), 100cqi / 7.9); /* „Zwanzigerjahren“ bis 7,81 em (bei 37,5 px); Spalte: .einzel-kopf */
	line-height: .98;
	letter-spacing: -.02em;
}
.einzel-intro { max-width: 30rem; margin: 32px 0 0 auto; }
.einzel-intro p { margin: 0; }
.einzel-bild { max-width: var(--weit); margin: clamp(48px, 6vw, 88px) auto 0; padding: 0 var(--rand); }
.einzel-bild > .is-style-masskette { margin-bottom: 16px; }
.einzel-foto { margin: 0; overflow: hidden; }
.einzel-foto img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.bericht {
	display: flex;
	flex-wrap: wrap;
	gap: 64px 96px;
	align-items: flex-start;
	max-width: var(--inhalt);
	margin-inline: auto;
	padding: clamp(96px, 10vw, 160px) var(--rand) 0;
}
.bericht-text { flex: 999 1 520px; min-width: 0; max-width: 42rem; }
.bericht-text h2 { margin: 0 0 20px; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; }
.bericht-text p { margin: 0 0 clamp(56px, 6vw, 88px); font-size: 1.25rem; line-height: 1.65; }
.bericht-text p:last-child { margin-bottom: 0; }
.bericht-text .is-style-ergebnis,
.is-style-ergebnis {
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 600;
	font-variation-settings: "SOFT" 0, "WONK" 0;
	color: var(--wp--preset--color--tanne);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	line-height: 1.3;
}

/* Schriftfeld: Rahmen 2 px Nussbaum, Spalten- und Zeilenlinien 1 px Linie; die Linien sind Pseudo-Elemente, damit
   sie sich beim Scrollen zeichnen (bewegung.css). */
.feld { position: sticky; top: 32px; flex: 1 1 360px; max-width: 460px; min-width: 0; background: var(--wp--preset--color--papier); }
.feld::before, .feld::after, .feld-titel::before, .feld-titel::after { content: ""; position: absolute; background: var(--wp--preset--color--nussbaum); }
.feld::before { left: 0; right: 0; top: 0; height: 2px; transform-origin: left center; }
.feld::after { left: 0; right: 0; bottom: 0; height: 2px; transform-origin: right center; }
.feld-titel::before { top: 0; bottom: 0; left: 0; width: 2px; transform-origin: center bottom; }
.feld-titel::after { top: 0; bottom: 0; right: 0; width: 2px; transform-origin: center top; }
.feld-titel { margin: 0; padding: 22px 24px 20px; font-size: clamp(1.875rem, 2.8vw, 2.5rem); line-height: 1.1; }
.is-style-schriftfeld { position: relative; margin: 0; }
.is-style-schriftfeld::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 36%;
	width: 1px;
	background: var(--wp--preset--color--linie);
	transform-origin: center top;
}
.is-style-schriftfeld table, .is-style-schriftfeld tbody { display: block; width: 100%; border: 0; border-collapse: collapse; }
.is-style-schriftfeld tr { position: relative; display: grid; grid-template-columns: 36% minmax(0, 1fr); }
.is-style-schriftfeld tr::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: var(--wp--preset--color--linie);
	transform-origin: left center;
}
.is-style-schriftfeld td { border: 0; }
.is-style-schriftfeld td:first-child {
	padding: 16px 16px 16px 24px;
	color: var(--wp--preset--color--nussbaum-gedaempft);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.5;
}
.is-style-schriftfeld td:last-child { padding: 13px 24px 13px 20px; font-size: 1.125rem; line-height: 1.45; }
@media (max-width: 900px) {
	.feld { position: static; }
}

/* Abschluss: Seitenwechsel mit Zurück und Weiter; „Weitere Referenzen“ steht als aria-label am nav. */
.wechsel { max-width: var(--inhalt); margin-inline: auto; padding: clamp(80px, 9vw, 128px) var(--rand); }
.wechsel-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 64px; }
.wechsel .wp-block-post-navigation-link { flex: 1 1 320px; max-width: 520px; }
.wechsel .wp-block-post-navigation-link a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 44px;
	padding: 28px 0;
	color: var(--wp--preset--color--nussbaum);
	text-decoration: none;
}
.wechsel .post-navigation-link-next a { align-items: flex-end; text-align: right; }
.wechsel .post-navigation-link__label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--eichenhonig);
	font-size: .875rem;
	font-weight: 600;
}
.wechsel .post-navigation-link__label::before,
.wechsel .post-navigation-link__label::after { width: 20px; height: 20px; background: currentColor; mask: url(../zeichen/pfeil-links.svg) center / 20px 20px no-repeat; }
.wechsel .post-navigation-link-previous .post-navigation-link__label::before { content: ""; }
.wechsel .post-navigation-link-next .post-navigation-link__label::after { content: ""; mask-image: url(../zeichen/pfeil-rechts.svg); }
.wechsel .post-navigation-link__title {
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 600;
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-size: clamp(1.625rem, 2.8vw, 2.5rem);
	line-height: 1.15;
}
.wechsel a:hover .post-navigation-link__title { color: var(--wp--preset--color--tanne); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- Seiten ohne eigenen Figma-Frame (Über uns, Kontakt, 404, Suche, Archiv): Bausteine der Screens ---------- */

.text-abschnitt { max-width: var(--inhalt); margin-inline: auto; padding: clamp(96px, 10vw, 160px) var(--rand) 0; }
.text-kopf { display: flex; flex-wrap: wrap; gap: 32px 96px; align-items: flex-start; }
.text-titel { flex: 1 1 260px; max-width: 360px; font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.05; }
.text-inhalt { flex: 999 1 520px; min-width: 0; max-width: 42rem; }
.text-inhalt p + p { margin-top: 16px; }
.text-abschnitt .positionen { margin-top: clamp(40px, 5vw, 72px); }
.kontaktwege .position { flex-basis: 220px; }
.kontaktwege .position .leise + .leise { margin-top: 8px; }
.demo-hinweis { font-weight: 600; color: var(--wp--preset--color--tanne); }

/*
 * Anfrageformular (Contact Form 7 ohne eigenes CSS und JS, inc/formular.php). CD Abschnitt 5: Feld auf Papier, Rahmen
 * 1 px Linie, mindestens 48 px, Ecken 4 px, Beschriftung sichtbar über dem Feld; Fokus aus basis.css. Meldungen nur auf
 * Papier, immer mit Text und Icon (SC 1.4.1).
 */
.wpcf7 { margin-top: 32px; }
.wpcf7 .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}
.wpcf7 .hidden-fields-container { display: none; }
.anfrage-formular { display: grid; gap: 24px; }
.formular-feld { display: grid; gap: 6px; }
.formular-feld > label { font-weight: 600; line-height: 1.4; }
.feld-hinweis { margin: 0; color: var(--wp--preset--color--nussbaum-gedaempft); font-size: .9375rem; line-height: 1.4; }
.formular-feld .wpcf7-form-control-wrap { display: grid; gap: 8px; }
/* :where hält die Spezifität niedrig, damit Auswahl, Textfeld und Fehlerzustand die Grundform überschreiben. */
.anfrage-formular :where(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: 4px;
	background: var(--wp--preset--color--papier);
	color: var(--wp--preset--color--nussbaum);
	font: 400 1.0625rem/1.4 var(--wp--preset--font-family--handwerk-sans);
}
.anfrage-formular textarea { min-height: 176px; resize: vertical; }
.anfrage-formular select {
	appearance: none;
	padding-right: 48px;
	background: var(--wp--preset--color--papier) url(../zeichen/winkel-unten.svg) right 12px center / 24px 24px no-repeat;
	cursor: pointer;
}
.anfrage-formular :is(input, select, textarea).wpcf7-not-valid {
	border-color: var(--wp--preset--color--fehler);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--fehler);
}
.anfrage-formular .wpcf7-not-valid-tip,
.anfrage-formular .wpcf7-response-output {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	color: var(--wp--preset--color--fehler);
	font-weight: 600;
	line-height: 1.4;
}
.anfrage-formular .wpcf7-not-valid-tip::before,
.anfrage-formular .wpcf7-response-output::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	background: currentColor;
	mask: url(../zeichen/fehler.svg) center / 20px 20px no-repeat;
}
.anfrage-formular .wpcf7-response-output {
	margin: 0;
	padding: 16px 20px;
	border: 2px solid currentColor;
	border-radius: 4px;
	background: var(--wp--preset--color--papier);
}
.anfrage-formular.init .wpcf7-response-output,
.anfrage-formular .wpcf7-response-output:empty { display: none; }
.anfrage-formular.sent .wpcf7-response-output { color: var(--wp--preset--color--erfolg); }
.anfrage-formular.sent .wpcf7-response-output::before { mask-image: url(../zeichen/erfolg.svg); }
/* Hinweis statt Einwilligung vor dem Knopf (naventec-gmbh/naventec-website#26). */
.formular-hinweis { margin: 0; line-height: 1.5; }
.formular-honigtopf { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formular-absenden .wpcf7-submit { min-height: 48px; border: 0; cursor: pointer; }

.wege { max-width: var(--inhalt); margin-inline: auto; padding: clamp(56px, 6vw, 96px) var(--rand) 0; }
.wege > .leise { margin: 48px 0 16px; }
.seiten-suche .wp-block-search__input { width: min(100%, 420px); }

.treffer { max-width: var(--inhalt); margin-inline: auto; padding: clamp(56px, 6vw, 96px) var(--rand) 0; }
.treffer-liste { margin-top: 48px; border-bottom: 1px solid var(--wp--preset--color--linie); }
.treffer-liste .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.treffer-liste .wp-block-post-template > li { padding: 28px 0; border-top: 1px solid var(--wp--preset--color--linie); }
.treffer-titel { margin: 0 0 8px; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; }
.treffer-titel a { color: var(--wp--preset--color--nussbaum); text-decoration: none; }
.treffer-titel a:hover { color: var(--wp--preset--color--tanne); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.treffer-auszug p { margin: 0; color: var(--wp--preset--color--nussbaum-gedaempft); max-width: 42rem; }
.treffer-hinweis { margin-top: 16px; font-size: .875rem; }
.treffer:not(:has(.wp-block-post-template)) .treffer-hinweis { display: none; }
.keine-treffer { padding: 28px 0 40px; border-top: 1px solid var(--wp--preset--color--linie); }
.keine-treffer p { margin: 16px 0; max-width: 42rem; }
.wp-block-query-pagination { margin-top: 32px; font-weight: 600; }
/* Seitenzahlen, Zurück und Weiter je mit Zielfläche 44 × 44 px (CD Abschnitt 5; Suche und Archiv haben keinen
   Figma-Frame). */
.wp-block-query-pagination :is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}
/* Die erste Seitenzahl steht wie bisher an der Inhaltskante: (44 px − Ziffernbreite 9 px) / 2 nach links. */
.wp-block-query-pagination-numbers:first-child { margin-inline-start: -17px; }
.hero-archiv .hero-titel { font-size: clamp(3rem, 7vw, 7rem); }

/* Seiten ohne CTA-Band am Ende (Kontakt, 404, Suche, Archiv) brauchen Abstand zur Fußzeile. */
.inhalt:not(:has(.cta:last-child, .wechsel)) { padding-bottom: clamp(96px, 10vw, 160px); }
/* Ein Abschnittstitel ohne Text daneben läuft über die Breite. */
.text-kopf:not(:has(.text-inhalt)) .text-titel { max-width: none; }

/* ---------- Ratgeber (naventec-democontent#80): Übersicht und Artikel aus den Bausteinen oben ---------- */

.hero-artikel .hero-leistung-text .lead { margin-bottom: 24px; }
/* Rücklink zum Ratgeber in eigener Zeile über Text und Bild, oben wie auf der Referenz-Einzelseite (.einzel-kopf). */
.hero-artikel { padding-top: clamp(24px, 3vw, 40px); }
.hero-artikel > .zurueck { flex: 1 1 100%; }
.artikel-autor { margin: 0; font-size: 1rem; }
.ratgeber-liste .blatt-text h3 { font-size: clamp(2rem, 3.4vw, 3rem); }

/* Vergleichstabelle: Kopf als Label (14 px, normale Schreibweise), Linien wie die Stückliste; schmal scrollt nur die
   Tabelle. */
.vergleich { max-width: var(--inhalt); margin-inline: auto; padding: clamp(96px, 10vw, 160px) var(--rand) 0; }
.vergleich .text-titel { max-width: none; margin-bottom: 24px; }
.vergleich > .leise { max-width: 42rem; margin-bottom: clamp(32px, 4vw, 56px); }
.vergleich-tabelle { margin: 0; overflow-x: auto; }
.vergleich-tabelle table { width: 100%; min-width: 760px; border: 0; border-collapse: collapse; }
.vergleich-tabelle th,
.vergleich-tabelle td { padding: 18px 24px 18px 0; border: 0; border-bottom: 1px solid var(--wp--preset--color--linie); text-align: left; vertical-align: top; }
.vergleich-tabelle th {
	padding-top: 0;
	color: var(--wp--preset--color--eichenhonig);
	font-size: .875rem;
	line-height: 1.4;
	font-weight: 600;
}
.vergleich-tabelle td { font-size: 1.0625rem; line-height: 1.5; color: var(--wp--preset--color--nussbaum-gedaempft); }
.vergleich-tabelle td:first-child {
	color: var(--wp--preset--color--nussbaum);
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 600;
	font-variation-settings: "SOFT" 0, "WONK" 0; /* CD: WONK 0, fehlte bis 19.10.2026 */
	font-size: 1.25rem;
	line-height: 1.3;
}
.vergleich-tabelle td:last-child { padding-right: 0; }
/* Besteht eine Zelle nur aus einem Link, bricht er als Block um, damit seine Zielfläche (basis.css) eine Fläche ist;
   ein Link mit Text daneben in der Zelle bekäme sie auch (:only-child sieht keinen Text). */
.vergleich-tabelle td > a:only-child { display: inline-block; }
.vergleich-tabelle thead { border-bottom: 0; } /* Core setzt 3 px; hier 1 px wie die übrigen Linien */
.vergleich-tabelle th { border-bottom-color: var(--wp--preset--color--nussbaum-gedaempft); }
/* Schmal ist die Tabelle breiter als der Platz: Ein Schatten am rechten Rand zeigt, dass sie seitlich weitergeht
   (CD: Schatten statt Verlauf). */
@media (max-width: 840px) {
	.vergleich-tabelle { box-shadow: inset -14px 0 12px -12px rgba(42, 32, 24, .28); }
}

/* ---------- Start: Aufmaß am Foto (c2d2p#68, Block naventec/aufmass, inc/aufmass.php) ---------- */

.aufmass { position: relative; }
.aufmass > .wp-block-image { margin: 0; }
/* Feste Maßketten am Regal (Endzustand, auch ohne Skript und bei reduzierter Bewegung); Lage aus inc/aufmass.php */
.aufmass .aufmass-kette { position: absolute; z-index: 1; margin: 0; pointer-events: none; }
.aufmass .aufmass-kette span { padding: 2px 6px; background: var(--wp--preset--color--papier); }
.aufmass .is-style-masskette-senkrecht { display: flex; }
/* Schmal reicht die Breitenkette (Unterkante 6,51 % der Bildhöhe, also 3,63cqi, plus etwa 1 px) bis an das KI-Label oben
   rechts: das Label rückt unter sie, mit 4 px Luft. Container ist das Bild (.ki-bild). */
@container (max-width: 400px) {
	.aufmass .ki-label { top: calc(3.64cqi + 6px); }
}
/* Lot und Waage (naventec-motion measure): Lage über --measure-*, Bewegung nur über transform */
.aufmass-linie {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	opacity: 0;
	color: var(--wp--preset--color--papier);
	pointer-events: none;
	/* Papierweiß mit dunklem Rand: auf Eiche wie auf heller Wand sichtbar (Audit c2d2p#68) */
	filter: drop-shadow(0 0 1px var(--wp--preset--color--waldschatten)) drop-shadow(0 0 1px var(--wp--preset--color--waldschatten));
}
.aufmass-linie[data-measure-line="x"] {
	top: var(--measure-y0);
	height: calc(var(--measure-y1) - var(--measure-y0));
	border-left: 2px solid currentColor;
	margin-left: -1px;
}
.aufmass-linie[data-measure-line="y"] {
	left: var(--measure-x0);
	width: calc(var(--measure-x1) - var(--measure-x0));
	border-top: 2px solid currentColor;
	margin-top: -1px;
}
/* Schmal nur die Breite: die Höhenkette läge auf dem kleinen Regal */
@media (max-width: 600px) {
	.aufmass .aufmass-hoehe, .aufmass-linie[data-measure-line="y"] .aufmass-wert { display: none; }
}
.aufmass-wert {
	position: absolute;
	top: 0;
	left: 0;
	padding: 2px 8px;
	background: var(--wp--preset--color--papier);
	color: var(--wp--preset--color--nussbaum);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
/* Werte an den freien Enden, innen im Messbereich: Lot unten, Waage rechts (oben und links stehen die festen Maßketten) */
.aufmass-linie[data-measure-line="x"] .aufmass-wert { top: 100%; transform: translate(-50%, calc(-100% - 8px)); }
.aufmass-linie[data-measure-line="y"] .aufmass-wert { left: 100%; transform: translate(calc(-100% - 8px), 6px); } /* unter der Linie: an der Oberkante frei von der Breitenkette */
.aufmass-linie[data-measure-snapped] .aufmass-wert { background: var(--wp--preset--color--tanne); color: var(--wp--preset--color--papier); }

/* ---------- Start: Ablauf als Szene mit dem Einbauschrank (c2d2p#68, Block naventec/einbauschrank) ---------- */

.einbauschrank { position: absolute; inset: 0; }
.einbauschrank img { width: 100%; height: 100%; object-fit: cover; display: block; }
.einbauschrank-zeichnung { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.einbauschrank-zeichnung .lot, .einbauschrank-zeichnung .waage, .einbauschrank-zeichnung :is(.mass-breite, .mass-hoehe) text { opacity: 0; }
/* Bildunterschrift unter der Bühne (src/bewegung.js): Ziffer und Titel des aktiven Schritts; nur schmal, wo die
   Schritte nicht neben der Bühne stehen (Höhe reserviert, kein Layoutsprung) */
.einbauschrank-schritt { display: none; }
@media (width < 1024px) {
	.einbauschrank-schritt { display: block; }
}
.einbauschrank-schritt {
	min-height: 1.6em;
	margin: 12px 0 0;
	font-family: var(--wp--preset--font-family--fraunces);
	font-weight: 600;
	font-variation-settings: "SOFT" 0, "WONK" 0;
	font-size: 1.375rem;
	line-height: 1.3;
	color: var(--wp--preset--color--nussbaum);
}
/* Zweispaltig ab 1024 px (darunter bricht die Zeile um): Schritte als kompakte Liste neben der Bühne. Angeheftet
   (naventec-motion data-pin-fit) wird erst ab 1024 px, wo der Rückweg-Knopf ausgeblendet ist */
@media (width >= 1024px) {
	.ablauf-szene .ablauf-buehne { align-items: center; }
	.ablauf-szene .schritt {
		display: grid;
		grid-template-columns: 4.5rem 1fr;
		column-gap: 20px;
		min-height: 0;
		padding: 18px 0 20px;
		border-top: 1px solid var(--wp--preset--color--linie);
	}
	.ablauf-szene .schritt:last-child { border-bottom: 1px solid var(--wp--preset--color--linie); }
	.ablauf-szene .schritt-ziffer { grid-row: span 2; font-size: 4rem; }
	.ablauf-szene .schritt h3 { margin: 4px 0 6px; font-size: 1.625rem; }
	.ablauf-szene .schritt p:not(.schritt-ziffer) { margin: 0; }
}
