/* ============================================================
   Prüfungslotse · styles.css
   Marke: Lotse / Navigation. Marineblau-Petrol + Bernstein.
   Skins via [data-skin="profi" | "kinder" | "neutral"]
   ============================================================ */

:root {
  /* Prüfungslotse – eigene Marke (frisch & modern, NICHT Heinze).
     Markenfarbe lebendiges Teal-Cyan, Akzent warmes Korall-Orange. */
  --navy:      #0c3b43;   /* dunkles Teal-Slate: Kopfzeile, Überschriften */
  --navy-2:    #11616b;
  --teal:      #0ea5a4;   /* Markenfarbe (lebendig) */
  --teal-soft: #dbf4f3;
  --amber:     #ff8a3d;   /* Akzent: Korall-Orange (≠ Heinze-Gold) */
  --amber-soft:#ffe7d6;
  --ink:       #14242c;
  --muted:     #5d7787;
  --line:      #e7edf0;
  --paper:     #f3f6f7;
  --card:      #ffffff;
  --ok:        #16a34a;
  --bad:       #e23d3d;

  /* Skin-Variablen (werden je Skin überschrieben) */
  --akzent:      var(--teal);
  --akzent-ink:  #0a6e6c;
  --akzent-soft: var(--teal-soft);
  --gold:        var(--amber);
  --gold-ink:    #d96e22;
  --radius:      16px;
  --radius-lg:   24px;
  --shadow:      0 1px 2px rgba(12,40,46,.05), 0 10px 26px rgba(12,40,46,.07);
  /* runde, freundliche Sans – kein Serif mehr (das war der Heinze-Look) */
  --font:        "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", sans-serif;
  --font-head:   "Segoe UI", system-ui, -apple-system, "Roboto", sans-serif;
}

/* ---- Skin: Profi (Erwachsene/Beruf) – ruhig-modern ---- */
[data-skin="profi"] {
  --akzent: #0ea5a4;
  --akzent-ink: #0a6e6c;
  --akzent-soft: #dbf4f3;
  --gold: #ff8a3d;
  --gold-ink: #d96e22;
  --radius: 16px;
  --radius-lg: 22px;
}

/* ---- Skin: Kinder (Grundschule) – heller & runder ---- */
[data-skin="kinder"] {
  --navy: #145b86;
  --akzent: #2ba8e8;
  --akzent-ink: #1668a0;
  --akzent-soft: #e3f3fd;
  --gold: #ffc23d;
  --gold-ink: #e09a14;
  --ok: #2fa45f;
  --radius: 22px;
  --radius-lg: 30px;
  --paper: #eef8fe;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--navy);
  color: #fff;
}
[data-skin="kinder"] .topbar { background: var(--akzent-ink); }
.brand { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-right: auto; }
.brand-mark { font-size: 22px; }
.brand-name { font-family: var(--font-head); font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.iconbtn {
  width: 38px; height: 38px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.12); color: #fff; font-size: 20px; cursor: pointer;
  display: grid; place-items: center;
}
.iconbtn:hover { background: rgba(255,255,255,.2); }
#backBtn { font-size: 26px; margin-right: 2px; }
#brandBtn { margin-left: 0; }

/* ---------- Layout ---------- */
.container {
  max-width: 720px; margin: 0 auto;
  padding: 18px 16px 40px;
}
.appfoot {
  max-width: 720px; margin: 0 auto;
  display: flex; gap: 16px; justify-content: center;
  padding: 22px 16px calc(28px + env(safe-area-inset-bottom));
  color: var(--muted); font-size: 13px;
}
.appfoot a { color: var(--muted); text-decoration: none; }
.appfoot a:hover { text-decoration: underline; }

.spacer-m { height: 18px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Typo ---------- */
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
[data-skin="kinder"] h1, [data-skin="kinder"] h2, [data-skin="kinder"] h3 { color: var(--akzent-ink); }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--akzent); }
.page-title { font-size: 26px; margin: 4px 0 6px; }
.page-sub { color: var(--muted); margin: 0 0 18px; }

/* ---------- Hero (Bereich-Auswahl Landing) ---------- */
.hero {
  background: radial-gradient(130% 130% at 100% 0%, var(--teal) 0%, var(--navy-2) 55%, var(--navy) 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: 34px 26px; margin-bottom: 22px;
  position: relative; overflow: hidden;
}
.hero::after { /* dezentes Kurs-Ring-Motiv statt Emoji-Wasserzeichen */
  content: ""; position: absolute; right: -50px; bottom: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  border: 18px solid rgba(255,255,255,.07); box-shadow: 0 0 0 26px rgba(255,255,255,.04);
}
.hero .eyebrow { color: rgba(255,255,255,.72); }
.hero h1 { color: #fff; font-size: 33px; margin: 8px 0 10px; max-width: 15ch; }
.hero p { color: rgba(255,255,255,.85); margin: 0; max-width: 46ch; font-size: 15px; position: relative; }

/* ---------- Bereich-Karten (Home) ---------- */
.section-label { display: flex; align-items: center; gap: 12px; margin: 24px 2px 12px; }
.section-label h2 { font-size: 16px; margin: 0; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.section-label .line { flex: 1; height: 1px; background: var(--line); }

.bereich-grid { display: grid; gap: 14px; }
.bereich-card {
  display: flex; align-items: center; gap: 16px; width: 100%;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 16px; cursor: pointer;
  text-align: left; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
}
.bereich-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(15,46,61,.12); }
.bereich-card .bc-emoji {
  font-size: 30px; width: 54px; height: 54px; flex: none;
  display: grid; place-items: center; border-radius: 14px;
  background: var(--bc-soft, var(--teal-soft));
}
.bereich-card .bc-body { flex: 1; min-width: 0; }
.bereich-card .bc-title { font-family: var(--font-head); font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--navy); display: block; }
.bereich-card .bc-meta { font-size: 13px; color: var(--muted); display: block; margin-top: 2px; }
.bereich-card .bc-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .4px;
  padding: 2px 8px; border-radius: 999px; margin-top: 6px;
}
.bc-tag.kinder { background: #e4f1fb; color: #1c5e8f; }
.bc-tag.profi  { background: #f6ecd8; color: #8a5a10; }
.bc-tag.soon   { background: #eef1f2; color: #6b7a80; }
.bereich-card .chev { font-size: 26px; color: var(--line); flex: none; }

/* ---------- Modus-Grid (Lernen/Quiz/Karten/Prüfung) ---------- */
.modus-grid { display: grid; gap: 12px; margin-top: 8px; }
.modus-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; cursor: pointer; text-align: left; box-shadow: var(--shadow);
  transition: transform .12s;
}
.modus-card:hover { transform: translateY(-2px); }
.modus-card .ic {
  font-size: 24px; width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--akzent-soft);
}
.modus-card h3 { margin: 0 0 2px; font-size: 16px; }
.modus-card p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font); font-size: 16px; font-weight: 800;
  border: 0; border-radius: 14px; padding: 14px 18px; cursor: pointer;
  line-height: 1.15; letter-spacing: -.01em;
  transition: transform .05s ease, box-shadow .05s ease, filter .12s;
}
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 17px 20px; font-size: 17px; border-radius: 16px; }
.btn-primary { background: var(--akzent); color: #fff; box-shadow: 0 4px 0 var(--akzent-ink); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 4px 0 var(--gold-ink); }
.btn-ghost { background: #fff; color: var(--akzent-ink); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.btn-primary:hover, .btn-gold:hover { filter: brightness(1.04); }
.btn-ghost:hover { background: var(--akzent-soft); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 0 0 var(--akzent-ink); }
.btn-gold:active { transform: translateY(4px); box-shadow: 0 0 0 var(--gold-ink); }
.btn-ghost:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.nav-row { display: flex; gap: 12px; margin-top: 18px; }
.nav-row .btn { flex: 1; }

/* ---------- Onboarding (Lernmodus-Wahl) ---------- */
.onb { padding: 8px 2px; }
.onb h1 { font-size: 24px; margin: 6px 0 8px; }
.onb .lead { color: var(--muted); margin: 0 0 20px; }
.mode-card {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); transition: border-color .12s, transform .1s;
}
.mode-card:hover { transform: translateY(-2px); }
.mode-card.empfohlen { border-color: var(--akzent); }
.mode-card .mc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mode-card .mc-ic { font-size: 26px; }
.mode-card h3 { margin: 0; font-size: 18px; }
.mode-card .badge { font-size: 11px; font-weight: 700; background: var(--akzent); color: #fff; padding: 2px 8px; border-radius: 999px; margin-left: auto; }
.mode-card p { margin: 0; font-size: 14px; color: var(--muted); }
.mode-card .cite { display: block; margin-top: 8px; font-size: 12px; color: var(--akzent); font-style: italic; }

/* ---------- Karten / Lernen ---------- */
.lern-pos { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.kapitel-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.kapitel-card h2 { margin: 0 0 14px; font-size: 21px; }
.kernaussage {
  background: var(--akzent-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
}
.kernaussage .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--akzent-ink); }
.kernaussage p { margin: 4px 0 0; }

/* Retrieval-Modus: Denk-Prompt */
.recall-prompt {
  background: var(--navy); color: #fff; border-radius: 14px; padding: 18px 18px; margin-bottom: 16px;
}
.recall-prompt .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #9ed0db; }
.recall-prompt p { margin: 6px 0 0; font-size: 16px; }
.recall-list { margin: 10px 0 0; padding-left: 20px; }
.recall-list li { margin-bottom: 6px; font-size: 15px; }
.lk-frage { font-weight: 600; color: var(--navy); margin: 0 0 6px; }
[data-skin="kinder"] .lk-frage { color: var(--akzent-ink); }

.lernkarte {
  border-radius: 12px; padding: 14px 16px; margin-top: 12px;
  background: var(--paper);
}
.lernkarte .lk-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--akzent-ink); margin-bottom: 4px; }
.lernkarte p { margin: 0; }
.lk-eselsbruecke { background: var(--amber-soft); }
.lk-wichtig { background: #fbeae9; }
.lk-beispiel { background: #e9f6ef; }
.lk-head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.lk-icon { font-size: 20px; line-height: 1; }
.lernkarte .lk-lbl { margin-bottom: 0; }
.lk-text { margin: 0; }
.kernaussage .ka-icon { font-size: 22px; margin-right: 6px; }
mark { background: #fff1c2; color: inherit; padding: 0 4px; border-radius: 5px; font-weight: 700; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
mark.mc1 { background: #bfe7c8; }
mark.mc2 { background: #c3ddfb; }
mark.mc3 { background: #ffd6a5; }
[data-skin="kinder"] mark.mc1 { background: #93dca6; }
[data-skin="kinder"] mark.mc2 { background: #9fc8fb; }
[data-skin="kinder"] mark.mc3 { background: #ffc078; }
.speak-btn.on { background: var(--akzent); color: #fff; }

/* Kinder-Skin: kindgerechtes Lernen (bunt, große Schrift, Icons, Hervorhebung) */
[data-skin="kinder"] .lernkarte { border-radius: 20px; padding: 16px 18px; margin-top: 16px; box-shadow: 0 2px 0 rgba(20,60,80,.06); }
[data-skin="kinder"] .lernkarte .lk-lbl { font-size: 12px; }
[data-skin="kinder"] .lk-text, [data-skin="kinder"] .lk-frage { font-size: 17px; line-height: 1.55; }
[data-skin="kinder"] .lk-icon { font-size: 30px; }
[data-skin="kinder"] .lk-merke { background: #e4f1fb; }
[data-skin="kinder"] .lk-eselsbruecke { background: #fff4d6; }
[data-skin="kinder"] .lk-wichtig { background: #ffe3e0; }
[data-skin="kinder"] .lk-beispiel { background: #e3f6ea; }
[data-skin="kinder"] .kernaussage { border-radius: 20px; font-size: 17px; }
[data-skin="kinder"] mark { background: #ffd84d; }

/* Bild in Lernkarte / Frage */
.lern-bild, .frage-bild {
  display: block; max-width: 100%; max-height: 200px; width: auto; height: auto;
  margin: 4px auto 12px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
}
.bild-quelle { font-size: 11px; color: var(--muted); margin: -8px 0 12px; }

/* ---------- Quiz ---------- */
.quiz-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.quiz-progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.quiz-progress i { display: block; height: 100%; background: var(--akzent); transition: width .25s; }
.frage-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow);
}
.frage-text { font-size: 18px; font-weight: 600; color: var(--navy); margin: 0 0 16px; }
[data-skin="kinder"] .frage-text { color: var(--akzent-ink); }
.optionen { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px; cursor: pointer; font-size: 15px; transition: border-color .1s, background .1s;
}
.opt:hover { border-color: var(--akzent); }
.opt .marker {
  width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--akzent-soft); color: var(--akzent-ink); font-weight: 700; font-size: 14px;
}
.opt.locked { cursor: default; }
.opt.correct { border-color: var(--ok); background: #e7f5ee; }
.opt.correct .marker { background: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--bad); background: #fbeae9; }
.opt.wrong .marker { background: var(--bad); color: #fff; }
.erklaerung {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  background: #e7f5ee; font-size: 14px;
}
.erklaerung.miss { background: #fbeae9; }
.erklaerung b { display: block; margin-bottom: 4px; }

/* ---------- Result ---------- */
.result { text-align: center; padding: 16px 0; }
.ring {
  width: 150px; height: 150px; border-radius: 50%; margin: 8px auto 18px;
  background: conic-gradient(var(--akzent) var(--deg), var(--line) 0);
  display: grid; place-items: center;
}
.ring .inner { width: 116px; height: 116px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.ring .pct { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--navy); }
.ring .pct small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); font-family: var(--font); }
.result h2 { margin: 0 0 6px; }
.result .msg { color: var(--muted); margin: 0 auto 20px; max-width: 36ch; }
.result .actions { display: grid; gap: 10px; max-width: 360px; margin: 0 auto; }

/* ---------- Flash / Karteikarten ---------- */
.flash {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow); min-height: 160px;
}
.fl-q { font-size: 17px; font-weight: 600; color: var(--navy); }
.fl-divider { height: 1px; background: var(--line); margin: 16px 0; }
.fl-a { font-size: 15px; }
.fl-a .lbl { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--akzent); margin-bottom: 6px; }

/* ---------- Glossar ---------- */
.such {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; margin-bottom: 16px; font-family: var(--font);
}
.such:focus { outline: none; border-color: var(--akzent); }
.gl-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.gl-item dt { font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.gl-item dd { margin: 0; font-size: 14px; color: var(--ink); }

/* ---------- Setup-Card / Chips ---------- */
.setup-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 20px; }
.chip { background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--akzent); color: #fff; border-color: var(--akzent); }

/* ---------- Disclaimer / Quelle ---------- */
.disclaimer {
  font-size: 12px; color: var(--muted); background: var(--paper);
  border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 16px;
}
.quelle-zeile { font-size: 11px; color: var(--muted); margin-top: 10px; font-style: italic; }

/* ---------- Paywall ---------- */
.paywall { text-align: center; padding: 10px 4px; }
.paywall-icon { font-size: 46px; }
.paywall-title { font-size: 24px; margin: 6px 0; }
.paywall-sub { color: var(--muted); max-width: 40ch; margin: 0 auto 18px; }
.paywall-features { text-align: left; max-width: 360px; margin: 0 auto 20px; display: grid; gap: 8px; }
.paywall-feat { font-size: 14px; }
.paywall-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.paywall-free { margin-top: 16px; font-size: 13px; color: var(--akzent-ink); background: var(--akzent-soft); border-radius: 10px; padding: 10px; }
.paywall-webinfo { margin-top: 14px; font-size: 14px; background: var(--amber-soft); border-radius: 10px; padding: 12px; }

/* ---------- Settings ---------- */
.settings-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px;
}
.settings-row .s-label { font-weight: 600; }
.settings-row .s-sub { font-size: 12px; color: var(--muted); }

/* ---------- Status-Leiste (Bereitschaft / Streak / fällig) ---------- */
.status-bar { display: flex; gap: 10px; margin: 4px 0 12px; }
.status-bar .stat {
  flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 8px; text-align: center; box-shadow: var(--shadow);
}
.status-bar .stat-num { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--navy); }
[data-skin="kinder"] .status-bar .stat-num { color: var(--akzent-ink); }
.status-bar .stat-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.ready-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: -4px 0 14px; }
.ready-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--akzent), var(--gold)); transition: width .4s; }

/* ---------- Prüfungstermin ---------- */
.pruef-datum {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--akzent-soft); border-radius: 10px; padding: 10px 14px; margin: -4px 0 14px;
  font-size: 14px; color: var(--akzent-ink);
}
.pruef-datum .mini-link { background: none; border: 0; color: var(--akzent-ink); text-decoration: underline; cursor: pointer; font-size: 13px; }
.pruef-datum .datum-in { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-family: var(--font); font-size: 13px; }

/* ---------- Freude: Belohnung & Bewegung ---------- */
.frage-card { position: relative; }
@keyframes pop { 0%{transform:scale(.4);opacity:0} 60%{transform:scale(1.15)} 100%{transform:scale(1);opacity:1} }
@keyframes shakeX { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }
@keyframes slideUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes comboPop { 0%{transform:scale(.5);opacity:0} 55%{transform:scale(1.12)} 100%{transform:scale(1);opacity:1} }
@keyframes konfettiFall { to { transform: translateY(108vh) rotate(720deg); } }

.frage-card.enter { animation: slideUp .22s ease both; }
.opt.shake { animation: shakeX .35s; }
.opt.correct { transition: transform .15s; }
.opt.pulse { transform: scale(1.015); }

.reward-check { position: absolute; right: 16px; top: 12px; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.reward-check .badge-ok { width: 34px; height: 34px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 19px; animation: pop .3s ease both; box-shadow: 0 6px 16px rgba(22,163,74,.4); }
.reward-check .praise { font-family: var(--font-head); font-weight: 800; color: var(--ok); font-size: 16px; animation: pop .36s ease both; }
.reward-check.fade { opacity: 0; transition: opacity .3s; }

.combo-pill { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; background: #fff3d6; color: #a85e00; border-radius: 999px; padding: 5px 13px; font-weight: 800; font-size: 14px; animation: comboPop .35s ease both; }
[data-skin="kinder"] .combo-pill { background: #ffe08a; font-size: 15px; }

.konfetti-piece { position: fixed; top: -14px; width: 9px; height: 14px; border-radius: 2px; z-index: 60; pointer-events: none; will-change: transform; }
.result { animation: slideUp .3s ease both; }

/* ---------- Fehler melden ---------- */
.report-link {
  display: block; margin: 12px auto 0; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 12px; text-decoration: underline; font-family: var(--font);
}
.report-link:disabled { color: var(--ok); text-decoration: none; cursor: default; }

/* Sprach-Feedback: kleiner Link, der sich erst beim Antippen öffnet */
.fb-wrap { margin-top: 14px; text-align: center; }
.fb-link {
  background: none; border: 0; cursor: pointer; padding: 4px 6px;
  color: var(--muted); font-size: 12px; text-decoration: underline; font-family: var(--font);
}
.fb-link:hover { color: var(--navy); }
.fb-panel {
  margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--paper); text-align: left;
}
.fb-hint { font-size: 13px; color: var(--muted); margin: 0 0 10px; line-height: 1.45; }
.fb-btn {
  display: inline-block; padding: 10px 18px; border: 2px solid var(--akzent, var(--teal));
  border-radius: 12px; background: #fff; color: var(--navy);
  font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer;
}
.fb-btn.listening { border-color: var(--bad); background: #fff1f0; animation: fbPulse 1s ease-in-out infinite; }
.fb-btn:disabled { border-color: var(--ok); color: var(--ok); background: #eaf7ef; cursor: default; }
@keyframes fbPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(226,61,61,.0); } 50% { box-shadow: 0 0 0 5px rgba(226,61,61,.12); } }
/* Feedback-Liste (Einstellungen) */
.fb-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.fb-item { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fb-txt { font-size: 14px; color: var(--navy); }
.fb-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---------- Vorlesen (TTS) ---------- */
.speak-btn {
  flex: none; width: 38px; height: 38px; border: 0; border-radius: 10px;
  background: var(--akzent-soft); color: var(--akzent-ink); font-size: 18px;
  cursor: pointer; display: grid; place-items: center;
}
.speak-btn:hover { filter: brightness(.97); }
.frage-zeile { display: flex; align-items: flex-start; gap: 10px; }
.frage-zeile .frage-text { flex: 1; }
.flash-speak { margin-top: 14px; }
.vorlese-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }

/* ---------- Pause / Häppchen ---------- */
.pause-emoji { font-size: 48px; }

/* ---------- Bewerten ---------- */
.rate-box { margin-top: 18px; padding: 16px; background: var(--amber-soft); border-radius: 14px; text-align: center; }
.rate-box p { margin: 0 0 12px; font-size: 14px; }
.rate-actions { display: flex; gap: 10px; justify-content: center; }
.rate-actions .btn { text-decoration: none; display: inline-flex; align-items: center; }

/* ---------- Rechts-Links ---------- */
.rechts-links { display: flex; flex-wrap: wrap; gap: 16px; padding: 4px 2px; }
.rechts-links a { color: var(--akzent-ink); font-size: 14px; text-decoration: underline; }

/* ---------- Startseite: Suche & Kategorien ---------- */
.home-such { margin-top: 4px; margin-bottom: 18px; }
.kat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kat-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; cursor: pointer; text-align: left;
  box-shadow: 0 4px 0 var(--line); transition: transform .06s;
}
.kat-card:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.kat-emoji { font-size: 26px; }
.kat-label { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--navy); letter-spacing: -.01em; }
.kat-count { font-size: 12px; color: var(--muted); }
.kat-card.sub { flex-direction: row; align-items: center; justify-content: space-between; }
.kat-card.sub .kat-label { font-size: 15px; }
.crumbs { font-size: 13px; color: var(--muted); margin: -4px 0 14px; }

/* ---------- Bundesland ---------- */
.bl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bl-btn {
  background: var(--card); border: 2px solid var(--line); border-radius: 12px;
  padding: 12px 10px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink);
  box-shadow: 0 4px 0 var(--line); transition: transform .06s;
}
.bl-btn:hover { border-color: var(--akzent); }
.bl-btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.bl-select { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-family: var(--font); font-size: 14px; background: #fff; }

/* ---------- Onboarding-Stepper ---------- */
.onb-top { position: relative; display: flex; justify-content: center; align-items: center; min-height: 28px; margin: 4px 0 18px; }
.onb-back { position: absolute; left: 0; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; padding: 4px 6px; font-family: var(--font); }
.onb-back:hover { color: var(--navy); }
.onb-top .onb-dots { margin: 0; }
.onb-dots { display: flex; gap: 6px; justify-content: center; margin: 4px 0 18px; }
.onb-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width .2s; }
.onb-dots span.on { background: var(--akzent); width: 22px; border-radius: 4px; }
.onb-welcome { text-align: center; padding: 18px 0 6px; }
.onb-mark { font-size: 64px; }
.onb-welcome h1 { margin: 8px 0 10px; }
.how-list { display: grid; gap: 14px; margin: 6px 0 16px; }
.how-item { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.how-ic { font-size: 28px; line-height: 1; }
.how-item b { color: var(--navy); font-size: 16px; }
.how-item p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.onb-sci-link { display: block; margin: 0 auto 16px; background: none; border: 0; color: var(--akzent-ink); text-decoration: underline; cursor: pointer; font-size: 14px; font-family: var(--font); }

/* ---------- Methode-Seite ---------- */
.methode-grid { display: grid; gap: 14px; }
.methode-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.methode-card .m-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.methode-card .m-ic { font-size: 24px; }
.methode-card h3 { margin: 0; font-size: 17px; }
.m-claim { margin: 0 0 8px; }
.m-who { margin: 0 0 8px; font-size: 13px; color: var(--akzent-ink); font-style: italic; }
.m-wie { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.m-link { font-size: 13px; color: var(--akzent-ink); font-weight: 700; text-decoration: none; }
.m-link:hover { text-decoration: underline; }
.methode-buch { margin-top: 16px; background: var(--akzent-soft); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--akzent-ink); }

/* ---------- Darstellungstypen (Tabelle / Sequenz / Formel) ---------- */
.lern-tabelle { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: 14px; }
.lern-tabelle th, .lern-tabelle td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.lern-tabelle th { background: var(--akzent-soft); color: var(--akzent-ink); font-weight: 700; }
.lern-tabelle tr:nth-child(even) td { background: var(--paper); }
.lern-sequenz { counter-reset: seq; list-style: none; margin: 4px 0 12px; padding: 0; }
.lern-sequenz li { position: relative; padding: 8px 8px 8px 40px; margin-bottom: 8px; background: var(--paper); border-radius: 10px; }
.lern-sequenz li::before {
  counter-increment: seq; content: counter(seq); position: absolute; left: 8px; top: 8px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--akzent); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.lern-formel {
  font-family: "Cambria Math", Georgia, serif; font-size: 19px; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; margin: 4px 0 12px; letter-spacing: .3px;
}

/* Kinder-Skin: verspielter */
[data-skin="kinder"] .hero { background: radial-gradient(130% 130% at 100% 0%, #5ec3f2 0%, #2ba8e8 55%, #1f8fd0 100%); }
[data-skin="kinder"] .bereich-card, [data-skin="kinder"] .modus-card,
[data-skin="kinder"] .frage-card, [data-skin="kinder"] .kapitel-card { border-width: 2px; }
[data-skin="kinder"] .opt { font-size: 16px; }
[data-skin="kinder"] .bereich-card .bc-emoji { border-radius: 18px; }
