/* ============================================================
   otoMUNICH — go.otomunich.de
   Minimal glass page: 3D bike → video → imprint
   ============================================================ */

:root {
  --bg: #05060d; --bg-2: #080b16;
  --fg: #eef1fb; --muted: #9aa3bd; --muted-2: #6d758f;
  --accent: #7ea0ff; --accent-2: #9b78ff; --accent-3: #43e0c0;
  --glass: rgba(255,255,255,0.055); --glass-strong: rgba(255,255,255,0.085);
  --glass-brd: rgba(255,255,255,0.12); --glass-brd-2: rgba(255,255,255,0.18);
  --radius: 22px; --radius-lg: 30px;
  --shadow: 0 18px 60px rgba(0,0,0,0.45); --shadow-sm: 0 8px 30px rgba(0,0,0,0.35);
  --maxw: 1100px; --ease: cubic-bezier(0.22,1,0.36,1);
  --font-head: "Space Grotesk","Inter",system-ui,sans-serif;
  --font-body: "Inter",system-ui,-apple-system,sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); color: var(--fg); background: var(--bg);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

/* backdrop */
.backdrop {
  position: fixed; inset: 0; z-index: -3; overflow: hidden;
  background:
    radial-gradient(1200px 800px at 75% -10%, rgba(123,100,255,0.16), transparent 60%),
    radial-gradient(1000px 700px at 5% 10%, rgba(126,160,255,0.14), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; will-change: transform; }
.aurora.a1 { width: 46vw; height: 46vw; left: -8vw; top: -6vw; background: radial-gradient(circle, rgba(126,160,255,.55), transparent 70%); animation: d1 22s var(--ease) infinite alternate; }
.aurora.a2 { width: 40vw; height: 40vw; right: -6vw; top: 8vh; background: radial-gradient(circle, rgba(155,120,255,.5), transparent 70%); animation: d2 26s var(--ease) infinite alternate; }
.aurora.a3 { width: 38vw; height: 38vw; left: 22vw; bottom: -14vw; background: radial-gradient(circle, rgba(67,224,192,.3), transparent 70%); animation: d3 30s var(--ease) infinite alternate; }
@keyframes d1 { to { transform: translate(8vw,10vh) scale(1.15); } }
@keyframes d2 { to { transform: translate(-6vw,8vh) scale(1.1); } }
@keyframes d3 { to { transform: translate(4vw,-8vh) scale(1.2); } }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.04; mix-blend-mode: overlay;
  background-image: 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='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#bg { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; transition: opacity 0.4s linear; }

/* glass */
.glass {
  background: var(--glass); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-brd); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08); border-radius: var(--radius);
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* nav */
.nav { position: fixed; top: 18px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav__inner {
  pointer-events: auto; width: min(var(--maxw), calc(100% - 32px));
  display: flex; align-items: center; gap: 18px; padding: 11px 20px;
  border-radius: 999px; background: rgba(10,12,22,0.5);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-brd); box-shadow: var(--shadow-sm); transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled .nav__inner { background: rgba(8,10,18,0.78); box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; color: #fff; text-decoration: none; }
.brand .oto-logo { height: 26px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* type */
h1 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.gradient-text { background: linear-gradient(110deg,#fff 10%,var(--accent) 55%,var(--accent-2) 95%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  padding: 7px 15px; border-radius: 999px; background: rgba(126,160,255,0.08); border: 1px solid rgba(126,160,255,0.22);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3); }

/* HERO — bike fills the screen (canvas), text sits at the bottom over a scrim */
.hero { position: relative; min-height: 100svh; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44vh; background: linear-gradient(transparent, var(--bg) 88%); z-index: 1; pointer-events: none; }
.hero__text { position: absolute; left: 0; right: 0; bottom: 7vh; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.hero__logo { margin: 0; line-height: 0; }
.hero__logo .oto-logo { height: clamp(44px, 8vw, 82px); width: auto; filter: drop-shadow(0 8px 30px rgba(126,160,255,0.28)); }
.hero__tag { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.05rem, 2.2vw, 1.5rem); color: var(--muted); margin: 20px 0 30px; letter-spacing: 0.01em; }

/* scroll cue */
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; transition: color 0.2s; }
.scroll-cue:hover { color: #fff; }
.scroll-cue .arrow { color: var(--accent); animation: bounce 1.6s var(--ease) infinite; }
.scroll-cue .arrow svg { display: block; width: 24px; height: 24px; }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 0.65; } 50% { transform: translateY(7px); opacity: 1; } }

/* VIDEO + CHAPTERS */
.video-sec { padding: 20px 0 90px; }
.player-layout { display: flex; gap: 20px; align-items: flex-start; }
.video-frame { flex: 1 1 auto; min-width: 0; padding: 14px; border-radius: var(--radius-lg); position: relative; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); }
.video-frame::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(126,160,255,.6), rgba(155,120,255,.3), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.video-frame video { display: block; width: 100%; border-radius: 18px; background: #04060e; aspect-ratio: 16/9; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.video-tag { position: absolute; top: 28px; left: 28px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; color: #fff; background: rgba(10,12,22,.6); backdrop-filter: blur(10px); border: 1px solid var(--glass-brd); }

/* 1.5x speed toggle */
.speed-btn { position: absolute; top: 28px; right: 28px; z-index: 3; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; color: #fff; background: rgba(10,12,22,.6); border: 1px solid var(--glass-brd); border-radius: 999px; padding: 7px 15px; cursor: pointer; backdrop-filter: blur(10px); transition: background .2s, border-color .2s, color .2s, transform .15s; }
.speed-btn:hover { border-color: var(--glass-brd-2); background: rgba(10,12,22,.82); transform: translateY(-1px); }
.speed-btn.is-on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06070e; border-color: transparent; box-shadow: 0 8px 22px rgba(126,140,255,.4); }

/* chapters sidebar */
.chapters { flex: 0 0 clamp(232px, 27%, 320px); align-self: stretch; display: flex; flex-direction: column; padding: 18px 12px; overflow: hidden; }
.chapters__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 0 8px; }
.chapters__title { font-family: var(--font-head); font-size: 1.1rem; }
.chapters__hint { font-size: 0.66rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.chapters__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 2px; }
.chapters__list::-webkit-scrollbar { width: 8px; }
.chapters__list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; }
.chapters__list::-webkit-scrollbar-track { background: transparent; }
.chapter { width: 100%; display: flex; align-items: flex-start; gap: 12px; text-align: left; background: transparent; border: 0; color: var(--muted); padding: 10px; border-radius: 12px; cursor: pointer; font: inherit; transition: background .2s, color .2s; }
.chapter:hover { background: rgba(255,255,255,.06); color: #fff; }
.chapter.is-active { background: linear-gradient(135deg, rgba(126,160,255,.20), rgba(155,120,255,.14)); color: #fff; }
.chapter__time { font-family: var(--font-head); font-size: 0.8rem; color: var(--accent); font-variant-numeric: tabular-nums; flex: 0 0 auto; min-width: 40px; padding-top: 1px; }
.chapter__label { font-size: 0.92rem; line-height: 1.25; }
.chapter__label em { display: block; font-style: normal; color: var(--muted-2); font-size: 0.78em; margin-top: 1px; }

/* FOOTER */
footer { padding: 40px 0; border-top: 1px solid rgba(255,255,255,.06); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .brand .oto-logo { height: 24px; }
.foot__right { display: flex; align-items: center; gap: 22px; color: var(--muted-2); font-size: 0.9rem; }
.foot__right a { color: var(--muted); text-decoration: none; }
.foot__right a:hover { color: #fff; }
.foot__credit { margin-top: 18px; color: var(--muted-2); font-size: 0.78rem; }
.foot__credit a { color: var(--muted); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* IMPRINT */
.legal { padding: 150px 0 70px; }
.legal__card { max-width: 800px; margin: 0 auto; padding: 48px clamp(24px,5vw,56px); }
.legal h1 { font-size: clamp(2.2rem,5vw,3rem); margin-bottom: 10px; }
.legal .intro { color: var(--muted); margin-bottom: 36px; font-size: 1.02rem; }
.legal__block { margin-bottom: 28px; }
.legal__block h2 { font-family: var(--font-head); font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.legal__block p { color: var(--fg); margin-bottom: 4px; }
.legal__block p.dim { color: var(--muted); }
.legal__block a { color: var(--accent); text-decoration: none; }
.legal__block a:hover { text-decoration: underline; }
.legal hr { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 30px 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 0.92rem; margin-bottom: 26px; transition: color .2s; }
.back-link:hover { color: #fff; }

@media (max-width: 860px) {
  .player-layout { flex-direction: column; }
  .chapters { flex: none; width: 100%; align-self: auto; height: auto !important; max-height: 52vh; }
}
@media (max-width: 600px) {
  .video-tag { top: 20px; left: 20px; }
  .speed-btn { top: 20px; right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora, .scroll-cue .arrow { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
