/* Farben wie in der App (cue-player/css/app.css) */
:root {
  --bg: #14151b;
  --bg2: #1c1e26;
  --bg3: #262935;
  --line: #333746;
  --fg: #e7e9ef;
  --muted: #8a90a2;
  --go: #3fb950;
  --go-dk: #238636;
  --standby: #2f81f7;
  --memo: #6639ba;
  --pre: #a371f7;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
code { font-size: .9em; background: var(--bg3); padding: 1px 6px; border-radius: 5px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(28px, 4.2vw, 44px); }
.muted { color: var(--muted); }
section, .top, footer { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* Kopfzeile */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; font-size: 18px; }
.brand > span { white-space: nowrap; }
.brand, .top nav, .top nav a, .top nav svg { flex-shrink: 0; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.top nav a:hover { color: var(--fg); }
/* Anleitung: durch Trennstrich von den Sprungmarken abgesetzt, als umrandeter Knopf */
.top nav .nav-anleitung {
  position: relative; margin-left: 4px; display: inline-flex; align-items: center; gap: 7px;
  color: var(--fg); padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px;
}
.top nav .nav-anleitung::before { content: ""; position: absolute; left: -15px; top: 15%; bottom: 15%; border-left: 1px solid var(--line); }
.top nav .nav-anleitung:hover { border-color: var(--muted); }
.top nav .nav-anleitung[aria-current="page"] { background: var(--bg3); border-color: var(--muted); }
.top nav .nav-cta { color: var(--fg); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.top nav .nav-cta:hover { border-color: var(--go); }
/* Unterstützen: Herz, schmal nur als Symbol */
.top nav .nav-herz { display: inline-flex; align-items: center; gap: 6px; }
.top nav .nav-herz svg { color: #fb7185; }
@media (max-width: 1000px) {
  .top nav .nav-herz span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 760px) {
  .top nav { gap: 14px; }
  .top nav .nav-sprung { display: none; }
  .top nav .nav-anleitung { margin-left: 0; }
  .top nav .nav-anleitung::before { display: none; }
}
@media (max-width: 440px) {
  .top { gap: 10px; }
  .top nav { gap: 10px; }
  .top nav .nav-anleitung { padding: 6px 8px; }
  .top nav .nav-anleitung span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 340px) { .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 8px 14px; border-radius: 8px; background: var(--fg); color: var(--bg); font-weight: 650; }
.skip-link:focus { top: 12px; }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 650; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-go { background: var(--go); color: #08130b; box-shadow: 0 6px 30px -8px color-mix(in srgb, var(--go) 70%, transparent); }
.btn-go:hover { box-shadow: 0 10px 40px -8px var(--go); }
.btn-ghost { border-color: var(--line); background: var(--bg2); }
.btn-ghost:hover { border-color: var(--muted); }
.btn.big { font-size: 18px; padding: 16px 28px; }
.size { color: var(--muted); font-weight: 400; }
.btn-go .size { color: inherit; opacity: .7; }

/* Hero */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding-block: 56px 72px;
}
.hero::before { /* Bühnenlicht */
  content: ""; position: absolute; inset: -120px -200px auto auto; width: 720px; height: 620px; z-index: -1;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--go) 22%, transparent), transparent 70%) 60% 40% / 70% 70% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--standby) 22%, transparent), transparent 70%) 20% 70% / 70% 70% no-repeat;
  filter: blur(10px);
  pointer-events: none;
}
.eyebrow { color: var(--go); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(56px, 9vw, 104px); font-weight: 800; letter-spacing: -.04em; line-height: .95; }
h1 .go-word {
  background: linear-gradient(90deg, var(--go), #8be28f 60%, var(--standby));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(18px, 2vw, 21px); color: #c4c8d4; max-width: 34em; margin: 24px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { color: var(--muted); font-size: 14px; margin-top: 22px; }

/* Nachgebaute App */
.mock {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px -30px #000, 0 0 0 1px #ffffff08 inset;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  font-size: 14px; line-height: 1.3;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg3); }
.mock-title { margin-left: 10px; color: var(--muted); font-size: 13px; }
.mock-body { padding: 14px; }
.mock-go { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.go-btn {
  display: grid; place-items: center; width: 88px; height: 52px; border-radius: 10px;
  background: var(--go-dk); color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .05em;
  transition: background .1s, transform .1s, box-shadow .3s;
}
.go-btn.press { background: var(--go); transform: scale(.94); box-shadow: 0 0 0 6px color-mix(in srgb, var(--go) 30%, transparent); }
.go-next { color: var(--muted); }
.go-next b { color: var(--standby); }
.mock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cue {
  position: relative; display: grid; grid-template-columns: 22px 26px 1fr auto; align-items: center; gap: 6px;
  padding: 9px 10px; border-radius: 7px; background: var(--bg3); overflow: hidden;
  transition: background .3s, box-shadow .3s, opacity .3s;
}
.cue .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.cue .ic { text-align: center; color: var(--muted); }
.cue .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.cue .t, .cue .n, .cue .ic, .cue .d { position: relative; z-index: 1; }
.cue .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--go) 22%, transparent); }
.cue.memo { background: color-mix(in srgb, var(--memo) 24%, var(--bg2)); border-top: 2px solid var(--memo); font-weight: 700; }
.cue.standby { box-shadow: inset 4px 0 0 var(--standby); background: color-mix(in srgb, var(--standby) 14%, var(--bg3)); }
.cue.running .ic { color: var(--go); }
.cue.running .bar { animation: play var(--dur, 9s) linear forwards; }
.cue.running.loop .bar { animation-iteration-count: infinite; }
.cue.fading .bar { background: color-mix(in srgb, var(--pre) 32%, transparent); transition: background .3s; }
.cue.fading .ic { color: var(--pre); }
.cue.done { opacity: .55; }
@keyframes play { from { width: 0; } to { width: 100%; } }

/* Leiste */
.strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  padding-block: 22px; border-block: 1px solid var(--line); color: var(--muted); font-weight: 600;
}
.strip span:last-child { color: var(--fg); }

/* Funktionen */
.features { padding-block: 96px 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.grid article {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color .2s, transform .2s;
}
.grid article:hover { border-color: #4a5068; transform: translateY(-2px); }
.grid h3 { font-size: 19px; margin: 14px 0 8px; }
.grid p { margin: 0; color: #b6bbc8; font-size: 16px; }
.f-ic {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--bg3); color: var(--standby); font-size: 19px;
}
.f-ic.go { background: var(--go-dk); color: #fff; }
.f-ic.memo { background: var(--memo); color: #fff; }
.more { color: var(--muted); margin-top: 24px; font-size: 16px; }

/* Ausprobieren */
.try {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-block: 56px; padding: 44px; border-radius: 22px;
  background:
    radial-gradient(600px 300px at 100% 0, color-mix(in srgb, var(--go) 18%, transparent), transparent),
    var(--bg2);
  border: 1px solid var(--line);
  max-width: calc(var(--wrap) - 40px);
}
.try p { color: #b6bbc8; max-width: 36em; margin: 14px 0 0; }
.try .btn { flex-shrink: 0; }
.demo-note {
  margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: 15px; color: #d9dce5; max-width: 40em;
  background: color-mix(in srgb, #d29922 12%, var(--bg)); border-left: 4px solid #d29922;
}
.demo-note b { color: #f0c560; }
.demo-note a { color: inherit; }

/* Holen */
.get { padding-block: 40px 80px; }
.get-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 32px; }
.get-card { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.get-card.rec { border-color: color-mix(in srgb, var(--go) 50%, var(--line)); }
.get-card h3 { font-size: 22px; margin: 10px 0 12px; }
.get-card ol { margin: 0 0 24px; padding-left: 20px; color: #c4c8d4; }
.get-card li { margin-bottom: 8px; }
.get-card p { color: #b6bbc8; margin: 0 0 24px; }
.get-card .btn { margin-top: auto; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rec .tag { color: var(--go); }
.note { color: var(--muted); font-size: 15px; margin-top: 24px; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 14px; }
footer p { margin: 0; }
footer img { vertical-align: -3px; margin-right: 4px; }
footer a { color: var(--fg); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 28px; }
  .mock { transform: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .try { flex-direction: column; align-items: flex-start; padding: 28px; margin-inline: 20px; }
  .get-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .features { padding-top: 64px; }
  .btn { width: 100%; }
  .try .btn.big { font-size: 16px; }
  .mock { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Impressum & Datenschutz */
.legal { max-width: 760px; margin-inline: auto; padding: 24px 20px 64px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 12px; }
.legal h2 { font-size: 26px; margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 18px; margin: 28px 0 8px; letter-spacing: 0; }
.legal p, .legal li { color: #c4c8d4; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--standby); }
.legal-scope, .legal-date { color: var(--muted) !important; font-size: 15px; }
footer .legal-link { color: var(--muted); }

/* Anleitung (erzeugt von scripts/build-anleitung.mjs) */
.doc {
  max-width: var(--wrap); margin-inline: auto; padding: 24px 20px 64px;
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px;
}
.doc-seite { position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); overflow-y: auto; }
.doc-seite h2, .doc-inhalt h2 {
  margin: 22px 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.doc-seite h2:first-child { margin-top: 0; }
.doc-seite ul, .doc-inhalt ul { list-style: none; margin: 0; padding: 0; }
.doc-seite a, .doc-inhalt a { display: block; padding: 5px 10px; border-radius: 8px; color: #c4c8d4; text-decoration: none; font-size: 15px; }
.doc-seite a:hover, .doc-inhalt a:hover { background: var(--bg2); color: var(--fg); }
.doc-seite a[aria-current="page"], .doc-inhalt a[aria-current="page"] {
  background: color-mix(in srgb, var(--go) 16%, var(--bg2)); color: var(--fg); font-weight: 650;
  box-shadow: inset 3px 0 0 var(--go);
}
.doc-inhalt { display: none; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 16px; padding-top: 8px; }
  .doc-seite { display: none; }
  .doc-inhalt { display: block; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
  .doc-inhalt summary { cursor: pointer; padding: 12px 16px; font-weight: 650; }
  .doc-inhalt nav { padding: 0 10px 12px; }
}
.doc-text { min-width: 0; max-width: 46rem; }
.doc-text:focus { outline: none; }
.doc-text h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 20px; }
.doc-text h2 { font-size: 25px; margin: 40px 0 12px; }
.doc-text h3 { font-size: 19px; margin: 28px 0 8px; letter-spacing: 0; }
.doc-text h2, .doc-text h3 { scroll-margin-top: 16px; }
.doc-text p, .doc-text li { color: #c4c8d4; }
.doc-text strong { color: var(--fg); }
.doc-text a { color: var(--standby); }
.doc-text ul, .doc-text ol { padding-left: 22px; }
.doc-text li { margin: 5px 0; }
.doc-text li > p { margin: 5px 0; }
.doc-text code { overflow-wrap: anywhere; }
.crumb { margin: 0 0 8px; font-size: 14px; }
.doc-text .crumb a { color: var(--muted); }
.hinweis {
  margin: 20px 0; padding: 12px 16px; border-left: 4px solid var(--standby); border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--standby) 12%, var(--bg));
}
.hinweis p { margin: 0; }
.hinweis p + p { margin-top: 8px; }
.tabelle { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.tabelle table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.tabelle td { color: #c4c8d4; }
.tabelle th { background: var(--bg3); font-size: 13px; }
.tabelle tr:last-child td { border-bottom: 0; }
.doc-text pre {
  overflow-x: auto; margin: 16px 0; padding: 14px 16px; border-radius: 10px;
  background: var(--bg2); border: 1px solid var(--line); font-size: 14px; line-height: 1.5;
}
.doc-text pre code { background: none; padding: 0; overflow-wrap: normal; }
.kapitel { list-style: none; padding: 0 !important; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.kapitel li { margin: 0; }
.kapitel a {
  display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); color: var(--fg); text-decoration: none;
  transition: border-color .2s;
}
.kapitel a:hover { border-color: var(--go); }
.kapitel span { color: var(--muted); font-size: 15px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a {
  display: flex; flex-direction: column; padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg2); color: var(--fg); text-decoration: none; font-weight: 650; max-width: 48%;
  hyphens: auto; overflow-wrap: break-word;
}
.pager a:hover { border-color: var(--go); }
.pager small { color: var(--muted); font-weight: 400; }
.pager .next { margin-left: auto; text-align: right; }
.doc-text .stand { margin-top: 24px; font-size: 14px; color: var(--muted); }
