/*
 * Naventec Gastro – Abschnitte der Seiten (Bausteine aus inc/muster.php und inc/seiten.php). Maße aus der
 * HTML-Vorlage design/entwurf/seiten/site.css und dem Home-Artboard design/entwurf/project/design-4-home.dc.html,
 * je Desktop (1440) und eigenständig mobil (bis 900 px, Figma 390).
 */

/* ---------- Gemeinsam ---------- */

.seiteninhalt > * + * { margin-block-start: 0; }
.mittig { text-align: center; }
.gross { font-size: 5rem; line-height: 1; }
.riesig, .abschnitt h2.riesig { font-size: 6rem; line-height: .98; }
.abschnitt-kopf { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.abschnitt-kopf .is-style-lead { max-width: 30em; }
.abschnitt h2 { font-size: 4rem; line-height: 1.02; }
.abschnitt h2.gross { font-size: 5rem; line-height: 1; }
.abschnitt h3 { font-size: 1.875rem; line-height: 1.15; }

.foto { position: relative; overflow: hidden; background: var(--schilf); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto-16-9 { aspect-ratio: 16 / 9; }
.foto-4-3 { aspect-ratio: 4 / 3; }
.foto-4-5 { aspect-ratio: 4 / 5; }
.schilf .foto { background: var(--leinen); }

/* Mobil (Vorlage: main h2 40 px, main h1 52 px; Start 44 px): eine Größe für alle Abschnittstitel. */
@media (max-width: 900px) {
	.inhalt h2 { font-size: 2.5rem !important; line-height: 1.05 !important; }
	.inhalt h1 { font-size: 3.25rem !important; line-height: 1 !important; }
	.inhalt :is(.raeume-abschnitt, .atempause, .abend, .start-anfrage) h2 { font-size: 2.75rem !important; line-height: 1 !important; }
}

/* ---------- Seitenkopf der Unterseiten (Vorlage .ph-kopf) ---------- */

.abschnitt.seitenanfang {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding-block: 72px;
	text-align: center;
}
.seitentitel { font-size: 6rem; line-height: .98; letter-spacing: -.015em; }
.abschnitt.seitenanfang .is-style-lead { max-width: 34em; }
.abschnitt.seitenanfang.mit-schwelle::after { content: ""; display: block; width: 160px; height: 4px; background: var(--messing); }
@media (max-width: 900px) {
	.abschnitt.seitenanfang { gap: 20px; padding-block: 40px 48px; }
	.seitentitel { font-size: 3.25rem; line-height: 1; letter-spacing: -.015em; }
}

/* ---------- Doppeltür: Hauptbild der Unterseite (Vorlage .doppeltuer) ---------- */

.abschnitt.doppeltuer { padding-bottom: 112px; }
.doppeltuer-bild .foto { clip-path: inset(0 0 0 0); }

/* ---------- Text-Bild (Vorlage .tb) ---------- */

.abschnitt:where(:has(> .text-bild), .zitat-abschnitt, .zeiten, .hinweis-schild, .ablauf-abschnitt, :has(> .fragen), .allergene-abschnitt, .kontakt-abschnitt, .anfahrt, .anfrage, .atempause, .raeume-abschnitt) {
	padding-block: 112px;
}
.text-bild {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 24px;
	align-items: center;
}
.text-bild-bild { grid-column: 1 / 7; grid-row: 1; }
.text-bild-text { grid-column: 8 / 13; grid-row: 1; display: flex; flex-direction: column; gap: 24px; }
.text-bild.gespiegelt .text-bild-bild { grid-column: 7 / 13; }
.text-bild.gespiegelt .text-bild-text { grid-column: 1 / 6; }
.text-bild.schmal .text-bild-bild { grid-column: 2 / 6; }
.text-bild.schmal.gespiegelt .text-bild-bild { grid-column: 8 / 12; }
.text-bild h2 { font-size: 4rem; line-height: 1.02; }
@media (max-width: 900px) {
	.text-bild { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
	.text-bild > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
}

/* ---------- Türschild: Zeiten, Anreise (Vorlage .schild) ---------- */

.schild {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 40px 40px 32px;
	border: 2px solid var(--ochsenblut);
	background: var(--leinen);
}
.schilf .schild { background: var(--leinen); }
.abschnitt.zeiten, .abschnitt.hinweis-schild { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.schild-rahmen { display: flex; flex-direction: column; width: min(100%, 560px); }
.schild-rahmen::after { content: ""; display: block; height: 4px; width: calc(100% + 120px); margin-left: -60px; background: var(--messing); }
.schild-rahmen.breit { width: min(100%, 720px); align-items: center; }
.schild-rahmen.breit::after { width: min(100vw - 2 * var(--rand), 840px); margin-left: 0; }
.schild-rahmen.breit .schild { width: 100%; }
.schild-zeile { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--schilf); }
.schild-zeile:first-child { padding-top: 0; border-top: 0; }
.schild-tag { font: 400 1.75rem/1.15 var(--serif); }
.schild-zeit { font-size: 1.1875rem; }
.schild-text { align-items: center; text-align: center; }
.schild-text h2 { font-size: 3rem; line-height: 1.05; }
@media (max-width: 900px) {
	.schild { padding: 28px 24px; }
	.schild-rahmen::after { width: calc(100% + 32px); margin-left: -16px; }
	.schild-text h2 { font-size: 2.5rem; }
}

/* ---------- Eckdaten (Vorlage dl.daten) ---------- */

.daten {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: baseline;
	column-gap: 24px;
	row-gap: 12px;
	font-size: 1.0625rem;
}
.daten-zeile { display: contents; }
/* Label: eine Stufe kleiner als der Wert, 600 (CorporateDesign.md, Schriften; design-slop G2), auf dessen Grundlinie. */
.daten-name { color: var(--messing); font-size: 1rem; font-weight: 600; }
.nacht .daten-name { color: var(--messing-hell); }
.daten-wert:empty { display: none; }

/* ---------- Fragen (Vorlage .fragen) ---------- */

.fragen { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.fragen-kopf { grid-column: 1 / 5; align-self: start; position: sticky; top: 32px; }
.fragen-liste { grid-column: 6 / 13; border-top: 2px solid var(--ochsenblut); }
.is-style-frage { border-bottom: 1px solid var(--rauch); }
.is-style-frage > summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	min-height: 72px;
	padding: 16px 0;
	list-style: none;
	cursor: pointer;
	font-size: 1.1875rem;
	font-weight: 600;
}
.is-style-frage > summary::-webkit-details-marker { display: none; }
.is-style-frage > summary::after {
	content: "";
	flex: none;
	width: 28px;
	height: 28px;
	background:
		linear-gradient(var(--messing), var(--messing)) center / 20px 2px no-repeat,
		linear-gradient(var(--messing), var(--messing)) center / 2px 20px no-repeat;
	transition: background-size .3s ease;
}
.is-style-frage[open] > summary::after { background-size: 20px 2px, 2px 0; }
.is-style-frage > :not(summary) { padding: 0 56px 24px 0; max-width: 40em; }
@media (max-width: 900px) {
	.fragen { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
	.fragen > * { grid-column: 1 / -1; }
	.fragen-kopf { position: static; }
	.is-style-frage > summary { font-size: 1.125rem; }
	.is-style-frage > :not(summary) { padding-right: 0; }
}

/* ---------- Ablauf mit Nummern (Vorlage .ablauf) ---------- */

.ablauf-abschnitt { display: flex; flex-direction: column; gap: 64px; }
.is-style-ablauf {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 48px;
	list-style: none;
	counter-reset: schritt;
}
.ablauf-nacht .is-style-ablauf { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; text-align: left; }
.is-style-ablauf > li {
	counter-increment: schritt;
	background: linear-gradient(var(--messing), var(--messing)) 0 88px / 72px 4px no-repeat;
}
.is-style-ablauf > li::before {
	content: counter(schritt);
	display: block;
	margin-bottom: 36px;
	font: 400 4.5rem/1 var(--serif);
	color: var(--messing);
}
/* Auf Schilf in Ochsenblut (Kurzbrief, Korrekturen für den Bau), auf Ochsenblut Messing hell mit 3 px. */
.schilf .is-style-ablauf > li::before { color: var(--ochsenblut); }
.nacht .is-style-ablauf > li::before { color: var(--messing-hell); }
.nacht .is-style-ablauf > li { background-image: linear-gradient(var(--messing-hell), var(--messing-hell)); background-size: 72px 3px; }
/* Schritt-Überschrift in eigener Zeile über der Beschreibung, ohne Schlusspunkt (design-slop T10): nicht als fetter
   Anlauf im Fließtext. Rolle wie eine Überschrift der vierten Ebene (CorporateDesign.md, Schriften). */
.is-style-ablauf strong { display: block; margin-bottom: 4px; font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
@media (max-width: 900px) {
	.is-style-ablauf, .ablauf-nacht .is-style-ablauf { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
	.is-style-ablauf > li { position: relative; padding: 12px 0 0 72px; background-position: 72px 0; }
	.is-style-ablauf > li::before { position: absolute; left: 0; top: 0; margin: 0; font-size: 3rem; }
}

/* ---------- Schluss in Ochsenblut (Vorlage .night.schluss) ---------- */

.abschnitt.schluss {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding-block: 72px 112px;
	text-align: center;
}
.schluss-titel { font-size: 5rem !important; line-height: 1 !important; margin-top: 24px; }
.schluss .is-style-lead { max-width: 32em; }
.abschnitt.schluss::after { content: ""; display: block; width: 640px; max-width: 100%; height: 3px; margin-top: 16px; background: var(--messing-hell); }
.abschnitt.schluss.ablauf-nacht { gap: 56px; }
.abschnitt.schluss.ablauf-nacht .schluss-titel { margin-top: 0; }
.abschnitt.schluss.ablauf-nacht::after { margin-top: 0; }
@media (max-width: 900px) {
	.schluss-titel { font-size: 3rem !important; }
}

/* ---------- Zweispaltig (Arrangements „So funktionieren …“) ---------- */

.abschnitt.zweispaltig {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 24px;
	padding-bottom: 112px;
}
.zweispaltig > h2 { grid-column: 1 / 6; font-size: 3.5rem; line-height: 1.05; }
.zweispaltig-text { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) {
	.abschnitt.zweispaltig { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
	.zweispaltig > * { grid-column: 1 / -1 !important; }
}

/* ---------- Arrangement-Karten (Query Loop, Vorlage .arrs/.arr) ---------- */

.arrangements-liste .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 48px;
	row-gap: 72px;
	align-items: start;
	margin: 0;
	padding: 0;
	list-style: none;
}
.arrangement-karte { display: flex; flex-direction: column; gap: 16px; }
.arrangement-karte .karten-bild { border: 1px solid var(--messing-hell); }
.karten-titel { margin-top: 12px; font-size: 1.875rem; line-height: 1.15; }
.karten-titel a { color: inherit; text-decoration: none; }
.karten-text p { font-size: 1.0625rem; line-height: 1.55; }
.karten-daten { font-size: 1rem; row-gap: 4px; column-gap: 12px; }
.karten-daten .daten-name { font-size: .875rem; }
/* Versetzt wie im Entwurf: in jeder Dreierreihe stehen die äußeren Karten 96 px tiefer (Übersicht: 1., 3., 4., 6.). */
.arrangement-karten.versetzt > li:nth-child(3n + 1),
.arrangement-karten.versetzt > li:nth-child(3n) { margin-top: 96px; }
.arrangements-alle .arrangement-karten.versetzt > li:nth-child(n) { margin-top: 0; }
.arrangements-alle .arrangement-karten.versetzt > li:is(:nth-child(1), :nth-child(3), :nth-child(4), :nth-child(6)) { margin-top: 96px; }
@media (max-width: 900px) {
	.arrangements-liste .wp-block-post-template { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
	.arrangement-karten.versetzt > li:nth-child(n) { margin-top: 0 !important; }
	.karten-titel { font-size: 1.625rem; }
}

.abschnitt.arrangements-alle { display: flex; flex-direction: column; align-items: center; gap: 40px; padding-block: 72px 112px; }
.arrangements-alle .arrangements-liste { width: 100%; margin-top: 32px; }

/* ---------- Arrangement-Einzelseite (Figma 11:2) ---------- */

.arrangement { padding: 40px var(--seite) 112px; }
.arrangement-raster {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 40px;
	align-items: start;
	margin-top: 32px;
}
.arrangement-raster > *, .arrangement-inhalt > * { grid-column: 1 / 8; }
.arrangement-inhalt { display: contents; }
.arrangement-titel { font-size: 5.5rem; line-height: 1; }
.arrangement-lead { display: flex; flex-direction: column; gap: 20px; }
.arrangement-enthalten { display: flex; flex-direction: column; gap: 20px; }
.arrangement-enthalten h2 { font-size: 2.5rem; line-height: 1.1; }
.arrangement-raster > .arrangement-inhalt > .arrangement-blick {
	grid-column: 9 / 13;
	grid-row: 1 / span 4;
	position: sticky;
	top: 32px;
	display: flex;
	flex-direction: column;
}
.arrangement-blick h2 { font-size: 2.25rem; line-height: 1.1; }
.arrangement-blick .schild { gap: 24px; }
.arrangement-blick .wp-block-button, .arrangement-blick .wp-block-button__link { width: 100%; }
.arrangement-blick::after { content: ""; display: block; height: 4px; width: calc(100% + 48px); margin-left: -24px; background: var(--messing); }
.is-style-enthalten { display: flex; flex-direction: column; list-style: none; border-top: 2px solid var(--ochsenblut); }
/* Ohne Aufzählungszeichen: Die Trennlinien tragen die Liste. Ein Balken vor jedem Punkt las sich wie ein Strich
   („—“, design-slop V3, G8). */
.is-style-enthalten > li { padding: 16px 0; border-bottom: 1px solid var(--schilf); }
@media (max-width: 900px) {
	.arrangement { padding-top: 24px; padding-bottom: 72px; }
	.arrangement-raster { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
	.arrangement-raster > *, .arrangement-inhalt > *,
	.arrangement-raster > .arrangement-inhalt > .arrangement-blick { grid-column: 1 / -1; grid-row: auto; position: static; }
	.arrangement-titel { font-size: 3.25rem; }
	.arrangement-blick::after { width: calc(100% + 32px); margin-left: -16px; }
}

/* ---------- Speisekarte (Figma 8:2) ---------- */

.abschnitt.abendmenue-abschnitt { padding-bottom: 96px; }
.abendmenue {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 48px;
	align-items: center;
	max-width: 880px;
	margin-inline: auto;
	padding: 56px 64px;
}
.abendmenue-mond { width: 120px; }
.abendmenue-text { display: flex; flex-direction: column; gap: 16px; }
.abendmenue-text h2 { font-size: 2.75rem; line-height: 1.05; }

.karte-abschnitt { padding-inline: 0 !important; }
.karte-abschnitt > h2 { padding: 0 var(--seite) 40px; }
.gaenge { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--schilf); background: var(--leinen); padding-inline: var(--seite); }
.gaenge-menue .wp-block-navigation__container { gap: 8px; overflow-x: auto; }
.gaenge-menue .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 56px;
	padding: 0 16px;
	border-bottom: 3px solid transparent;
	color: var(--ochsenblut);
	font-size: 1.0625rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.gaenge-menue .wp-block-navigation-item__content:hover { border-bottom-color: var(--messing); }
/* Aktiver Gang beim Scrollen, wo der Browser es kann (Chromium ab 140); eigene Regel, denn ein unbekannter
   Pseudo-Selektor machte sonst die ganze Liste ungültig. */
@supports selector(:target-current) {
	.gaenge-menue .wp-block-navigation__container { scroll-target-group: auto; }
	.gaenge-menue .wp-block-navigation-item__content:target-current { border-bottom-color: var(--messing); }
}
.karte { max-width: 880px; margin-inline: auto; }
.karte-abschnitt .karte { padding-inline: var(--rand); box-sizing: content-box; }
.gang { padding-top: 72px; scroll-margin-top: 56px; }
.gang h3 { font-size: 3rem; line-height: 1.05; text-align: center; }
.gang h3::after { content: ""; display: block; width: 160px; height: 4px; margin: 20px auto 32px; background: var(--messing); }
.is-style-speisekarte { margin: 0; }
.is-style-speisekarte table { width: 100%; border-collapse: collapse; table-layout: auto; }
.is-style-speisekarte thead { border: 0; }
/* Tabellenkopf in normaler Schreibweise und Laufweite, eine Stufe kleiner als die Gerichte (design-slop G2). */
.is-style-speisekarte th {
	padding: 0 0 12px;
	border: 0;
	border-bottom: 2px solid var(--ochsenblut);
	color: var(--messing);
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
}
.is-style-speisekarte th:nth-child(2) { width: 120px; text-align: center; }
.is-style-speisekarte th:last-child { width: 120px; text-align: right; }
.is-style-speisekarte td { padding: 18px 0; border: 0; border-bottom: 1px solid var(--schilf); vertical-align: baseline; }
.is-style-speisekarte td:first-child { padding-right: 24px; font-size: 1.1875rem; line-height: 1.5; }
.is-style-speisekarte td:nth-child(2) { color: var(--rauch); font-size: .9375rem; text-align: center; }
.is-style-speisekarte td:last-child { font-size: 1.1875rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.allergene-abschnitt .karte { display: flex; flex-direction: column; gap: 24px; }
.allergene-abschnitt h2 { font-size: 3rem !important; line-height: 1.05 !important; }
/* Einspaltig wie in Figma (8:2); die HTML-Vorlage hatte zwei Spalten, Figma ist maßgeblich (design/brief.md). */
.is-style-allergene { font-size: 1rem; list-style: none; }
.is-style-allergene > li { padding: 4px 0; break-inside: avoid; }
@media (max-width: 900px) {
	.abendmenue { grid-template-columns: minmax(0, 1fr); row-gap: 24px; justify-items: center; padding: 40px 24px; text-align: center; }
	.abendmenue-text h2 { font-size: 2.5rem; }
	.gaenge-menue .wp-block-navigation__container { justify-content: flex-start !important; }
	.gang h3 { font-size: 2.125rem; }
	.is-style-speisekarte thead { display: none; }
	.is-style-speisekarte tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 16px;
		padding: 16px 0;
		border-bottom: 1px solid var(--schilf);
	}
	.is-style-speisekarte td { padding: 0 !important; border: 0; }
	.is-style-speisekarte td:first-child { grid-column: 1; font-size: 1.125rem; }
	.is-style-speisekarte td:last-child { grid-column: 2; grid-row: 1; }
	.is-style-speisekarte td:nth-child(2) { grid-column: 1; margin-top: 4px; text-align: left; }
	.is-style-speisekarte td:nth-child(2):empty { display: none; }
}

/* ---------- Zimmer (Figma 13:2) ---------- */

.abschnitt.zimmer-abschnitt { padding-bottom: 112px; }
.zimmer-abschnitt > .abschnitt-kopf { padding-bottom: 64px; }
.zimmer-abschnitt .abschnitt-kopf .is-style-lead { max-width: 34em; }
.flur { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; justify-items: center; }
.flur-tuer { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.flur-tuer .tuer { position: relative; width: 220px; height: 400px; overflow: hidden; display: flex; justify-content: center; }
.flur-tuer .tuer::after { display: none; }
.flur-tuer .tuer .flur-bild { flex: none; height: 100%; width: auto; aspect-ratio: 4 / 3; margin: 0; }
.flur-tuer .tuer .flur-bild img { width: 100%; height: 100%; object-fit: cover; }
.flur-tuer .tuer .ki-label { right: 50%; transform: translateX(50%); }
.flur-tuer::before { content: ""; order: 1; display: block; width: 280px; height: 4px; margin-top: -16px; background: var(--messing); }
.flur-tuer > .tuer { order: 0; }
.flur-tuer > p { order: 2; }
.flur-name { font: 400 1.875rem/1.1 var(--serif); }
.flur-name a { color: var(--ochsenblut); text-decoration: none; }
.flur-preis { color: var(--rauch); font-size: 1rem; font-variant-numeric: tabular-nums; }
.zimmerart {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 24px;
	align-items: start;
	padding-top: 96px;
	scroll-margin-top: 24px;
}
.zimmerart-bild { grid-column: 1 / 8; grid-row: 1; }
.zimmerart-text { grid-column: 8 / 13; grid-row: 1; display: flex; flex-direction: column; gap: 24px; }
.zimmerart.gespiegelt .zimmerart-bild { grid-column: 6 / 13; }
.zimmerart.gespiegelt .zimmerart-text { grid-column: 1 / 6; }
.zimmerart h2 { font-size: 3.5rem; line-height: 1.02; }
.zimmerart .wp-block-buttons { margin-top: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.flur-tuer .flur-bild, .raum .raum-bild { transition: transform .8s var(--kurve); }
	.flur-tuer:has(a:hover, a:focus-visible) .flur-bild,
	.raum:has(a:hover, a:focus-visible) .raum-bild { transform: scale(1.05); }
}
@media (max-width: 900px) {
	.flur { display: flex; gap: 24px; justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--rand)); padding-inline: var(--rand); }
	.flur-tuer { flex: none; scroll-snap-align: start; }
	.flur-tuer .tuer { width: 180px; height: 320px; }
	.flur-tuer::before { width: 220px; }
	.flur-name { font-size: 1.625rem; }
	.zimmerart { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
	.zimmerart > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
	.zimmerart h2 { font-size: 2.5rem; }
}

/* ---------- Haus (Figma 21:2) ---------- */

.abschnitt.haus-kopf { padding-block: 48px 96px; }
.haus-tuer { display: grid; grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr); column-gap: 48px; align-items: start; }
.haus-titel {
	grid-column: 1 / 4;
	grid-row: 1;
	display: grid;
	grid-template-columns: subgrid;
	position: relative;
	z-index: 1;
	font-size: 6rem;
	line-height: .98;
	letter-spacing: -.015em;
	pointer-events: none;
}
.haus-titel .haelfte.links { grid-column: 1; text-align: right; margin-top: 120px; }
.haus-titel .haelfte.rechts { grid-column: 3; text-align: left; margin-top: 330px; }
.haus-tuer-bild { grid-column: 2; grid-row: 1; position: relative; width: 300px; height: 620px; overflow: hidden; display: flex; justify-content: center; }
.haus-tuer-bild .tuer-bild { flex: none; height: 100%; width: auto; aspect-ratio: 16 / 9; margin: 0; }
.haus-tuer-bild .tuer-bild img { width: 100%; height: 100%; object-fit: cover; }
.haus-tuer-bild .ki-label { right: 50%; transform: translateX(50%); }
.haus-schwelle { width: 420px; max-width: 100%; margin-inline: auto; }
.haus-lead { max-width: 34em; margin: 32px auto 0; text-align: center; }
@media (max-width: 900px) {
	.haus-tuer { display: flex; flex-direction: column; align-items: center; gap: 28px; }
	.haus-titel { display: block; font-size: 3.25rem; line-height: 1; text-align: center; }
	.haus-titel .haelfte { display: inline; margin: 0 !important; }
	.haus-tuer-bild { width: 240px; height: 480px; }
	.haus-schwelle { width: 300px; }
}

.zitat-abschnitt .is-style-zitat-gross {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	max-width: 1040px;
	margin: 0 auto;
	padding: 0;
	border: 0;
	text-align: center;
}
.zitat-abschnitt .is-style-zitat-gross::before { content: ""; display: block; width: 120px; height: 4px; background: var(--messing); }
.is-style-zitat-gross p { font: 400 3.5rem/1.15 var(--serif); }
.is-style-zitat-gross cite { font-size: 1.0625rem; font-style: normal; font-weight: 600; }
@media (max-width: 900px) {
	.is-style-zitat-gross p { font-size: 2.125rem; }
}

/* ---------- Kontakt (Figma 18:2) ---------- */

.abschnitt.kontakt-abschnitt { display: flex; flex-direction: column; gap: 48px; padding-top: 0; }
/* Spalten mit Mindestbreite statt fester drei: Bei 1440 px drei wie in Figma, ab 1104 px drei, darunter zwei (bis 900 px
   eine, unten). 320 px = längste Adresse „kueche@mondkrug.example“ bei 18 px (231 px) + 2 × 40 px Innenabstand + 2 × 2 px
   Rahmen, aufgerundet; mit festen drei Spalten stand sie bei 992 px 32 px über das Schild (tests/umbruch). */
.schilder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.kontakt-schild { gap: 12px; font-variant-numeric: tabular-nums; }
.kontakt-schild h3 { font-size: 1.875rem; line-height: 1.15; }
.kontakt-schild p + p { margin-top: -4px; }
.abschnitt.anfahrt {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 56px;
}
.anfahrt > h2 { grid-column: 1 / 6; }
.anfahrt > .is-style-lead { grid-column: 7 / 13; }
.wege { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.weg { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 4px solid var(--messing); }
.weg::before { content: ""; width: 32px; height: 32px; background: var(--messing); mask: center / 32px 32px no-repeat; }
.weg-auto::before { mask-image: url(../zeichen/weg-auto.svg); }
.weg-bahn::before { mask-image: url(../zeichen/weg-bahn.svg); }
.weg-rad::before { mask-image: url(../zeichen/weg-rad.svg); }
.weg-boot::before { mask-image: url(../zeichen/weg-boot.svg); }
.weg h3 { font-size: 1.75rem; line-height: 1.15; }
.abschnitt.anfrage {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 40px;
	align-items: start;
	scroll-margin-top: 16px;
}
.anfrage-kopf { grid-column: 1 / 5; position: sticky; top: 32px; display: flex; flex-direction: column; gap: 24px; }
.anfrage-formular-spalte { grid-column: 6 / 13; }
.demo-hinweis { padding: 14px 18px; background: var(--schilf); font-size: 1rem; }
.pflicht-hinweis { color: var(--rauch); font-size: .9375rem; }
@media (max-width: 900px) {
	.schilder, .wege { grid-template-columns: minmax(0, 1fr); }
	.abschnitt.anfahrt, .abschnitt.anfrage { grid-template-columns: minmax(0, 1fr); }
	.abschnitt.anfahrt > *, .abschnitt.anfrage > * { grid-column: 1 / -1 !important; }
	.abschnitt.anfahrt { row-gap: 28px; }
	.anfrage-kopf { position: static; }
}

/* ---------- Anfrageformular (Contact Form 7 ohne eigenes CSS und JS, inc/formular.php; Vorlage .formular) ---------- */

.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; }
form.anfrage-formular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; }
form.anfrage-formular > .breit, form.anfrage-formular > .wpcf7-response-output { grid-column: 1 / -1; }
.formular-feld { display: flex; flex-direction: column; gap: 8px; }
.formular-feld > label { font-size: 1rem; font-weight: 600; line-height: 1.6; }
.feld-hinweis { color: var(--rauch); font-size: .9375rem; line-height: 1.6; }
.formular-feld .wpcf7-form-control-wrap { display: flex; flex-direction: column; gap: 8px; }
.anfrage-formular :where(input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea) {
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 16px;
	border: 1.5px solid var(--rauch);
	border-radius: 0;
	background: var(--weiss);
	color: var(--ochsenblut);
	font: 400 1.125rem/1.6 var(--sans);
}
.anfrage-formular textarea { min-height: 168px; resize: vertical; }
.anfrage-formular select {
	appearance: none;
	padding-right: 48px;
	background: var(--weiss) url(../zeichen/winkel.svg) right 16px center / 20px 20px no-repeat;
	cursor: pointer;
}
.anfrage-formular :is(input, select, textarea).wpcf7-not-valid { border-color: var(--krapp); box-shadow: inset 0 0 0 1px var(--krapp); }
.anfrage-formular .wpcf7-not-valid-tip,
.anfrage-formular .wpcf7-response-output {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	color: var(--krapp);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
}
.anfrage-formular .wpcf7-not-valid-tip::before,
.anfrage-formular .wpcf7-response-output::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	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; background: var(--leinen); }
.anfrage-formular.init .wpcf7-response-output,
.anfrage-formular .wpcf7-response-output:empty { display: none; }
/* Erfolg in Ochsenblut auf Schilf (CorporateDesign.md, Abschnitt Farben). */
.anfrage-formular.sent .wpcf7-response-output { border-color: var(--ochsenblut); background: var(--schilf); color: var(--ochsenblut); }
.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; font-size: 1rem; line-height: 1.6; }
.formular-honigtopf { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formular-absenden .wpcf7-submit { min-height: 52px; padding: 0 26px; }
.pflicht { color: inherit; }
@media (max-width: 900px) {
	form.anfrage-formular { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Start (Figma 9:2, mobil 28:2) ---------- */

/* Szene 1: Auftakt mit Tür. --seite-tuer ist der seitliche Anschnitt des Bildes in der Tür (300 von 1173 px). */
.abschnitt.auftakt { padding-block: 40px 64px; }
.auftakt-raster {
	--side: 37.2%;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr);
	column-gap: 48px;
	align-items: start;
}
.auftakt-titel {
	grid-column: 1 / 4;
	grid-row: 1;
	display: grid;
	grid-template-columns: subgrid;
	align-items: start;
	position: relative;
	z-index: 1;
	font-size: 6rem;
	line-height: .98;
	letter-spacing: -.015em;
	pointer-events: none;
}
.auftakt-titel .haelfte.links { grid-column: 1; text-align: right; margin-top: 96px; }
.auftakt-titel .haelfte.rechts { grid-column: 3; text-align: left; margin-top: 300px; }
.auftakt-tuer { grid-column: 2; grid-row: 1; position: relative; width: 300px; height: 660px; }
.auftakt-bild {
	position: absolute;
	top: 0;
	left: 50%;
	width: 1173px;
	height: 660px;
	margin-left: -586.5px;
	clip-path: inset(0 var(--side) 0 var(--side));
}
.auftakt-bild .tuer-bild { width: 100%; height: 100%; margin: 0; }
.auftakt-bild .tuer-bild img { width: 100%; height: 100%; object-fit: cover; }
.auftakt-bild .ki-label { right: calc(var(--side) + 16px); }
/* Das Bild mit KI-Label liegt über der Fläche der Bühne (c2d2p#67): .ki-bild ist als Container ein eigener
   Stapelkontext, das Label darin käme sonst nicht über den Canvas. Das Poster selbst blendet naventec-motion aus. */
.buehne > .ki-bild { z-index: 1; }
.auftakt-text { grid-column: 1; grid-row: 1; align-self: end; justify-self: end; max-width: 400px; padding-bottom: 4px; text-align: right; }
.auftakt-text .is-style-lead { font-size: 1.1875rem; }
.auftakt-knoepfe { grid-column: 3; grid-row: 1; align-self: end; flex-direction: column; align-items: flex-start; padding-bottom: 4px; }
.auftakt-schwelle { width: 420px; margin-inline: auto; }

/* Szene 2: drei Türen. */
.raeume-abschnitt > .abschnitt-kopf .is-style-lead { max-width: 30em; }
.raeume {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 48px;
	row-gap: 72px;
	justify-items: center;
	margin-top: 80px;
}
.raum { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.raum .tuer { position: relative; display: block; width: 300px; height: 600px; overflow: hidden; }
.raum .tuer .raum-bild { position: absolute; top: 0; left: 50%; width: 800px; height: 600px; margin: 0 0 0 -400px; }
.raum .tuer .raum-bild img { width: 100%; height: 100%; object-fit: cover; }
.raum .tuer .ki-label { right: 50%; transform: translateX(50%); }
.raum::before { content: ""; order: 1; display: block; width: 360px; max-width: 100%; height: 4px; margin-top: -16px; background: var(--messing); }
.raum > .tuer { order: 0; }
.raum > :not(.tuer) { order: 2; }
.raum h3 { margin-top: 32px; font-size: 2.5rem; line-height: 1.05; }
.raum > p:not(.weiter) { max-width: 20em; }

/* Szene 3: Atempause auf Schilf. */
.abschnitt.atempause { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.atempause-bild { width: min(100%, 880px); }
.atempause h2 { margin-top: 24px; }
.atempause > p:not(.weiter) { max-width: 36em; }

/* Szene 4: Abend mit Arrangements. */
.abschnitt.abend { position: relative; padding-block: 24px 128px; }
.abend-tag { position: absolute; inset: 0; background: var(--schilf); opacity: 0; pointer-events: none; }
.abend > :not(.abend-tag) { position: relative; }
.abend .horizont { width: 720px; height: 250px; }
.abend .horizont .mond { width: 200px; margin-left: -100px; }
.abend-kopf { position: relative; z-index: 1; margin-top: 56px; } /* über der Fläche der Bühne (c2d2p#67) */
.abend-kopf .is-style-lead { max-width: 32em; }
.abend .arrangements-liste { margin-top: 72px; }
.abend .arrangements-liste .wp-block-post-template { row-gap: 56px; }
.abend .arrangement-karten.versetzt > li:nth-child(2) { margin-top: 0; }
.abend > .wp-block-buttons { margin-top: 64px; }

/* Szene 5: Anfrage unter dem vollen Mond. */
.abschnitt.start-anfrage { display: flex; flex-direction: column; align-items: center; gap: 32px; padding-block: 96px 128px; text-align: center; }
.anfrage-mond { width: 240px; }
.start-anfrage h2 { margin-top: 8px; }
.start-anfrage .is-style-lead { max-width: 32em; }
.anfrage-schwelle { width: 720px; max-width: 100%; margin-top: 24px; }

@media (max-width: 900px) {
	.abschnitt.auftakt { padding-block: 40px 64px; }
	.auftakt-raster { --side: 35.9%; display: flex; flex-direction: column; align-items: center; gap: 28px; }
	.auftakt-titel { display: block; align-self: stretch; text-align: left; font-size: 3.25rem; line-height: 1; letter-spacing: -.015em; }
	.auftakt-titel .haelfte { display: inline; margin: 0 !important; }
	.auftakt-titel br { display: none; }
	.auftakt-tuer { order: 2; width: 260px; height: 520px; }
	.auftakt-bild { width: 924px; height: 520px; margin-left: -462px; }
	.auftakt-text { order: 3; justify-self: auto; align-self: auto; max-width: none; text-align: center; }
	.auftakt-knoepfe { order: 4; align-items: center; align-self: center; }
	.auftakt-schwelle { width: 300px; margin-top: 28px; }
	.raeume { grid-template-columns: minmax(0, 1fr); }
	.abend .horizont { height: 190px; }
	.abend .horizont .mond { width: 150px; margin-left: -75px; }
	.anfrage-mond { width: 180px; }
}

/* ---------- Suche, 404, Archiv (ohne Figma-Frame) ---------- */

.fehlerseite { padding-top: 48px !important; }
.fehlerseite .seitentitel { margin-top: 24px; }
.fehlerseite .seiten-suche { width: min(100%, 560px); text-align: left; }
.fehlerseite .seiten-suche .wp-block-search__label { color: var(--leinen); }
.nacht .suche .wp-block-search__input { border-color: var(--leinen); }
.nacht .suche .wp-block-search__button { border-color: var(--leinen); background: var(--leinen); color: var(--ochsenblut); }
.nacht .suche .wp-block-search__button:hover { border-color: var(--messing-hell); background: var(--messing-hell); color: var(--ochsenblut); }
.such-hinweis { color: var(--rauch); }
.nacht .such-hinweis { color: var(--leinen); }
.suchkopf .seiten-suche { width: min(100%, 720px); text-align: left; }
.abschnitt.treffer { padding-bottom: 112px; }
.treffer-liste { max-width: 880px; margin-inline: auto; border-bottom: 1px solid var(--schilf); }
.treffer-liste .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.treffer-liste .wp-block-post-template > li { padding: 28px 0; border-top: 1px solid var(--schilf); }
/* .treffer-liste davor: sonst gewann .abschnitt h2 (64 px, gastro#3). */
.treffer-liste .treffer-titel { margin: 0 0 8px; font-size: 2.5rem; line-height: 1.1; }
.treffer-titel a { color: var(--ochsenblut); text-decoration: none; }
.treffer-titel a:hover { color: var(--krapp); }
.treffer-auszug p { max-width: 42rem; }
.keine-treffer { display: flex; flex-direction: column; gap: 16px; padding: 28px 0 40px; border-top: 1px solid var(--schilf); }
.wp-block-query-pagination { margin-top: 32px; font-weight: 600; }
.wp-block-query-pagination a { display: inline-flex; align-items: center; min-height: 44px; }
.suchkopf:has(+ .treffer .keine-treffer) .such-hinweis { display: none; }
@media (max-width: 900px) {
	.inhalt .treffer-titel { font-size: 1.75rem !important; } /* gegen .inhalt h2 (40 px), gastro#3 */
}

/* ---------- Schrift wächst mit der Spalte (gastro#3) ---------- */

/* Die festen Designgrößen galten auch in Spalten, die schmaler sind als das längste Wort: Die Wörter liefen über
   (Hero-Hälften 96 px bei 901–1280, Zweispalter bei 901–1100) oder brachen im Wort um (Arrangement-Titel, dort setzt der
   Core word-break), mobil ragten Titel aus der Spalte („Suchergebnisse“ bis 412 px). Muster wie
   naventec-gmbh/demos/mittelstand!17: Die Spalte ist Container, die Schrift ist höchstens Spalte ÷ k und nie größer
   als die Designgröße (die erste Zahl im min(), wie in der Regel oben). k = längstes Wort des Datensatzes in em (das Wort
   steht im Kommentar) plus 0,15 em, aufgerundet: Gesetzt braucht ein Wort bis 0,13 em mehr als seine Textbreite. Young
   Serif hat mobil und am Desktop dieselben Maße. Ist der Titel selbst Raster-Element, steht die Spanbreite aus dem
   12er-Raster in der Formel (Spalten-Abstand 24 px). Bei 1440 px bleibt alles gleich. Mobil werden die Seitentitel
   schon bei 390 px etwas kleiner (52 → 49 px), weil „Arrangements“ dort breiter ist als die Spalte.
   Wird ein Wort länger, meldet es tests/umbruch; dann k anpassen. */
@media (min-width: 901px) {
	.auftakt-raster, .haus-tuer, .text-bild-text, .zimmerart-text, .abschnitt.zweispaltig, .arrangement-raster, .anfrage-kopf, .fragen-kopf { container-type: inline-size; }
	/* Hälfte neben der Tür: (Raster − 300 px Tür − 2 × 48 px Abstand) / 2, also (100cqi − 396px) / (2 × k). */
	.auftakt-titel { font-size: min(6rem, (100cqi - 396px) / 9.4); }                      /* Fährsteg, 4,52 */
	.haus-titel { font-size: min(6rem, (100cqi - 396px) / 8.8); }                         /* Fährsteg 4,25 */
	.text-bild-text h2 { font-size: min(4rem, 100cqi / 6.8); }                            /* Dämmersees 6,59 */
	.zimmerart-text h2 { font-size: min(3.5rem, 100cqi / 7.8); }                          /* Gartenzimmer 7,59 */
	.zweispaltig > h2 { font-size: min(3.5rem, ((100cqi - 264px) * 5 / 12 + 96px) / 7.5); } /* span 5, Arrangements 7,27 */
	.arrangement-titel { font-size: min(5.5rem, ((100cqi - 264px) * 7 / 12 + 144px) / 6.5); } /* span 7, Winterstube 6,31 */
	.anfrage-kopf h2 { font-size: min(4rem, 100cqi / 4.4); }                              /* Anfrage 4,16 */
	.fragen-kopf h2 { font-size: min(4rem, 100cqi / 5.8); }                               /* Restaurant 5,63 */
}
@media (max-width: 900px) {
	/* Eine Spalte; !important wie die mobilen Größen in „Gemeinsam“, gegen die diese Regeln ankommen müssen. */
	.abschnitt.seitenanfang, .fehlerseite, .zimmerart-text, .abschnitt.zweispaltig, .arrangement-raster, .abend-kopf, .abschnitt.atempause { container-type: inline-size; }
	.inhalt .seitentitel { font-size: min(3.25rem, 100cqi / 7.3) !important; }           /* Arrangements 7,07 */
	.inhalt .suchkopf .seitentitel { font-size: min(3.25rem, 100cqi / 7.7) !important; } /* Suchergebnisse 7,52 */
	.inhalt .zimmerart-text h2 { font-size: min(2.5rem, 100cqi / 7.8) !important; }      /* Gartenzimmer 7,59 */
	.inhalt .zweispaltig > h2 { font-size: min(2.5rem, 100cqi / 7.5) !important; }       /* Arrangements 7,27 */
	.inhalt .arrangement-titel { font-size: min(3.25rem, 100cqi / 6.5) !important; }     /* Winterstube 6,31 */
	.inhalt .abend-kopf h2 { font-size: min(2.75rem, 100cqi / 7.5) !important; }         /* Arrangements 7,32 */
	.inhalt .atempause h2 { font-size: min(2.75rem, 100cqi / 7.3) !important; }          /* Familienhand 7,08 */
}
