/* Startseite: Bühne mit 3D-Szene hinter der Seite, helle Abschnitte schieben sich darüber. Hell ist Standard, dunkel per Schalter. */
:root {
  --night: #070b10; --night-2: #0d141b; --paper: #fbf5ea; --ink: #2b2a26; --mute-d: #8a98a6; --mute-l: #6a6052;
  --heat: #ff6a2b; --heat-2: #ffb35c; --cold: #4fb0e8; --spark: #f2a03a; --line-d: rgba(255, 255, 255, .12);
  --f: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; --f-cond: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --menu-bg: var(--night); --menu-ink: #f3ecdd; --menu-line: var(--line-d);
  color-scheme: dark;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--night); color: #f3ecdd; font: 18px/1.55 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden }
a { color: inherit }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0 }
main, .foot { position: relative; z-index: 1 }
#progress { position: fixed; z-index: 60; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--cold), var(--heat), var(--heat-2)) }
#loader { position: fixed; inset: 0; z-index: 80; background: var(--night); display: grid; place-content: center; justify-items: center; gap: 14px; font-weight: 800; font-size: 28px; letter-spacing: -.02em; transition: opacity .9s, visibility .9s; animation: ms-hide 0s 8s forwards }
/* Letztes Netz, falls gar kein Skript läuft: nach 8 s ist die Ladeanzeige auch ohne JavaScript weg */
@keyframes ms-hide { to { opacity: 0; visibility: hidden } }
#loader img { width: 64px; animation: pulse 1.4s ease-in-out infinite } #loader.done { opacity: 0; visibility: hidden }
@keyframes pulse { 50% { transform: scale(.9); opacity: .6 } }

.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: calc(14px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 14px max(24px, env(safe-area-inset-left, 0px)); transition: background .4s, color .4s }
.nav.solid { background: color-mix(in srgb, var(--night) 70%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px) }
.nav.on-light { color: var(--ink) } .nav.on-light.solid { background: color-mix(in srgb, var(--paper) 82%, transparent) }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none } .brand b { font-size: 20px; letter-spacing: -.01em }
.nav nav { display: flex; gap: 26px; margin: 0 auto; font-size: 15px; font-weight: 600 } .nav nav a { text-decoration: none; opacity: .72 } .nav nav a:hover { opacity: 1 }
.nav-cta { text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 999px; background: var(--heat); color: #1a0d04; transition: transform .25s, box-shadow .25s; box-shadow: 0 0 0 0 rgba(255, 106, 43, .5) }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(255, 106, 43, .8) }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-left, 0px)) }
.kicker { margin: 0 0 18px; font: 700 14px var(--f-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--heat) }
.light { background: var(--paper); color: var(--ink) } .light .kicker { color: #a84318 }
.dark { background: var(--night) }
/* Aufdecken nur, wenn ui.js läuft (html.ui); sonst ist jeder Text von Anfang an sichtbar */
.ui .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1) } .ui .reveal.in { opacity: 1; transform: none }
.skip { position: absolute; left: -999px; z-index: 90 } .skip:focus { left: 16px; top: 12px; background: #fff; color: #2b2a26; padding: 8px 14px; border-radius: 8px }
/* Maske nur unten (dort taucht das Wort auf): overflow: hidden schnitt bei enger Laufweite den letzten Buchstaben rechts ab (das „s“ in „Jedes“) */
.split .w { display: inline-block; clip-path: inset(-.5em -.3em 0 -.3em); vertical-align: top; padding-bottom: .08em }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.2s cubic-bezier(.16, .85, .1, 1) } .split.in .w > span { transform: none }

/* 3D-Abschnitte: durchsichtig, Text liegt über der Szene */
.scene { position: relative } .pin { position: sticky; top: 0; height: 100vh; overflow: hidden }
.hero { height: 240vh } .weg { height: 560vh } .wetter { height: 320vh }
/* Menüsprung nach #wetter landet am Wetter-Anfang (Haus geschlossen, Kamera draußen), nicht im letzten Bild von #weg: WX0 in story.js */
#wetter { scroll-margin-top: -38vh }
.hero-copy { position: absolute; left: max(24px, env(safe-area-inset-left, 0px)); bottom: 14vh; max-width: 760px }
.hero h1 { margin: 0; font-size: clamp(60px, 11vw, 180px); line-height: .88; letter-spacing: -.05em; font-weight: 800; text-shadow: 0 10px 60px rgba(0, 0, 0, .5) }
.lead { color: #b5c1cc; font-size: 20px; max-width: 44ch; margin: 22px 0 0 }
.scroll-cue { position: absolute; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 28px; font: 600 12px var(--f-cond); letter-spacing: .2em; text-transform: uppercase; color: var(--mute-d); display: flex; align-items: center; gap: 10px }
.scroll-cue span { width: 44px; height: 1px; background: var(--mute-d); animation: cue 1.8s ease-in-out infinite; transform-origin: left }
@keyframes cue { 50% { transform: scaleX(.3) } }

.panel-left { position: absolute; left: max(24px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); width: min(430px, 40vw); padding: 26px 28px; border-radius: 20px; background: rgba(9, 14, 20, .55); border: 1px solid var(--line-d); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px) }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px }
.steps li { opacity: .25; transition: opacity .5s; border-left: 2px solid var(--line-d); padding: 2px 0 2px 16px }
.steps li b { display: block; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.02em } .steps li span { display: block; color: var(--mute-d); font-size: 16px; max-height: 0; overflow: hidden; transition: max-height .6s }
.steps li.on { opacity: 1; border-left-color: var(--heat) } .steps li.on span { max-height: 110px } .steps li.done { opacity: .5 }
.hud { position: absolute; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 8vh; display: grid; grid-template-columns: auto auto; gap: 2px 18px; align-items: baseline; padding: 18px 22px; border-radius: 16px; background: rgba(9, 14, 20, .55); border: 1px solid var(--line-d); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px) }
.hud-l { font: 700 13px var(--f-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--mute-d) } .hud b { font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--heat-2) }

/* Rechte Spalte im Wetter: Rad oben, Leistungskarte unten; dazwischen stehen Außeneinheit, Erdschnitt und Inneneinheit */
.wetter { --dial: min(17vw, 240px) }
.dial { position: absolute; right: max(24px, env(safe-area-inset-right, 0px)); top: calc(78px + 1vh); width: var(--dial); aspect-ratio: 1 }
.dial svg { width: 100%; height: 100%; transform: rotate(135deg) } .ring { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 6; stroke-dasharray: 405 540 }
.arc { fill: none; stroke: url(#none); stroke: var(--cold); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 540; filter: drop-shadow(0 0 10px var(--cold)) }
#dial-ticks line { stroke: rgba(255, 255, 255, .25); stroke-width: 1.5 }
.dial-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center }
.dial-num b { font-size: clamp(44px, 4.4vw, 76px); line-height: .9; letter-spacing: -.05em; font-weight: 800; font-variant-numeric: tabular-nums } .dial-num span { color: var(--mute-d); font: 700 14px var(--f-cond); letter-spacing: .14em; text-transform: uppercase }
/* Leistung gegen Bedarf, neben dem Rad: Balken "Bedarf" und "Wärmepumpe schafft"; die Lücke füllt der Heizstab */
.hp-card { position: absolute; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 5vh; width: min(330px, 26vw); padding: 16px 18px 14px; border-radius: 16px; background: rgba(9, 14, 20, .62); border: 1px solid var(--line-d); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; gap: 6px; font-size: 14px }
.hpc-row { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px } .hpc-row span { font: 700 12px var(--f-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--mute-d) }
.hpc-row b { font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap }
.hpc-bar { position: relative; display: block; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: 6px }
.hpc-bar em, .hpc-bar u { position: absolute; top: 0; bottom: 0; left: 0; width: 0 }
.hpc-bar.need em { background: repeating-linear-gradient(135deg, #8a98a6 0 5px, #6e7c8a 5px 10px) }
.hpc-bar.have em { background: linear-gradient(90deg, #2f8fd0, var(--cold)) }
.hpc-bar u { background: linear-gradient(90deg, #ff4d0d, var(--heat-2)); box-shadow: 0 0 14px rgba(255, 106, 43, .8); border-left: 2px solid rgba(0, 0, 0, .25) }
/* Leistungskarte: Überschrift, gemeinsame Skala, Bedarfsmarke auf dem Wärmepumpen-Balken, Urteil in Worten */
.hpc-h { margin: 0 0 4px; font: 700 12px var(--f-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--mute-d) } .hpc-h b { color: inherit; font-variant-numeric: tabular-nums }
.hpc-bar s { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dashed #f3ecdd; margin-left: -1px; text-decoration: none; transition: left .2s }
.hpc-scale { margin: -2px 0 2px; display: flex; justify-content: space-between; font-size: 10px; color: var(--mute-d); font-variant-numeric: tabular-nums }
.hpc-say { margin: 4px 0 0; display: flex; align-items: flex-start; gap: 8px; font-weight: 700; font-size: 14px; line-height: 1.3 }
.hpc-say i { flex: none; width: 10px; height: 10px; margin-top: .3em; border-radius: 50%; background: #2fa36b }
.hpc-say.tight i { background: #e0a21b } .hpc-say.no i { background: linear-gradient(90deg, #ff4d0d, var(--heat-2)); box-shadow: 0 0 10px rgba(255, 106, 43, .8) }
.hpc-rod { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--heat-2); opacity: 0; max-height: 0; overflow: hidden; transition: opacity .3s, max-height .3s, margin .3s }
/* Zeile für den Heizstab nur, wenn er läuft (sonst bliebe unten ein leerer Streifen) */
.hp-card.rod-on .hpc-rod { max-height: 3em; margin-top: 2px }
html[data-theme="light"] .hp-card { background: rgba(255, 253, 247, .88); border-color: rgba(43, 42, 38, .1); box-shadow: 0 30px 60px -30px rgba(43, 42, 38, .3); color: #2b2a26 }
html[data-theme="light"] .hpc-bar s { border-left-color: #2b2a26 } html[data-theme="light"] .hpc-rod { color: #a84318 }
html[data-theme="light"] .hpc-row span, html[data-theme="light"] .hpc-h, html[data-theme="light"] .hpc-scale { color: #6a6052 } html[data-theme="light"] .hpc-bar { background: rgba(43, 42, 38, .08) }
html[data-theme="light"] .hpc-bar.need em { background: repeating-linear-gradient(135deg, #7b8794 0 5px, #9aa5b0 5px 10px) } html[data-theme="light"] .hpc-bar.have em { background: linear-gradient(90deg, #2a6f91, #2f8fd0) }
/* Etikett am Heizstab im Keller: Punkt am Stab (Lage aus main.js), Karte rechts unterhalb mit Linie, verdeckt den Schnitt nicht */
.rod-tag { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; visibility: hidden; will-change: transform, opacity }
.rod-tag .tag-dot { left: -5px; top: -5px; animation: none }
.rod-tag::before { content: ""; position: absolute; left: 0; top: 0; width: 46px; height: 1px; background: var(--heat); transform-origin: 0 0; transform: rotate(32deg) }
.rod-tag p { position: absolute; left: 38px; top: 22px; margin: 0; padding: 7px 11px 8px; border-radius: 10px; background: rgba(9, 14, 20, .72); border: 1px solid var(--line-d); font-size: 12px; line-height: 1.25; white-space: nowrap }
.hp-tag b { color: var(--cold) } .hp-tag .tag-dot { background: var(--cold); box-shadow: 0 0 0 4px rgba(79, 176, 232, .25), 0 0 14px rgba(79, 176, 232, .9) }
html[data-theme="light"] .rod-tag.hp-tag b { color: #2a6f91 }
.rod-tag.flip::before { transform: rotate(148deg) } .rod-tag.flip p { left: auto; right: 38px }
.rod-tag.mid::before { width: 22px; transform: rotate(90deg) } .rod-tag.mid p { left: 0; top: 22px; transform: translateX(-50%) } .rod-tag.mid.up::before { transform: rotate(-90deg) } .rod-tag.mid.up p { top: auto; bottom: 22px }
.rod-tag.up::before { transform: rotate(-32deg) } .rod-tag.up p { top: auto; bottom: 22px } .rod-tag.up.flip::before { transform: rotate(-148deg) }
.rod-tag b { display: block; font-size: 14px; color: var(--heat-2) } .rod-tag span { color: var(--mute-d) }
html[data-theme="light"] .rod-tag p { background: rgba(255, 253, 247, .93); border-color: rgba(43, 42, 38, .1); color: #2b2a26; box-shadow: 0 16px 30px -18px rgba(43, 42, 38, .45) } html[data-theme="light"] .rod-tag b { color: #a84318 } html[data-theme="light"] .rod-tag span { color: #6a6052 }
/* Schmalere Desktops: Rad kleiner und weiter rechts, damit Zahl und Haus (nach rechts versetzt, camera.js) sich weniger decken */
/* 821 bis 1300 px: Karte oben unter dem Rad, unten rechts bleiben Außeneinheit und Erdschnitt frei */
@media (min-width: 821px) and (max-width: 1300px) { .wetter { --dial: 17vw } .hp-card { width: 28vw; top: calc(78px + 1vh + var(--dial) + 12px); bottom: auto } }
/* Dort liegt die Zahl teils vor dem Haus: heller (bzw. dunkler) Hof hält sie lesbar */
@media (min-width: 821px) and (max-width: 1300px) { html[data-theme="light"] .dial-num b { text-shadow: 0 0 16px rgba(251, 245, 234, .95), 0 0 4px rgba(251, 245, 234, .9) } html[data-theme="dark"] .dial-num b { text-shadow: 0 0 16px rgba(7, 11, 16, .9) } }
.wetter-copy { position: absolute; left: max(24px, env(safe-area-inset-left, 0px)); bottom: 12vh; max-width: min(560px, 30vw) }
.wetter-copy h2 { margin: 0; font-size: clamp(40px, 4.6vw, 84px); line-height: .95; letter-spacing: -.04em; font-weight: 800 }

.numbers { padding: 18vh 0 16vh; border-radius: 40px 40px 0 0; margin-top: -40px }
.num-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3vw }
.num { container-type: inline-size; min-width: 0 }
/* Höchstens so groß, dass „21.000“ in die Spalte passt (27 % der Spaltenbreite je Zeichengröße) */
.num b { display: block; font-size: min(clamp(56px, 7vw, 112px), 27cqi); line-height: 1; letter-spacing: -.04em; font-weight: 800; font-variant-numeric: tabular-nums } .num span { display: block; margin-top: 10px; color: var(--mute-l); font-size: 17px; max-width: 20ch } .num:nth-child(2) b { color: #a84318 }

.walk { height: 280vh; position: relative } .walk-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; align-content: center; perspective: 900px }
.walk-line { position: relative; z-index: 2; margin: 0 auto; max-width: 18ch; text-align: center; font-size: clamp(40px, 6vw, 92px); line-height: 1; letter-spacing: -.035em; font-weight: 800 }
.walk-line em { display: block; font-style: normal; color: var(--mute-l); font-weight: 600; font-size: .42em; letter-spacing: -.01em; margin-top: 16px }
.milli { position: absolute; z-index: 3; bottom: 16vh; left: 0; background-repeat: no-repeat; will-change: transform, background-position; filter: drop-shadow(0 18px 12px rgba(0, 0, 0, .18)) }
.layer { position: absolute; left: 0; width: 320vw; pointer-events: none; will-change: transform; background-repeat: repeat-x }
.layer.far { bottom: 22vh; height: 34vh; opacity: .35; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cpath d='M0 300V190L60 140L120 190V300M150 300V170L230 100L310 170V300M360 300V200L410 160L460 200V300M500 300V180L550 140L600 180V300Z' fill='%23c9c1b2'/%3E%3C/svg%3E"); background-size: auto 100% }
.layer.mid { bottom: 16vh; height: 22vh; opacity: .55; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='200'%3E%3Cg fill='%23a8a091'%3E%3Ccircle cx='80' cy='90' r='60'/%3E%3Crect x='74' y='120' width='12' height='80'/%3E%3Ccircle cx='330' cy='110' r='45'/%3E%3Crect x='325' y='140' width='10' height='60'/%3E%3C/g%3E%3C/svg%3E"); background-size: auto 100% }
.layer.near { z-index: 4; bottom: 0; height: 16vh; background: linear-gradient(#e6dfd2, #ddd5c6); border-top: 2px solid rgba(43, 42, 38, .25) }

.episodes { height: 380vh; position: relative } .ep-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4vh }
.ep-head { padding: 0 max(24px, env(safe-area-inset-left, 0px)) } .ep-head h2, .tools h2 { margin: 0; font-size: clamp(48px, 8vw, 128px); line-height: .92; letter-spacing: -.045em; font-weight: 800 }
.ep-stage { perspective: 1400px; perspective-origin: 50% 40% }
.ep-track { display: flex; gap: 28px; padding-left: max(24px, env(safe-area-inset-left, 0px)); transform-style: preserve-3d; will-change: transform }
.ep-card { flex: none; width: min(460px, 78vw); aspect-ratio: 4 / 3.2; border-radius: 22px; background: var(--night-2); border: 1px solid var(--line-d); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; text-decoration: none; position: relative; overflow: hidden; transform-style: preserve-3d; will-change: transform; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8) }
.ep-card img { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; opacity: .6; will-change: transform }
.ep-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(7, 11, 16, .94)) } .ep-card > * { position: relative; z-index: 2 }
.ep-no { position: absolute !important; top: 18px; left: 22px; font: 800 64px var(--f); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .5) }
.ep-card b { font-size: 26px; line-height: 1.15; letter-spacing: -.02em } .ep-card em { font-style: normal; color: var(--mute-d); font-size: 15px }
.ep-card.soon { background: radial-gradient(80% 60% at 70% 20%, rgba(255, 106, 43, .12), transparent 70%), repeating-linear-gradient(135deg, var(--night-2) 0 14px, #121b24 14px 28px) }

.tools { padding: 16vh 0; border-radius: 40px 40px 0 0 } .tools h2 { color: var(--ink); margin-bottom: 6vh }
.bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: minmax(220px, auto); gap: 18px; perspective: 1200px }
.tile { border-radius: 22px; background: #fffdf7; border: 1px solid rgba(43, 42, 38, .08); padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; text-decoration: none; color: var(--ink); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; transform-style: preserve-3d }
.tile:hover { box-shadow: 0 30px 60px -30px rgba(43, 42, 38, .45) }
.tile b { font-size: 26px; letter-spacing: -.02em } .tile span { color: var(--mute-l) }
.tile.big { grid-row: span 2; background: var(--ink); color: #fff; justify-content: flex-end; background-image: radial-gradient(70% 60% at 80% 20%, rgba(255, 106, 43, .55), transparent 70%) }
.tile.big b { font-size: 46px } .tile.big span { color: #c4ccd4; max-width: 30ch }
.arrow { position: absolute; top: 22px; right: 26px; font-style: normal; font-size: 30px } .curve-tile svg { width: 100%; height: auto } .curve-tile input { accent-color: var(--heat) }

.stance { padding: 22vh 0 18vh; border-radius: 40px 40px 0 0; margin-top: -40px; position: relative; z-index: 2 }
.big-quote { margin: 0 0 10vh; font-size: clamp(44px, 7vw, 112px); line-height: .98; letter-spacing: -.045em; font-weight: 800; max-width: 14ch }
.stance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3vw; color: var(--mute-d) } .stance-grid b { color: #fff; display: block; font-size: 22px }

@media (max-width: 820px) {
  .panel-left { top: auto; bottom: 3vh; transform: none; width: auto; right: 16px; left: 16px; padding: 16px 18px } .steps li:not(.on) { display: none } .hud { top: 76px; bottom: auto; right: 16px; padding: 10px 14px } .hud b { font-size: 22px }
  .dial { width: 62vw; right: 50%; transform: translate(50%, -60%); top: 38% } .wetter-copy { bottom: 4vh; right: 16px; max-width: none } .wetter-copy h2 { font-size: 34px }
  .big-quote { font-size: clamp(34px, 10.5vw, 112px) }
  .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8vh } .num b { font-size: min(clamp(34px, 10.5vw, 112px), 27cqi) } .bento { grid-template-columns: minmax(0, 1fr) } .tile.big { grid-row: auto; min-height: 280px } .stance-grid { grid-template-columns: minmax(0, 1fr) }
}
@media (prefers-reduced-motion: reduce) { .ui .reveal, .split .w > span { transition: none; opacity: 1; transform: none } .scroll-cue span, #loader img { animation: none } }
/* Kompakte Leistungskarte auf dem Handy */
@media (max-width: 820px), (orientation: landscape) and (max-height: 520px) { .hpc-row b { font-size: 15px } .hpc-row span { font-size: 9px; letter-spacing: .08em } .hpc-bar { height: 6px; margin-bottom: 3px } .hpc-rod { font-size: 10px; gap: 6px; line-height: 1.25 } .hpc-h { font-size: 9px; letter-spacing: .08em; margin-bottom: 1px } .hpc-scale { display: none } .hpc-say { font-size: 11px; gap: 6px; margin-top: 2px } .hpc-say i { width: 8px; height: 8px } }
/* Handy hoch: Wetter-Rad klein oben rechts, das Haus bleibt zwischen Rad und Text frei (Bildversatz in camera.js) */
@media (max-width: 820px) and (orientation: portrait) {
  .dial { width: 34vw; max-width: 220px; top: calc(70px + env(safe-area-inset-top, 0px)); right: 16px; transform: none }
  .dial-num b { font-size: clamp(34px, 10vw, 72px) } .dial-num span { font-size: 10px; letter-spacing: .1em }
  /* Leistungskarte klein oben links neben dem Rad, Texte bleiben unten */
  .hp-card { top: calc(70px + env(safe-area-inset-top, 0px)); left: 16px; right: auto; bottom: auto; width: auto; max-width: calc(100vw - min(34vw, 220px) - 44px); padding: 9px 11px 8px; gap: 2px; border-radius: 12px }
}
/* Handy quer (auch breite Handys ab 820 px, z. B. 844×390): Tafeln links als Spalte, das Haus rückt nach rechts (Bildversatz in camera.js) */
@media (max-width: 820px) and (orientation: landscape), (orientation: landscape) and (max-height: 520px) {
  .hero-copy { bottom: 9vh; max-width: 56vw } .hero h1 { font-size: clamp(40px, 7.2vw, 60px) }
  .scene .kicker { font-size: 11px; margin-bottom: 8px } .scene .lead { font-size: 15px; margin-top: 10px; max-width: 40ch }
  .nav nav { gap: 16px; font-size: 13px } .nav nav a { white-space: nowrap } .nav { padding-top: 10px; padding-bottom: 10px }
  .panel-left { transform: none; top: calc(64px + env(safe-area-inset-top, 0px)); bottom: auto; right: auto; left: max(16px, env(safe-area-inset-left, 0px)); width: 38vw; max-height: calc(100vh - 78px); overflow: hidden; padding: 12px 16px }
  .steps li b { font-size: 18px } .steps li span { font-size: 14px; line-height: 1.4 }
  .hud { top: auto; bottom: 12px; right: max(16px, env(safe-area-inset-right, 0px)); padding: 8px 12px; gap: 0 12px } .hud b { font-size: 18px } .hud-l { font-size: 11px }
  .dial { width: min(42vh, 24vw); right: max(16px, env(safe-area-inset-right, 0px)); top: calc(50% + 26px); transform: translateY(-50%) }
  .dial-num b { font-size: clamp(30px, 5.4vw, 48px) } .dial-num span { font-size: 9px; letter-spacing: .1em }
  /* Rad oben rechts, Leistungskarte klein darunter in der rechten Ecke */
  .dial { width: min(34vh, 19vw); top: calc(52px + env(safe-area-inset-top, 0px)); transform: none }
  .hp-card { top: auto; bottom: 50px; right: max(16px, env(safe-area-inset-right, 0px)); width: 216px; padding: 8px 10px 7px; gap: 2px; border-radius: 12px }
  /* unten 54 px frei: im letzten Bild schiebt sich der nächste Abschnitt 40 px über die Bühne */
  .wetter-copy { left: max(16px, env(safe-area-inset-left, 0px)); right: auto; bottom: 54px; max-width: 50vw } .wetter-copy h2 { font-size: clamp(22px, 3.6vw, 30px) }
}

/* Umschalter hell/dunkel */
.theme { border: 1px solid currentColor; background: none; color: inherit; border-radius: 999px; width: 54px; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 7px; cursor: pointer; opacity: .8; font-size: 14px; position: relative }
.theme::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: currentColor; opacity: .18; transition: transform .35s }
html[data-theme="dark"] .theme::after { transform: translateX(24px) }

/* Helle Fassung: Papier und Tinte, die Szene wie ein helles Architekturmodell */
html[data-theme="light"] { color-scheme: light; --menu-bg: #f4ecdc; --menu-ink: #2b2a26; --menu-line: rgba(43, 42, 38, .12) }
html[data-theme="light"] body { background: #f4ecdc; color: #2b2a26 }
html[data-theme="light"] #loader { background: #f4ecdc; color: #2b2a26 }
html[data-theme="light"] .nav { color: #2b2a26 }
html[data-theme="light"] .nav.solid { background: color-mix(in srgb, #f4ecdc 78%, transparent) }
html[data-theme="light"] .hero h1 { text-shadow: none }
html[data-theme="light"] .lead { color: #45423b }
html[data-theme="light"] .kicker { color: #a84318 }
html[data-theme="light"] .panel-left, html[data-theme="light"] .hud { background: rgba(255, 253, 247, .78); border-color: rgba(43, 42, 38, .1); box-shadow: 0 30px 60px -30px rgba(43, 42, 38, .3) }
html[data-theme="light"] .steps li { border-left-color: rgba(43, 42, 38, .12) } html[data-theme="light"] .steps li span { color: #6a6052 } html[data-theme="light"] .steps li.on { border-left-color: #ff6a2b }
html[data-theme="light"] .hud-l, html[data-theme="light"] .dial-num span, html[data-theme="light"] .scroll-cue { color: #6a6052 }
html[data-theme="light"] .hud b { color: #a84318 }
html[data-theme="light"] .ring { stroke: rgba(43, 42, 38, .12) } html[data-theme="light"] #dial-ticks line { stroke: rgba(43, 42, 38, .3) }
html[data-theme="light"] .scroll-cue span { background: #6a6052 }
html[data-theme="light"] .dark { background: #efe5d2; color: #2b2a26 } html[data-theme="light"] .dark .kicker { color: #a84318 }
html[data-theme="light"] .ep-card { background: #fffdf7; border-color: rgba(43, 42, 38, .08); color: #fff; box-shadow: 0 40px 80px -40px rgba(43, 42, 38, .45) }
html[data-theme="light"] .ep-card.soon { color: #2b2a26; background: radial-gradient(80% 60% at 70% 20%, rgba(255, 106, 43, .16), transparent 70%), repeating-linear-gradient(135deg, #fffdf7 0 14px, #f6efe0 14px 28px) }
html[data-theme="light"] .ep-card.soon::after { background: linear-gradient(transparent 35%, rgba(255, 255, 255, .9)) } html[data-theme="light"] .ep-card.soon .ep-no { -webkit-text-stroke-color: rgba(43, 42, 38, .3) } html[data-theme="light"] .ep-card.soon em { color: #6a6052 }
html[data-theme="light"] .stance-grid { color: #6a6052 } html[data-theme="light"] .stance-grid b { color: #2b2a26 }
html[data-theme="light"] .foot { background: #efe5d2; color: #2b2a26; border-top-color: rgba(43, 42, 38, .1) } html[data-theme="light"] .foot nav { color: #6a6052 }
html[data-theme="light"] .light { background: #fbf5ea }

/* Etiketten an den Heizkörpern: in die 3D-Szene geheftet (Lage kommt jedes Bild aus main.js) */
#focus { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; --fx: 50vw; --fy: 50vh; background: radial-gradient(circle at var(--fx) var(--fy), transparent 0, transparent 16vmax, rgba(3, 6, 10, .62) 62vmax) }
html[data-theme="light"] #focus { background: radial-gradient(circle at var(--fx) var(--fy), transparent 0, transparent 16vmax, rgba(24, 34, 48, .34) 62vmax) }
/* über main (z-index 1, früher im DOM), damit Schritt-Tafel und HUD die Etiketten nicht zufällig überdecken; Lage wird in ui.js an HUD und Tafel vorbei gehalten */
#tags { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden }
.tag-line { display: block; position: absolute; left: 0; top: 0; width: 1px; height: 1px; transform-origin: 0 50%; background: currentColor; opacity: .45 }
.tag.docked { width: min(320px, calc(100vw - 32px)) }
.tag { position: absolute; left: 0; top: 0; width: 252px; padding: 12px 14px 13px; border-radius: 14px; background: rgba(9, 14, 20, .66); border: 1px solid var(--line-d); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8); font-size: 13px; line-height: 1.35; opacity: 0; visibility: hidden; will-change: transform, opacity }
.tag p { margin: 0; white-space: nowrap }
.tag-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px !important }
.tag-h span { font: 700 12px var(--f-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--heat-2) } .tag.cold .tag-h span { color: var(--cold) }
.tag-temp { font-size: 22px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #f3ecdd; transition: color .6s } .tag-temp.cooling { color: var(--cold) }
.tag-t span { color: var(--mute-d) } .tag-t b { color: #fff; font-weight: 700 } .sep { display: none }
.tag-bar { position: relative; display: block; height: 6px; margin: 9px 0 7px; border-radius: 3px; background: rgba(255, 255, 255, .1) }
.tag-bar em { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--heat-2), var(--heat)); box-shadow: 0 0 12px rgba(255, 106, 43, .7); transition: width 1.3s cubic-bezier(.2, .8, .2, 1) .15s }
.tag-bar u { position: absolute; top: 0; bottom: 0; left: var(--fill); width: calc(var(--need) - var(--fill)); border-radius: 0 3px 3px 0; background: repeating-linear-gradient(135deg, rgba(79, 176, 232, .85) 0 3px, rgba(79, 176, 232, .25) 3px 6px); opacity: 0; transition: opacity .6s 1.3s }
.tag-bar s { position: absolute; top: -4px; bottom: -4px; left: var(--need); width: 2px; margin-left: -1px; border-radius: 1px; background: #f3ecdd; opacity: 0; transition: opacity .4s .3s }
.tag.on .tag-bar em { width: var(--fill) } .tag.on .tag-bar u, .tag.on .tag-bar s { opacity: 1 }
.tag-f { color: var(--mute-d) } .tag-f strong { margin-left: 2px; padding: 1px 8px; border-radius: 999px; font-weight: 700 }
.tag-f .ok { background: rgba(255, 179, 92, .16); color: var(--heat-2) } .tag-f .no { background: rgba(79, 176, 232, .16); color: var(--cold) }
.tag-dot { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 0 4px rgba(255, 106, 43, .25), 0 0 14px rgba(255, 106, 43, .9); animation: tagdot 2.2s ease-in-out infinite }
.tag.cold .tag-dot { background: var(--cold); box-shadow: 0 0 0 4px rgba(79, 176, 232, .25), 0 0 14px rgba(79, 176, 232, .9) }
@keyframes tagdot { 50% { box-shadow: 0 0 0 9px rgba(255, 106, 43, 0), 0 0 14px rgba(255, 106, 43, .9) } }
html[data-theme="light"] .tag { background: rgba(255, 253, 247, .86); border-color: rgba(43, 42, 38, .1); box-shadow: 0 24px 50px -24px rgba(43, 42, 38, .45); color: #2b2a26 }
html[data-theme="light"] .tag-h span { color: #a84318 } html[data-theme="light"] .tag.cold .tag-h span, html[data-theme="light"] .tag-temp.cooling { color: #2a6f91 }
html[data-theme="light"] .tag-temp { color: #2b2a26 } html[data-theme="light"] .tag-t span, html[data-theme="light"] .tag-f { color: #6a6052 } html[data-theme="light"] .tag-t b { color: #2b2a26 }
html[data-theme="light"] .tag-bar { background: rgba(43, 42, 38, .1) } html[data-theme="light"] .tag-bar em { box-shadow: none } html[data-theme="light"] .tag-bar s { background: #2b2a26 }
html[data-theme="light"] .tag-f .ok { background: rgba(212, 84, 28, .12); color: #a84318 } html[data-theme="light"] .tag-f .no { background: rgba(31, 127, 196, .12); color: #2a6f91 }
@media (max-width: 820px) { .tag { width: 226px; padding: 10px 12px 11px; font-size: 12px } .tag-temp { font-size: 19px } }
@media (max-width: 820px) and (orientation: landscape), (orientation: landscape) and (max-height: 520px) { .tag { width: 204px; padding: 9px 11px 10px; font-size: 11px } .tag-temp { font-size: 17px } .tag-h span { font-size: 11px } }
@media (prefers-reduced-motion: reduce) { .tag-bar em, .tag-bar u, .tag-bar s, .tag-temp { transition: none } .tag-dot { animation: none } }

/* Ausweichlösungen: ohne WebGL liegt ein Standbild hinter jedem 3D-Abschnitt (hell/dunkel nach Schalter) */
.no-gl #gl { display: none }
/* Szene läuft gar nicht (Module nicht gestartet): alle Schritte lesbar, ohne Hervorhebung */
.no-world .hud { display: none } .no-world .steps li { opacity: 1; transition: none } .no-world .steps li span { max-height: none }
@media (max-width: 820px) { .no-world .steps li:not(.on) { display: block } .no-world .steps li span { font-size: 14px } }
.no-gl .scene .pin { background-size: cover; background-position: center }
.no-gl .scene[data-scene="hero"] .pin { background-image: url("/assets/world/poster/hero-light.jpg") }
.no-gl .scene[data-scene="weg"] .pin { background-image: url("/assets/world/poster/weg-light.jpg") }
.no-gl .scene[data-scene="wetter"] .pin { background-image: url("/assets/world/poster/wetter-light.jpg") }
.no-gl[data-theme="dark"] .scene[data-scene="hero"] .pin { background-image: url("/assets/world/poster/hero-dark.jpg") }
.no-gl[data-theme="dark"] .scene[data-scene="weg"] .pin { background-image: url("/assets/world/poster/weg-dark.jpg") }
.no-gl[data-theme="dark"] .scene[data-scene="wetter"] .pin { background-image: url("/assets/world/poster/wetter-dark.jpg") }

/* Bewegung reduzieren: keine selbstlaufenden Animationen */
@media (prefers-reduced-motion: reduce) {
  #loader img, .scroll-cue span { animation: none }
  #loader { transition: none }
  .ui .reveal, .split .w > span { transition: none }
}

/* Menüknopf unter 820 px: Vollflächen-Liste mit Menülinks und Schalter (gleicher Block in world.css und site.css, Farben über --menu-*) */
.menu-list { display: contents }
.menu { display: none }
html.menu-open, html.menu-open body { overflow: hidden }
@media (max-width: 820px) {
  .nav { gap: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
  .nav-cta { margin-left: auto; padding: 7px 14px; font-size: 14px }
  .menu { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; cursor: pointer }
  .menu span, .menu span::before, .menu span::after { display: block; width: 16px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .3s, background-color .3s }
  .menu span { position: relative } .menu span::before, .menu span::after { content: ""; position: absolute; left: 0 } .menu span::before { top: -5px } .menu span::after { top: 5px }
  .nav.open .menu span { background-color: transparent } .nav.open .menu span::before { transform: translateY(5px) rotate(45deg) } .nav.open .menu span::after { transform: translateY(-5px) rotate(-45deg) }
  .menu-list { display: none }
  .nav.open { color: var(--menu-ink); backdrop-filter: none; -webkit-backdrop-filter: none }
  .nav.open .menu-list { display: flex; position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; gap: 26px; padding: calc(84px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); overflow-y: auto; overscroll-behavior: contain; background: var(--menu-bg); color: var(--menu-ink) }
  .nav.open .menu-list nav { display: flex; flex-direction: column; gap: 0; width: 100%; margin: 0; font-size: 30px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em }
  .nav.open .menu-list nav a { opacity: 1; padding: 12px 0; border-bottom: 1px solid var(--menu-line); color: inherit; white-space: normal }
  .nav.open .menu-list nav a[aria-current] { color: var(--heat); border-bottom-color: var(--menu-line) }
  .nav.open .theme { transform: scale(1.25); transform-origin: 0 50% }
}
@media (max-width: 820px) and (max-height: 500px) {
  .nav.open .menu-list { padding-top: calc(66px + env(safe-area-inset-top, 0px)); gap: 16px }
  .nav.open .menu-list nav { font-size: 22px } .nav.open .menu-list nav a { padding: 7px 0 }
}
@media (prefers-reduced-motion: reduce) { .menu span, .menu span::before, .menu span::after { transition: none } }

/* ---------- Design-Durchgang: Papier und Tusche, Maßketten, Wege zum Raumrechner ---------- */
:root { --f-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif; --ease: cubic-bezier(.2, .8, .2, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") }
html[data-theme="light"] { --heat: #e0662a; --heat-2: #f2a93b }
html[data-theme="light"] .light, html[data-theme="light"] .dark { background-image: var(--grain) }
::selection { background: #f2a93b; color: #1f1408 }
:focus-visible { outline: 2.5px solid #3f8fb5; outline-offset: 3px; border-radius: 4px }
.kicker { display: flex; align-items: center; gap: 12px } .kicker::before { content: ""; flex: none; width: 28px; height: 1.4px; background: currentColor }
.panel-left .kicker::before { display: none }
.nav-cta { color: #1f1408 }
/* Einstieg: zwei Wege, der Rechner zuerst */
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px }
.btn-hot { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; background: var(--heat); color: #1f1408; font-weight: 700; font-size: 18px; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 14px 34px -14px rgba(224, 102, 42, .9) }
.btn-hot:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(224, 102, 42, 1) } .btn-hot span { transition: transform .25s var(--ease) } .btn-hot:hover span { transform: translateX(4px) }
.btn-line { font-weight: 700; font-size: 16px; text-underline-offset: 5px; text-decoration-thickness: 1.4px; padding: 8px 0 }
.btn-line:hover { color: var(--heat) } html[data-theme="light"] .btn-line:hover { color: #a84318 }
.lead { text-wrap: pretty }
/* Zahlen an Maßlinien */
.num { position: relative; padding-top: 22px; border-top: 1.4px solid currentColor }
.num::before, .num::after { content: ""; position: absolute; top: -7px; width: 1.4px; height: 13px; background: currentColor } .num::before { left: 0 } .num::after { right: 0 }
.num span { font-size: 16px; line-height: 1.4 }
.num-note { margin: 9vh 0 0; max-width: 34ch; font: 400 clamp(22px, 2.4vw, 30px)/1.35 var(--f-serif) } .num-note a { color: #a84318; text-underline-offset: 5px; text-decoration-thickness: 1.4px; white-space: nowrap }
html[data-theme="dark"] .light .num-note a { color: #a84318 }
/* Videos: geplante Karten ohne Nummer */
.ep-card.soon { justify-content: space-between } .ep-card.soon em { order: -1; align-self: flex-start; font: 700 13px var(--f-cond); letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border: 1.4px dashed currentColor; border-radius: 6px }
.ep-card.soon::after { display: none }
/* Werkzeuge: der Rechner ist die große Kachel mit Ampel-Vorschau */
.tile { border-color: rgba(43, 42, 38, .2) } .tile b { letter-spacing: -.025em }
.tile.big { background-color: #2f5d46; background-image: radial-gradient(70% 60% at 100% 0, rgba(242, 169, 59, .4), transparent 70%), radial-gradient(60% 60% at 0 100%, rgba(63, 143, 181, .35), transparent 70%); color: #fbf5ea; border: 0; justify-content: space-between; gap: 22px; padding: 28px }
.tile.big span { color: rgba(251, 245, 234, .88) } .tile.big .arrow { display: none }
.tile-demo { list-style: none; margin: 0; padding: 14px 18px; background: #fbf5ea; color: #2b2a26; border-radius: 14px; font-size: 16px; font-weight: 600; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .6); transform: rotate(-1.2deg); max-width: 340px; align-self: flex-end; width: 100% }
.tile-demo li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(43, 42, 38, .14) } .tile-demo li:last-child { border-bottom: 0; color: #6a6052; font-style: italic }
.tile-demo i { font: 700 15px var(--f-cond); font-style: normal; letter-spacing: .02em; padding: 3px 11px; border-radius: 6px; white-space: nowrap }
.tile-demo .ok { background: #dcebd9; color: #2f6b45 } .tile-demo .no { background: #f5d3c9; color: #a8321c } .tile-demo .ask { border: 1.4px dashed rgba(43, 42, 38, .4); color: #6a6052 }
.tile-text { display: flex; flex-direction: column; gap: 10px }
.tile-go { align-self: flex-start; margin-top: 8px; display: inline-flex; gap: 10px; padding: 13px 22px; border-radius: 999px; background: #fbf5ea; color: #1f1408 !important; font-weight: 700; font-style: normal; font-size: 17px }
.tile-go u { text-decoration: none; transition: transform .25s var(--ease) } .tile.big:hover .tile-go u { transform: translateX(4px) }
.tile-link { margin-top: auto; font-weight: 700; font-size: 15px; color: #a84318; text-underline-offset: 4px }
a.tile:not(.big) .arrow { color: #a84318; font-size: 24px }
/* Schluss: die Einladung, bevor der Fuß kommt */
.final { padding: 16vh 0 14vh; border-radius: 40px 40px 0 0; margin-top: -40px; position: relative; z-index: 3 }
.final .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 5vw; align-items: center }
.final h2 { margin: 0; font-size: clamp(48px, 7.4vw, 120px); line-height: .92; letter-spacing: -.045em; font-weight: 800 }
.final .lead { color: #45423b; font: 400 21px/1.5 var(--f-serif); max-width: 40ch }
.final-fine { margin: 18px 0 0; font-size: 14px; color: #6a6052; max-width: 46ch }
.final .tile-demo { transform: rotate(1.4deg); max-width: 420px; padding: 20px 24px; font-size: 18px; border: 1.4px solid #2b2a26; box-shadow: 8px 9px 0 rgba(60, 45, 25, .16); justify-self: center }
.final .tile-demo .cap { padding: 0 0 6px; border: 0; font: 700 13px var(--f-cond); letter-spacing: .14em; text-transform: uppercase; color: #6a6052 }
/* Fuß wie auf den Unterseiten */
.foot { padding: 10vh max(24px, env(safe-area-inset-left, 0px)) calc(4vh + env(safe-area-inset-bottom, 0px)); background: var(--night); border-top: 1px solid var(--line-d); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px 56px; align-items: end }
.foot-logo { display: flex; align-items: center; gap: 18px; font-size: clamp(48px, 8vw, 128px); font-weight: 800; letter-spacing: -.05em; line-height: 1 } .foot-logo img { width: .8em; height: auto }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; font-size: 15px }
.foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; color: var(--mute-d) } .foot nav a { text-decoration: none; padding: 2px 0 } .foot nav a:hover { text-decoration: underline; color: var(--heat) }
.foot nav b { font: 700 13px var(--f-cond); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; color: var(--mute-d) }
.foot-base { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid var(--line-d); font-size: 14px; color: var(--mute-d); display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between }
html[data-theme="light"] .foot { background: #f1e8d6; border-top: 1.4px solid #2b2a26 } html[data-theme="light"] .foot nav a { color: #45423b } html[data-theme="light"] .foot nav a:hover { color: #a84318 }
html[data-theme="light"] .foot nav b, html[data-theme="light"] .foot-base { color: #6a6052 } html[data-theme="light"] .foot-base { border-top-color: rgba(43, 42, 38, .14) }
@media (max-width: 820px) {
  .hero-copy { right: 16px } .hero-cta { margin-top: 20px } .btn-hot { padding: 13px 22px; font-size: 17px }
  .num-note { margin-top: 7vh } .final .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px } .final { padding: 12vh 0 10vh } .final .btn-hot { width: 100%; justify-content: center }
  .tile-demo { align-self: stretch; max-width: none } .foot { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 820px) and (orientation: landscape), (orientation: landscape) and (max-height: 520px) { .hero-cta { margin-top: 10px } .btn-hot { padding: 9px 18px; font-size: 15px } }
@media (prefers-reduced-motion: reduce) { .btn-hot, .btn-hot span, .tile-go u { transition: none } }
/* Video-Karte: Bild voll deckend, Titel auf einer Tusche-Plakette (lesbar in beiden Themen) */
.ep-card:not(.soon) img { opacity: 1 } .ep-card:not(.soon)::after { display: none }
.ep-card:not(.soon) b { align-self: flex-start; padding: 10px 14px; border-radius: 10px; background: rgba(31, 26, 18, .88); color: #fbf5ea }
.ep-card:not(.soon) em { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: #fbf5ea; color: #2b2a26; font-weight: 700; font-size: 14px }

/* ---------- Zweiter Durchgang: Einstieg, Schritt-Tafel mit Kennzahlen, Zahlen-Abschnitt, Milli ---------- */
/* Einstieg: kürzer (das Haus setzt sich jetzt beim Laden selbst zusammen), Zahlen im Vorspann markiert */
.hero { height: 180vh }
.hero-copy { isolation: isolate; max-width: 720px }
.hero .lead { max-width: 40ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5 }
.hero .lead b { font-weight: 700; color: #fff; white-space: nowrap; background: linear-gradient(transparent 62%, rgba(255, 122, 61, .5) 62%) }
html[data-theme="light"] .hero .lead b { color: #2b2a26; background: linear-gradient(transparent 62%, rgba(242, 169, 59, .6) 62%) }
.scroll-cue { letter-spacing: .16em }
:root { --hero-bg: #070b10 } html[data-theme="light"] { --hero-bg: #f4ecdc }

/* Schritt-Tafel: feste Karte statt Milchglas, der aktive Schritt groß mit einer Kennzahl, die hereinspringt */
.panel-left { width: min(470px, 42vw); padding: 22px 26px 20px; border-radius: 18px; background: rgba(9, 14, 20, .86); border: 1.4px solid rgba(243, 236, 221, .34); box-shadow: 0 30px 70px -30px #000 }
html[data-theme="light"] .panel-left { background: #fffdf7; border: 1.6px solid #2b2a26; box-shadow: 7px 8px 0 rgba(60, 45, 25, .18) }
.panel-left .kicker { justify-content: space-between; margin-bottom: 12px }
.step-of { padding: 2px 10px; border-radius: 999px; background: var(--heat); color: #1f1408; letter-spacing: .08em; font-variant-numeric: tabular-nums }
.steps { gap: 2px }
.steps li { opacity: .46; border-left: 3px solid transparent; padding: 5px 0 5px 16px }
.steps li b { font-size: clamp(17px, 1.5vw, 21px) }
.steps li.done { opacity: .46 }
.steps li.on { opacity: 1; border-left-color: var(--heat); padding: 10px 0 12px 16px }
html[data-theme="light"] .steps li, html[data-theme="light"] .steps li.on { border-left-color: transparent } html[data-theme="light"] .steps li.on { border-left-color: #e0662a }
.steps li.on b { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -.03em; animation: step-in .5s var(--ease) both }
.kz { display: none; align-items: center; gap: 12px; margin: 8px 0 6px; font-style: normal }
.steps li.on .kz { display: flex; animation: kz-in .7s var(--ease) both }
.kz i { flex: none; font-style: normal; font-weight: 800; font-size: clamp(44px, 4.4vw, 66px); line-height: .9; letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: var(--heat-2) }
html[data-theme="light"] .kz i { color: #d1581f }
.kz u { text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.25; max-width: 17ch }
.steps li span { font-size: 16px; line-height: 1.45 }
.steps li.on span { max-height: 240px; color: #cfd6dc; animation: step-in .6s .1s var(--ease) both }
html[data-theme="light"] .steps li.on span { color: #45423b }
@keyframes kz-in { from { opacity: 0; transform: translateY(16px) scale(.9) } }
@keyframes step-in { from { opacity: 0; transform: translateX(-10px) } }
.no-world .kz { display: flex } .no-world .step-of { display: none }
/* Anzeige Vorlauf/COP im selben Karten-Stil */
html[data-theme="light"] .hud { background: #fffdf7; border: 1.6px solid #2b2a26; box-shadow: 5px 6px 0 rgba(60, 45, 25, .18) }
.hud { background: rgba(9, 14, 20, .86); border: 1.4px solid rgba(243, 236, 221, .34) }

/* Zahlen: Überschrift, vier Maßzahlen, darunter der Weg zum Rechner als grünes Band */
.numbers { padding: 13vh 0 8vh }
.numbers h2 { margin: 0 0 7vh; font-size: clamp(34px, 5vw, 76px); line-height: .96; letter-spacing: -.045em; font-weight: 800; max-width: 17ch }
.num-cta { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 8vh; padding: clamp(22px, 3vw, 38px) clamp(22px, 3.4vw, 46px); border-radius: 24px; background: #2f5d46; color: #fbf5ea; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s }
.num-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 100% 0, rgba(242, 169, 59, .36), transparent 70%), radial-gradient(40% 90% at 0 100%, rgba(63, 143, 181, .32), transparent 70%) }
.num-cta:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -30px rgba(31, 60, 45, .9) }
.num-cta-t { flex: 1 1 320px; font: 400 clamp(19px, 2vw, 26px)/1.35 var(--f-serif); max-width: 32ch }
.num-cta-t b { display: block; margin-top: 4px; font: 800 1.3em/1.08 var(--f); letter-spacing: -.035em }
.num-cta .btn-hot { flex: none; background: #fbf5ea; box-shadow: none } .num-cta:hover .btn-hot span { transform: translateX(4px) }
.numbers + .tools { border-radius: 0; padding-top: 7vh } .tools { padding-bottom: 12vh }

/* Milli: kompakte Bühne, er kommt herein, bleibt in der Mitte stehen und winkt */
.walk { height: auto }
.walk-pin { position: relative; top: auto; height: clamp(440px, 72vh, 640px); align-content: start; padding-top: clamp(44px, 9vh, 88px) }
.walk-line { font-size: clamp(34px, 5vw, 72px) }
.layer { left: -20vw; width: 150vw }
.layer.near { height: 15% } .layer.far { bottom: 15%; height: 40% } .layer.mid { bottom: 15%; height: 26% }
.milli { left: 50%; bottom: calc(15% - 8px); opacity: 0; background-repeat: no-repeat }
/* Ohne Skript-Module: Milli steht als Standbild da */
.no-world .milli { opacity: 1; width: 150px; height: 190px; margin-left: -75px; background: url("/assets/milli_wave.png") center bottom / contain no-repeat }

@media (max-width: 820px) {
  /* Einstieg am Handy: Text unten auf einem weichen Papier- bzw. Nachtschleier, damit er vor dem Haus lesbar bleibt */
  .hero-copy { bottom: 11vh }
  .hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -34px -16px -46px -24px; background: linear-gradient(transparent, color-mix(in srgb, var(--hero-bg) 90%, transparent) 26%, color-mix(in srgb, var(--hero-bg) 90%, transparent) 86%, transparent) }
  .hero h1 { font-size: clamp(54px, 15.5vw, 96px) }
  .hero .lead { font-size: 17px; margin-top: 16px; max-width: none }
  .hero .kicker { font-size: 12px; margin-bottom: 12px }
  .hero-cta { gap: 6px 18px; margin-top: 18px } .hero-cta .btn-hot { width: 100%; justify-content: center } .btn-line { font-size: 15px }
  .scroll-cue { display: none }
  .panel-left { width: auto; padding: 13px 16px 14px }
  .panel-left .kicker { font-size: 12px; margin-bottom: 6px }
  .steps li.on { padding: 2px 0 2px 12px } .steps li.on b { font-size: 22px }
  .kz { gap: 10px; margin: 5px 0 4px } .kz i { font-size: 40px } .kz u { font-size: 13.5px; max-width: 20ch }
  .steps li span { font-size: 15px; line-height: 1.4 }
  .numbers { padding: 9vh 0 6vh } .numbers h2 { margin-bottom: 5vh } .num-grid { row-gap: 5vh }
  .num-cta { margin-top: 6vh; border-radius: 20px } .num-cta .btn-hot { width: 100%; justify-content: center }
  .walk-pin { height: clamp(400px, 64vh, 520px) }
}
@media (max-width: 820px) and (orientation: landscape), (orientation: landscape) and (max-height: 520px) {
  .hero .lead { font-size: 14px; margin-top: 8px; max-width: 46ch } .hero-cta .btn-hot { width: auto }
  .steps li.on b { font-size: 18px } .kz { margin: 3px 0 } .kz i { font-size: 26px } .kz u { font-size: 12px } .steps li span { font-size: 13px; line-height: 1.35 }
  .walk-pin { height: 330px; padding-top: 28px }
}
@media (prefers-reduced-motion: reduce) { .steps li.on b, .steps li.on .kz, .steps li.on span { animation: none } .num-cta { transition: none } }
/* Überschrift des Einstiegs richtet sich auch nach der Höhe (sonst stößt sie auf flachen Bildschirmen an die Menüleiste) */
@media (min-width: 821px) { .hero h1 { font-size: clamp(60px, min(11vw, 16.5vh), 180px) } }
/* Kleine Handys (iPhone SE und ähnlich): Einstieg enger, damit das Haus über dem Text sichtbar bleibt */
@media (max-width: 820px) and (orientation: portrait) and (max-height: 720px) { .hero-copy { bottom: 6vh } .hero h1 { font-size: 50px } .hero .lead { font-size: 15.5px; margin-top: 10px } .hero .kicker { margin-bottom: 8px } .hero-cta { margin-top: 12px } .btn-hot { padding: 11px 20px } }
