/* haus-kaufen-duesseldorf.de – Motiv „Der Hausschnitt“: ein Haus im Querschnitt wie auf einem Bauplan.
   Vier Etagen = vier Kaufschritte (Keller Finanzierung, Erdgeschoss Besichtigung, Obergeschoss Prüfung, Dach Notar und Schlüssel).
   Schriften lokal (SIL OFL 1.1), keine Abrufe bei Dritten. Eine Hintergrundfarbe für die ganze Seite (iPhone-Safari). */

@font-face { font-family: "Schibsted"; src: url("/assets/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("/assets/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("/assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --grund: #EEF0EA;        /* Seitenhintergrund, gleich theme-color */
  --flaeche: #F8F9F5;      /* Papier des Plans: Kästen, Formular */
  --flaeche-2: #E3E8DF;
  --tinte: #22302A;
  --tinte-2: #4A5951;
  --gruen: #2F6B4F;
  --gruen-tief: #22513B;
  --gruen-hell: #D6E4D9;
  --dach: #A4452C;
  --licht: #F3DE93;        /* Fensterlicht einer beleuchteten Etage */
  --licht-stark: #EFC85A;
  --linie: #C3CBBF;
  --gelb: #F5D64E;         /* gelbe Stellen (Inhaberentscheidung) */
  --kopf-h: 4.25rem;
  --sans: "Schibsted", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --rand: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 1rem); background: var(--grund); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 400 1.0625rem/1.66 var(--sans); font-kerning: normal; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--gruen-tief); text-decoration-color: var(--gruen); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--tinte); text-decoration-color: var(--dach); }
:focus-visible { outline: 3px solid var(--dach); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--licht); color: var(--tinte); }

h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -.022em; margin: 0 0 .55em; text-wrap: balance; color: var(--tinte); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.3rem); letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); max-width: 26ch; }
h3 { font-size: 1.25rem; letter-spacing: -.012em; line-height: 1.2; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .45em; }
strong, b { font-weight: 700; }
.huelle { max-width: 75rem; margin: 0 auto; padding: 0 var(--rand); }
.lesen { max-width: 42rem; }
.huelle.lesen { max-width: 75rem; }
.huelle.lesen > * { max-width: 42rem; }
.huelle.lesen > h2 { max-width: 26ch; }
.huelle.lesen > .tabelle-huelle, .huelle.lesen > .raeume { max-width: none; }
.leise { color: var(--tinte-2); font-size: .95rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.offen { background: var(--gelb); color: var(--tinte); padding: .05em .3em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; font-size: .95em; }
.platzhalter { border-left: 3px dashed var(--linie); padding-left: 1rem; color: var(--tinte-2); }

/* Höhenkote als Abschnittsmarke: kleines Dreieck wie auf dem Schnittplan, Text in normaler Schreibweise */
.kicker { display: flex; align-items: center; gap: .55rem; font: 500 .9375rem/1.35 var(--mono); color: var(--gruen-tief); margin: 0 0 .85rem; }
.kicker::before { content: ""; flex: none; width: .8rem; height: .5rem; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); }

.sprung { position: absolute; left: -999px; top: .5rem; background: var(--tinte); color: var(--flaeche); padding: .6rem 1rem; z-index: 100; }
.sprung:focus { left: 1rem; }
.entwurf { background: var(--gelb); color: var(--tinte); font: 500 .875rem/1.4 var(--mono); text-align: center; padding: .45rem var(--rand); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--grund); border-bottom: 1px solid var(--linie); }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--kopf-h); }
.marke { display: flex; align-items: center; gap: .7rem; min-height: 2.75rem; text-decoration: none; color: var(--tinte); font: 500 .95rem/1.1 var(--sans); }
.marke:hover { color: var(--tinte); }
.marke b { display: block; font-weight: 700; font-size: 1.15rem; letter-spacing: -.015em; }
.marke-zeichen { width: 2.35rem; height: 2.35rem; flex: none; background: url("/assets/img/zeichen.svg") center / contain no-repeat; }
.menue { display: flex; align-items: center; gap: .25rem 1.4rem; }
.menue a { color: var(--tinte); text-decoration: none; font-weight: 500; font-size: 1rem; padding: .35rem 0; white-space: nowrap; }
.menue a:hover { color: var(--gruen-tief); }
.menue a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gruen); text-decoration-thickness: 2px; text-underline-offset: .4em; }
.menue-schalter { display: none; }
.fortschritt { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--gruen) 0 calc(var(--fortschritt, 0) * 100%), transparent 0); }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.35rem; border-radius: 4px;
  background: var(--gruen); color: #fff; font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 2px solid var(--gruen); transition: background .2s, border-color .2s, color .2s; }
.knopf:hover { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.knopf.hell { background: transparent; color: var(--tinte); border-color: var(--tinte); }
.knopf.hell:hover { background: var(--tinte); color: var(--flaeche); }
.knopf.klein { min-height: 2.6rem; padding: .45rem 1.05rem; font-size: .95rem; }
.menue .knopf.klein, .menue .knopf.klein:hover { color: #fff; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .7rem; }
.aufruf { margin: 2rem 0 0; }
.aufruf .leise a { font-weight: 700; }

/* ---------- Startbühne: Text links, Haus rechts (klebt, solange die vier Schritte laufen) ---------- */
.buehne { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1rem, 3vw, 2rem); }
.buehne-raster { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); column-gap: clamp(2rem, 5vw, 5rem); }
.buehne-titel { grid-column: 1; grid-row: 1; }
.buehne-titel h1 { max-width: 12ch; margin-bottom: .4em; }
.buehne-text { grid-column: 1; grid-row: 2; padding-bottom: clamp(2.5rem, 8vh, 5rem); }
.buehne .unterzeile { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--tinte-2); max-width: 36rem; }
.buehne-haus { grid-column: 2; grid-row: 1 / span 3; }
.buehne-haus .hs-figur { position: sticky; top: calc(var(--kopf-h) + 1rem); }
.etagen { grid-column: 1; grid-row: 3; }
.etagen > h2 { margin-bottom: .5em; }
.etagen-liste { list-style: none; padding: 0; margin: 2rem 0 0; }
.etage-schritt { margin: 0; padding: 1.6rem 0 2.2rem; border-top: 1px solid var(--linie); min-height: 46vh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.etage-schritt:last-child { min-height: 40vh; }
.etage-schritt h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: .5em; }
.etage-schritt p { max-width: 38rem; }
.schritt-marke { font: 500 .9375rem/1.3 var(--mono); color: var(--tinte-2); margin: 0 0 .7rem; display: flex; align-items: center; gap: .7rem; }
.schritt-marke b { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 2px solid var(--tinte); border-radius: 50%; font-weight: 600; color: var(--tinte); }
.etage-schritt .mini { display: none; }

/* ---------- Der Hausschnitt (SVG) ---------- */
.hs-figur { margin: 0; }
.hs-figur figcaption { font-size: .95rem; color: var(--tinte-2); margin-top: .4rem; max-width: 30rem; }
.hs-figur figcaption b { font: 600 .9375rem/1 var(--mono); color: var(--gruen-tief); margin-right: .35rem; }
.hs { display: block; width: 100%; height: auto; overflow: visible; max-height: calc(100vh - var(--kopf-h) - 5rem); }
.hs .z { fill: none; stroke: var(--tinte); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hs .wand, .hs .decke { stroke-width: 8; stroke-linecap: butt; }
.hs .dachlinie { stroke: var(--dach); stroke-width: 10; stroke-linecap: butt; stroke-linejoin: miter; }
.hs .kamin { stroke: var(--dach); stroke-width: 6; stroke-linecap: butt; }
.hs .gelaende { stroke-width: 3; }
.hs .leiter { stroke-width: 2; }
.hs .baum .z { stroke: var(--gruen); }
.hs .schraffur-linie { stroke: var(--tinte); stroke-width: 1.3; opacity: .32; }
.hs .keller-grund { fill: var(--grund); }
.hs .licht { fill: var(--licht); opacity: 0; transition: opacity .6s ease, fill .6s ease; }
.hs .fenster { fill: var(--flaeche); stroke: var(--tinte); stroke-width: 2.4; transition: fill .6s ease; }
.hs .tuer { fill: var(--flaeche); stroke: var(--tinte); stroke-width: 2.4; }
.hs .griff { fill: var(--tinte); }
.hs .schluessel { fill: none; stroke: var(--dach); stroke-width: 3.2; stroke-linecap: round; opacity: 0; transition: opacity .5s ease .3s, transform .6s cubic-bezier(.2, 1.5, .4, 1) .3s; transform: translateY(-10px); }
.hs .hs-code { font: 500 15px var(--mono); fill: var(--tinte-2); }
.hs .hs-name { font: 700 20px var(--sans); fill: var(--tinte); letter-spacing: -.01em; }
.hs .hs-nr circle { fill: var(--grund); stroke: var(--tinte); stroke-width: 2; transition: fill .5s ease; }
.hs .hs-nr text { font: 600 16px var(--mono); fill: var(--tinte); }
.hs .hs-fuehrung { fill: none; stroke: var(--tinte); stroke-width: 1.2; stroke-dasharray: 3 4; opacity: .55; }
.hs .hs-titel { font: 500 14px var(--mono); fill: var(--tinte-2); }
.hs .etage { --x: 0px; --hub: 0px; transform: translate(var(--x), calc(var(--auf, 0) * var(--hub))); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.hs .e-eg { --hub: -8px; }
.hs .e-og { --hub: -18px; }
.hs .e-dg { --hub: -32px; }

/* Startseite: data-stufe = Zahl der erreichten Schritte. Erreichte Etagen grün, die aktuelle Etage im warmen Licht und herausgezogen. */
.hs[data-stufe="2"] .e-kg .licht, .hs[data-stufe="3"] .e-kg .licht, .hs[data-stufe="3"] .e-eg .licht,
.hs[data-stufe="4"] .e-kg .licht, .hs[data-stufe="4"] .e-eg .licht, .hs[data-stufe="4"] .e-og .licht { fill: var(--gruen-hell); opacity: 1; }
.hs[data-stufe="1"] .e-kg .licht, .hs[data-stufe="2"] .e-eg .licht, .hs[data-stufe="3"] .e-og .licht, .hs[data-stufe="4"] .e-dg .licht,
.hs[data-aktiv="kg"] .e-kg .licht, .hs[data-aktiv="eg"] .e-eg .licht, .hs[data-aktiv="og"] .e-og .licht, .hs[data-aktiv="dg"] .e-dg .licht { opacity: 1; }
.hs[data-stufe="1"] .e-kg .fenster, .hs[data-stufe="2"] .e-eg .fenster, .hs[data-stufe="3"] .e-og .fenster, .hs[data-stufe="4"] .e-dg .fenster,
.hs[data-aktiv="kg"] .e-kg .fenster, .hs[data-aktiv="eg"] .e-eg .fenster, .hs[data-aktiv="og"] .e-og .fenster, .hs[data-aktiv="dg"] .e-dg .fenster { fill: var(--licht-stark); }
.hs[data-stufe="1"] .e-kg, .hs[data-stufe="2"] .e-eg, .hs[data-stufe="3"] .e-og, .hs[data-stufe="4"] .e-dg,
.hs[data-aktiv="kg"] .e-kg, .hs[data-aktiv="eg"] .e-eg, .hs[data-aktiv="og"] .e-og, .hs[data-aktiv="dg"] .e-dg { --x: 22px; }
.hs[data-stufe="4"] .schluessel, .hs[data-aktiv="dg"] .schluessel { opacity: 1; transform: none; }
.hs[data-stufe="2"] .n1 circle, .hs[data-stufe="3"] .n1 circle, .hs[data-stufe="3"] .n2 circle,
.hs[data-stufe="4"] .n1 circle, .hs[data-stufe="4"] .n2 circle, .hs[data-stufe="4"] .n3 circle { fill: var(--gruen-hell); }
.hs[data-stufe="1"] .n1 circle, .hs[data-stufe="2"] .n2 circle, .hs[data-stufe="3"] .n3 circle, .hs[data-stufe="4"] .n4 circle,
.hs[data-aktiv="kg"] .n1 circle, .hs[data-aktiv="eg"] .n2 circle, .hs[data-aktiv="og"] .n3 circle, .hs[data-aktiv="dg"] .n4 circle { fill: var(--licht-stark); }
html.bewegt .hs:not([data-bereit]) .hs-nr circle { fill: var(--grund); }

/* Kleiner Schnitt neben den Schritten (nur Handy) */
.mini { width: 3.5rem; height: auto; overflow: visible; }
.mini .m-gelaende { stroke: var(--tinte); stroke-width: 1.5; }
.mini .m-etage, .mini .m-dach { fill: var(--flaeche); stroke: var(--tinte); stroke-width: 2; transition: fill .5s ease; }
.mini .m-dach { stroke: var(--dach); }
.mini .m-an .m-etage, .mini .m-an .m-dach { fill: var(--licht-stark); }

/* Geschossdecke als Trenner: schraffierte Platte, optional mit Höhenkote */
.decke-trenner { display: flex; align-items: center; gap: 1rem; padding-top: .5rem; padding-bottom: .5rem; }
.decke-trenner .platte { flex: 1; height: 14px; border-top: 2px solid var(--tinte); border-bottom: 2px solid var(--tinte);
  background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(34, 48, 42, .32) 6px 7.5px); }
.decke-trenner .kote { font: 500 .9375rem/1 var(--mono); color: var(--tinte-2); }

/* Seitenkopf der Unterseiten */
.seitenkopf { padding: clamp(1.8rem, 5vw, 3.8rem) 0 1.5rem; }
.seitenkopf .huelle { display: grid; gap: 2rem; }
.seitenkopf h1 { max-width: 17ch; font-size: clamp(2.15rem, 4.6vw, 3.7rem); }
.seitenkopf .kopfbild { max-width: 27rem; justify-self: center; width: 100%; }
.kopfbild .aufruf { margin-top: 1.2rem; }
.seitenkopf .hs-seite .hs { max-height: 30rem; }
.pfad { font: 500 .9rem/1.4 var(--mono); color: var(--tinte-2); margin-bottom: 1.3rem; }
.pfad a { color: var(--tinte-2); }
.unterzeile { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--tinte-2); max-width: 42rem; }
.kurz { max-width: 44rem; margin: 1.6rem 0 1.1rem; padding: 1.1rem 1.3rem 1.15rem; background: var(--flaeche); border: 1px solid var(--linie); border-top: 4px solid var(--gruen); border-radius: 0 0 6px 6px; }
.kurz p { margin: 0; font-size: 1.08rem; }
.kurz .kurz-marke { font: 600 .9375rem/1 var(--mono); color: var(--gruen-tief); margin-bottom: .55rem; }
.stand { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font: 400 .875rem/1.45 var(--mono); color: var(--tinte-2); margin: 0; }

/* Abschnitte */
.abschnitt { padding: clamp(2.2rem, 5vw, 3.8rem) 0; }
.abschnitt h2 + .lesen, .abschnitt h2 + p { margin-top: .2rem; }
.lesen h3 { margin-top: 1.6em; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.zwei, .drei { margin: 1.4rem 0 1.6rem; }
.merk { padding-left: 1.2rem; max-width: 42rem; }
.merk li::marker { color: var(--gruen); }
.merk.haken { list-style: none; padding-left: 0; }
.merk.haken li { position: relative; padding-left: 2rem; }
.merk.haken li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.05rem; height: 1.05rem; border: 2px solid var(--tinte); border-radius: 2px; background: var(--flaeche); }
.raum .merk.haken { margin: .4rem 0 0; }
.raum .merk.haken li { font-size: 1rem; margin-bottom: .35em; }
.hinweis { background: var(--flaeche); border-left: 4px solid var(--dach); padding: 1rem 1.2rem; margin: 1.4rem 0; max-width: 44rem; }
.hinweis p:last-child { margin: 0; }
.zahl-gross { display: block; font: 600 clamp(1.8rem, 4vw, 2.6rem)/1 var(--sans); color: var(--gruen-tief); letter-spacing: -.03em; margin-bottom: .45rem; }

/* Räume: Vergleichsfelder wie Räume im Grundriss (Wandstärke, Raumname oben links) */
.raeume { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 0; margin: 1.6rem 0; border: 4px solid var(--tinte); background: var(--flaeche); }
.raum { padding: 1.2rem 1.25rem 1.3rem; border: 2px solid var(--tinte); margin: -1px; }
.raum h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.raum p { margin: 0 0 .6rem; font-size: 1rem; }
.raum p:last-child { margin-bottom: 0; }
.raum .raum-name { font: 500 .9rem/1.3 var(--mono); color: var(--tinte-2); margin-bottom: .4rem; }
.raum .raum-zahl { font-size: .95rem; color: var(--tinte-2); margin-bottom: .5rem; }

/* Rechner: Planblatt mit Kopf, Eingabe und Ergebnis */
.rechner { border: 3px solid var(--tinte); background: var(--flaeche); margin: 1.6rem 0; max-width: 52rem; }
.rechner-kopf { padding: 1.2rem 1.3rem .4rem; border-bottom: 1px solid var(--linie); }
.rechner-kopf h3 { font-size: 1.3rem; }
.rechner-feld { padding: 1.1rem 1.3rem; display: grid; gap: .5rem; max-width: 30rem; }
.rechner-feld label { font-weight: 700; display: flex; align-items: flex-end; min-height: 2.75rem; }
.rechner-feld input { font: 500 1.15rem/1.3 var(--sans); padding: .7rem .85rem; min-height: 3rem; border: 1.5px solid #8C988F; border-radius: 4px; background: #fff; color: var(--tinte); }
.rechner-feld input:focus { border-color: var(--gruen); outline: none; box-shadow: 0 0 0 3px var(--gruen-hell); }
.rechner-feld .knopf { justify-self: start; cursor: pointer; }
.rechner-feld .leise { margin: 0; }
.rechner-ergebnis { padding: 0 1.3rem; }
.rechner-ergebnis:not(:empty) { padding-bottom: 1.2rem; }
.rechner-summe { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; border-top: 4px solid var(--gruen); padding-top: .8rem; margin: 0; }
.rechner-summe b { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }

/* Tabellen */
.tabelle-huelle { overflow-x: auto; margin: 1.4rem 0; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--flaeche); font-size: 1rem; border: 1px solid var(--linie); }
.tabelle caption { caption-side: bottom; text-align: left; padding: .7rem .2rem 0; font-size: .9rem; color: var(--tinte-2); }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--linie); }
.tabelle thead th { font-weight: 700; font-size: .95rem; background: var(--tinte); color: var(--flaeche); }
.tabelle tbody th { font-weight: 700; }
.tabelle tr:last-child th, .tabelle tr:last-child td { border-bottom: 0; }

/* Fragen */
.fragen { margin: 1.2rem 0; max-width: 48rem; border-top: 1px solid var(--tinte); }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary { -webkit-tap-highlight-color: transparent; cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 0; font-weight: 700; position: relative; min-height: 2.75rem; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: .2rem; top: .85rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; font: 500 1.25rem/1 var(--mono); color: var(--gruen-tief); border: 1.5px solid var(--gruen); border-radius: 50%; transition: transform .2s; }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen summary:hover { color: var(--gruen-tief); }
.fragen .antwort { padding: 0 0 1.15rem; max-width: 44rem; }
.fragen .antwort p { margin: 0; }
.faq-verzeichnis a { white-space: nowrap; }

/* Weiterlesen, Quellen */
.weiter-liste { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.4rem 1.6rem; }
.weiter-liste li { margin: 0; padding-top: .9rem; border-top: 4px solid var(--tinte); display: grid; gap: .3rem; align-content: start; }
.weiter-liste a { font-weight: 700; font-size: 1.08rem; }
.weiter-liste span { color: var(--tinte-2); font-size: .97rem; }
.quellen { font-size: .9375rem; color: var(--tinte-2); border-top: 1px solid var(--linie); padding-top: 1rem; margin-top: 2rem; max-width: 52rem; }
.quellen a { color: var(--tinte-2); }

/* Ansprechpartner */
.ansprech { display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: start; padding: 1.25rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px; max-width: 34rem; }
.ansprech img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.ansprech p { margin: 0 0 .35rem; }
.ansprech-name { font-weight: 700; font-size: 1.125rem; }
.ansprech-rolle { color: var(--tinte-2); font-size: .95rem; }
.ansprech-tel { font-weight: 700; display: inline-block; padding: .35rem 0; }

/* Anfrageformular: Planblatt mit Schriftfeld */
.anfrage-karte { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border: 3px solid var(--tinte); background: var(--flaeche); }
.anfrage-kopf { background: var(--tinte); color: var(--flaeche); padding: clamp(1.3rem, 3.5vw, 2.4rem); }
.anfrage-kopf h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.anfrage-kopf .kicker { color: var(--licht); }
.anfrage-kopf p { color: #E4E9E1; }
.danach { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: d; display: grid; gap: 1rem; }
.danach li { counter-increment: d; display: grid; grid-template-columns: 2.4rem 1fr; gap: .15rem .85rem; margin: 0; }
.danach li::before { content: counter(d); grid-row: span 2; font: 600 1rem/2.2rem var(--mono); color: var(--tinte); background: var(--licht); border-radius: 50%; width: 2.3rem; height: 2.3rem; text-align: center; }
.danach b { display: block; color: #fff; }
.danach span { color: #D2DAD0; font-size: .97rem; }
.anfrage { padding: clamp(1.3rem, 3.5vw, 2.4rem); }
.anfrage .feld { margin: 0 0 1rem; }
.anfrage label, .anfrage legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.anfrage fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.anfrage input[type=text], .anfrage input[type=tel], .anfrage input[type=email], .anfrage textarea, .anfrage select {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--tinte); background: #fff; border: 1.5px solid #8C988F; border-radius: 4px; padding: .7rem .85rem; min-height: 3rem; }
.anfrage select { appearance: auto; }
.anfrage input:focus, .anfrage textarea:focus, .anfrage select:focus { border-color: var(--gruen); outline: none; box-shadow: 0 0 0 3px var(--gruen-hell); }
.anfrage .feld-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.wahl { display: flex; flex-wrap: wrap; gap: .55rem; }
.wahl label, .anfrage .wahl label { -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; gap: .55rem; min-height: 2.9rem; padding: .45rem 1rem; margin: 0; border: 1.5px solid #8C988F; border-radius: 4px; cursor: pointer; font-weight: 500; background: #fff; }
.wahl input { width: 1.15rem; height: 1.15rem; accent-color: var(--gruen); margin: 0; }
.wahl label:has(input:checked) { border-color: var(--gruen); background: var(--gruen-hell); }
.anfrage .einwilligung label { font-weight: 400; display: grid; grid-template-columns: 1.3rem 1fr; gap: .7rem; align-items: start; font-size: .95rem; }
.anfrage .einwilligung input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--gruen); }
.anfrage button.knopf { cursor: pointer; font-size: 1.05rem; }
.anfrage .versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status[data-stand="fehler"] { color: #9B1C1C; font-weight: 700; }

/* Fuß: Fundament mit schraffiertem Erdreich, gleiche Hintergrundfarbe wie die Seite */
.fuss { margin-top: 2.5rem; padding: 4rem 0 2.5rem; border-top: 3px solid var(--tinte); font-size: .97rem;
  background: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(34, 48, 42, .26) 7px 8.5px) top left / 100% 22px no-repeat, var(--grund); }
.fuss .spalten { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 2rem; }
.fuss h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: .7rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .2rem; }
.fuss li a { display: inline-block; padding: .25rem 0; }
.fuss .klein { margin-top: 2rem; font-size: .9rem; color: var(--tinte-2); max-width: 60rem; }
.querlinks ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* Feste Aufrufleiste am Handy: erst nach dem ersten Bildschirm */
.leiste-unten { display: none; }
@media (max-width: 980px) {
  .leiste-unten { display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem var(--rand) calc(.6rem + env(safe-area-inset-bottom));
    background: var(--grund); border-top: 1px solid var(--linie); box-shadow: 0 -10px 24px -18px rgba(34, 48, 42, .5); transform: translateY(110%); transition: transform .3s ease; }
  .leiste-unten .knopf { flex: 1; min-height: 2.9rem; padding: .5rem .8rem; }
  .leiste-unten .knopf.hell { flex: 0 0 auto; }
  html.leiste-da .leiste-unten { transform: none; }
  html.leiste-da body { padding-bottom: 4.6rem; }
}

/* ---------- Bewegung: nur mit html.bewegt (kern.js) und ohne Wunsch nach reduzierter Bewegung ---------- */
@keyframes hs-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes hs-ein { from { opacity: 0; } to { opacity: 1; } }
@keyframes hs-schalter { 0% { opacity: 0; } 30% { opacity: .85; } 38% { opacity: .2; } 52% { opacity: 1; } 100% { opacity: 1; } }
html.bewegt .hs .z { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: hs-zeichnen 1.15s cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: calc(var(--i, 0) * .3s + .1s); }
html.bewegt .hs text, html.bewegt .hs .fenster, html.bewegt .hs .tuer, html.bewegt .hs .griff, html.bewegt .hs .erde, html.bewegt .hs .hs-nr circle, html.bewegt .hs .hs-fuehrung {
  opacity: 0; animation: hs-ein .5s ease forwards; animation-delay: calc(var(--i, 0) * .3s + .9s); }
html.bewegt .hs .hs-fuehrung { animation-name: hs-fuehrung-ein; }
@keyframes hs-fuehrung-ein { to { opacity: .55; } }
/* Startseite: vor der ersten Messung durch site.js ist alles dunkel; danach folgt das Licht dem Lesen */
html.bewegt .hs:not([data-bereit]) .licht { opacity: 0; }
html.bewegt .hs:not([data-bereit]) .etage { --x: 0px; }
/* Unterseite: das Licht der eigenen Etage geht an, wenn das Haus fertig gezeichnet ist */
html.bewegt .hs[data-aktiv="kg"] .e-kg .licht, html.bewegt .hs[data-aktiv="eg"] .e-eg .licht,
html.bewegt .hs[data-aktiv="og"] .e-og .licht, html.bewegt .hs[data-aktiv="dg"] .e-dg .licht { animation: hs-schalter .9s ease-out 1.9s both; }
html.bewegt .hs[data-aktiv] .etage { transition-delay: 0s; }
html.bewegt .hs[data-aktiv]:not([data-bereit]) .etage { --x: 0px; }
html.bewegt .etage-schritt:not(.an) .m-an .m-etage, html.bewegt .etage-schritt:not(.an) .m-an .m-dach { fill: var(--flaeche); }
@media (prefers-reduced-motion: reduce) {
  html.bewegt .hs .z { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- Breiten ---------- */
@media (min-width: 960px) {
  .seitenkopf .huelle:has(> .motiv), .seitenkopf .huelle:has(> .ansprech) { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); align-items: center; column-gap: clamp(2rem, 5vw, 4.5rem); }
}
@media (max-width: 1080px) {
  .fuss .spalten { grid-template-columns: 1fr 1fr; }
  .drei { grid-template-columns: 1fr 1fr; }
  .menue { gap: .25rem 1rem; }
}
@media (max-width: 980px) {
  :root { --kopf-h: 3.75rem; }
  .menue-schalter { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1rem; border: 2px solid var(--tinte); border-radius: 4px; background: transparent; color: var(--tinte); font: 600 1rem/1 var(--sans); cursor: pointer; }
  .menue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--grund); border-bottom: 2px solid var(--tinte); flex-direction: column; align-items: stretch; padding: .5rem var(--rand) 1.2rem; gap: 0; }
  .menue.offen-menue { display: flex; }
  .menue a { padding: .8rem 0; border-bottom: 1px solid var(--linie); font-size: 1.08rem; }
  .menue .knopf.klein { margin-top: .9rem; min-height: 3rem; }
  .zwei { grid-template-columns: 1fr; }
  .anfrage-karte { grid-template-columns: 1fr; }
}
@media (max-width: 959px) {
  /* Handy: kleines Haus neben der Überschrift, damit das Motiv im ersten Bildschirm steht */
  .buehne-raster { grid-template-columns: minmax(0, 1fr) clamp(7rem, 32vw, 13rem); column-gap: 1rem; }
  .buehne-titel { grid-column: 1; grid-row: 1; align-self: center; }
  .buehne-titel h1 { font-size: clamp(2rem, 8.4vw, 3.2rem); margin-bottom: 0; }
  .buehne-haus { grid-column: 2; grid-row: 1; align-self: center; }
  .buehne-haus .hs-figur { position: static; }
  .buehne-haus figcaption { display: none; }
  .buehne-text { grid-column: 1 / -1; grid-row: 2; padding: 1rem 0 1.5rem; }
  .etagen { grid-column: 1 / -1; grid-row: 3; }
  .hs { max-height: none; }
  .etage-schritt { min-height: 0; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 1rem; padding: 1.4rem 0 1.6rem; }
  .etage-schritt .mini { display: block; grid-row: 1 / span 4; }
  .etage-schritt > :not(.mini) { grid-column: 2; }
  .seitenkopf .kopfbild { max-width: 24rem; justify-self: start; }
}
@media (max-width: 640px) {
  .drei { grid-template-columns: 1fr; }
  .fuss .spalten { grid-template-columns: 1fr; }
  .marke { font-size: .875rem; gap: .55rem; }
  .marke b { font-size: 1.04rem; }
  .marke-zeichen { width: 2.1rem; height: 2.1rem; }
  .anfrage .feld-zeile { grid-template-columns: 1fr; }
  .ansprech { grid-template-columns: 72px 1fr; }
  .ansprech img { width: 72px; height: 72px; }
  .tabelle.stapel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabelle.stapel, .tabelle.stapel tbody, .tabelle.stapel tr, .tabelle.stapel th, .tabelle.stapel td { display: block; width: 100%; }
  .tabelle.stapel { display: flex !important; flex-direction: column; }
  .tabelle.stapel tr { border-bottom: 2px solid var(--flaeche-2); padding: .4rem 0; }
  .tabelle.stapel tbody th { padding-bottom: .2rem; border: 0; }
  .tabelle.stapel td { border: 0; padding-top: .25rem; padding-bottom: .5rem; }
  .tabelle.stapel caption { display: block; width: 100%; padding: .7rem 1rem .2rem; order: 2; }
  .tabelle.stapel td::before { content: attr(data-spalte); display: block; font: 600 .875rem/1.3 var(--mono); color: var(--tinte-2); margin-bottom: .1rem; }
  .knoepfe .knopf { width: 100%; }
  .decke-trenner .kote { display: none; }
}

/* === Cover-Foto (Startseite, 14.11.2026) === */
.cover-foto { position: relative; margin: 0; }
.cover-foto img { display: block; width: 100%; height: clamp(190px, 34vw, 470px); object-fit: cover; object-position: center; }
.cover-foto figcaption { position: absolute; right: .5rem; bottom: .4rem; max-width: calc(100% - 1rem); padding: .15rem .5rem; border-radius: 3px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: .875rem; line-height: 1.4; }
.cover-foto figcaption a { color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }
@media (max-width: 640px) { .cover-foto figcaption { position: static; max-width: none; padding: .3rem 1rem 0; border-radius: 0; background: none; color: inherit; text-align: right; } .cover-foto figcaption a { color: inherit; text-decoration-color: currentColor; } }
/* === Ende Cover-Foto === */
