:root {
  --brand: #0ea5a0;
  --accent: #0a7f7b;
  --sun: #eda100;
  --sun-dark: #c98500;
  --ink: #0f172a;
  --muted: #5f6b7a;
  --line: #e5e9ec;
  --bg: #ffffff;
  --bg-soft: #f5f7f7;
  --night: #0a0f1a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Inter, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.47;
}
img { max-width: 100%; display: block; }
.hero-frame img { width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.05; }

/* Navigation: schwebende, runde Glasleiste – über dem Video dunkel, danach hell */
.nav {
  position: fixed; z-index: 20; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(980px, calc(100% - 28px)); height: 54px;
  display: flex; align-items: center; gap: 18px; padding: 0 8px 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.62), rgb(255 255 255 / 0.38));
  backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgb(255 255 255 / 0.7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.85), 0 0 0 1px rgb(15 23 42 / 0.05), 0 12px 36px rgb(15 23 42 / 0.12);
  transition: background 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s, width 0.6s var(--ease), top 0.6s var(--ease);
}
.nav.on-dark {
  background: linear-gradient(135deg, rgb(255 255 255 / 0.20), rgb(255 255 255 / 0.08));
  border-color: rgb(255 255 255 / 0.28);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 12px 36px rgb(0 0 0 / 0.25);
}
.nav.compact { top: 10px; width: min(860px, calc(100% - 28px)); }
.nav-brand { display: grid; align-items: center; }
.nav-brand svg { display: block; height: 26px; width: auto; color: #0f172a; transition: color 0.5s; }
.nav.on-dark .nav-brand svg { color: #f1f5f9; }
.nav-links { display: flex; gap: 4px; margin-left: auto; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 7px 14px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--ink); background: rgb(255 255 255 / 0.65); }
.nav.on-dark .nav-links a { color: rgb(255 255 255 / 0.85); }
.nav.on-dark .nav-links a:hover { color: #fff; background: rgb(255 255 255 / 0.16); }
.nav-cta {
  font-size: 14px; font-weight: 500; text-decoration: none; padding: 9px 18px; border-radius: 999px; color: #fff;
  background: linear-gradient(180deg, #13a39e, var(--accent));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 6px 16px rgb(10 127 123 / 0.35);
  transition: transform 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); }

.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 99px; font-size: 17px; padding: 12px 22px; transition: transform 0.2s var(--ease), background 0.2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #08665f; transform: translateY(-1px); }
.btn-link { color: var(--accent); padding-left: 8px; }
.btn-lg { font-size: 19px; padding: 15px 28px; }

.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); margin: 0 0 12px; letter-spacing: 0; }

/* Kino-Titel: Video füllt den Bildschirm und schrumpft beim Scrollen zur Karte */
.cinema { height: 170vh; position: relative; background: #fff; }
.cinema-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.cinema-media {
  position: absolute; inset: 0; overflow: hidden; background: #0a0f1a;
  transform: scale(var(--s, 1)); border-radius: var(--r, 0px); will-change: transform;
}
.cinema-media video { width: 100%; height: 100%; object-fit: cover; }
.cinema-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 15 26 / 0.15) 0%, rgb(10 15 26 / 0.05) 35%, rgb(10 15 26 / 0.55) 100%); }
.cinema-copy { position: relative; text-align: center; color: #fff; padding: 0 20px; margin-top: 18vh; opacity: var(--o, 1); transform: translateY(var(--y, 0px)); }
.cinema-copy h1 { font-size: clamp(52px, 10vw, 128px); font-weight: 700; text-shadow: 0 2px 40px rgb(0 0 0 / 0.25); }
.eyebrow-light { color: #fff; opacity: 0.9; }
.btn-ghost-light { color: #fff; padding-left: 10px; }
.cinema .cta-row { margin-top: 30px; }

/* Hero */
.hero { position: relative; padding: 120px 20px 0; text-align: center; overflow: hidden; }
.hero-sub { font-size: clamp(40px, 6.5vw, 80px); font-weight: 700; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 380px at 30% 30%, rgb(237 161 0 / 0.20), transparent 70%),
    radial-gradient(640px 420px at 70% 35%, rgb(14 165 160 / 0.20), transparent 70%);
  filter: blur(10px);
}
.hero h1 { font-size: clamp(48px, 9vw, 112px); font-weight: 700; }
.grad { background: linear-gradient(90deg, var(--sun-dark), var(--accent) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(19px, 2.2vw, 26px); color: var(--muted); max-width: 760px; margin: 22px auto 30px; letter-spacing: -0.01em; }
.cta-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero-stage { perspective: 1400px; margin: 70px auto 0; max-width: 1180px; }
.hero-frame {
  margin: 0; border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 120px rgb(15 23 42 / 0.18), 0 0 0 1px rgb(15 23 42 / 0.06);
  transform-origin: 50% 0%;
  transform: rotateX(var(--tilt, 24deg)) scale(var(--scale, 0.86)) translateY(var(--lift, 30px));
  will-change: transform;
}

/* Grosse Aussage */
/* Trailer: startet erst auf Klick, mit Ton */
.trailer { scroll-margin-top: 70px; max-width: 1080px; margin: 0 auto; padding: 60px 20px 0; text-align: center; }
.trailer h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; margin-bottom: 32px; }
.trailer-frame { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; box-shadow: 0 30px 80px rgb(15 23 42 / 0.22); }
.trailer-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.trailer-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgb(14 165 160 / 0.92); box-shadow: 0 10px 40px rgb(0 0 0 / 0.35); transition: transform 0.2s var(--ease), background 0.2s; }
.trailer-play:hover { transform: scale(1.08); background: var(--brand); }
.trailer-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.trailer-frame.playing .trailer-play { display: none; }
@media (max-width: 600px) { .trailer-frame { border-radius: 16px; } .trailer-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } }

.statement { padding: 160px 20px; max-width: 1080px; margin: 0 auto; }
.big { font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; margin: 0; }
.sun { color: var(--sun-dark); }
.teal { color: var(--accent); }

/* Kapitel: Text und Grafik, die Grafik füllt beim Scrollen kurz den ganzen Bildschirm */
.ch { height: 270vh; position: relative; }
.ch-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.ch-text h2 { font-size: clamp(32px, 4vw, 54px); font-weight: 700; margin-bottom: 18px; }
.ch-text p:not(.eyebrow) { font-size: 19px; color: var(--muted); max-width: 450px; margin: 0; }
.ch-dock { width: 100%; aspect-ratio: 16 / 11; }
/* Die Bühne ist breiter als der Inhalt, damit die Grafik den Bildschirm wirklich füllt */
.ch-stage { max-width: none; padding-left: max(28px, calc((100vw - 1184px) / 2)); padding-right: max(28px, calc((100vw - 1184px) / 2)); }
.ch-note { text-align: center; color: #9aa5b1; font-size: 13px; margin: 8px 0 0; }

.viz {
  --f: 0;
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column; overflow: hidden; color: #f5f7f7;
  background: radial-gradient(120% 90% at 50% 0%, #17233b 0%, #0a0f1a 62%);
  box-shadow: 0 30px 80px rgb(15 23 42 / 0.28);
  padding: calc(18px + var(--f) * 60px) calc(22px + var(--f) * 60px) calc(14px + var(--f) * 30px);
  will-change: left, top, width, height;
}
.viz-head { font-size: calc(15px + var(--f) * 15px); font-weight: 650; letter-spacing: -0.015em; margin-bottom: calc(6px + var(--f) * 8px); color: #dfe6ee; }
.viz-svg { flex: 1; min-height: 0; width: 100%; font-family: inherit; }
.viz-l { fill: #8b98ab; font-size: 13px; }
.viz-v { fill: #f5f7f7; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.viz-big { fill: #ffc94d; font-size: 44px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.viz-tick { fill: #8b98ab; font-size: 12px; font-variant-numeric: tabular-nums; }
.viz-zone { fill: #f5f7f7; font-size: 14px; font-weight: 700; }
.viz-legend text { fill: #8b98ab; font-size: 13px; }
.viz-pill { fill: #201600; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.viz-hub { fill: #06211f; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.viz-doc { fill: #0f172a; font-size: 16px; font-weight: 700; }
.viz-wl { font-size: 12px; }

/* Modelle */
.models { max-width: 1180px; margin: 0 auto; padding: 180px 20px 140px; }
.models h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; text-align: center; margin-bottom: 56px; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.model { background: var(--bg-soft); border-radius: 24px; padding: 0 0 36px; min-height: 260px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: transform 0.4s var(--ease); }
.model > :not(.model-img) { margin-left: 30px; margin-right: 30px; }
.model-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; transition: transform 1.2s var(--ease); }
.model:hover .model-img { transform: scale(1.04); }
.model:hover { transform: translateY(-4px); }
.model h3 { font-size: 30px; font-weight: 700; }
.model p { color: var(--muted); font-size: 17px; margin: 0; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: #fff; color: var(--accent); box-shadow: 0 0 0 1px rgb(14 165 160 / 0.25); }
.model:nth-child(1) { background: linear-gradient(160deg, #fff7e0, var(--bg-soft) 60%); }
.model:nth-child(3) { background: linear-gradient(160deg, #e2f6f5, var(--bg-soft) 60%); }

/* Zahlen auf dunklem Grund */
.numbers {
  max-width: 1180px; margin: 0 auto; padding: 0 20px 120px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px;
  border-top: 1px solid var(--line); padding-top: 90px;
}
.num strong { display: block; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.04em; font-weight: 700; background: linear-gradient(90deg, var(--sun-dark), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.num span { color: var(--muted); font-size: 17px; }
.sources { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin: 20px 0 0; }

/* Schluss */
.closing {
  text-align: center; padding: 170px 20px 160px; display: flex; flex-direction: column; align-items: center; gap: 30px; color: #fff;
  width: min(1180px, calc(100% - 40px)); margin: 0 auto 40px; border-radius: 32px; overflow: hidden;
  background: linear-gradient(rgb(10 15 26 / 0.30), rgb(10 15 26 / 0.72)), var(--bg-img) center / cover no-repeat, #0a0f1a;
  box-shadow: 0 40px 100px rgb(15 23 42 / 0.18);
}
.closing-logo { width: 96px; filter: drop-shadow(0 6px 24px rgb(0 0 0 / 0.4)); }
.closing h2 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 10px max(20px, calc(50% - 570px)) 36px; color: var(--muted); font-size: 12px; }

.foot-links { display: flex; gap: 18px; }
.foot-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Impressum und Datenschutz */
.legal-page { background: var(--bg); }
.legal-head { max-width: 760px; margin: 0 auto; padding: 32px 20px 0; }
.legal-head img { display: block; width: auto; }
.legal { max-width: 760px; margin: 0 auto; padding: 44px 20px 72px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.legal h1 { font-size: clamp(34px, 6vw, 48px); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 22px; }
.legal h2 { font-size: 21px; font-weight: 650; letter-spacing: -0.01em; margin: 38px 0 10px; }
.legal p { margin: 0 0 14px; color: #334155; }
.legal a { color: var(--accent); }
.legal mark { background: #ffe58a; color: var(--ink); padding: 1px 5px; border-radius: 4px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 650; }
.legal-foot { margin-top: 44px !important; font-size: 15px; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .closing { border-radius: 24px; padding: 110px 20px; }
  .ch { height: 240vh; }
  .ch-stage { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 70px 20px 24px; }
  .ch-text h2 { font-size: 30px; margin-bottom: 10px; }
  .ch-text p:not(.eyebrow) { font-size: 16px; }
  .ch-dock { flex: 0 0 auto; }
  /* Hochformat: Titel und Grafik bleiben zusammen in der Bildschirmmitte, Text darf bis in den Rand laufen */
  .viz { justify-content: center; padding: calc(12px + var(--f) * 58px) calc(12px + var(--f) * 2px) calc(8px + var(--f) * 20px); }
  .viz-head { font-size: calc(14px + var(--f) * 6px); margin-bottom: calc(6px + var(--f) * 18px); }
  .viz-svg { flex: 0 1 auto; height: auto; overflow: visible; }
  .viz-tick, .viz-legend text, .viz-l { font-size: 15px; }
  .viz-v, .viz-zone { font-size: 16px; }
  .viz-wl { font-size: 12px; }
  .viz-pill { font-size: 20px; }
  .model-grid { grid-template-columns: minmax(0, 1fr); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 90px; padding-bottom: 90px; }
  .statement, .models { padding-top: 100px; padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
  .ch { height: auto; }
  .ch-stage { position: static; height: auto; min-height: 90vh; }
  .hero-frame { transform: none; }
  .cinema { height: 100vh; }
}

/* Knöpfe im Liquid-Glass-Stil: Lichtkante, Reflex folgt der Maus (script.js), Glanz und leichtes Federn */
.nav-cta, .btn-primary, .btn-ghost-light, .trailer-play {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  transition: scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.nav-cta, .btn-primary, .trailer-play {
  background: linear-gradient(145deg, rgb(14 165 160 / 0.82), rgb(10 127 123 / 0.72) 55%, rgb(14 165 160 / 0.82));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3), inset 0 1px 1px rgb(255 255 255 / 0.5), inset 0 -1px 2px rgb(255 255 255 / 0.12), 0 8px 24px rgb(8 60 60 / 0.3);
}
.btn-ghost-light {
  padding: 12px 22px; border-radius: 99px;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.24), rgb(255 255 255 / 0.08) 55%, rgb(255 255 255 / 0.16));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.32), inset 0 1px 1px rgb(255 255 255 / 0.5), 0 8px 24px rgb(8 15 30 / 0.2);
}
.nav-cta::before, .btn-primary::before, .btn-ghost-light::before, .trailer-play::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  background: radial-gradient(130px circle at var(--mx) var(--my), rgb(255 255 255 / 0.5), rgb(94 234 212 / 0.2) 45%, transparent 72%);
}
.nav-cta::after, .btn-primary::after, .btn-ghost-light::after, .trailer-play::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.5), transparent); transform: skewX(-18deg);
}
.nav-cta:hover, .btn-primary:hover, .btn-ghost-light:hover, .trailer-play:hover,
.nav-cta:focus-visible, .btn-primary:focus-visible, .btn-ghost-light:focus-visible {
  scale: 1.04; transform: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5), inset 0 1px 1px rgb(255 255 255 / 0.75), 0 12px 32px rgb(8 40 50 / 0.35), 0 0 28px rgb(14 165 160 / 0.5);
}
.nav-cta:hover, .btn-primary:hover, .trailer-play:hover { background: linear-gradient(145deg, rgb(14 165 160 / 0.82), rgb(10 127 123 / 0.72) 55%, rgb(14 165 160 / 0.82)); }
.nav-cta:hover::before, .btn-primary:hover::before, .btn-ghost-light:hover::before, .trailer-play:hover::before { opacity: 1; }
.nav-cta:hover::after, .btn-primary:hover::after, .btn-ghost-light:hover::after, .trailer-play:hover::after { animation: glas-glanz 0.9s ease-out; }
.nav-cta:active, .btn-primary:active, .btn-ghost-light:active, .trailer-play:active { scale: 0.97; }
.trailer-play:hover { transform: none; }
@keyframes glas-glanz { from { left: -60%; opacity: 1; } to { left: 120%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .nav-cta, .btn-primary, .btn-ghost-light, .trailer-play { transition: none; }
  .nav-cta:hover, .btn-primary:hover, .btn-ghost-light:hover, .trailer-play:hover { scale: 1; }
  .nav-cta:hover::after, .btn-primary:hover::after, .btn-ghost-light:hover::after, .trailer-play:hover::after { animation: none; }
}
