:root {
  --bg: #0d100f;
  --bg-2: #151a18;
  --card: #1a201d;
  --line: #2a332f;
  --text: #f1f4ef;
  --muted: #9aa69f;
  --accent: #c8f53a;
  --accent-ink: #10140a;
  --danger: #ff7a66;
  --radius: 14px;
  --wrap: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 16, 15, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { font-weight: 900; letter-spacing: 0.14em; text-decoration: none; font-size: 18px; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav a.btn { color: var(--accent-ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 800; font-size: 15px;
  padding: 12px 20px; border: 0; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 84px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 380px at 85% 10%, rgba(200, 245, 58, 0.16), transparent 65%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, 0.018) 46px 47px);
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(40px, 7.2vw, 84px); line-height: 0.98; margin: 0 0 22px;
  font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; max-width: 13ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 54ch; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 54px; }
.stats b { display: block; font-size: 30px; font-weight: 900; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
section { padding: 78px 0; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.08; margin: 0 0 12px; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; }
.section-head { margin-bottom: 38px; max-width: 60ch; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Kurskarten ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px;
}
.card.highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.card .tag {
  position: absolute; top: -11px; right: 18px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
}
.card .level { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.card h3 { font-size: 23px; margin: 6px 0 4px; font-weight: 800; line-height: 1.2; }
.card .duration { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.card p { margin: 0 0 14px; color: #cfd6d0; font-size: 15.5px; }
.card ul { list-style: none; padding: 0; margin: 0 0 22px; font-size: 15px; }
.card li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.card .buy { margin-top: auto; }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.price b { font-size: 34px; font-weight: 900; }
.price s { color: var(--muted); }
.price-note { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.owned-badge { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }

/* ---------- Schritte / FAQ ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.step { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; counter-increment: s; }
.step::before { content: "0" counter(s); font-weight: 900; font-size: 30px; color: var(--accent); display: block; line-height: 1.2; }
.step h3 { margin: 6px 0 4px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 780px; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 900; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Dialog ---------- */
dialog {
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; width: min(520px, calc(100vw - 32px));
}
dialog::backdrop { background: rgba(0, 0, 0, 0.66); }
dialog h3 { margin: 0 0 4px; font-size: 22px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Formulare ---------- */
label.field { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
input[type="email"] {
  width: 100%; padding: 12px 14px; font: inherit;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
}
input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #cfd6d0; margin-top: 14px; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.notice { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; margin: 14px 0; background: var(--bg-2); }
.notice.ok { border-color: var(--accent); }
.notice.err { border-color: var(--danger); color: var(--danger); }

/* ---------- Mitgliederbereich ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.login-box { max-width: 460px; margin: 0 auto; }
.member-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 28px; }
.player-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .player-layout { grid-template-columns: 1fr; } }
.course-nav h4 { margin: 18px 0 6px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.course-nav h4:first-child { margin-top: 0; }
.lesson-btn {
  display: block; width: 100%; text-align: left;
  background: transparent; color: var(--text); font: inherit; font-size: 15px;
  border: 1px solid transparent; border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.lesson-btn:hover { background: var(--bg-2); }
.lesson-btn.active { border-color: var(--accent); background: var(--bg-2); }
.stage video { width: 100%; border-radius: 10px; background: #000; aspect-ratio: 16 / 9; }
.stage h3 { margin: 0 0 12px; }
.stage .empty { color: var(--muted); padding: 60px 0; text-align: center; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 780px; }
.legal h2 { margin-top: 56px; font-size: 28px; }
.legal h3 { margin: 26px 0 6px; font-size: 18px; }
.legal p, .legal li { color: #cfd6d0; }
.legal mark { background: rgba(200, 245, 58, 0.22); color: var(--text); padding: 0 4px; border-radius: 3px; }

/* ---------- Download-Seite ---------- */
.dl-box { max-width: 760px; margin: 0 auto; }
.dl-group { margin: 26px 0 8px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dl-row:last-child { border-bottom: 0; }
.dl-row .name { font-weight: 600; word-break: break-word; }
.dl-row .size { color: var(--muted); font-size: 13px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; margin: 30px auto; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Kasse ---------- */
.kasse { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .kasse { grid-template-columns: 1fr; } }
.kasse .summary h3 { margin: 6px 0 4px; font-size: 22px; }
.kasse .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.kasse .total b { font-size: 28px; font-weight: 900; }
#checkout { background: #fff; border-radius: 10px; overflow: hidden; min-height: 120px; }
