:root {
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-soft: #fff1e6;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #fffaf5;
  --card: #ffffff;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --bad: #b91c1c;
  --bad-soft: #fee2e2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(124, 45, 18, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
main { padding-top: 24px; }
main > .hero:first-child, main > section.hero { padding-top: 24px; }

/* Kopf & Fuß */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo span b { color: var(--brand); }
.nav { display: flex; gap: 16px; font-size: 0.95rem; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--brand-dark); }
.site-footer { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer a { color: var(--muted); }

/* Bausteine */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--brand-dark); color: #fff; font-weight: 700; font-size: 1.05rem;
  text-decoration: none; transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover { background: #9a3412; }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #d1d5db; color: #6b7280; cursor: not-allowed; }
.btn.secondary { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn.secondary:hover { background: #f9fafb; }
.btn.block { width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 0.85rem; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.hidden { display: none !important; }
.notice { background: var(--brand-soft); border: 1px solid #fed7aa; border-radius: 10px; padding: 12px 14px; }
.error-box { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 12px 14px; }

/* Startseite */
.hero { padding: 48px 0 24px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .hero-grid { grid-template-columns: 1.3fr 1fr; } }
.hero .lead { font-size: 1.15rem; color: #374151; }
.hero .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.price-card { text-align: center; }
.price-card .price { font-size: 2.6rem; font-weight: 800; color: var(--brand-dark); margin: 6px 0; }
.checks { list-style: none; padding: 0; margin: 0; text-align: left; }
.checks li { padding-left: 28px; position: relative; margin: 8px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
section.block { padding: 36px 0 8px; }
.feature h3 { margin-top: 6px; }
.feature .icon { font-size: 1.6rem; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; }

/* Test */
.test-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 10px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.timer.warn { color: var(--bad); border-color: #fca5a5; }
.progress { height: 8px; background: #fde4cf; border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--brand); width: 0; transition: width 0.25s ease; }
.question { margin-top: 18px; }
.stem-svg { max-width: 380px; margin: 0 auto; }
.series { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 800; text-align: center; letter-spacing: 0.02em; margin: 16px 0; word-spacing: 0.15em; }
.prompt { font-size: 1.1rem; font-weight: 600; }
.options { display: grid; gap: 10px; margin-top: 18px; grid-template-columns: repeat(2, 1fr); }
.options.svg-opts { grid-template-columns: repeat(3, 1fr); max-width: 420px; margin-left: auto; margin-right: auto; }
@media (min-width: 600px) { .options.text-opts { grid-template-columns: repeat(2, 1fr); } }
.opt {
  border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px;
  font: inherit; font-weight: 600; cursor: pointer; text-align: center; color: var(--text);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.opt:hover { border-color: #fdba74; }
.opt.selected { border-color: var(--brand); background: var(--brand-soft); }
.opt.correct { border-color: var(--ok); background: var(--ok-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt svg { display: block; width: 100%; }
.svg-opts .opt { padding: 6px; }
.test-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; justify-content: center; }
.dot { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 0.8rem; cursor: pointer; color: var(--text); }
.dot.answered { background: #fed7aa; border-color: #fdba74; }
.dot.current { outline: 2px solid var(--brand); }

/* Ergebnis & Paywall */
.score-hero { text-align: center; padding: 28px 22px; }
.score-hero .iq { font-size: clamp(3.4rem, 14vw, 5.5rem); font-weight: 900; color: var(--brand-dark); line-height: 1; margin: 8px 0; }
.blurred { filter: blur(9px); user-select: none; pointer-events: none; }
.offer { border: 2px solid var(--line); border-radius: 14px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; background: var(--card); }
.offer + .offer { margin-top: 10px; }
.offer.active { border-color: var(--brand); background: var(--brand-soft); }
.offer input { margin-top: 5px; accent-color: var(--brand-dark); }
.offer .price { margin-left: auto; font-weight: 800; white-space: nowrap; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; margin: 16px 0; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand-dark); flex: none; }
.bar { height: 12px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background: var(--brand); }
.cat-row + .cat-row { margin-top: 14px; }
.cat-row .label { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 4px; }
.review-item { border-top: 1px solid var(--line); padding: 16px 0; }
.review-item .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tag { font-size: 0.8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.review-item .options { pointer-events: none; }
.review-item .stem-svg { max-width: 240px; }
.review-item .options.svg-opts { max-width: 300px; }
.review-item .series { font-size: 1.3rem; }
.curve { max-width: 520px; margin: 0 auto; display: block; }

/* Training */
.cat-card { cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.cat-card .badge { margin-top: auto; }
.cat-card:hover { border-color: #fdba74; }
.feedback { margin-top: 16px; padding: 14px; border-radius: 12px; }
.feedback.ok { background: var(--ok-soft); }
.feedback.bad { background: var(--bad-soft); }

/* Rechtstexte */
.legal h2 { margin-top: 1.6em; font-size: 1.25rem; }
.legal .placeholder { background: #fef9c3; padding: 0 4px; border-radius: 4px; }
