:root {
  --bg: #07080d;
  --bg2: #0d0f17;
  --ink: #f2f3f7;
  --mute: #9aa0b4;
  --line: #1c2030;
  --orange: #ff8a2a;
  --blue: #4aa3ff;
  --gutter: 16px;
  --radius: 18px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: -0.02em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 96px var(--gutter); }
.wrap.narrow { max-width: 680px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--orange); margin: 0 0 16px; font-weight: 600; }
.big { font-size: clamp(32px, 6vw, 60px); max-width: 18ch; margin-bottom: 28px; }
.lead { font-size: clamp(18px, 2.4vw, 22px); color: #d3d6e2; max-width: 36ch; }

.btn {
  display: inline-block; background: var(--orange); color: #1a0d00; font-weight: 700; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; border: 0; font-size: 16px; cursor: pointer; font-family: inherit;
  transition: transform .15s, box-shadow .2s; min-height: 48px;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255,138,42,.35); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid #3a4058; }
.btn.small { padding: 8px 18px; min-height: 0; font-size: 14px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter); padding-top: max(12px, env(safe-area-inset-top));
  background: linear-gradient(#07080dcc, #07080d00); transition: background .3s;
}
.nav.solid { background: #07080dee; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand img { height: 18px; width: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .14em; font-size: 14px; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--mute); }
.nav nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav nav a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.06); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #07080d 0%, #07080d55 35%, #07080d99 70%, #07080d 100%); }
.hero-copy { position: relative; padding: 120px var(--gutter) 84px; max-width: 1100px; margin: 0 auto; width: 100%; }
.hero h1 { font-size: clamp(56px, 13vw, 140px); margin-bottom: 20px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.guest { margin-top: 22px; color: var(--blue); font-weight: 600; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 40px; border: 2px solid #ffffff55; border-radius: 14px; transform: translateX(-50%); }
.scroll-hint span { display: block; width: 4px; height: 8px; background: #fff; border-radius: 2px; margin: 7px auto 0; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .hero-bg, .scroll-hint span { animation: none; } }

/* Scrollytelling */
.scrolly { position: relative; height: 560vh; background: #000; }
.stick { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.stage { position: relative; min-height: 0; }
.stage canvas { width: 100%; height: 100%; }
.loadbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #ffffff18; transition: opacity .4s; }
.loadbar i { display: block; height: 100%; width: 0; background: var(--orange); }
.steps { position: relative; min-height: 190px; padding: 0 var(--gutter) max(28px, env(safe-area-inset-bottom)); max-width: 1100px; margin: 0 auto; width: 100%; }
.step { position: absolute; inset: 0 var(--gutter) auto; opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .35s; pointer-events: none; }
.step.on { opacity: 1; transform: none; }
.step h2 { font-size: clamp(30px, 6vw, 56px); }
.step h3 { font-size: clamp(24px, 4.4vw, 40px); }
.step p { color: #c4c8d8; max-width: 44ch; margin: 12px 0 0; }
@media (min-width: 900px) {
  .stick { grid-template-rows: none; grid-template-columns: 1.5fr 1fr; }
  .steps { align-self: center; max-width: none; padding: 0 var(--gutter) 0 0; min-height: 0; height: 260px; }
  .step { inset: 0 var(--gutter) auto 0; }
}
@media (prefers-reduced-motion: reduce) { .step { transition: none; } }

/* Cards */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 28px; margin-bottom: 12px; }
.card:nth-child(1) h3 { color: var(--orange); }
.card:nth-child(2) h3 { color: var(--blue); }
.card p { color: #c4c8d8; margin: 0; }

/* Film */
.film { position: relative; min-height: 70svh; display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #07080d 0%, transparent 30%, transparent 55%, #07080d 100%); }
.film-copy { position: relative; z-index: 1; padding: 80px var(--gutter); max-width: 1100px; margin: 0 auto; width: 100%; }

/* Spiele */
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 18px; margin: 20px calc(var(--gutter) * -1) 0; padding-inline: var(--gutter); scrollbar-width: thin; }
.strip figure { margin: 0; flex: 0 0 min(78vw, 360px); scroll-snap-align: start; }
.strip img { border-radius: 14px; border: 1px solid var(--line); width: 100%; background: #000; }
.strip figcaption { margin-top: 10px; color: var(--mute); font-size: 14px; }
.strip figcaption b { display: block; color: var(--ink); font-size: 16px; }
.prize { display: flex; align-items: center; gap: 20px; margin-top: 36px; padding: 22px; border: 1px dashed #3a4058; border-radius: var(--radius); }
.prize img { border-radius: 50%; flex: none; width: 88px; height: 88px; object-fit: cover; }
.prize p { margin: 0; color: #d3d6e2; }

/* Story */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: flex; gap: 18px; padding: 0 0 34px 28px; }
.timeline li span { position: absolute; left: -15px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 2px solid #3a4058; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--mute); }
.timeline .now span { border-color: var(--orange); color: var(--orange); box-shadow: 0 0 18px #ff8a2a66; }
.timeline h3 { font-size: 22px; margin-bottom: 6px; }
.timeline p { margin: 0; color: #c4c8d8; max-width: 52ch; }
.mascot { margin-top: 24px; border-radius: var(--radius); width: min(100%, 560px); }

/* Specs */
.specs { display: grid; gap: 0; margin: 28px 0 0; grid-template-columns: 1fr; }
@media (min-width: 760px) { .specs { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--mute); flex: none; }
.specs dd { margin: 0; text-align: right; }

/* Signup */
.signup { background: radial-gradient(900px 400px at 85% 0%, #ff8a2a22, transparent 60%), radial-gradient(800px 400px at 0% 100%, #4aa3ff1f, transparent 60%), var(--bg2); border-block: 1px solid var(--line); }
.signup .big { max-width: 16ch; }
form { display: grid; gap: 16px; margin-top: 32px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--mute); }
input:not([type=checkbox]), select {
  font: inherit; font-size: 16px; color: var(--ink); background: #05060a; border: 1px solid #2a3046; border-radius: 12px; padding: 13px 14px; min-height: 48px; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--blue); border-color: transparent; }
.check { display: flex; gap: 12px; align-items: flex-start; color: #c4c8d8; font-size: 14px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
form .btn { justify-self: start; }
.form-msg { margin: 0; min-height: 1.5em; color: var(--blue); }
.form-msg.err { color: #ff6b6b; }
.demo-note { background: #ff8a2a1f; border: 1px solid #ff8a2a66; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: #ffd0a6; }
.fine { color: var(--mute); font-size: 12.5px; margin-top: 28px; }

.tally-box { margin-top: 24px; } .tally-box iframe { border: 0; min-height: 520px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: #c4c8d8; margin: 12px 0 0; }

footer { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); color: var(--mute); font-size: 13px; }
footer p { margin: 0; }
footer img { opacity: .8; }

/* Einblenden */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Zwei Spalten: Text + Medium */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.rev .media { order: -1; } }
.split .big { max-width: 14ch; }
.media { margin: 0; position: relative; }
.media .clip { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
.media.tall .clip { max-height: 72svh; width: auto; margin: 0 auto; }
.media figcaption { margin-top: 10px; color: var(--mute); font-size: 14px; }
.sound { position: absolute; right: 12px; top: 12px; background: #000a; color: #fff; border: 1px solid #ffffff44; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; backdrop-filter: blur(6px); }
.sound[aria-pressed=true] { background: var(--orange); color: #1a0d00; border-color: transparent; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: #d3d6e2; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 2px; background: var(--orange); }

/* Open Source */
.oss { background: linear-gradient(180deg, var(--bg), #11141f 50%, var(--bg)); border-block: 1px solid var(--line); text-align: left; }
.oss .big { max-width: none; }

/* Geschichte mit Bildern */
.timeline img { margin-top: 16px; border-radius: 14px; border: 1px solid var(--line); width: min(100%, 460px); }
.timeline li > div { min-width: 0; }

/* Galerie */
.gallery { columns: 2; column-gap: 12px; margin-top: 28px; }
@media (min-width: 860px) { .gallery { columns: 3; } }
.gallery img { width: 100%; margin: 0 0 12px; border-radius: 14px; break-inside: avoid; border: 1px solid var(--line); }

/* Entwurf-Kennzeichnung, Zusatz-Medien */
.badge { position: absolute; left: 12px; top: 12px; z-index: 2; background: #000a; color: #ffd0a6; border: 1px solid #ff8a2a88; border-radius: 999px; padding: 3px 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px); }
.media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.media.inline { margin-top: 28px; max-width: 520px; }
.media.square .clip { aspect-ratio: 1; object-fit: cover; }
.media.wide { grid-column: 1 / -1; }
.film.short { min-height: 56svh; }
.clip-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }

/* (früher: Tally-Klick-Sperre, jetzt nicht mehr benutzt) */
.tally-gate { background: #05060a; border: 1px solid #2a3046; border-radius: var(--radius); padding: 24px; }
.tally-gate p { margin: 0 0 18px; color: #c4c8d8; font-size: 15px; }
.tally-gate a { color: var(--blue); }
.tally-gate[hidden] { display: none; }

/* Rechtliche Seiten */
.legal-page main { padding-top: 110px; }
.legal h1 { font-size: clamp(32px, 6vw, 48px); margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; letter-spacing: 0; }
.legal p { color: #c4c8d8; margin: 0 0 12px; }
.legal a, footer a { color: var(--blue); }
footer a { color: inherit; text-decoration: underline; }
