/* welt.css — Rahmen der 3D-Welten: Bühne mit Leinwand, kleine Überschrift (normaler Text), Satz, Knopf. Farben je Welt über --bg, --text, --acc, --on-acc auf <body>. */
@font-face { font-family: "Big Shoulders Display"; src: url("../schrift/big-shoulders-display-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../schrift/hanken-grotesk-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root { --bg: #14110e; --text: #f4ede3; --muted: #bcb0a0; --acc: #ffb347; --on-acc: #1a1209; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body { font-family: "Hanken Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

.demo-tag { position: fixed; top: 14px; left: 14px; z-index: 20; max-width: min(430px, calc(100vw - 28px)); font: 12px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--muted);
  background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: blur(8px); border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); border-radius: 10px; padding: 9px 12px; }
.demo-tag b { display: block; color: var(--text); font-weight: 600; letter-spacing: .04em; margin-bottom: 2px; }
.demo-tag a { color: var(--acc); text-decoration: none; }
.demo-tag a:hover, .demo-tag a:focus-visible { text-decoration: underline; }

.buehne { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; isolation: isolate; touch-action: pan-y; background: var(--bg); }
.buehne canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.buehne canvas.bereit { opacity: 1; }
.schleier { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at 50% 46%, transparent 38%, color-mix(in srgb, var(--bg) 55%, transparent) 78%, color-mix(in srgb, var(--bg) 92%, transparent) 100%),
              linear-gradient(to top, color-mix(in srgb, var(--bg) 88%, transparent), transparent 40%); }
.inhalt { position: absolute; z-index: 2; left: 0; right: 0; bottom: max(26px, 6.5svh); text-align: center; padding: 0 20px; pointer-events: none; }
.inhalt > * { pointer-events: auto; }
.kopf { margin: 0 auto; max-width: 20ch; font-family: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1;
  font-size: clamp(2rem, 5.4vw, 4.8rem); text-shadow: 0 2px 30px color-mix(in srgb, var(--bg) 92%, transparent), 0 0 2px color-mix(in srgb, var(--bg) 92%, transparent); text-wrap: balance; pointer-events: none; }
.sub { margin: 14px auto 0; max-width: 44ch; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.5; color: var(--muted); text-shadow: 0 1px 18px color-mix(in srgb, var(--bg) 90%, transparent); }
.knopf-wrap { margin-top: clamp(16px, 2.2vw, 24px); }
.hinweis { margin-top: 14px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--muted) 80%, transparent); pointer-events: none; }
.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--acc); color: var(--on-acc); text-decoration: none; font-weight: 700; font-size: 1.02rem; padding: 16px 28px; border-radius: 999px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 60%, transparent), 0 16px 44px -16px color-mix(in srgb, var(--acc) 60%, transparent); transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--acc), 0 22px 60px -14px color-mix(in srgb, var(--acc) 80%, transparent); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
.btn svg { width: 18px; height: 18px; transition: transform .4s; }
.btn:hover svg { transform: translateX(3px); }
/* Scroll-Fahrt: hoher Bereich, die Bühne klebt oben, Textstationen blenden je nach Scrollstand ein und aus */
.track { position: relative; }
.track .buehne { position: sticky; top: 0; }
.stationen { position: absolute; z-index: 2; left: 0; right: 0; bottom: max(26px, 6.5svh); height: min(46vh, 24rem); padding: 0 20px; pointer-events: none; }
.station { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; opacity: 0; will-change: opacity, transform; }
.station > * { pointer-events: auto; }
.station .kopf { font-size: clamp(2rem, 5.4vw, 4.8rem); }
.fortschritt { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 14px; height: 2px; background: color-mix(in srgb, var(--text) 14%, transparent); pointer-events: none; }
.fortschritt i { display: block; height: 100%; background: var(--acc); transform-origin: left; transform: scaleX(0); }
.kein-gl .track { height: auto !important; }
.kein-gl .track .buehne { position: relative; height: auto; min-height: 0; padding: 120px 0 60px; }
.kein-gl .stationen { position: static; height: auto; display: flex; flex-direction: column; gap: 40px; }
.kein-gl .station { position: static; opacity: 1 !important; transform: none !important; }
.kein-gl .fortschritt { display: none; }
.kein-gl .buehne { background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--acc) 22%, var(--bg)), var(--bg) 70%); }
.kein-gl .hinweis { display: none; }
@media (max-width: 700px) { .hinweis { display: none; } }
@media (prefers-reduced-motion: reduce) { .buehne canvas, .btn, .btn svg { transition: none; } .hinweis { display: none; } }
