@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F7F7F4;
  --bg-2: #EEEEE9;
  --ink: #111114;
  --ink-2: #5E5E68;
  --ink-3: #6B6B76;
  --ink-soft: #8A8A95;
  --danger: #B3261E;
  --line: rgba(17, 17, 20, 0.1);
  --accent: #3D3DD9;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(61, 61, 217, 0.09);
  --panel: #0E0E12;
  --panel-2: #17171D;
  --panel-line: rgba(255, 255, 255, 0.08);
  --panel-text: #F7F7F4;
  --panel-muted: #8A8A95;
  --radius: 18px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
p { margin: 0; }
img, svg, video { display: block; }

/* Navigation: fluchtet mit dem Inhalt */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: rgba(247, 247, 244, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 600; text-decoration: none; letter-spacing: -0.02em; font-size: 18px; }
.logo-mark { height: 22px; width: auto; }
.nav-links { display: none; align-items: center; gap: 26px; margin: 0 28px 0 auto; }
.nav-links a { position: relative; padding: 12px 2px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }
.nav-links a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }
@media (min-width: 1100px) { .nav-links { display: flex; } }

/* Knöpfe und Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); background: #000; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #3333C4; }
.btn-small { min-height: 38px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { border-radius: 999px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 1px; border-radius: 12px; }
.section-dark :focus-visible, .player :focus-visible, .flow-media :focus-visible { outline-color: #A9A9FF; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: top 0.15s; }
.skip:focus { top: 12px; }
.link { color: var(--ink-2); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.link:hover { color: var(--ink); }

/* Typografie */
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 22px; }
h2 { font-size: clamp(30px, 4.4vw, 54px); max-width: 18ch; text-wrap: balance; }
h3 { font-size: 21px; letter-spacing: -0.015em; }
.hl { color: var(--accent); }
.lead { color: var(--ink-2); font-size: clamp(18px, 1.9vw, 21px); max-width: 38ch; margin-top: 26px; text-wrap: pretty; }
.ln { display: block; white-space: nowrap; }
@media (max-width: 300px) { .ln { white-space: normal; } }

/* Hero: Sätze links, Kurzvideo rechts. Auf dem Handy steht das Video direkt unter dem Knopf (Reihenfolge im HTML). */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vh, 80px) var(--gutter) clamp(40px, 6vh, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.hero h1 { font-size: clamp(36px, 11.4vw, 72px); }
.hero .lead { margin-top: clamp(18px, 2.4vh, 26px); max-width: 40ch; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: clamp(26px, 3.6vh, 36px); }
.micro { font-size: 14px; color: var(--ink-3); }
.hero-media { margin-top: 36px; }
/* Das Videofenster reserviert seine Höhe, damit beim Laden nichts springt. Ohne Video (no-intro) oder ohne JavaScript bleibt der Platz weg. */
#intro-player { aspect-ratio: 16 / 9; border-radius: 18px; background: var(--panel); }
#intro-player .poster { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
html:not(.js) .hero-media, .no-intro .hero-media { display: none; }
.transcript { margin-top: 10px; max-width: 72ch; }
.transcript summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.transcript summary:hover { color: var(--ink); }
.transcript p { margin-top: 2px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.proof { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 12px 26px; }
.proof li { position: relative; padding-left: 22px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.proof li::before { content: ""; position: absolute; left: 0; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); }
.proof li::after { content: ""; position: absolute; left: 4px; top: 7px; width: 5px; height: 3px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg); }
/* Auch am Desktop einspaltig (Phil, 29.10.): Sätze, Knopf, darunter das Video in voller Breite, dann die drei Haken */
.hero-cta { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
@media (min-width: 861px) {
  .hero { padding-top: clamp(40px, 6vh, 64px); }
  .hero h1 { font-size: clamp(40px, 5.6vw, 76px); }
  .hero .lead { max-width: 46ch; }
  .hero-media { margin-top: clamp(32px, 4.5vh, 48px); }
}
/* Variante B: Kategorie groß, Slogan klein darunter */
.hero-b h1 { font-size: clamp(28px, 9vw, 58px); }
.subhead { margin-top: 16px; font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.16; color: var(--ink-2); }
.hero-b .lead { margin-top: 20px; }
@media (min-width: 861px) { .hero-b h1 { font-size: clamp(34px, 5vw, 66px); } }

/* Video-Fenster: Poster, Chip, Knopf; Video und Steuerung erst nach dem Klick */
.player { position: relative; background: var(--panel); border-radius: 14px; overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.player .label { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: rgba(14, 14, 18, 0.7); padding: 4px 9px; border-radius: 999px; }
.player .play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35)); border: 0; cursor: pointer; padding: 0; }
.player .play i { width: 58px; height: 58px; border-radius: 50%; background: rgba(247, 247, 244, 0.95); position: relative; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.player .play i::after { content: ""; position: absolute; left: 23px; top: 18px; border: 11px solid transparent; border-left: 17px solid var(--ink); border-right: 0; }
.player .play:hover i { transform: scale(1.06); }
.player .play span { position: absolute; bottom: 12px; left: 12px; color: #fff; font-size: 12px; font-weight: 600; }
.player.playing .play { display: none; }
.player.big { border-radius: 18px; box-shadow: 0 30px 70px rgba(17, 17, 20, 0.22), 0 0 0 1px var(--panel-line); }
.player.big .label { top: 14px; left: 14px; font-size: 12px; padding: 5px 11px; }
.player.big .play i { transform: scale(1.35); }
.player.big .play:hover i { transform: scale(1.45); }
.player.big .play span { bottom: 16px; left: 18px; font-size: 14px; }
.player-error { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; text-align: center; font-size: 15px; color: var(--panel-text); background: rgba(14, 14, 18, 0.88); }

/* Abschnitte */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vh, 150px) var(--gutter); }
.section h2 + * { margin-top: 52px; }
.section .lead + * { margin-top: 52px; }
.section-dark { background: var(--panel); color: var(--panel-text); }
.section-dark .section { padding-top: clamp(72px, 11vh, 130px); padding-bottom: clamp(72px, 11vh, 130px); }
.section-dark .lead { color: var(--panel-muted); }
.section-dark .eyebrow { color: #A9A9FF; }
.num { display: block; color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 18px; font-variant-numeric: tabular-nums; }

/* Beispiele: Ergebnis und Making-of nebeneinander */
.cases { display: grid; gap: 20px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.5vw, 28px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.case-text h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; text-wrap: balance; }
.case-text p { color: var(--ink-2); margin-top: 12px; max-width: 40ch; }
.case-text .case-time { color: var(--accent); font-weight: 600; font-size: clamp(18px, 1.8vw, 21px); letter-spacing: -0.01em; margin-top: 8px; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.facts li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.facts li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 2px; background: var(--accent); }
.players { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.players.wide { grid-template-columns: 1fr; }
.players.single:not(.wide) { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; }
/* Mehrere kurze Clips nebeneinander, jeder mit Zeile darunter */
.players.clips { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case:has(.players.clips) { grid-template-columns: 0.8fr 1.5fr; }
.clip-label { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink); text-align: center; }
.players.clips .player .label { display: none; }
.clip-tabs { display: none; gap: 8px; flex-wrap: wrap; }
.clip-tab { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.clip-tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.case.private { outline: 2px dashed #C2410C; outline-offset: 4px; }
.case.private::after { content: "Nur lokal sichtbar, bis die Freigabe da ist"; grid-column: 1 / -1; font-size: 12px; color: #C2410C; font-weight: 600; }

/* So läuft's: stummer Loop neben drei Schritten */
.flow { display: grid; grid-template-columns: clamp(170px, 26vw, 300px) 1fr; gap: clamp(24px, 5vw, 88px); align-items: center; }
.flow.no-loop { grid-template-columns: 1fr; }
.flow-media { position: relative; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: var(--panel); box-shadow: 0 30px 70px rgba(17, 17, 20, 0.2), 0 0 0 1px var(--panel-line); }
.flow-media video { width: 100%; height: 100%; object-fit: cover; background: var(--panel); }
.flow-media.failed video { opacity: 0.5; }
.loop-play { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); min-height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; background: rgba(14, 14, 18, 0.7); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(24px, 3.5vh, 36px); }
.flow-steps li { border-top: 1px solid var(--line); padding-top: 22px; }
.flow-steps .num { margin-bottom: 10px; }
.flow-steps h3 { font-size: clamp(20px, 2vw, 24px); }
.flow-steps p { color: var(--ink-2); margin-top: 10px; max-width: 44ch; }

/* Was rauskommt */
.output { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); }
.card p { color: var(--ink-2); margin-top: 12px; max-width: 36ch; }
.formats { display: flex; gap: 8px; margin-top: 20px; align-items: flex-end; }
.formats i { display: block; background: var(--panel); border-radius: 4px; }
.formats .f916 { width: 18px; height: 32px; }
.formats .f45 { width: 26px; height: 32px; }
.formats .f11 { width: 32px; height: 32px; }
.formats span { font-size: 12px; color: var(--ink-3); margin-left: 6px; align-self: center; }
.tracks { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: repeat(3, 8px); gap: 4px 10px; margin-top: 20px; align-items: center; }
.tracks i { display: block; height: 8px; border-radius: 3px; background: #D8D8E2; width: 100%; }
.tracks .t-ut { width: 72%; background: #C9801E; }
.tracks .t-v { background: var(--accent); }
.tracks .t-a { width: 88%; background: #4F7BD9; }
.tracks span { grid-column: 2; grid-row: 1 / span 3; font-size: 12px; color: var(--ink-3); }
/* Echte Timeline aus einem Lauf */
.shot { margin: 20px 0 0; background: var(--panel); border-radius: var(--radius); padding: 10px; display: grid; gap: 10px; }
.shot img { width: 100%; height: auto; border-radius: 10px; }
.shot figcaption { color: var(--panel-muted); font-size: 13px; padding: 0 6px 4px; max-width: 80ch; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.way { border-top: 2px solid var(--ink); padding-top: 18px; }
.way-k { display: block; font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.way p { color: var(--ink-2); max-width: 40ch; }

/* Dunkler Dreiklang */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.three article { border-top: 1px solid var(--panel-line); padding-top: 24px; }
.three h3 { color: var(--panel-text); font-size: 19px; }
.three p { color: var(--panel-muted); margin-top: 12px; font-size: 16px; max-width: 32ch; }

/* Probeschnitt: Schritte plus Formular */
.demo h2 { max-width: 22ch; }
.demo-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.demo-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
.demo-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.demo-steps .num { margin: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); font-size: 14px; }
.demo-steps h3 { font-size: 19px; }
.demo-steps p { color: var(--ink-2); margin-top: 6px; max-width: 38ch; }
.alt { margin-top: 36px; color: var(--ink-2); }
.alt a { color: var(--ink); text-underline-offset: 4px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-3); }
input, textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid rgba(17, 17, 20, 0.18); border-radius: 12px; padding: 13px 15px; transition: border-color 0.2s;
}
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
textarea { resize: vertical; min-height: 90px; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input.invalid, select.invalid { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fine { font-size: 13px; color: var(--ink-3); }
.fine a { color: var(--ink-2); }
.form .btn { justify-self: start; margin-top: 4px; }
.status { min-height: 1.5em; font-size: 15px; color: var(--ink-2); }
.status.ok { color: var(--ink); }
.status.err { color: var(--danger); }
.status a { color: inherit; text-underline-offset: 3px; }
.next { margin-top: 4px; padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); display: grid; gap: 14px; justify-items: start; }
.next p { color: var(--ink-2); }
.next strong { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 24px; margin-top: 0; max-width: 60ch; color: var(--ink-2); }

/* Footer */
.footer { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; }
.footer nav { display: flex; gap: 24px; }
.footer nav a { display: inline-block; padding: 12px 0; }
.footer a { text-decoration: none; }
.footer .tm-note { flex-basis: 100%; max-width: 84ch; font-size: 12.5px; line-height: 1.5; }
.footer a:hover { color: var(--ink); }

/* Rechtstexte und Fehlerseite */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(64px, 10vh, 120px) var(--gutter); }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 40px; }
.legal h2 { font-size: 20px; max-width: none; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal .hero-cta { margin-top: 28px; }

/* Schrittweises Einblenden (nur mit JS, sonst ist alles sichtbar) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* Handy und Tablet */
@media (max-width: 860px) {
  .btn-small { min-height: 44px; }
  .hero { padding-top: 40px; }
  .output, .ways, .three, .demo-grid, .case { grid-template-columns: 1fr; }
  .players { max-width: 420px; margin: 0 auto; }
  .players.wide { max-width: none; }
  .players.single:not(.wide) { margin: 0 auto; }
  .case:has(.players.clips) { grid-template-columns: 1fr; }
  .clip-tabs { display: flex; }
  .players.clips { display: block; max-width: 300px; margin: 0 auto; }
  .players.clips .clip { display: none; }
  .players.clips .clip.active { display: block; }
  .players.clips .clip-label { display: none; }
}
/* Der Loop bleibt so lange neben den drei Schritten, wie es gut aussieht; erst auf schmalen Handys darunter */
@media (max-width: 600px) {
  .flow { grid-template-columns: 1fr; gap: 40px; }
  .flow-media { width: min(100%, 260px); margin: 0 auto; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; width: 100%; }
  .hero-cta { gap: 14px; }
  .hero-cta .btn { width: 100%; }
  .section h2 + * { margin-top: 40px; }
  .nav .btn-small { padding: 0 14px; font-size: 14px; }
  .nav .btn-small .long { display: none; }
}

.static *, .static *::before, .static *::after { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
