/* ImmoHai Landingpage — umgesetzt nach dem Claude-Design-Entwurf „ImmoHai v9".
   Farben wie 00_spec/data/design_tokens.json; die Seite ist ein eigenständiges
   statisches Artefakt ausserhalb des App-Baus (s. LIESMICH.md). */

@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/source-sans-3-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/source-sans-3-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/bricolage-grotesque-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/bricolage-grotesque-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --dunkel: #0F1B2D;
  --primaer: #093C72;
  --weiss: #FFFFFF;
  --flaeche: #F4F6F8;
  --linie: #E3E7EC;
  --sekundaer: #4B5665;
  --grau: #8A94A3;
  --gestrichelt: #C5CCD5;
  --gruen: #1E9E5A;
  --gelb: #BB8000;
  --rot: #D64545;
  --display: 'Bricolage Grotesque', 'Source Sans 3', system-ui, sans-serif;
  --text: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --feder: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--dunkel); color: var(--dunkel); font-family: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
img { display: block; }
button { font-family: inherit; }
a { color: var(--primaer); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--dunkel); }
:focus-visible { outline: 3px solid var(--primaer); outline-offset: 3px; }
.seite { text-wrap: pretty; overflow-x: clip; }

/* Geräteabhängige Teile: ohne JS gilt „Rechner". */
html:not([data-geraet="rechner"]) .nur-rechner { display: none !important; }
html[data-geraet="rechner"] .nur-telefon { display: none !important; }
html:not([data-geraet="ios"]) .nur-ios { display: none !important; }
html:not([data-geraet="android"]) .nur-android { display: none !important; }

/* ── 1 Rundgang ─────────────────────────────────────────── */
.szene { position: relative; height: 900vh; background: var(--dunkel); }
.ohne-js .szene { height: auto; }
.szene-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--weiss); }
.hg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08);
  transition: opacity .9s ease, transform 8s cubic-bezier(.2,.7,.2,1); }
.hg.an { opacity: 1; transform: scale(1); }
.schleier-quer { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,27,45,.62) 0%, rgba(15,27,45,.28) 45%, rgba(15,27,45,.05) 75%); }
.schleier-hoch { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,27,45,.42) 0%, rgba(15,27,45,0) 22%, rgba(15,27,45,0) 50%, rgba(15,27,45,.78) 100%); }
.blitz { position: absolute; inset: 0; background: var(--weiss); pointer-events: none; z-index: 5; opacity: 0; transition: opacity .25s; }
.blitz.an { opacity: .45; transition: none; }

.kopf { position: absolute; top: 0; left: 0; right: 0; padding: 18px 20px 0; max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 3; }
.marke { display: flex; align-items: center; gap: 10px; }
.marke img { width: 38px; height: 46px; object-fit: contain; }
.marke-text { display: flex; flex-direction: column; }
.marke-name { font-size: 20px; font-weight: 600; line-height: 1.1; }
.marke-claim { font-size: 13px; color: rgba(255,255,255,.88); }
.kopf-hinweis { font-size: 12px; color: rgba(255,255,255,.85); text-align: right; }

.sucher { position: absolute; inset: 84px 14px 28px; pointer-events: none; z-index: 2; transition: opacity .6s, transform .8s var(--feder); }
.ecke { position: absolute; width: 44px; height: 44px; border: 0 solid var(--weiss); }
.ecke-lo { left: 0; top: 0; border-left-width: 3px; border-top-width: 3px; border-top-left-radius: 14px; }
.ecke-ro { right: 0; top: 0; border-right-width: 3px; border-top-width: 3px; border-top-right-radius: 14px; }
.ecke-lu { left: 0; bottom: 0; border-left-width: 3px; border-bottom-width: 3px; border-bottom-left-radius: 14px; }
.ecke-ru { right: 0; bottom: 0; border-right-width: 3px; border-bottom-width: 3px; border-bottom-right-radius: 14px; }
.sucher-chip { position: absolute; left: 18px; top: 16px; display: none; background: rgba(15,27,45,.72); color: var(--weiss); font-size: 13px; font-weight: 600; border-radius: 999px; padding: 5px 14px; }
.szene.weiter .sucher { opacity: 0; transform: scale(1.06); }

.streifen { position: absolute; left: 20px; right: 20px; top: 76px; z-index: 3; display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity .5s; }
.szene.weiter .streifen { opacity: 1; }
.streifen-titel { font-size: 13px; font-weight: 600; }
.streifen-raster { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 5px; }
.streifen-feld { position: relative; aspect-ratio: 1; border-radius: 7px; overflow: hidden; background: rgba(255,255,255,.14); border: 1.5px dashed var(--gestrichelt); }
.streifen-feld.fertig { border: 0; }
.streifen-feld img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.streifen-feld.fertig img { opacity: 1; }
.streifen-feld .ampel { position: absolute; right: 3px; bottom: 3px; width: 9px; height: 9px; box-shadow: 0 0 0 1.5px var(--weiss); }

.szene-inhalt { position: absolute; inset: 0; max-width: 1240px; margin: 0 auto; padding: 96px 20px 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; z-index: 3; }
.szene.weiter .szene-inhalt { padding: 150px 20px 100px; }
.texte { flex: 1; min-width: 0; max-width: 620px; display: grid; align-self: stretch; align-content: end; }
.schritt { grid-area: 1 / 1; align-self: end; display: flex; flex-direction: column; gap: 16px; opacity: 0; transform: translateY(36px); pointer-events: none;
  transition: opacity .6s ease, transform .7s var(--feder); }
.schritt.vorbei { transform: translateY(-36px); }
.schritt.an { opacity: 1; transform: translateY(0); pointer-events: auto; }
.held { gap: 22px; }
.held h1 { font-family: var(--display); font-weight: 600; font-size: clamp(48px, 8vw, 112px); line-height: .94; letter-spacing: -.04em; max-width: 11ch; }
.held-lead { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.4; max-width: 38ch; color: rgba(255,255,255,.94); }
.ohne { font-size: 17px; font-weight: 600; }

/* Zugang anfragen — ADR-018. Ein Feld, ein Knopf; die große Fassung am Seitenende erklärt mehr. */
.zugang-form { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.zugang-zeile { display: flex; gap: 8px; flex-wrap: wrap; }
.zugang-feld { flex: 1 1 220px; min-width: 0; min-height: 56px; border: 0; border-radius: 16px; padding: 0 18px; font: inherit; font-size: 18px; color: var(--dunkel); background: var(--weiss); }
.zugang-feld::placeholder { color: var(--grau); }
.zugang-knopf { flex: 0 0 auto; min-height: 56px; padding: 0 24px; border: 0; border-radius: 16px; background: var(--primaer); color: var(--weiss); font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); }
.zugang-knopf:hover { background: #083361; }
.zugang-knopf[disabled] { opacity: .6; cursor: progress; }
.zugang-hinweis { font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.85); }
.zugang-hinweis a { color: var(--weiss); }
.zugang-meldung { font-size: 16px; line-height: 1.45; font-weight: 600; }
.zugang-meldung:empty { display: none; }
.zugang-form.fertig .zugang-zeile, .zugang-form.fertig .zugang-hinweis { display: none; }
.zugang-meldung.fehler { color: #FFD7D7; }
.zugang-karte { background: var(--weiss); color: var(--dunkel); border-radius: 20px; padding: 20px; max-width: 520px; }
.zugang-karte .zugang-titel { font-size: 21px; font-weight: 600; line-height: 1.2; }
.zugang-karte .zugang-text { font-size: 16px; line-height: 1.45; color: var(--sekundaer); }
.zugang-karte .zugang-feld { background: var(--flaeche); }
.zugang-karte .zugang-knopf { box-shadow: none; }
.zugang-karte .zugang-hinweis, .zugang-karte .zugang-hinweis a { color: var(--sekundaer); }
.zugang-karte .zugang-meldung { color: var(--dunkel); }
.zugang-karte .zugang-meldung.fehler { color: var(--rot); }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.installation-zusatz { font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.9); }

.kapitel { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.88); }
.schritt h2 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6vw, 80px); line-height: .96; letter-spacing: -.035em; }
.hai-sagt { display: flex; gap: 12px; align-items: flex-start; max-width: 34ch; }
.hai-sagt img { width: 34px; height: 40px; object-fit: contain; flex: none; }
.hai-sagt p { font-size: clamp(18px, 2vw, 22px); line-height: 1.35; }
.anleitung { display: none; flex-direction: column; gap: 4px; max-width: 46ch; border-left: 2px solid rgba(255,255,255,.5); padding: 2px 0 2px 14px; }
.anleitung-titel { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.anleitung-text { font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.92); }
.befund { display: flex; align-self: flex-start; align-items: center; gap: 10px; background: var(--weiss); color: var(--dunkel); border-radius: 999px; padding: 8px 16px 8px 10px; font-size: 15px; font-weight: 600;
  opacity: 0; transform: scale(.6); transition: transform .5s cubic-bezier(.3,1.5,.5,1) .4s, opacity .4s .4s; }
.schritt.an .befund { opacity: 1; transform: scale(1); }
.befund .punkt { width: 16px; height: 16px; }

.punkt, .punkt-klein, .punkt-legende, .ampel { border-radius: 50%; flex: none; display: inline-block; }
.gruen { background: var(--gruen); }
.gelb { background: var(--gelb); }
.rot { background: var(--rot); }
.weiss.punkt-legende, .ampel.weiss { background: var(--weiss); border: 1.5px solid var(--grau); }

.seitenpass { flex: none; display: none; flex-direction: column; align-items: flex-end; align-self: center; gap: 20px; }
.pass-karte { width: min(420px, 34vw); background: var(--weiss); color: var(--dunkel); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.4); padding: 20px 18px 16px; display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateX(60px) rotate(3deg); transition: opacity .6s, transform .8s var(--feder); }
.szene.weiter .pass-karte { opacity: 1; transform: translateX(0) rotate(0); }
.pass-kopf, .plan-pass-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px; }
.pass-marke { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.pass-marke img { width: 22px; height: 26px; object-fit: contain; }
.pass-datum { font-size: 13px; color: var(--sekundaer); }
.pass-titelzeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 6px 10px; border-bottom: 1px solid var(--linie); }
.pass-titel { display: flex; flex-direction: column; gap: 2px; }
.pass-gross { font-size: 24px; font-weight: 600; line-height: 1.1; }
.pass-klein { font-size: 13px; color: var(--sekundaer); }
.pass-zaehler { display: flex; gap: 10px; font-size: 14px; font-weight: 600; }
.pass-zaehler > span { display: flex; align-items: center; gap: 5px; }
.punkt-klein { width: 11px; height: 11px; }
.pass-zeilen { display: flex; flex-direction: column; gap: 3px; }
.pass-zeile { --zeile: clamp(32px, calc((100vh - 330px) / 9), 50px); display: flex; align-items: center; gap: 12px; height: var(--zeile); border-radius: 12px; padding: 0 6px; transition: background .4s; }
.pass-zeile.jetzt { background: var(--flaeche); }
.pass-bild { position: relative; width: calc(var(--zeile) - 8px); height: calc(var(--zeile) - 8px); border-radius: 8px; overflow: hidden; flex: none; background: var(--flaeche); border: 1.5px dashed var(--gestrichelt); }
.pass-zeile.fertig .pass-bild { border: 0; }
.pass-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, transform .8s var(--feder); }
.pass-zeile.fertig .pass-bild img { opacity: 1; }
.pass-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pass-name { font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #9AA3AF; transition: color .4s; }
.pass-zeile.fertig .pass-name { color: var(--dunkel); }
.pass-befund { font-size: 12.5px; line-height: 1.2; color: var(--sekundaer); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .5s .2s; }
.pass-zeile.fertig .pass-befund { opacity: 1; }
.pass-zeile .ampel { width: 14px; height: 14px; transform: scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1) .35s; }
.streifen-feld .ampel { transform: scale(0); transition: transform .4s; }
.pass-zeile.fertig .ampel, .streifen-feld.fertig .ampel { transform: scale(1); }
.pass-fuss { font-size: 11.5px; line-height: 1.35; color: var(--sekundaer); border-top: 1px solid var(--linie); padding: 10px 6px 0; }

.ausloeser { position: absolute; right: max(56px, calc((100% - 1200px) / 2 + 48px)); bottom: 72px; z-index: 4; display: none; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0; color: var(--weiss); cursor: pointer;
  transition: opacity .5s, transform .6s var(--feder); }
.szene.weiter .ausloeser { opacity: 0; transform: scale(1.06); pointer-events: none; }
.ausloeser-ring { width: 78px; height: 78px; border-radius: 50%; border: 4px solid var(--weiss); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.ausloeser:hover .ausloeser-ring { transform: scale(1.06); }
.ausloeser-kern { width: 62px; height: 62px; border-radius: 50%; background: var(--weiss); display: block; }
.ausloeser-text { font-size: 14px; font-weight: 600; }

@media (min-width: 980px) {
  .szene-inhalt, .szene.weiter .szene-inhalt { padding: 104px 20px 64px; }
  .sucher { inset: 88px max(20px, calc((100% - 1200px) / 2)) 40px; }
  .sucher-chip { display: block; }
  .anleitung { display: flex; }
  .seitenpass { display: flex; }
  .streifen { display: none; }
  .ausloeser { display: flex; }
}
@media (max-height: 679px) {
  .held { gap: 14px; }
  .held h1 { font-size: clamp(40px, 6vw, 72px); }
  .sucher-chip, .anleitung { display: none !important; }
}

/* Ohne JS: Der Rundgang steht still auf dem Einstieg, alles Weitere bleibt lesbar. */
.ohne-js .szene-buehne { position: relative; }
.ohne-js .schritt:not(.held), .ohne-js .streifen, .ohne-js .seitenpass, .ohne-js .ausloeser { display: none; }
.ohne-js .held { opacity: 1; transform: none; pointer-events: auto; }
.ohne-js .hg[data-i="0"] { opacity: 1; transform: none; }

/* ── Gemeinsame Abschnitte ──────────────────────────────── */
.abschnitt { color: var(--dunkel); padding: 104px 20px; }
.hellgrau { background: var(--flaeche); }
.weiss { background: var(--weiss); }
.rahmen { max-width: 1200px; margin: 0 auto; }
.spalte { display: flex; flex-direction: column; gap: 40px; }
.titel { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 5.6vw, 76px); line-height: .96; letter-spacing: -.035em; }
.schmal-16 { max-width: 16ch; }
.schmal-12 { max-width: 12ch; }

/* ── 2 Vergleich ────────────────────────────────────────── */
.abschnitt.vergleich-abschnitt { padding-bottom: 96px; }
.gross-abstand { gap: 44px; }
.einleitung { display: flex; flex-direction: column; gap: 16px; max-width: 60ch; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; }
.vergleich { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 56px; align-items: start; }
.matrix { display: flex; flex-direction: column; gap: 4px; }
.matrix-kopf, .matrix-zeile { display: grid; grid-template-columns: minmax(112px, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.matrix-zeile > span:first-child { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.matrix-kopf { padding: 0 10px 12px; border-bottom: 1px solid var(--linie); }
.haus { display: flex; flex-direction: column; gap: 2px; text-align: center; align-items: center; }
.haus-adr { font-size: 14px; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
.haus-meta { font-size: 12px; line-height: 1.25; color: var(--sekundaer); overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
.haus-meta .art::after { content: ' · '; }
@media (max-width: 719px) { .haus-meta .art { display: none; } }
.matrix-zeile { align-items: center; padding: 11px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--dunkel); cursor: pointer; text-align: left; font-size: 16px; font-weight: 600; transition: background .25s, box-shadow .25s; }
.matrix-zeile[aria-pressed="true"] { background: var(--weiss); box-shadow: 0 8px 24px rgba(15,27,45,.08); }
.zelle { display: flex; justify-content: center; align-items: center; font-size: 16px; font-weight: 400; color: var(--grau); }
.zelle .ampel { width: 16px; height: 16px; }
.legende { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 16px 10px 0; font-size: 14px; line-height: 1.3; }
.legende > span { display: flex; align-items: center; gap: 8px; }
.punkt-legende { width: 12px; height: 12px; }
.strich { color: var(--grau); }
.auswahl { display: flex; flex-direction: column; gap: 14px; }
.auswahl-titel { font-size: 20px; font-weight: 600; }
.auswahl-bilder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.auswahl-bild { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--linie); }
.auswahl-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auswahl-leer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px 16px 56px; text-align: center; font-size: 14px; color: var(--sekundaer); }
.auswahl-etikett { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 8px; background: var(--weiss); border-radius: 12px; padding: 6px 10px; }
.auswahl-etikett .ampel { width: 12px; height: 12px; }
.auswahl-etikett .ampel.keins { background: transparent; border: 1.5px solid var(--grau); }
.auswahl-etikett div { display: flex; flex-direction: column; min-width: 0; }
.auswahl-etikett b { font-size: 13px; line-height: 1.2; }
.auswahl-etikett span { font-size: 12px; line-height: 1.2; color: var(--sekundaer); }
.auswahl-hinweis { font-size: 14px; line-height: 1.45; color: var(--sekundaer); }

/* ── 3 Probleme ─────────────────────────────────────────── */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; align-items: stretch; }
.karte { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--flaeche); min-height: 100%; }
.karte-nr { padding: 22px 24px 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--primaer); }
.karte-problem { padding: 8px 24px 22px; flex: 1; font-size: clamp(19px, 1.9vw, 22px); line-height: 1.35; color: var(--dunkel); transition: color .5s .2s; }
.karte-problem span { background-image: linear-gradient(var(--dunkel), var(--dunkel)); background-repeat: no-repeat; background-position: 0 58%; background-size: 0% 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .7s cubic-bezier(.6,0,.2,1); }
.karte-loesung { margin-top: auto; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--feder) .35s; }
.karte-loesung > div { overflow: hidden; min-height: 0; }
.loesung-innen { display: flex; gap: 14px; align-items: flex-start; background: var(--primaer); color: var(--weiss); padding: 22px 24px 24px; }
.loesung-innen p { font-size: clamp(17px, 1.7vw, 19px); line-height: 1.45; font-weight: 600; }
.haken { width: 30px; height: 30px; border-radius: 50%; background: var(--weiss); flex: none; display: flex; align-items: center; justify-content: center; transform: scale(.2); transition: transform .45s cubic-bezier(.3,1.6,.5,1) .8s; }
.haken svg { fill: none; stroke: var(--primaer); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.karte.offen .karte-problem, .ohne-js .karte-problem { color: #5B6675; }
.karte.offen .karte-problem span, .ohne-js .karte-problem span { background-size: 100% 2px; }
.karte.offen .karte-loesung, .ohne-js .karte-loesung { grid-template-rows: 1fr; }
.karte.offen .haken, .ohne-js .haken { transform: scale(1); }

/* ── 3b Planung ─────────────────────────────────────────── */
.plan-abstand { gap: 48px; }
.plan-einleitung { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.plan-hinweis { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.45; max-width: 36ch; color: var(--sekundaer); }
.plan-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px 64px; align-items: start; }
.plan-links { display: flex; flex-direction: column; gap: 24px; }
.plan-reiter { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-reiter button { border: 1.5px solid var(--primaer); border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 600; cursor: pointer; background: transparent; color: var(--primaer); transition: background .3s, color .3s; }
.plan-reiter button[aria-selected="true"] { background: var(--primaer); color: var(--weiss); }
.plan-fortschritt { height: 3px; border-radius: 999px; background: var(--linie); overflow: hidden; }
.plan-fortschritt span { display: block; height: 100%; width: 0; background: var(--primaer); }
.plan-fortschritt.laeuft span { width: 100%; transition: width 5s linear; }
.plan-liste { display: flex; flex-direction: column; border-bottom: 1px solid var(--linie); }
.plan-punkt { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 16px 0; border-top: 1px solid var(--linie); opacity: .42; transition: opacity .4s; }
.plan-punkt.an { opacity: 1; }
.plan-dot { width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; flex: none; border: 2px solid var(--primaer); transition: background .3s; }
.plan-punkt.an .plan-dot { background: var(--primaer); }
.plan-punkt > div { display: flex; flex-direction: column; gap: 4px; }
.plan-punkt p { font-size: 16px; line-height: 1.5; }
.plan-punkt .plan-punkt-titel { font-size: clamp(18px, 1.7vw, 20px); font-weight: 600; line-height: 1.3; }
.plan-pass { background: var(--weiss); border-radius: 20px; box-shadow: 0 30px 70px rgba(15,27,45,.12); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.plan-pass-kopf { border-bottom: 1px solid var(--linie); padding: 0 0 14px; }
.plan-gruppe { display: flex; flex-direction: column; gap: 8px; }
.plan-gruppe + .plan-gruppe { gap: 10px; }
.plan-etikett { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sekundaer); }
.plan-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-chip { display: flex; align-items: center; gap: 8px; background: var(--flaeche); border-radius: 999px; padding: 6px 12px 6px 6px; font-size: 14px; font-weight: 600; }
.plan-chip-haken { width: 20px; height: 20px; border-radius: 50%; background: var(--primaer); display: flex; align-items: center; justify-content: center; }
.plan-chip-haken svg { fill: none; stroke: var(--weiss); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.plan-module { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.plan-modul { display: flex; flex-direction: column; gap: 10px; border-radius: 16px; padding: 14px; cursor: pointer; background: var(--weiss); border: 1.5px dashed var(--gestrichelt);
  opacity: 0; transform: translateY(16px); transition: opacity .45s, transform .5s var(--feder), border-color .3s; }
.plan.sichtbar .plan-modul, .ohne-js .plan-modul { opacity: .5; transform: translateY(0); }
.plan.sichtbar .plan-modul.an, .ohne-js .plan-modul.an { opacity: 1; transform: translateY(-2px); border: 2px solid var(--primaer); }
.plan-modul.breit { grid-column: 1 / -1; }
.plan-modul-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.plan-modul-chip { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 9px; white-space: nowrap; background: var(--flaeche); color: var(--sekundaer); transition: background .3s, color .3s; }
.plan-modul.an .plan-modul-chip { background: var(--primaer); color: var(--weiss); }
.mini-karte { position: relative; height: 76px; border-radius: 12px; background: #EEF1F4; overflow: hidden; }
.strasse { position: absolute; background: var(--weiss); }
.strasse.quer { left: 0; right: 0; top: 46%; height: 2px; }
.strasse.hoch { top: 0; bottom: 0; width: 2px; }
.pin { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--primaer); box-shadow: 0 0 0 3px var(--weiss); }
.balken { display: flex; flex-direction: column; gap: 9px; }
.balken > div { display: flex; align-items: center; gap: 10px; }
.balken span { font-size: 12px; color: var(--sekundaer); width: 104px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.balken i { flex: 1; height: 8px; border-radius: 999px; background: #EEF1F4; }
.balken small { font-size: 11.5px; color: var(--sekundaer); }
.dachflaechen { display: flex; gap: 8px; height: 44px; }
.dachflaechen i { border-radius: 8px; background: #EEF1F4; }

/* ── 4 Schluss ──────────────────────────────────────────── */
.schluss { background: var(--primaer); color: var(--weiss); padding: 96px 20px 48px; overflow: hidden; }
.schluss a { color: var(--weiss); }
.schluss-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 64px; align-items: center; }
.schluss-hai { display: flex; justify-content: center; }
.schluss-hai img { width: min(340px, 70%); height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); opacity: 0; transform: translateY(50px) rotate(-6deg); transition: transform 1.1s var(--feder), opacity .8s; }
.schluss.gesehen .schluss-hai img, .ohne-js .schluss-hai img { opacity: 1; transform: none; }
.schluss-text { display: flex; flex-direction: column; gap: 24px; }
.installation { display: flex; flex-direction: column; gap: 14px; }
.installation-titel { font-size: 17px; font-weight: 600; }
.installation-schritte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.installation-schritte > div { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.installation-schritte p { font-size: 14px; line-height: 1.35; }
.installation-bild { width: 100%; aspect-ratio: 1; border-radius: 16px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; padding: 10px; }
.installation-bild svg { fill: none; stroke: var(--weiss); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.installation-menue { width: 100%; background: var(--weiss); color: var(--dunkel); border-radius: 10px; padding: 8px 10px; font-size: 11px; line-height: 1.2; }
.installation-knopf { font-size: 15px; font-weight: 600; }
.installation-android { font-size: 16px; line-height: 1.45; color: rgba(255,255,255,.9); }
.geraete { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: rgba(255,255,255,.8); }
.rechtlich { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.88); max-width: 72ch; border-top: 1px solid rgba(255,255,255,.2); padding-top: 24px; }
.fuss { border-top: 1px solid rgba(255,255,255,.2); padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: rgba(255,255,255,.8); }
.fuss-marke { display: flex; align-items: center; gap: 8px; }
.fuss-marke img { width: 22px; height: 26px; object-fit: contain; }
.fuss-marke b { color: var(--weiss); }
.fuss-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.klebeleiste { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: center; z-index: 10;
  opacity: 0; transform: translateY(100%); pointer-events: none; transition: opacity .3s, transform .35s var(--feder); }
.klebeleiste.an { opacity: 1; transform: none; pointer-events: auto; }
.klebeleiste a { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 480px; min-height: 56px; background: var(--weiss); color: var(--primaer); font-size: 19px; font-weight: 600; border-radius: 16px; text-decoration: none; box-shadow: 0 10px 30px rgba(15,27,45,.35); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  .blitz { display: none; }
}

/* ── Rechtsseiten (impressum.html, datenschutz.html) ────── */
.recht-seite { background: var(--weiss); }
.recht-kopf { background: var(--dunkel); color: var(--weiss); padding: 18px 20px; }
.recht-kopf-innen { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.recht-kopf a { color: var(--weiss); }
.recht-kopf .marke { color: var(--weiss); text-decoration: none; }
.recht-zurueck { font-size: 15px; }
.recht { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; color: var(--dunkel); }
.recht h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6vw, 64px); line-height: .96; letter-spacing: -.035em; margin-bottom: 12px; }
.recht h2 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 30px); line-height: 1.1; letter-spacing: -.02em; margin: 48px 0 14px; scroll-margin-top: 24px; }
.recht h3 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
.recht p, .recht li { font-size: 17px; line-height: 1.6; }
.recht p + p { margin-top: 12px; }
.recht ul { margin: 8px 0 0; padding-left: 22px; }
.recht li + li { margin-top: 6px; }
.recht .stand { color: var(--sekundaer); font-size: 15px; }
.recht .adresse { white-space: pre-line; }
.recht .kasten { background: var(--flaeche); border-radius: 16px; padding: 20px 22px; margin-top: 16px; }
.recht-fuss { background: var(--primaer); color: rgba(255,255,255,.8); padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
.recht-fuss .fuss { max-width: 760px; margin: 0 auto; border-top: 0; padding-top: 0; }
.recht-fuss a { color: var(--weiss); }
