/* wohnung-kaufen-düsseldorf.de: Motiv „Der Grundriss“.
   Papier, Tusche, Ziegelrot. Linienstärken wie auf einem Bauplan: Bleistift (vorgezeichnet), Tusche (gezeichnet),
   Schraffur (Ihr Raum). Schriften lokal (SIL OFL 1.1), keine Abrufe bei Dritten. Eine Hintergrundfarbe für die ganze
   Seite, damit iPhone-Safari Status- und Adressleiste nicht in einer zweiten Farbe einfärbt. */

@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 {
  --papier: #F4F1EA;        /* Planpapier = Seitenhintergrund */
  --papier-hell: #FBF9F4;   /* Flächen, Formular */
  --tusche: #1F2A44;        /* Tinte, Text, Wände */
  --tusche-2: #4A5470;      /* Nebentext */
  --ziegel: #C4532D;        /* Akzent: Ihr Raum, Maßlinien */
  --ziegel-text: #A3401F;   /* Akzent für kleine Schrift (Kontrast AA) */
  --ziegel-hell: #F1DDD2;
  --bleistift: #B9B4A8;     /* Hilfslinien, Rahmen */
  --linie: #D9D3C6;
  --marker: #F5D65E;        /* gelbe Stellen (Entscheidung offen) */
  --kopf-h: 4.25rem;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Schibsted", "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --lauf: cubic-bezier(.6, .05, .25, 1);
}

*, *::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(--papier); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--papier); color: var(--tusche); font: 400 1.0625rem/1.65 var(--sans); font-kerning: normal; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--tusche); text-decoration-color: var(--ziegel); text-decoration-thickness: .09em; text-underline-offset: .2em; }
a:hover { color: var(--ziegel-text); }
:focus-visible { outline: 3px solid var(--ziegel); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ziegel-hell); color: var(--tusche); }

h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -.022em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; margin-top: 1.6em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .45em; }
strong, b { font-weight: 700; }
.huelle { max-width: 76rem; margin: 0 auto; padding: 0 var(--rand); }
.lesen, .abschnitt .huelle > p, .abschnitt .huelle > ul, .abschnitt .huelle > ol, .abschnitt .huelle > h3 { max-width: 44rem; }
.leise { color: var(--tusche-2); font-size: .95rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font: 500 .9rem/1.4 var(--mono); color: var(--ziegel-text); margin: 0 0 .8rem; }
.offen { background: var(--marker); padding: .05em .3em; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; font-size: .95em; }

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

/* ---------- Kopf: Marke, Menü, Fortschritt als Maßlinie ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--papier); 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; font: 500 .95rem/1.1 var(--sans); color: var(--tusche); }
.marke b { display: block; font-weight: 700; font-size: 1.15rem; letter-spacing: -.015em; }
.marke:hover { color: var(--tusche); }
.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 { text-decoration: none; font-weight: 500; font-size: 1rem; padding: .35rem 0; white-space: nowrap; }
.menue a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ziegel); text-decoration-thickness: 2px; text-underline-offset: .4em; }
.menue-schalter { display: none; }
.fortschritt { position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--fortschritt, 0) * 100%); background: var(--ziegel); pointer-events: none; }
.fortschritt::before, .fortschritt::after { content: ""; position: absolute; top: -4px; width: 2px; height: 10px; background: var(--ziegel); }
.fortschritt::before { left: 0; }
.fortschritt::after { right: -1px; }

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

/* ---------- Grundriss (SVG) ---------- */
.gr-plan { display: block; width: 100%; height: auto; overflow: visible; }
.gr-achse line { stroke: var(--tusche); stroke-opacity: .17; stroke-width: 1; stroke-dasharray: 14 5 2 5; }
.gr-blase circle { fill: var(--papier); stroke: var(--tusche); stroke-opacity: .5; stroke-width: 1.2; }
.gr-blase text { font: 500 15px var(--mono); fill: var(--tusche-2); }
.gr-bleistift path { fill: none; stroke: var(--tusche); stroke-opacity: .34; stroke-width: 1.3; }
.gr-treppe line, .gr-treppe path { fill: none; stroke: var(--tusche); stroke-opacity: .45; stroke-width: 1.2; }
.gr-wand { fill: none; stroke: var(--tusche); stroke-width: 6; stroke-linecap: square; stroke-linejoin: miter; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.gr-raum[data-raum="balkon"] .gr-wand { stroke-width: 3; }
.gr-aussen { fill: none; stroke: var(--tusche); stroke-width: 11; stroke-linejoin: miter; }
.gr-luecke rect { fill: var(--papier); }
.gr-fenster rect { fill: var(--papier); stroke: var(--tusche); stroke-width: 1.3; }
.gr-fenster line { stroke: var(--tusche); stroke-width: 1.3; }
.gr-tuer { fill: none; stroke: var(--tusche); stroke-width: 1.5; }
.gr-flaeche { opacity: 0; transition: opacity .6s ease; }
.gr-name { font: 600 18px var(--mono); letter-spacing: .06em; fill: var(--tusche); }
.gr-thema { font: 500 16px var(--sans); fill: var(--tusche-2); }
.gr-mass line { stroke: var(--tusche); stroke-opacity: .55; stroke-width: 1.2; }
.gr-standort { display: none; }
.gr-standort .gr-punkt { fill: var(--ziegel); }
.gr-standort .gr-ring { fill: none; stroke: var(--ziegel); stroke-width: 2; }

/* Ihr Raum: Ziegelrot, schraffiert */
.gr-raum.aktiv .gr-flaeche { opacity: .5; }
.gr-raum.aktiv .gr-wand { stroke: var(--ziegel); }
.gr-raum.aktiv .gr-name { fill: var(--ziegel-text); }
.gr-raum.aktiv .gr-thema { fill: var(--tusche); }

/* Unterseiten: nur der eigene Raum ist mit Tusche gezeichnet, die übrigen bleiben Bleistift */
.gr-plan[data-seite] .gr-raum:not(.gezeichnet) .gr-wand { stroke-dashoffset: 1.05; }
.gr-plan[data-seite] .gr-raum:not(.gezeichnet) .gr-tuer { opacity: .35; }
.gr-plan[data-seite] .gr-raum:not(.gezeichnet) .gr-name { fill: var(--tusche-2); }
.gr-plan[data-seite] .gr-standort { display: inline; }

/* Startseite mit JavaScript: Räume zeichnen sich beim Scrollen nach (Rundgang) */
html.bewegt .gr-plan[data-rundgang] .gr-standort { display: inline; }
html.bewegt .gr-plan[data-rundgang] .gr-raum:not(.gezeichnet) .gr-wand { stroke-dashoffset: 1.05; }
html.bewegt .gr-plan[data-rundgang] .gr-raum:not(.gezeichnet) .gr-tuer { opacity: 0; }
html.bewegt .gr-plan[data-rundgang] .gr-raum:not(.gezeichnet) .gr-name,
html.bewegt .gr-plan[data-rundgang] .gr-raum:not(.gezeichnet) .gr-thema { opacity: .5; }
html.bewegt .gr-plan.bereit .gr-wand { transition: stroke-dashoffset 1.1s var(--lauf), stroke .4s; }
html.bewegt .gr-plan.bereit .gr-tuer { transition: opacity .4s ease .5s; }
html.bewegt .gr-plan.bereit .gr-name, html.bewegt .gr-plan.bereit .gr-thema { transition: opacity .5s ease .3s, fill .4s; }
html.bewegt .gr-plan.bereit .gr-standort { transition: transform .8s var(--lauf); }
html.bewegt .gr-plan .gr-aussen { animation: tusche 1.6s var(--lauf) .15s both; stroke-dasharray: 1 2; }
html.bewegt .gr-plan[data-seite] .gr-raum.aktiv .gr-wand { animation: tusche 1.3s var(--lauf) .9s both; }
html.bewegt .gr-plan[data-seite] .gr-raum.aktiv .gr-flaeche { animation: schraffur .8s ease 1.8s both; }
@keyframes tusche { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }
@keyframes schraffur { from { opacity: 0; } to { opacity: .5; } }

/* Schriftfeld (Plankopf) unter dem Grundriss */
.plankopf { margin: .9rem 0 0; }
.plankopf dl { display: grid; grid-template-columns: 1.4fr .8fr 1.5fr; margin: 0; border: 1.5px solid var(--tusche); }
.plankopf dl > div { padding: .45rem .7rem .5rem; border-left: 1px solid var(--tusche); min-width: 0; }
.plankopf dl > div:first-child { border-left: 0; }
.plankopf dt { font: 500 .875rem/1.2 var(--mono); color: var(--tusche-2); }
.plankopf dd { margin: .15rem 0 0; font: 600 .95rem/1.3 var(--sans); }
.plankopf-raum dd { color: var(--ziegel-text); }

/* Startseite: Bühne und Rundgang mit mitlaufendem Grundriss */
.rundgang { max-width: 82rem; margin: 0 auto; padding: 0 var(--rand); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 33rem);
  grid-template-areas: "buehne plan" "raeume plan"; column-gap: clamp(2rem, 5vw, 4.5rem); }
.rundgang .huelle { padding: 0; max-width: none; margin: 0; }
.buehne { grid-area: buehne; padding: clamp(1.8rem, 4vw, 3.2rem) 0 1.5rem; }
.buehne h1 { max-width: 14ch; margin-bottom: .45em; }
.buehne .unterzeile { font-size: clamp(1.1rem, 1.7vw, 1.28rem); color: var(--tusche-2); max-width: 36rem; }
.raeume { grid-area: raeume; min-width: 0; }
.plan-spalte { grid-area: plan; min-width: 0; }
.plan-rundgang { margin: 0; position: sticky; top: calc(var(--kopf-h) + 1.4rem); padding-top: clamp(1.8rem, 4vw, 3.2rem); }
.raum-abschnitt { padding: clamp(2.2rem, 5vw, 3.6rem) 0; border-top: 1px solid var(--linie); }
.raumschild { display: flex; align-items: center; gap: .55rem .9rem; flex-wrap: wrap; margin: 0 0 1.1rem; font: 500 .9rem/1.3 var(--mono); }
.raum-nr { color: var(--tusche-2); }
.raum-name { font-weight: 600; color: var(--tusche); padding: .2rem .55rem; border: 1.5px solid var(--tusche); }
.raum-thema { color: var(--ziegel-text); }
.schluesselplan { display: none; width: 63px; height: 51px; flex: none; }
.schluesselplan rect { fill: none; stroke: var(--tusche); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.schluesselplan rect.an { fill: var(--ziegel); stroke: var(--ziegel); }

/* ---------- Seitenkopf der Unterseiten ---------- */
.seitenkopf { padding: clamp(1.8rem, 5vw, 3.6rem) 0 1.2rem; }
.seitenkopf .huelle { display: grid; gap: 2rem; }
.seitenkopf h1 { max-width: 18ch; font-size: clamp(2.1rem, 4.8vw, 3.7rem); }
.pfad { font: 500 .9rem/1.4 var(--mono); color: var(--tusche-2); margin-bottom: 1.3rem; }
.pfad a { color: var(--tusche-2); }
.unterzeile { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--tusche-2); max-width: 42rem; }
.plan-seite { margin: 0; max-width: 34rem; justify-self: end; width: 100%; }
@media (min-width: 960px) {
  .seitenkopf .huelle:has(> .motiv), .seitenkopf .huelle:has(> .ansprech) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .seitenkopf .huelle:has(> .motiv) .motiv { margin-top: 1.4rem; }
}

/* „Kurz gesagt“ als Planvermerk */
.kurz { position: relative; max-width: 44rem; margin: 1.5rem 0 1.1rem; padding: 1.05rem 1.25rem 1.1rem; background: var(--papier-hell); border: 1.5px solid var(--tusche); }
.kurz::before { content: ""; position: absolute; left: -1.5px; top: -1.5px; width: 1.1rem; height: 1.1rem; border-left: 5px solid var(--ziegel); border-top: 5px solid var(--ziegel); }
.kurz p { margin: 0; font-size: 1.06rem; }
.kurz .kurz-marke { font: 600 .9rem/1 var(--mono); color: var(--ziegel-text); margin-bottom: .55rem; }
.stand { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font: 400 .875rem/1.4 var(--mono); color: var(--tusche-2); margin: 0; }

/* ---------- Abschnitte, H2 mit Maßlinie ---------- */
.abschnitt { padding: clamp(2.1rem, 5vw, 3.6rem) 0; }
.abschnitt h2 { max-width: 30ch; }
.abschnitt h2::before { content: ""; display: block; width: min(100%, 15rem); height: 11px; margin-bottom: .95rem;
  background: linear-gradient(var(--ziegel), var(--ziegel)) left top / 2px 100% no-repeat,
              linear-gradient(var(--ziegel), var(--ziegel)) right top / 2px 100% no-repeat,
              linear-gradient(var(--tusche), var(--tusche)) left center / 100% 1px no-repeat;
  clip-path: inset(0 0 0 0); }
.raum-abschnitt h2::before, .anfrage-bereich h2::before, .fuss h2::before { display: none; }
html.bewegt .abschnitt:not(.sichtbar) h2::before { clip-path: inset(0 100% 0 0); }
html.bewegt .abschnitt h2::before { transition: clip-path 1s var(--lauf) .1s; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 4vw, 2.6rem); margin-bottom: 1.6rem; }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1.6rem; }
.kachel { border-top: 2px solid var(--tusche); padding: .9rem 0 .2rem; }
.kachel h3 { margin: 0 0 .35em; }
.kachel p:last-child { margin-bottom: 0; }
.zahl-gross { display: block; font: 600 clamp(1.7rem, 3.6vw, 2.4rem)/1.05 var(--mono); color: var(--ziegel-text); letter-spacing: -.03em; margin-bottom: .45rem; }
.merk { padding-left: 1.2rem; max-width: 44rem; }
.merk li::marker { color: var(--ziegel); }
.haken { list-style: none; padding: 0; max-width: 44rem; }
.haken li { position: relative; padding-left: 2rem; }
.haken li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem; border: 1.5px solid var(--tusche); }
.haken li::after { content: ""; position: absolute; left: .34rem; top: .42em; width: .38rem; height: .62rem; border: solid var(--ziegel); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.hinweis { background: var(--ziegel-hell); border-left: 4px solid var(--ziegel); padding: 1rem 1.2rem; margin: 1.4rem 0; max-width: 44rem; }
.hinweis p:last-child { margin: 0; }
.rechnung { max-width: 44rem; border: 1.5px solid var(--tusche); background: var(--papier-hell); margin: 1.4rem 0; }
.rechnung p { margin: 0; padding: .75rem 1rem; border-top: 1px solid var(--linie); display: flex; justify-content: space-between; gap: 1rem; }
.rechnung p:first-child { border-top: 0; }
.rechnung p.summe { border-top: 2px solid var(--tusche); font-weight: 700; }
.rechnung span:last-child { font-family: var(--mono); white-space: nowrap; }

/* ---------- Tabellen ---------- */
.tabelle-huelle { overflow-x: auto; margin: 1.4rem 0; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--papier-hell); font-size: 1rem; border: 1.5px solid var(--tusche); }
.tabelle caption { caption-side: bottom; text-align: left; padding: .7rem .2rem 0; font-size: .9rem; color: var(--tusche-2); }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid var(--linie); }
.tabelle thead th { font: 600 .9rem/1.3 var(--mono); background: var(--tusche); color: var(--papier-hell); }
.tabelle tbody th { font-weight: 700; }
.tabelle td { font-variant-numeric: tabular-nums; }
.tabelle tr:last-child th, .tabelle tr:last-child td { border-bottom: 0; }

/* ---------- Fragen: Tür als Symbol (öffnet sich mit der Antwort) ---------- */
.fragen { margin: 1.2rem 0; max-width: 48rem; border-top: 1.5px solid var(--tusche); }
.fragen details { border-bottom: 1px solid var(--bleistift); }
.fragen summary { -webkit-tap-highlight-color: transparent; cursor: pointer; list-style: none; padding: 1rem 3.4rem 1rem 0; font-weight: 700; position: relative; min-height: 2.75rem; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::before { content: ""; position: absolute; right: 1rem; top: calc(50% + .5rem); width: 1.15rem; height: 2px; background: var(--tusche);
  transform-origin: 0 50%; transition: transform .35s var(--lauf); }
.fragen summary::after { content: ""; position: absolute; right: 1rem; top: calc(50% - .65rem); width: 1.15rem; height: 1.15rem;
  border-top: 1.5px solid var(--ziegel); border-right: 1.5px solid var(--ziegel); border-top-right-radius: 100%; opacity: 0; transition: opacity .3s .1s; }
.fragen details[open] summary::before { transform: rotate(-90deg); }
.fragen details[open] summary::after { opacity: 1; }
.fragen summary:hover { color: var(--ziegel-text); }
.fragen .antwort { padding: 0 0 1.1rem; }
.fragen .antwort p { margin: 0; }
.faq-verzeichnis a { white-space: nowrap; }

/* ---------- Formular und Abschluss ---------- */
.anfrage-karte { background: var(--papier-hell); border: 2px solid var(--tusche); 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); position: relative; }
.anfrage-karte::before { content: ""; position: absolute; left: -2px; top: -2px; width: 1.4rem; height: 1.4rem; border-left: 6px solid var(--ziegel); border-top: 6px solid var(--ziegel); }
.anfrage-kopf h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
.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(--tusche); background: #FFFDF8; border: 1.5px solid var(--bleistift); border-radius: 3px; padding: .75rem .9rem; min-height: 3rem; }
.anfrage select { padding: .6rem .75rem; }
.anfrage input:focus, .anfrage textarea:focus, .anfrage select:focus { border-color: var(--tusche); outline: none; box-shadow: 0 0 0 3px var(--ziegel-hell); }
.anfrage .feld-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.wahl { display: flex; flex-wrap: wrap; gap: .6rem; }
.wahl label, .anfrage .wahl label { -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem 1rem;
  border: 1.5px solid var(--bleistift); border-radius: 3px; cursor: pointer; font-weight: 500; margin: 0; background: #FFFDF8; }
.wahl input { width: 1.1rem; height: 1.1rem; accent-color: var(--ziegel); margin: 0; }
.wahl label:has(input:checked) { border-color: var(--tusche); box-shadow: inset 0 0 0 1px var(--tusche); }
.anfrage .einwilligung label { font-weight: 400; display: grid; grid-template-columns: 1.25rem 1fr; gap: .7rem; align-items: start; font-size: .95rem; }
.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; font-family: var(--sans); }
.anfrage .versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status[data-stand="fehler"] { color: #9B1C1C; font-weight: 600; }
.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.4rem 1fr; gap: .15rem .8rem; margin: 0; }
.danach li::before { content: counter(d, decimal-leading-zero); grid-row: span 2; font: 600 .9rem/2.2rem var(--mono); color: var(--ziegel-text); border: 1.5px solid var(--tusche); width: 2.4rem; height: 2.3rem; text-align: center; }
.danach b { display: block; }
.danach span { color: var(--tusche-2); font-size: .97rem; }

/* Ansprechpartner */
.ansprech { display: grid; grid-template-columns: 96px 1fr; gap: 1rem 1.2rem; align-items: start; padding: 1.2rem; border: 1.5px solid var(--tusche); background: var(--papier-hell); max-width: 40rem; margin: 1.6rem 0; }
.ansprech img { width: 96px; height: 96px; object-fit: cover; border-radius: 2px; filter: saturate(.9); }
.ansprech p { margin: 0 0 .35rem; }
.ansprech-name { font-weight: 700; font-size: 1.125rem; }
.ansprech-rolle { font: 500 .9rem/1.35 var(--mono); color: var(--tusche-2); }
.ansprech-tel { font-weight: 700; }

/* Weiterlesen wie Türschilder, Quellen */
.weiter-liste { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 0 1.6rem; }
.weiter-liste li { border-top: 2px solid var(--tusche); padding: .85rem 0 1.1rem; margin: 0; display: grid; gap: .25rem; }
.weiter-liste a { font-weight: 700; font-size: 1.05rem; }
.weiter-liste span { color: var(--tusche-2); font-size: .97rem; }
.quellen { font-size: .92rem; color: var(--tusche-2); border-top: 1px solid var(--bleistift); padding-top: 1rem; margin-top: 2rem; max-width: 50rem; }

/* ---------- Fuß als Schriftfeld ---------- */
.fuss { padding: 2.6rem 0 2.6rem; margin-top: 2rem; font-size: .97rem; }
.fuss .spalten { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; border: 2px solid var(--tusche); }
.fuss .spalten > div { padding: 1.1rem 1.2rem 1.2rem; border-left: 1px solid var(--tusche); min-width: 0; }
.fuss .spalten > div:first-child { border-left: 0; }
.fuss h2 { font: 600 .9rem/1.3 var(--mono); letter-spacing: 0; margin-bottom: .7rem; color: var(--tusche-2); }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .1rem; }
.fuss li a { display: inline-block; padding: .3rem 0; }
.fuss .klein { margin-top: 1.4rem; font-size: .9rem; color: var(--tusche-2); max-width: 62rem; }
.querlinks ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* ---------- Feste Aufrufleiste am Handy ---------- */
.leiste-unten { display: none; }
@media (max-width: 1080px) {
  .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(--papier); border-top: 1.5px solid var(--tusche); 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 reduziert: Endzustand sofort ---------- */
@media (prefers-reduced-motion: reduce) {
  .gr-wand { stroke-dashoffset: 0 !important; }
  .gr-plan[data-seite] .gr-raum:not(.gezeichnet) .gr-wand { stroke-dashoffset: 1.05 !important; }
  .gr-raum.aktiv .gr-flaeche { opacity: .5 !important; }
  .abschnitt h2::before { clip-path: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Schmalere Bildschirme ---------- */
@media (max-width: 1180px) {
  .rundgang { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); }
}
@media (max-width: 1080px) {
  :root { --kopf-h: 3.85rem; }
  .menue-schalter { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1rem; border: 1.5px solid var(--tusche); border-radius: 3px; background: transparent; color: var(--tusche); font: 600 1rem/1 var(--sans); cursor: pointer; }
  .menue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1.5px solid var(--tusche); 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; }
  .fuss .spalten { grid-template-columns: 1fr 1fr; }
  .fuss .spalten > div:nth-child(3) { border-left: 0; }
  .fuss .spalten > div:nth-child(n+3) { border-top: 1px solid var(--tusche); }
}
@media (max-width: 900px) {
  .rundgang { grid-template-columns: minmax(0, 1fr); grid-template-areas: "buehne" "plan" "raeume"; }
  .plan-rundgang { position: static; padding-top: 0; margin-bottom: 1.5rem; }
  .schluesselplan { display: block; }
  .zwei { grid-template-columns: 1fr; }
  .drei { grid-template-columns: 1fr 1fr; }
  .plan-seite { justify-self: start; }
  .anfrage-karte { grid-template-columns: 1fr; }
  .anfrage .feld-zeile { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .drei { grid-template-columns: 1fr; }
  .fuss .spalten { grid-template-columns: 1fr; }
  .fuss .spalten > div { border-left: 0; }
  .fuss .spalten > div + div { border-top: 1px solid var(--tusche); }
  .marke { font-size: .875rem; }
  .marke b { font-size: 1.02rem; }
  .marke-zeichen { width: 2.1rem; height: 2.1rem; }
  .kurz p { font-size: 1rem; }
  .kurz { padding: .95rem 1rem 1rem; }
  .gr-thema { display: none; }
  .gr-name { font-size: 25px; }
  .gr-raum[data-raum="treppe"] .gr-name { font-size: 22px; }
  .gr-blase text { font-size: 18px; }
  .plankopf dl { grid-template-columns: 1fr 1fr; }
  .plankopf dl > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--tusche); }
  .plankopf dl > div:nth-child(2) { border-left: 0; }
  .knoepfe .knopf { width: 100%; }
  .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 caption { order: 2; display: block; width: 100%; padding: .7rem 1rem .2rem; }
  .tabelle.stapel tr { border-bottom: 1.5px solid var(--tusche); padding: .4rem 0; }
  .tabelle.stapel tbody th { padding-bottom: .2rem; border: 0; }
  .tabelle.stapel td { border: 0; padding-top: .2rem; padding-bottom: .2rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; text-align: right; }
  .tabelle.stapel td::before { content: attr(data-spalte); font: 500 .875rem/1.3 var(--mono); color: var(--tusche-2); text-align: left; }
  .tabelle.stapel tr { padding: .5rem 0 .6rem; }
}

/* === 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 === */
