/* Beilharz KI. Farbwelt: Nachtindigo, Koralle, Minze. Zwei Stile (data-stil) und hell/dunkel (data-theme). */
:root {
  --bg: #f5f3ff; --card: #ffffff; --card2: #ecebfb; --line: #d9d5f2;
  --ink: #1a1442; --muted: #55507b;
  --brand: #3b2fcb; --brand-soft: #e6e2ff;
  --cta: #ff6b4a; --cta-ink: #1a1442; --cta-hover: #ff8266;
  --ok-text: #08705a; --ok-soft: #d9f7ec; --ok-fill: #17c99a;
  --bad-soft: #ffe3dd; --bad-text: #a02a14;
  --hero1: #160e57; --hero2: #3b2fcb; --hero3: #7a3fe0;
  --shadow: 0 1px 2px rgba(26,20,66,.06), 0 8px 24px rgba(59,47,203,.10);
  --shadow-lg: 0 2px 4px rgba(26,20,66,.08), 0 18px 44px rgba(59,47,203,.18);
  --r: 22px; --rs: 14px; --fs: 18px; --btn-h: 56px; --gap: 18px; --pad-y: 34px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0a29; --card: #171347; --card2: #211c5c; --line: #342e80;
    --ink: #f2f0ff; --muted: #b4afdd;
    --brand: #a9a2ff; --brand-soft: #2a2480;
    --cta: #ff7a5c; --cta-hover: #ff9378;
    --ok-text: #5ce5be; --ok-soft: #0f3a3f; --ok-fill: #2ee0b0;
    --bad-soft: #4a1e2c; --bad-text: #ffa797;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.35), 0 18px 44px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #0d0a29; --card: #171347; --card2: #211c5c; --line: #342e80;
  --ink: #f2f0ff; --muted: #b4afdd;
  --brand: #a9a2ff; --brand-soft: #2a2480;
  --cta: #ff7a5c; --cta-hover: #ff9378;
  --ok-text: #5ce5be; --ok-soft: #0f3a3f; --ok-fill: #2ee0b0;
  --bad-soft: #4a1e2c; --bad-text: #ffa797;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.35), 0 18px 44px rgba(0,0,0,.5);
}

/* Sachlich: gleiche Marke, weniger Sättigung, kompakter */
:root[data-stil="sachlich"] {
  --bg: #f3f3f8; --card: #ffffff; --card2: #e9e9f2; --line: #d6d6e4;
  --ink: #1f2038; --muted: #565873;
  --brand: #3a3f86; --brand-soft: #e4e5f3;
  --cta: #e2735b; --cta-hover: #e98a75; --cta-ink: #1d1a33;
  --ok-text: #1b6b59; --ok-soft: #dcefe9; --ok-fill: #3fae92;
  --hero1: #23264f; --hero2: #343a78; --hero3: #4a4a8c;
  --shadow: 0 1px 2px rgba(31,32,56,.07), 0 4px 12px rgba(31,32,56,.06);
  --shadow-lg: 0 1px 3px rgba(31,32,56,.1), 0 8px 22px rgba(31,32,56,.1);
  --r: 12px; --rs: 9px; --fs: 16px; --btn-h: 46px; --gap: 12px; --pad-y: 22px;
}
@media (prefers-color-scheme: dark) {
  :root[data-stil="sachlich"]:not([data-theme="light"]) {
    --bg: #14152a; --card: #1d1e38; --card2: #272946; --line: #383a5e;
    --ink: #e9eaf5; --muted: #a9abc6;
    --brand: #a3a8e6; --brand-soft: #2b2e5a;
    --cta: #e98a75; --cta-hover: #f09d8a;
    --ok-text: #70d6b6; --ok-soft: #153c3a; --ok-fill: #4fc4a6;
    --bad-soft: #43242c; --bad-text: #f2a99b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.25);
    --shadow-lg: 0 1px 3px rgba(0,0,0,.35), 0 8px 22px rgba(0,0,0,.35);
  }
}
:root[data-stil="sachlich"][data-theme="dark"] {
  --bg: #14152a; --card: #1d1e38; --card2: #272946; --line: #383a5e;
  --ink: #e9eaf5; --muted: #a9abc6;
  --brand: #a3a8e6; --brand-soft: #2b2e5a;
  --cta: #e98a75; --cta-hover: #f09d8a;
  --ok-text: #70d6b6; --ok-soft: #153c3a; --ok-fill: #4fc4a6;
  --bad-soft: #43242c; --bad-text: #f2a99b;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.25);
  --shadow-lg: 0 1px 3px rgba(0,0,0,.35), 0 8px 22px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: var(--fs)/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  overflow-wrap: break-word; overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 8.4vw, 3.3rem); }
h2 { font-size: 1.4rem; margin-top: 1.6em; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
:root[data-stil="sachlich"] h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); font-weight: 750; }
:root[data-stil="sachlich"] h2 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.1em; color: var(--muted); max-width: 40em; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 90; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 8px; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.textlink { color: var(--brand); font-weight: 650; text-underline-offset: 3px; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: env(safe-area-inset-top); }
.top-in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 2px; padding: 8px max(12px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; margin-right: auto; font-size: 1.15rem; }
.logo { width: 34px; height: 34px; display: block; filter: drop-shadow(0 3px 6px rgba(59,47,203,.35)); transition: transform .3s; }
.brand:hover .logo { transform: rotate(-6deg) scale(1.06); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; text-decoration: none; transition: background-color .2s, transform .12s; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.icon-btn:hover { background: var(--card2); color: var(--ink); }
.icon-btn:active { transform: scale(.9); }
.streak-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: var(--card2); font-weight: 800; font-size: .95rem; margin-right: 4px; }
.streak-chip .ic { color: var(--cta); fill: var(--cta); stroke-width: 1.6; }
.streak-chip.bump { animation: bump .6s cubic-bezier(.3,1.6,.5,1); }
.nav a { text-decoration: none; }
.nav-top { display: none; gap: 4px; }
.nav-top a { padding: 10px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; transition: background-color .2s, color .2s; }
.nav-top a:hover { background: var(--card2); color: var(--ink); }
.nav-top a.on { color: var(--brand); background: var(--brand-soft); }
.nav-bottom { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 5px; }
.nav-bottom a { text-align: center; padding: 12px 2px; min-height: 48px; color: var(--muted); font-size: .9rem; font-weight: 650; border-radius: 15px; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.nav-bottom a.on { color: #fff; background: linear-gradient(135deg, var(--hero2), var(--hero3)); }
@media (min-width: 760px) {
  .nav-top { display: flex; margin: 0 8px 0 auto; } .nav-bottom { display: none; } body { padding-bottom: 0; }
  .brand { margin-right: 0; } .top-in { padding-right: max(16px, env(safe-area-inset-right)); }
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); }
.wrap.narrow { max-width: 720px; } .wrap.tiny { max-width: 520px; }
.block { padding-top: var(--pad-y); padding-bottom: 14px; }
.block-s { margin-bottom: 16px; }

/* Knöpfe */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; } .btns.tight { margin: 14px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--btn-h); padding: 12px 26px; border-radius: 999px; border: 0; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; position: relative; transition: transform .12s cubic-bezier(.3,1.5,.5,1), box-shadow .15s, background-color .2s, filter .2s; box-shadow: 0 3px 0 rgba(0,0,0,.14); }
.btn:active { transform: translateY(3px) scale(.985); box-shadow: 0 0 0 rgba(0,0,0,0); }
.btn-main { background: var(--cta); color: var(--cta-ink); box-shadow: 0 4px 0 color-mix(in srgb, var(--cta) 62%, #5a1500), 0 10px 22px color-mix(in srgb, var(--cta) 38%, transparent); }
.btn-main:hover { background: var(--cta-hover); }
.btn-main:active { box-shadow: 0 0 0 transparent, 0 4px 10px color-mix(in srgb, var(--cta) 30%, transparent); }
.btn-soft { background: var(--card2); color: var(--ink); box-shadow: 0 3px 0 var(--line); } .btn-soft:hover { background: var(--brand-soft); }
.btn-ghost { background: transparent; color: var(--muted); box-shadow: none; border: 2px solid var(--line); } .btn-ghost:hover { color: var(--ink); background: var(--card2); }
.btn-danger { background: var(--bad-soft); color: var(--bad-text); border: 2px solid var(--bad-text); box-shadow: none; }
.btn-danger:hover { background: var(--bad-text); color: var(--bad-soft); }
.btn-s { min-height: 48px; padding: 10px 20px; font-size: .95rem; }
.btn .ic { transition: transform .2s; } .btn:hover .ic { transform: translateX(3px); }
:root[data-stil="sachlich"] .btn { border-radius: 10px; box-shadow: none; padding: 10px 20px; }
:root[data-stil="sachlich"] .btn-main { box-shadow: var(--shadow); }
:root[data-stil="sachlich"] .btn:active { transform: scale(.98); }
:root[data-stil="sachlich"] .btn-soft { box-shadow: inset 0 0 0 1px var(--line); }
.linklike { background: none; border: 0; padding: 4px 8px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: .9rem; cursor: pointer; }

/* Startseite: Kopf mit Netz */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 420px at 85% 0%, rgba(255,107,74,.30), transparent 60%), linear-gradient(145deg, var(--hero1) 0%, var(--hero2) 58%, var(--hero3) 100%); border-radius: 0 0 36px 36px; padding: 64px 0 44px; min-height: 540px; display: flex; align-items: flex-end; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero h1 { color: #fff; max-width: 14ch; text-shadow: 0 2px 24px rgba(10,5,60,.5); }
.hero .lead { color: rgba(255,255,255,.88); max-width: 34em; text-shadow: 0 1px 14px rgba(10,5,60,.55); }
.hero .btn-soft { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero .btn-soft:hover { background: rgba(255,255,255,.26); }
.hero .mini-prog { color: rgba(255,255,255,.9); }
.hero .bar { background: rgba(255,255,255,.22); }
:root[data-stil="sachlich"] .hero { min-height: 400px; border-radius: 0 0 20px 20px; padding: 60px 0 30px; background: linear-gradient(145deg, var(--hero1), var(--hero2) 70%, var(--hero3)); }
:root[data-stil="sachlich"] .hero h1 { max-width: 20ch; text-shadow: none; }
@media (min-width: 900px) { .hero { min-height: 580px; } .hero h1 { max-width: 16ch; } :root[data-stil="sachlich"] .hero { min-height: 420px; } }
.mini-prog { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .92rem; } .mini-prog .bar { flex: 1; max-width: 260px; }

/* Fortschritt */
.bar { height: 12px; border-radius: 99px; background: var(--card2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--ok-fill), #8df0cf); transition: width 1s cubic-bezier(.2,.8,.2,1); position: relative; overflow: hidden; }
.bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-100%); animation: glanz 2.4s 1.1s 1; }
:root[data-stil="sachlich"] .bar { height: 8px; } :root[data-stil="sachlich"] .bar span { transition-duration: .4s; } :root[data-stil="sachlich"] .bar span::after { display: none; }
.prog-line { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; font-size: .9rem; color: var(--muted); white-space: nowrap; } .prog-line .bar { flex: 1; }

/* Karten und Listen */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
a.card { display: block; text-decoration: none; transition: transform .2s cubic-bezier(.3,1.4,.5,1), box-shadow .2s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
a.card:active { transform: scale(.985); }
:root[data-stil="sachlich"] a.card:hover { transform: none; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; vertical-align: middle; white-space: nowrap; }
.tag-sample { background: var(--card2); color: var(--muted); }
.tag-free { background: var(--ok-soft); color: var(--ok-text); }
.tag-rec { background: var(--cta); color: var(--cta-ink); }
.meta { color: var(--muted); font-size: .92rem; margin: 0 0 .6em; }
.pic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1, #4f3fe8), var(--c2, #8b3fe0)); box-shadow: 0 6px 14px color-mix(in srgb, var(--c1, #4f3fe8) 40%, transparent); flex: none; }
.pic .ic { width: 28px; height: 28px; stroke-width: 1.8; }
.c-buero { --c1: #4f3fe8; --c2: #7a5cf5; } .c-selbststaendig { --c1: #ff6b4a; --c2: #ff9a5c; } .c-schule { --c1: #12a98a; --c2: #3fd6a8; }
.c-medien { --c1: #c23fe0; --c2: #ff5c9a; } .c-alltag { --c1: #e8a317; --c2: #ffc94a; } .c-grund { --c1: #17b6d8; --c2: #4f8ff5; }
:root[data-stil="sachlich"] .pic { display: none; }

.rows { display: grid; gap: 12px; margin: 14px 0; }
.row { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--rs); padding: 14px 16px; text-decoration: none; box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); transition: transform .15s, box-shadow .15s; }
.row:hover { transform: translateX(3px); } .row:active { transform: scale(.985); }
.row-main { flex: 1; min-width: 0; display: grid; gap: 2px; } .row-main strong { font-size: 1.02rem; }
.row-side { color: var(--brand); display: grid; place-items: center; }
:root[data-stil="sachlich"] .row { padding: 11px 14px; box-shadow: none; } :root[data-stil="sachlich"] .row-main .muted { font-size: .9rem; }

/* Lernpfad */
.steps { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; position: relative; }
.steps a { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 16px; background: var(--card); border-radius: var(--rs); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); min-height: 58px; transition: transform .15s; }
.steps a:hover { transform: translateX(3px); } .steps a:active { transform: scale(.985); }
.step-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand-soft); color: var(--brand); flex: none; }
.step-t { flex: 1; font-weight: 650; } .step-m { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.steps li.done .step-n, .step-n:has(.ic) { background: var(--ok-soft); color: var(--ok-text); }
.steps.path { gap: 0; } .steps.path li { position: relative; padding-bottom: 14px; }
.steps.path li:not(:last-child)::before { content: ""; position: absolute; left: 35px; top: 56px; bottom: -4px; width: 4px; border-radius: 4px; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px); z-index: 0; }
.steps.path a { position: relative; z-index: 1; }
:root[data-stil="sachlich"] .steps a { box-shadow: none; padding: 10px 14px; min-height: 48px; } :root[data-stil="sachlich"] .step-n { width: 32px; height: 32px; font-size: .9rem; }
:root[data-stil="sachlich"] .steps.path li::before { display: none; } :root[data-stil="sachlich"] .steps.path { gap: 8px; } :root[data-stil="sachlich"] .steps.path li { padding: 0; }
@media (min-width: 760px) { :root[data-stil="sachlich"] .steps.grid2c { grid-template-columns: 1fr 1fr; } }

.grid2 { display: grid; gap: var(--gap); margin: 14px 0; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.course { display: grid; gap: 4px; align-content: start; } .course-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; } .course-top h3 { margin: 0; flex: 1; }
.lockbadge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); color: var(--muted); flex: none; } .lockbadge.open { background: var(--ok-soft); color: var(--ok-text); }
.price-line { margin: 6px 0 0; font-size: .95rem; }
.free { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; background: linear-gradient(135deg, var(--card), var(--brand-soft)); }
.reco { position: relative; border: 2px solid var(--cta); display: flex; gap: 16px; align-items: center; }
.reco-body { flex: 1; min-width: 0; } .reco h3 { margin: 4px 0; }
.band { background: var(--card2); border-radius: var(--r); padding: 22px; margin: 26px 0 8px; }
.placeholder { border: 2px dashed var(--line); border-radius: var(--r); padding: 18px; text-align: center; color: var(--muted); }
.placeholder p { margin: 4px 0 0; }

/* Lektion */
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-weight: 650; min-height: 44px; margin-bottom: 4px; }
.back:hover { color: var(--ink); }
.prose p { font-size: 1.06em; line-height: 1.7; max-width: 38em; }
:root[data-stil="sachlich"] .prose p { font-size: 1em; line-height: 1.65; }
.lesson h1 { margin-top: .2em; }
.para { background: var(--card); border-radius: var(--r); padding: 20px 22px; margin: 0 0 14px; box-shadow: var(--shadow); font-size: 1.1em; line-height: 1.65; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.para.neu { animation: einblenden .5s cubic-bezier(.2,.9,.3,1.2); }
.para-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 20px; }
.dots { display: flex; gap: 8px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background-color .3s, transform .3s; } .dots i.on { background: var(--cta); transform: scale(1.25); }
.quiz h2 { margin-top: 0; } .q { font-weight: 700; font-size: 1.1em; }
.opts { display: grid; gap: 12px; }
.opt { text-align: left; font: inherit; color: var(--ink); background: var(--card2); border: 2px solid transparent; border-radius: var(--rs); padding: 16px 18px; min-height: 60px; cursor: pointer; transition: transform .12s, border-color .2s, background-color .2s; line-height: 1.4; }
.opt:hover:not(:disabled) { border-color: var(--brand); } .opt:active:not(:disabled) { transform: scale(.98); }
.opt.ok { background: var(--ok-soft); border-color: var(--ok-fill); color: var(--ok-text); font-weight: 650; animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
.opt.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad-text); }
.opt.shake { animation: wackeln .45s; }
.opt:disabled { cursor: default; }
.feedback { margin-top: 14px; min-height: 0; } .fb { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--rs); animation: einblenden .35s; }
.fb.ok { background: var(--ok-soft); color: var(--ok-text); } .fb.bad { background: var(--bad-soft); color: var(--bad-text); }
.pop { width: 34px; height: 34px; border-radius: 50%; background: var(--ok-fill); color: #06352a; display: grid; place-items: center; flex: none; animation: pop .6s cubic-bezier(.3,1.7,.5,1); } .pop .ic { stroke-width: 3; }
.pop.big { width: 84px; height: 84px; margin-bottom: 16px; box-shadow: 0 0 0 10px color-mix(in srgb, var(--ok-fill) 25%, transparent), 0 0 0 22px color-mix(in srgb, var(--ok-fill) 12%, transparent); } .pop.big .ic { width: 44px; height: 44px; }
.success { background: var(--ok-soft); color: var(--ok-text); border-radius: var(--rs); padding: 14px 18px; margin: 16px 0; font-weight: 600; animation: einblenden .4s; }
.celebrate { text-align: center; padding: 20px 0 10px; display: grid; justify-items: center; } .celebrate .lead { margin-inline: auto; }
.note { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--card); border: 2px solid var(--brand-soft); border-radius: var(--r); padding: 18px 20px; margin: 18px 0; }
.note > div:first-child { flex: 1 1 260px; } .note p { margin: 4px 0 0; } .plain-note { background: var(--card2); border-color: transparent; }
.banner { background: var(--brand-soft); color: var(--brand); border-radius: var(--rs); padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }

/* Kurs, Preise, Konto */
.detail { display: grid; gap: 24px; } @media (min-width: 860px) { .detail { grid-template-columns: 1fr 360px; align-items: start; } .detail aside { position: sticky; top: 90px; } }
ul.plain { padding-left: 1.2em; } ul.plain li { margin-bottom: .45em; }
.buy-opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 10px; } .buy-opt p { margin: 0; } .buy-price { font-weight: 800; font-size: 1.3rem; white-space: nowrap; } .buy .btn { width: 100%; }
.lockbox { text-align: center; display: grid; justify-items: center; } .lockbox .lockbadge { width: 54px; height: 54px; margin-bottom: 8px; }
.pricing { display: grid; gap: var(--gap); margin: 18px 0; } @media (min-width: 860px) { .pricing { grid-template-columns: 1fr 1.4fr; } }
.plan h2 { margin-top: 0; } .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 6px 0 4px; } .price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-opts { display: grid; gap: 14px; } @media (min-width: 560px) { .plan-opts { grid-template-columns: 1fr 1fr; } }
.plan-opt { background: var(--card2); border-radius: var(--rs); padding: 16px; display: grid; align-content: start; } .plan-opt .btn { margin-top: auto; }
.keep { background: var(--ok-soft); color: var(--ok-text); padding: 12px 16px; border-radius: var(--rs); margin-top: 16px; }
.faq dt { font-weight: 750; margin-top: 18px; } .faq dd { margin: 4px 0 0; color: var(--muted); }
.dash { display: grid; gap: var(--gap); margin: 16px 0; } @media (min-width: 760px) { .dash { grid-template-columns: 1.6fr 1fr; } }
.dash h2, .card > h2 { margin-top: 0; }
.big-t { font-size: 1.3rem; font-weight: 750; line-height: 1.3; }
.streak { text-align: center; background: linear-gradient(160deg, var(--card), color-mix(in srgb, var(--cta) 16%, var(--card))); }
.streak-n { font-size: 3.2rem; font-weight: 800; margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; line-height: 1; letter-spacing: -.03em; }
.flame .ic { width: 1em; height: 1em; color: var(--cta); fill: var(--cta); stroke-width: 1.4; } .flame { display: grid; animation: flackern 1.8s infinite alternate ease-in-out; }
.sum { display: flex; justify-content: space-between; gap: 12px; font-size: 1.1rem; margin-bottom: 8px; }
.form { display: grid; gap: 16px; margin: 18px 0; }
.form label { display: grid; gap: 6px; font-weight: 650; }
input[type=text], input[type=email], input[type=password] { font: inherit; font-size: 16px; padding: 14px 16px; min-height: 52px; border-radius: var(--rs); border: 2px solid var(--line); background: var(--card); color: var(--ink); width: 100%; transition: border-color .2s; }
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.form label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; } .check input { width: 26px; height: 26px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.err { color: var(--bad-text); font-weight: 650; margin: 0; min-height: 0; }
.confirm { background: var(--bad-soft); border-radius: var(--rs); padding: 14px 16px; margin-top: 12px; }
.foot { text-align: center; color: var(--muted); font-size: .88rem; padding: 36px 18px 20px; } .foot p { max-width: 560px; margin: 0 auto 8px; }

/* Einstieg und Einstellungen */
body.ein .top, body.ein .foot, body.ein .nav-bottom { display: none; } body.ein { padding-bottom: 0; }
.ein-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); position: relative; }
.ein-top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.ein-top .brand { margin: 0; }
.ein-glow { position: fixed; inset: 0; z-index: -1; background: radial-gradient(600px 360px at 90% -5%, color-mix(in srgb, var(--cta) 26%, transparent), transparent 70%), radial-gradient(700px 420px at -10% 10%, color-mix(in srgb, var(--hero3) 38%, transparent), transparent 70%); }
.ein-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px 0; animation: einblenden .5s cubic-bezier(.2,.9,.3,1.1); }
.ein-body.rueck { animation-name: einblendenR; }
.ein-dots { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; } .ein-dots i { height: 8px; width: 8px; border-radius: 99px; background: var(--line); transition: width .35s, background-color .35s; } .ein-dots i.on { width: 30px; background: var(--cta); } .ein-dots i.past { background: var(--brand); }
.ein-body h1 { font-size: clamp(1.8rem, 7.4vw, 2.6rem); margin-bottom: 8px; }
.choices { display: grid; gap: 12px; margin: 18px 0 8px; }
.choice { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 2px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: var(--r); padding: 14px 16px; min-height: 68px; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s cubic-bezier(.3,1.5,.5,1), border-color .2s, background-color .2s; }
.choice:hover { border-color: var(--brand); transform: translateY(-2px); } .choice:active { transform: scale(.975); }
.choice.on { border-color: var(--cta); background: color-mix(in srgb, var(--cta) 12%, var(--card)); animation: pop .4s cubic-bezier(.3,1.6,.5,1); }
.choice .pic { width: 46px; height: 46px; border-radius: 14px; } .choice .pic .ic { width: 25px; height: 25px; }
.choice-t { display: grid; gap: 1px; flex: 1; min-width: 0; } .choice-t strong { font-size: 1.05rem; } .choice-t span { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.choice .mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; color: transparent; transition: .2s; } .choice.on .mark { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); } .choice .mark .ic { width: 15px; height: 15px; stroke-width: 3.2; }
:root[data-stil="sachlich"] .choice { min-height: 60px; box-shadow: none; padding: 11px 14px; } :root[data-stil="sachlich"] .choice .pic { display: grid; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.ein-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.set-group { margin-bottom: 8px; } .set-group h2 { margin: 1.2em 0 .5em; font-size: 1.1rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--card2); border-radius: 16px; padding: 5px; }
.seg button { font: inherit; font-weight: 700; color: var(--muted); background: transparent; border: 0; border-radius: 12px; min-height: 52px; cursor: pointer; padding: 6px 10px; transition: .2s; }
.seg button[aria-pressed=true] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chip { font: inherit; font-weight: 650; color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 999px; min-height: 48px; padding: 8px 18px; cursor: pointer; transition: .15s; } .chip[aria-pressed=true] { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); } .chip:active { transform: scale(.96); }

/* Feier */
.feier { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.feier i { position: absolute; left: 0; top: 0; width: 10px; height: 14px; border-radius: 3px; will-change: transform, opacity; }

@keyframes einblenden { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes einblendenR { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes wackeln { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes flackern { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.1) rotate(3deg); } }
@keyframes glanz { to { transform: translateX(100%); } }

.rvon .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.rvon .rv.in { opacity: 1; transform: none; }
:root[data-stil="sachlich"] .rvon .rv, :root[data-stil="sachlich"] .rv { opacity: 1; transform: none; transition: none; }
:root[data-stil="sachlich"] .ein-body, :root[data-stil="sachlich"] .para.neu { animation-duration: .2s; }
:root[data-stil="sachlich"] .flame, :root[data-stil="sachlich"] .pop { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rvon .rv { opacity: 1; transform: none; }
}

.hero .wrap > * { animation: einblenden .9s cubic-bezier(.2,.8,.2,1) both; }
.hero .wrap > :nth-child(2) { animation-delay: .15s; } .hero .wrap > :nth-child(3) { animation-delay: .3s; } .hero .wrap > :nth-child(4) { animation-delay: .45s; }
:root[data-stil="sachlich"] .hero .wrap > * { animation-duration: .25s; animation-delay: 0s !important; }
.streak-chip[hidden] { display: none; }
a.card.reco, a.card.free { display: flex; }

/* Version 3: Konten, Rechtliches, Verwaltung, Bearbeiten auf der Seite */
textarea { font: inherit; font-size: 16px; padding: 12px 16px; border-radius: var(--rs); border: 2px solid var(--line); background: var(--card); color: var(--ink); width: 100%; resize: vertical; line-height: 1.5; }
textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input[readonly] { background: var(--card2); }
.check input[type=radio] { width: 22px; height: 22px; }
button:disabled { opacity: .55; cursor: not-allowed; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.foot .btn-s { min-height: 40px; }
.recht h2 { margin-top: 28px; }
.verlauf li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.verlauf li:last-child { border-bottom: 0; }

.admin-leiste { position: fixed; left: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 5px; box-shadow: var(--shadow-lg); }
.admin-leiste[hidden], .meldung[hidden] { display: none; }
@media (min-width: 760px) { .admin-leiste { bottom: 16px; } }
.meldung { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(140px + env(safe-area-inset-bottom)); z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-weight: 650; box-shadow: var(--shadow-lg); }
@media (min-width: 760px) { .meldung { bottom: 24px; } }

html.bearbeiten [data-k] { outline: 2px dashed var(--cta); outline-offset: 2px; border-radius: 4px; cursor: text; }
html.bearbeiten [data-k]:hover { background: color-mix(in srgb, var(--cta) 14%, transparent); }
html.bearbeiten [data-k].in-bearbeitung { outline-style: solid; }
html.bearbeiten .btn-main [data-k] { outline-color: var(--cta-ink); }
.bearb-extra { border: 2px dashed var(--line); box-shadow: none; margin: 16px 0; }
.ed-box { position: absolute; z-index: 70; background: var(--card); color: var(--ink); border: 2px solid var(--cta); border-radius: var(--rs); padding: 14px; box-shadow: var(--shadow-lg); font-size: 16px; line-height: 1.5; text-align: left; }
.ed-box.unten { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); max-height: 70vh; overflow: auto; }
.ed-label { display: grid; gap: 6px; font-weight: 650; }
.ed-hilfe { margin: 8px 0 4px; }

@media print {
  .top, .nav-bottom, .foot, .admin-leiste, .btns, .back, .feier { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
}
