/* mehrfamilienhaus-kaufen-duesseldorf.de — Motiv „Klingeltableau“: Backstein, Putz, Messing, Fensterlicht.
   Schriften lokal (Source Serif 4 und Schibsted Grotesk, SIL OFL 1.1), keine Abrufe bei Dritten.
   Eine Hintergrundfarbe (Putz) für die ganze Seite, damit iPhone-Safari oben und unten dieselbe Farbe zeigt. */

@font-face { font-family: "Source Serif"; src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/assets/fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@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; }

:root {
  --putz: #F1E9D8;          /* Seitenhintergrund */
  --putz-hell: #FAF6EC;     /* Karten, Felder */
  --putz-tief: #E5D8BE;
  --linie: #CDBA96;
  --ziegel: #8B3426;        /* Backstein: Akzent, Knöpfe (AA auf Putz 6,4:1) */
  --ziegel-tief: #5E2219;
  --tinte: #2D2420;
  --tinte-2: #5A4B42;
  --messing: #B8913F;
  --messing-tief: #7A5A1A;  /* Messington als Schrift (AA auf Putz 5,3:1) */
  --messing-platte: linear-gradient(158deg, #E9D296 0%, #CDA757 34%, #B48C3A 58%, #D7BB77 82%, #C29B4C 100%);
  --schild: #F6F0DF;        /* Elfenbein-Namensschild */
  --nacht: #2B3540;         /* dunkles Fensterglas */
  --licht: #F3C35A;         /* erleuchtetes Fenster */
  --laden-licht: #F7E2A6;
  --schatten: 0 1px 0 rgba(45, 36, 32, .06), 0 20px 40px -26px rgba(45, 36, 32, .45);
  --kopf-h: 4.5rem;
  --serif: "Source Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted", "Helvetica Neue", Arial, sans-serif;
  --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(--putz); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--putz); color: var(--tinte); font: 400 1.125rem/1.7 var(--serif); font-kerning: normal; font-variant-numeric: lining-nums; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--ziegel); text-decoration-thickness: .07em; text-underline-offset: .2em; }
a:hover { color: var(--ziegel-tief); text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--ziegel); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--licht); color: var(--tinte); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .55em; text-wrap: balance; color: var(--tinte); }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); font-weight: 700; letter-spacing: -.022em; line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.3rem); }
h3 { font-size: 1.28rem; line-height: 1.25; margin-top: 1.6em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .4em; }
strong, b { font-weight: 600; }
.huelle { max-width: 76rem; margin: 0 auto; padding: 0 var(--rand); }
.lesen { max-width: 42rem; }
.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: #F7DB6A; color: var(--tinte); padding: .05em .3em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; font: 500 .92em/1.5 var(--sans); }

.sprung { position: absolute; left: -999px; top: .5rem; background: var(--tinte); color: var(--putz-hell); padding: .6rem 1rem; z-index: 100; font-family: var(--sans); }
.sprung:focus { left: 1rem; }
.entwurf { background: var(--putz); color: var(--ziegel-tief); font: 500 .9rem/1.4 var(--sans); text-align: center; padding: .45rem var(--rand); border-bottom: 2px dashed var(--messing); }

/* ---------------- Kopf ---------------- */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--putz); 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: .75rem; min-height: 2.75rem; text-decoration: none; color: var(--tinte); font: 500 .9rem/1.1 var(--sans); letter-spacing: .01em; }
.marke:hover { color: var(--tinte); }
.marke b { display: block; font: 700 1.2rem/1.05 var(--serif); letter-spacing: -.01em; }
.marke-zeichen { position: relative; flex: none; width: 1.7rem; height: 2.3rem; border-radius: 3px; background: var(--messing-platte); box-shadow: inset 0 0 0 1px rgba(94, 71, 24, .55), 0 2px 4px -2px rgba(45, 36, 32, .5); }
.marke-zeichen::before, .marke-zeichen::after { content: ""; position: absolute; left: .38rem; width: .5rem; height: .5rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F7E7B8, #8F6C28 70%); box-shadow: 0 0 0 1px #6E531C; }
.marke-zeichen::before { top: .45rem; }
.marke-zeichen::after { top: 1.3rem; background: radial-gradient(circle at 35% 35%, #FFF1BE, var(--licht) 60%, #C98F1E); }
.menue { display: flex; align-items: center; gap: .2rem 1.15rem; font-family: var(--sans); }
.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(--ziegel); }
.menue a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--messing); text-decoration-thickness: 3px; 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(--messing) 0 calc(var(--fortschritt, 0) * 100%), transparent 0); }

/* ---------------- Knöpfe ---------------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.35rem; border-radius: 4px;
  background: var(--ziegel); color: #FFF8EC; font: 700 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid var(--ziegel); transition: background .2s, border-color .2s, color .2s; }
.knopf:hover { background: var(--ziegel-tief); border-color: var(--ziegel-tief); color: #FFF8EC; text-decoration: none; }
.knopf.hell { background: transparent; color: var(--ziegel); }
.knopf.hell:hover { background: var(--ziegel); color: #FFF8EC; border-color: var(--ziegel); }
.knopf.klein { min-height: 2.6rem; padding: .45rem 1rem; font-size: .95rem; }
.menue .knopf.klein, .menue .knopf.klein:hover { color: #FFF8EC; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 .75rem; }
.aufruf { margin: 2rem 0 0; }
.aufruf .leise { font-family: var(--sans); }
.aufruf .leise a { font-weight: 700; white-space: nowrap; }

/* ---------------- Klingelschild (Kapitelmarke, .kicker) ---------------- */
.kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem; padding: .3rem .7rem .3rem .38rem; border-radius: 4px;
  background: var(--messing-platte); box-shadow: inset 0 0 0 1px rgba(94, 71, 24, .5), 0 3px 8px -5px rgba(45, 36, 32, .6);
  font: 500 .9rem/1.3 var(--sans); color: var(--tinte); letter-spacing: .01em; }
.kicker::before { content: ""; flex: none; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #FFF3C9 0, #D9B565 45%, #8C6A27 100%); box-shadow: 0 0 0 2px #9F7B33, inset 0 -1px 2px rgba(0, 0, 0, .35); }
.kicker { text-wrap: nowrap; }

/* ---------------- Startbühne: Fassade und Klingeltableau ---------------- */
.buehne { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); overflow: clip; }
.buehne > .huelle { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: start; }
.buehne h1 { margin-bottom: .4em; max-width: 13ch; }
.buehne .unterzeile { font-size: clamp(1.15rem, 1.6vw, 1.3rem); max-width: 34rem; color: var(--tinte-2); }
.buehne .aufruf { margin: 1.4rem 0 1.6rem; }
.haus { margin: 0; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .92fr); gap: clamp(.9rem, 2vw, 1.6rem); align-items: center; position: relative; }
.haus .fassade { width: 100%; border-radius: 3px 3px 0 0; filter: drop-shadow(0 24px 26px rgba(45, 36, 32, .22)); }
.tableau-gross { display: grid; gap: .9rem; }
.platte { position: relative; padding: 2.9rem .85rem 1.3rem; border-radius: 6px; background: var(--messing-platte);
  box-shadow: inset 0 0 0 1px rgba(94, 71, 24, .55), inset 0 2px 0 rgba(255, 246, 214, .7), 0 22px 30px -18px rgba(45, 36, 32, .55); }
.sprechgitter { position: absolute; left: 50%; top: .8rem; width: 4.6rem; height: 1.3rem; transform: translateX(-50%); border-radius: 3px;
  background: radial-gradient(circle, #5B4416 0 1.6px, transparent 2.2px) 0 0 / 7px 7px; opacity: .85; }
.schraube { position: absolute; width: .55rem; height: .55rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #F4E2AE, #7E6022 75%); }
.schraube::after { content: ""; position: absolute; left: 15%; right: 15%; top: 45%; height: 1px; background: #4D3A12; transform: rotate(35deg); }
.s1 { left: .45rem; top: .45rem; } .s2 { right: .45rem; top: .45rem; } .s3 { left: .45rem; bottom: .45rem; } .s4 { right: .45rem; bottom: .45rem; }
.klingeln { list-style: none; margin: 0; padding: 0; display: grid; gap: .38rem; }
.klingeln li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .55rem; margin: 0; }
.klingel-knopf { width: 1.15rem; height: 1.15rem; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 32%, #FFF3C9 0, #D9B565 45%, #8C6A27 100%); box-shadow: 0 0 0 2px #9F7B33, inset 0 -1px 2px rgba(0, 0, 0, .35); transition: box-shadow .35s, background .35s; }
.klingel-schild { display: block; padding: .26rem .55rem; border-radius: 2px; background: var(--schild); box-shadow: inset 0 1px 2px rgba(45, 36, 32, .25);
  font: 500 .875rem/1.25 var(--sans); color: var(--tinte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.klingel-miete { font: 700 .9rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--tinte); min-width: 3.6rem; text-align: right; transition: opacity .35s; }
.klingeln li.an .klingel-knopf, .tableau a.an .klingel-knopf { background: radial-gradient(circle at 40% 35%, #FFF8DA 0, var(--licht) 50%, #D08E14 100%); box-shadow: 0 0 0 2px #A57A1F, 0 0 12px 3px rgba(243, 195, 90, .75); }
.summe { margin: 0; padding: .9rem 1rem 1rem; border-radius: 6px; background: var(--nacht); color: #F6EEDC; display: grid; grid-template-columns: 1fr; gap: .15rem; font-family: var(--sans); }
.summe-name { font: 500 .95rem/1.3 var(--sans); color: #E7DCC4; }
.summe-wert { font: 700 clamp(1.7rem, 2.6vw, 2.15rem)/1 var(--serif); color: var(--licht); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; margin: .1rem 0 .15rem; }
.summe-zaehler { font-size: .9rem; color: #D4C8B0; }
.beispiel-hinweis { margin: 0; font: 400 .9rem/1.45 var(--sans); color: var(--tinte-2); }
.haus .tableau-gross { align-self: center; }
.haus .platte { display: flex; flex-direction: column; justify-content: center; }

/* ---------------- Seitenkopf der Unterseiten ---------------- */
.seitenkopf { padding: clamp(1.8rem, 5vw, 3.6rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.seitenkopf .huelle { display: grid; gap: 2rem; }
@media (min-width: 960px) { .seitenkopf .huelle:has(> .motiv), .seitenkopf .huelle:has(> .ansprech) { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); align-items: start; } }
.seitenkopf h1 { max-width: 18ch; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.pfad { font: 500 .9rem/1.4 var(--sans); color: var(--tinte-2); margin-bottom: 1.2rem; }
.pfad a { color: var(--tinte-2); }
.unterzeile { font-size: clamp(1.12rem, 1.5vw, 1.25rem); color: var(--tinte-2); max-width: 42rem; }
.kurz { position: relative; max-width: 44rem; margin: 1.5rem 0 1.1rem; padding: 1.1rem 1.25rem 1.1rem 1.35rem; background: var(--putz-hell); border-radius: 4px;
  border-left: 5px solid var(--ziegel); box-shadow: var(--schatten); }
.kurz p { margin: 0; font-size: 1.1rem; line-height: 1.6; }
.kurz .kurz-marke { font: 700 .9rem/1 var(--sans); color: var(--ziegel); margin-bottom: .5rem; letter-spacing: .01em; }
.stand { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font: 400 .9rem/1.45 var(--sans); color: var(--tinte-2); margin: 0; }
.motiv { justify-self: end; width: 100%; max-width: 27rem; }
.motiv .ausschnitt { margin: 0; }
.motiv .aufruf { margin-top: 1.4rem; }
.motiv .fassade { width: 100%; display: block; border-radius: 4px; box-shadow: 0 0 0 6px var(--putz-hell), 0 0 0 7px var(--linie), 0 26px 40px -24px rgba(45, 36, 32, .55); }
.motiv figcaption { margin-top: 1rem; font: 400 .9rem/1.45 var(--sans); color: var(--tinte-2); }

/* ---------------- Kapitel mit Tableau ---------------- */
.kapitel-rahmen { padding: 0 0 1rem; }
.kapitel-raster { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.tableau { position: sticky; top: calc(var(--kopf-h) + 1.5rem); }
.platte.schmal { padding: 2.6rem .7rem 1rem; }
.tableau .klingeln { gap: .3rem; }
.tableau .klingeln li { display: block; }
.tableau .klingel-schild { width: 100%; }
.tableau a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .55rem; min-height: 2.5rem; text-decoration: none; color: var(--tinte); border-radius: 3px; }
.tableau a:hover .klingel-schild { background: #FFFBEF; }
.tableau a.an .klingel-schild { font-weight: 700; background: #FFFBEF; }
.kapitel-spalte { min-width: 0; }
.kapitel { padding: clamp(1.8rem, 4vw, 3rem) 0; }
.kapitel + .kapitel { border-top: 1px solid var(--linie); }
.kapitel > p, .kapitel > ul, .kapitel > ol, .kapitel > h3, .kapitel > .lesen { max-width: 42rem; }
.kapitel .fragen-bereich { padding: 0; }
.kapitel-spalte .huelle { padding: 0; max-width: none; }

/* ---------------- Inhaltsbausteine ---------------- */
.abschnitt { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.merk { padding-left: 1.2rem; }
.merk li::marker { color: var(--ziegel); }
.hinweis { background: var(--putz-hell); border-left: 4px solid var(--messing); border-radius: 4px; padding: 1rem 1.2rem; margin: 1.4rem 0; max-width: 42rem; }
.hinweis p:last-child { margin: 0; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin: 1.4rem 0; }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.feld-karte { background: var(--putz-hell); border-radius: 4px; padding: 1.15rem 1.2rem 1rem; border-top: 4px solid var(--ziegel); box-shadow: var(--schatten); }
.feld-karte h3 { margin-top: 0; font-size: 1.15rem; }
.feld-karte p:last-child, .feld-karte ul:last-child { margin-bottom: 0; }
.zahl { display: block; font: 700 clamp(1.7rem, 3.2vw, 2.4rem)/1 var(--serif); color: var(--ziegel); margin-bottom: .45rem; font-variant-numeric: tabular-nums; }
.schritte { list-style: none; padding: 0; margin: 1.4rem 0; counter-reset: s; display: grid; gap: 0; max-width: 46rem; }
.schritte li { counter-increment: s; position: relative; padding: 0 0 1.4rem 3.4rem; margin: 0; }
.schritte li::before { content: counter(s); position: absolute; left: 0; top: .05rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  font: 700 1rem/1 var(--sans); color: var(--tinte); background: radial-gradient(circle at 35% 32%, #FFF3C9 0, #D9B565 45%, #A07A30 100%); box-shadow: 0 0 0 2px #9F7B33; }
.schritte li::after { content: ""; position: absolute; left: 1.08rem; top: 2.5rem; bottom: .3rem; width: 2px; background: var(--linie); }
.schritte li:last-child::after { display: none; }
.schritte b { display: block; font: 700 1.05rem/1.35 var(--sans); margin-bottom: .2rem; }

/* ---------------- Tabellen ---------------- */
.tabelle-huelle { overflow-x: auto; margin: 1.4rem 0; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--putz-hell); font: 400 1rem/1.45 var(--sans); box-shadow: var(--schatten); border-radius: 4px; overflow: hidden; }
.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: .75rem .95rem; border-bottom: 1px solid var(--putz-tief); }
.tabelle thead th { font: 700 .9rem/1.3 var(--sans); background: var(--ziegel-tief); color: #FBF3E3; }
.tabelle tbody th { font-weight: 700; }
.tabelle tr:last-child th, .tabelle tr:last-child td { border-bottom: 0; }

/* ---------------- Fragen ---------------- */
.fragen { display: grid; gap: .55rem; margin: 1.2rem 0; max-width: 46rem; }
.fragen details { background: var(--putz-hell); border-radius: 4px; box-shadow: var(--schatten); border-left: 3px solid transparent; transition: border-color .2s; }
.fragen details[open] { border-left-color: var(--messing); }
.fragen summary { -webkit-tap-highlight-color: transparent; cursor: pointer; list-style: none; padding: 1rem 3.2rem 1rem 1.15rem; font: 700 1.05rem/1.4 var(--sans); position: relative; min-height: 2.75rem; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; position: absolute; right: 1.05rem; top: 1.05rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #FFF3C9 0, #D9B565 45%, #8C6A27 100%); box-shadow: 0 0 0 2px #9F7B33; transition: box-shadow .25s, background .25s; }
.fragen details[open] summary::after { background: radial-gradient(circle at 40% 35%, #FFF8DA 0, var(--licht) 50%, #D08E14 100%); box-shadow: 0 0 0 2px #A57A1F, 0 0 10px 2px rgba(243, 195, 90, .7); }
.fragen .antwort { padding: 0 1.15rem 1.1rem; }
.fragen .antwort p { margin: 0; }

/* ---------------- Rechner ---------------- */
.rechner { margin: 1.6rem 0; background: var(--putz-hell); border-radius: 6px; box-shadow: var(--schatten); padding: clamp(1.1rem, 3vw, 2rem); font-family: var(--sans); border-top: 6px solid var(--ziegel); }
.rechner-kopf h3 { margin: 0 0 .3rem; font-size: 1.35rem; }
.rechner-kopf p { margin: 0 0 1.2rem; }
.rechner-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.1rem, 3vw, 2.2rem); align-items: start; }
.rechner .feld { margin: 0 0 1.05rem; border: 0; padding: 0; min-width: 0; }
.rechner label, .rechner legend { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .35rem; padding: 0; }
.rechner legend .leise { font-weight: 400; }
.eingabe-einheit { display: flex; align-items: stretch; border: 2px solid var(--linie); border-radius: 4px; background: #FFFDF7; }
.eingabe-einheit:focus-within { border-color: var(--ziegel); box-shadow: 0 0 0 3px rgba(139, 52, 38, .18); }
.eingabe-einheit input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.1rem/1.3 var(--sans); color: var(--tinte); padding: .7rem .8rem; min-height: 3rem; letter-spacing: .01em; }
.eingabe-einheit input:focus { outline: none; }
.eingabe-einheit > span { display: grid; place-items: center; padding: 0 .85rem; font-weight: 700; color: var(--tinte-2); border-left: 1px solid var(--putz-tief); }
.hilfe { display: block; margin-top: .3rem; font-size: .9rem; line-height: 1.4; color: var(--tinte-2); }
.wahl-klein { display: flex; gap: .5rem; margin-top: .55rem; }
.wahl-klein label { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .3rem .9rem; border: 2px solid var(--linie); border-radius: 4px; font-weight: 500; margin: 0; cursor: pointer; }
.wahl-klein label:has(input:checked) { border-color: var(--ziegel); background: #FFFDF7; }
.wahl-klein input { accent-color: var(--ziegel); width: 1.1rem; height: 1.1rem; margin: 0; }
.feld.fest { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .1rem 1rem; padding: .8rem .9rem; border-radius: 4px; background: var(--putz); }
.fest-name { font-weight: 700; }
.fest-wert { font: 700 1.2rem/1 var(--sans); }
.feld.fest .hilfe { grid-column: 1 / -1; }
.rechner-ergebnis { background: var(--nacht); color: #F3EBDA; border-radius: 6px; padding: clamp(1rem, 2.5vw, 1.5rem); min-height: 100%; }
.kennzahlen { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin-bottom: 1rem; }
.kennzahl { margin: 0; display: grid; gap: .2rem; }
.kz-name { font-size: .9rem; color: #D9CDB4; }
.kz-wert { font: 700 1.45rem/1.1 var(--serif); color: #FFF6E2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kennzahl.haupt .kz-wert { font-size: clamp(2.2rem, 4vw, 2.9rem); color: var(--licht); }
.jahresstapel { display: flex; flex-wrap: wrap-reverse; gap: 3px; align-content: flex-start; min-height: 1rem; margin: .4rem 0 .8rem; }
.jahresstapel i { display: block; width: calc((100% - 27px) / 10); height: .7rem; border-radius: 1px; background: var(--licht); box-shadow: inset 0 -2px 0 rgba(140, 90, 10, .35); }
.jahresstapel i.rest { background: linear-gradient(90deg, var(--licht) var(--rest, 50%), rgba(243, 195, 90, .22) 0); }
.stapel-satz { font-size: 1rem; line-height: 1.5; margin: 0 0 .8rem; color: #F3EBDA; }
.rechenweg { border-top: 1px solid rgba(243, 235, 218, .25); padding-top: .8rem; }
.rechenweg-titel { font-weight: 700; margin: 0 0 .4rem; }
.rechenweg ol { margin: 0; padding-left: 1.2rem; font-size: .95rem; line-height: 1.5; }
.rechenweg li { margin-bottom: .35rem; }
.rechenweg li::marker { color: var(--licht); }
.rechner .hinweis { font-family: var(--sans); font-size: .95rem; }
.rechner select { width: 100%; font: 500 1rem/1.3 var(--sans); color: var(--tinte); background: #FFFDF7; border: 2px solid var(--linie); border-radius: 4px; padding: .7rem .8rem; min-height: 3rem; }
.rechner select:focus { border-color: var(--ziegel); outline: none; box-shadow: 0 0 0 3px rgba(139, 52, 38, .18); }
.vergleich-satz { margin: 0 0 .8rem; padding-left: .8rem; border-left: 3px solid var(--licht); font-size: .97rem; line-height: 1.5; color: #F3EBDA; }
.vergleich-satz:empty { display: none; }
.rechner-fuss { margin: 1rem 0 0; }

/* ---------------- Anfrageformular ---------------- */
.anfrage-bereich { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.anfrage-karte { background: var(--putz-hell); border-radius: 6px; box-shadow: var(--schatten); border-top: 6px solid var(--ziegel); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.2rem, 4vw, 3rem); padding: clamp(1.3rem, 4vw, 2.6rem); font-family: var(--sans); }
.anfrage-kopf h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
.anfrage-kopf > p { font-family: var(--serif); font-size: 1.1rem; }
.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; min-width: 0; }
.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: #FFFDF7; border: 2px solid var(--linie); 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(--ziegel); outline: none; box-shadow: 0 0 0 3px rgba(139, 52, 38, .18); }
.anfrage .feld-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.wahl { display: flex; flex-wrap: wrap; gap: .55rem; }
.wahl label { -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .4rem .95rem; border: 2px solid var(--linie); border-radius: 4px; cursor: pointer; font-weight: 500; margin: 0; background: #FFFDF7; }
.wahl input { width: 1.15rem; height: 1.15rem; accent-color: var(--ziegel); margin: 0; }
.wahl label:has(input:checked) { border-color: var(--ziegel); box-shadow: inset 0 0 0 1px var(--ziegel); }
.anfrage .einwilligung label { font-weight: 400; display: grid; grid-template-columns: 1.25rem 1fr; gap: .7rem; align-items: start; font-size: .95rem; line-height: 1.5; }
.anfrage .einwilligung input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--ziegel); }
.anfrage button.knopf { cursor: pointer; font-size: 1.05rem; }
.versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status[data-stand="fehler"] { color: #9B1C1C; font-weight: 700; }
.danach { list-style: none; padding: 0; margin: 1.4rem 0 0; counter-reset: d; display: grid; gap: .95rem; }
.danach li { counter-increment: d; display: grid; grid-template-columns: 2.2rem 1fr; gap: .15rem .8rem; margin: 0; }
.danach li::before { content: counter(d); grid-row: span 2; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; font: 700 1rem/1 var(--sans);
  background: radial-gradient(circle at 35% 32%, #FFF3C9 0, #D9B565 45%, #A07A30 100%); box-shadow: 0 0 0 2px #9F7B33; }
.danach b { display: block; }
.danach span { color: var(--tinte-2); font-size: .97rem; }

/* ---------------- Ansprechpartner ---------------- */
.ansprech { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; padding: 1.2rem; background: var(--putz-hell); border-radius: 6px; box-shadow: var(--schatten); font-family: var(--sans); max-width: 30rem; }
.ansprech img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--messing); }
.ansprech p { margin: 0 0 .35rem; font-size: .97rem; line-height: 1.5; }
.ansprech-name { font: 700 1.15rem/1.2 var(--serif) !important; }
.ansprech-rolle { color: var(--tinte-2); }
.ansprech-tel { font-weight: 700; }

/* ---------------- Weiterlesen, Quellen, Fuß ---------------- */
.weiter h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.weiter-liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .8rem; }
.weiter-liste li { background: var(--putz-hell); border-radius: 4px; padding: 1rem 1.1rem; margin: 0; display: grid; gap: .25rem; box-shadow: var(--schatten); border-left: 4px solid var(--messing); font-family: var(--sans); }
.weiter-liste a { font-weight: 700; font-size: 1.05rem; }
.weiter-liste span { color: var(--tinte-2); font-size: .97rem; line-height: 1.45; }
.quellen { font: 400 .92rem/1.55 var(--sans); color: var(--tinte-2); border-top: 1px solid var(--linie); padding-top: 1rem; margin-top: 2rem; max-width: 46rem; }
.quellen a { color: var(--tinte-2); }
.querlinks h2 { font-size: 1rem; }
.querlinks ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.fuss { position: relative; background: var(--putz); padding: 3.4rem 0 2.5rem; margin-top: 2.5rem; font: 400 .97rem/1.55 var(--sans); }
.fuss::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background: repeating-linear-gradient(90deg, #97412F 0 22px, #B9725E 22px 24px), #97412F; box-shadow: inset 0 -2px 0 #6E2A1E; }
.fuss .spalten { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.fuss h2 { font: 700 1rem/1.3 var(--sans); letter-spacing: 0; margin-bottom: .7rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .35rem; }
.fuss a { color: var(--tinte); }
.fuss .klein { margin-top: 2rem; font-size: .9rem; color: var(--tinte-2); max-width: 60rem; }

/* ---------------- Bewegung: Fenster gehen an (nur mit html.bewegt) ---------------- */
.fassade .glas { fill: var(--licht); transition: fill .5s ease; }
.fassade .laden .glas { fill: var(--laden-licht); }
.fassade .gaube { fill: var(--nacht); }
.fassade .treppe { fill: #D9AE5C; opacity: .6; }
.fassade .oberlicht { fill: var(--licht); }
.fassade .s { fill: #EFE4CC; }
.fassade .r { fill: none; stroke: #EFE4CC; stroke-width: 3; }
.fassade .k { stroke: #EFE4CC; stroke-width: 2; }
html.bewegt [data-fassade] .einheit:not(.an) .glas { fill: var(--nacht); }
html.bewegt [data-tableau] li:not(.an) .klingel-miete { opacity: .28; }
.summe-wert.tick { animation: tick .45s ease-out; }
@keyframes tick { 0% { color: #FFFFFF; text-shadow: 0 0 14px rgba(243, 195, 90, .9); } 100% { color: var(--licht); text-shadow: none; } }
html.bewegt .jahresstapel i { animation: stapel .35s ease-out both; }
@keyframes stapel { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- Aufrufleiste am Handy ---------------- */
.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(--putz); border-top: 1px solid var(--linie); box-shadow: 0 -10px 24px -18px rgba(45, 36, 32, .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; }
}

/* ---------------- Breiten ---------------- */
@media (max-width: 1180px) {
  .menue { gap: .2rem .9rem; }
  .menue a { font-size: .95rem; }
}
@media (max-width: 1100px) {
  .kapitel-raster { grid-template-columns: minmax(0, 1fr); }
  .tableau { display: none; }
  .fuss .spalten { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --kopf-h: 3.9rem; }
  .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: 700 1rem/1 var(--sans); cursor: pointer; }
  .menue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--putz); border-bottom: 1px solid var(--linie); flex-direction: column; align-items: stretch; padding: .5rem var(--rand) 1.2rem; gap: 0; box-shadow: 0 18px 30px -20px rgba(45, 36, 32, .5); }
  .menue.offen-menue { display: flex; }
  .menue a { padding: .8rem 0; border-bottom: 1px solid var(--putz-tief); font-size: 1.08rem; }
  .menue .knopf.klein { margin-top: .9rem; border-bottom: 2px solid var(--ziegel); }
  .buehne > .huelle { grid-template-columns: minmax(0, 1fr); }
  .buehne h1 { max-width: 16ch; }
  .haus { max-width: 40rem; }
  .rechner-raster { grid-template-columns: minmax(0, 1fr); }
  .anfrage-karte { grid-template-columns: minmax(0, 1fr); }
  .motiv { justify-self: start; max-width: 24rem; }
}
@media (max-width: 760px) {
  .zwei, .drei { grid-template-columns: minmax(0, 1fr); }
  .anfrage .feld-zeile { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; line-height: 1.68; }
  .marke { gap: .55rem; font-size: .875rem; }
  .marke b { font-size: 1.08rem; }
  .haus { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: .7rem; }
  .platte { padding: 2.3rem .5rem .9rem; }
  .klingeln { gap: .3rem; }
  .klingeln li { gap: .35rem; }
  .klingel-knopf { width: .9rem; height: .9rem; }
  .klingel-schild { padding: .2rem .35rem; font-size: .875rem; }
  .klingel-miete { font-size: .875rem; min-width: 0; }
  .haus .tableau-gross { display: contents; }
  .haus .summe, .haus .beispiel-hinweis { grid-column: 1 / -1; }
  .fuss .spalten { grid-template-columns: minmax(0, 1fr); }
  .kennzahl.haupt { grid-column: 1 / -1; }
  .summe { grid-template-columns: 1fr auto; align-items: baseline; }
  .summe-wert { grid-column: 2; grid-row: 1 / span 2; }
  .knoepfe .knopf { width: 100%; }
  .wahl label { flex: 1 1 100%; }
  .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 caption { display: block; width: 100%; order: 2; padding: .7rem 1rem .2rem; }
  .tabelle.stapel tr { border-bottom: 2px solid var(--putz-tief); 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 td::before { content: attr(data-spalte); display: block; font: 700 .875rem/1.3 var(--sans); color: var(--tinte-2); margin-bottom: .1rem; }
}
@media (max-width: 380px) {
  .haus { grid-template-columns: minmax(0, 1fr); }
  .haus .fassade { max-width: 15rem; justify-self: center; }
  .haus .tableau-gross { display: grid; grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .kopf, .leiste-unten, .tableau, .anfrage-bereich, .entwurf { display: none !important; }
  .kapitel-raster { grid-template-columns: 1fr; }
}

/* === Cover-Foto (Startseite, 14.11.2026) === */
.cover-foto { margin: 0; }
.cover-foto img { display: block; width: 100%; height: clamp(190px, 34vw, 470px); object-fit: cover; object-position: center; }
.cover-foto figcaption { padding: .35rem var(--rand) 0; font-size: .875rem; line-height: 1.4; color: var(--tinte-2); text-align: right; }
.cover-foto figcaption a { color: var(--tinte-2); text-decoration-color: var(--linie); }
/* === Ende Cover-Foto === */
