/* =====================================================================
   Geldfuchs Academy · Wissens-Module
   Aus worksmart365/Weiterbildung (Teil A) übernommen am 2026-07-16 und an
   das Website-Design angeglichen: Inter (selbst gehostet, wie die Site),
   Site-Header/-Footer als kopierte Regel-Teilmenge aus ../../css/styles.css
   (BEWUSST nicht eingebunden: .btn/.card/.hero/.badge existieren in beiden
   Welten mit anderer Bedeutung; zwei Stylesheets würden kollidieren).
   Kein Dark-Mode: die Website ist hell, der Lernbereich zieht mit.
   ===================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../../../assets/fonts/Inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../../../assets/fonts/Inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farbwelt der Website: Tannengrün/Emerald + Deep-Blue, Text wie die Site */
  --brand: #047857;
  --brand-soft: #ecfdf5;
  --brand-border: #a7f3d0;
  --accent: #10B981;
  --deep-blue: #082F7B;
  --bg: #f8faf9;
  --surface: #ffffff;
  --surface-2: #f1f5f3;
  --text: #141413;
  --text-soft: #5b6f66;
  --border: #e2e8e5;
  --warn-bg: #fef3c7;
  --warn-border: #f59e0b;
  --warn-text: #92400e;
  --info-bg: #eff6ff;
  --info-border: #3b82f6;
  --info-text: #1e40af;
  --danger: #dc2626;
  --ok: #059669;
  --shadow: 0 1px 3px rgba(16, 42, 32, .08), 0 4px 16px rgba(16, 42, 32, .06);
  --shadow-lg: 0 4px 12px rgba(16, 42, 32, .10), 0 12px 40px rgba(16, 42, 32, .10);
  --radius: 14px;
  --radius-sm: 9px;
  --max-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--text); }
code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .1em .35em;
  font-size: .9em;
}

/* ---------- Site-Header (Regel-Teilmenge der Website, gleiche Klassennamen,
   gleiche Optik; nur der Nav-CTA ist hier eigenständig gestylt) ---------- */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e3e3e3;
}
.site-header .container { max-width: 1200px; }  /* Header-Breite wie Site (Inhalt bleibt 1140px) */
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; gap: 24px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--text);
  text-decoration: none; white-space: nowrap;
}
.site-logo:hover { text-decoration: none; }
.site-logo img { width: 32px; height: auto; }
.site-logo__mark { color: var(--deep-blue); font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { color: var(--deep-blue); font-weight: 600; font-size: 15px; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #059669; }
/* Header-CTA exakt wie auf den uebrigen Seiten (btn btn--primary btn--sm):
   .site-nav-Scope schlaegt die lokale .btn-Familie (Radius 10px, --brand),
   die auf diesen Seiten Lern-UI-Buttons meint, nicht den Site-Header. */
.site-nav .nav-cta, .site-nav .nav-cta:hover {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff !important;
  border: 2px solid transparent; padding: 7px 14px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 24px;
  text-decoration: none;
}
.site-nav .nav-cta:hover { filter: brightness(1.06); }
.nav-cta img { width: 1.2em; height: auto; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--deep-blue); cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (min-width: 721px) { .site-nav--center { flex: 1 1 auto; } .site-nav--center > a:first-of-type { margin-left: auto; } .site-nav--center .nav-cta { margin-left: auto; } }
@media (max-width: 720px) {
  .site-nav {
    position: fixed; inset: 64px 0 auto 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 24px; border-bottom: 1px solid #e5e5e3;
    box-shadow: 0 8px 16px rgba(20, 20, 19, 0.08); display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 8px; border-bottom: 1px solid #f0f0ee; font-size: 16px; }
  .nav-toggle { display: inline-flex; }
}

/* Bildmarke im Fliesstext (ersetzt das frühere 🦊-Emoji, wie auf der Website) */
.inline-icon { display: inline-block; width: 1.05em; height: auto; vertical-align: -0.15em; }

/* ---------- Preis-Streifen unter dem Dashboard-Hero: geplantes
   Freischalt-Modell · solange kein Checkout existiert, reine Ankündigung ---------- */

/* ---------- Lern-Leiste (Modul-/Prüfungsseite): Zurück-Link + Fortschritt ---------- */
.learnbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.learnbar__inner {
  max-width: var(--max-w); margin: 0 auto; padding: .55rem 1.2rem;
  display: flex; align-items: center; gap: .9rem;
}
.learnbar__back { font-size: .88rem; font-weight: 650; color: var(--deep-blue); }
.learnbar__spacer { flex: 1; }
.learnbar__progress { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--text-soft); }
.learnbar .bar { width: 130px; }

/* ---------- Progress bar ---------- */
.bar {
  height: 8px; border-radius: 99px; background: var(--surface-2);
  border: 1px solid var(--border); overflow: hidden;
}
.bar > i {
  display: block; height: 100%; background: var(--brand);
  border-radius: 99px; transition: width .4s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 600; font-size: .92rem;
  padding: .55rem 1.05rem; border-radius: 10px; cursor: pointer;
  transition: all .15s ease;
}
.btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { filter: brightness(1.08); color: #fff; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-soft); }
.btn--ghost:hover { color: var(--brand); border-color: transparent; }
.btn--sm { padding: .35rem .7rem; font-size: .82rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 1.6rem 1.2rem 4rem; }

/* ---------- Dashboard-Hero: Deep-Blue wie die Academy-/Blog-Heros ---------- */
.hero {
  background: var(--deep-blue);
  color: #fff; border-radius: var(--radius); padding: 2rem 2rem 1.7rem;
  box-shadow: var(--shadow-lg); margin-bottom: 1.8rem;
}
.hero__badge {
  display: inline-block; background: rgba(16, 185, 129, .25); color: #A7F3D0;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 12px;
}
.hero h1 { margin: 0 0 .4rem; font-size: 1.75rem; color: #fff; letter-spacing: -0.02em; }
.hero p { margin: 0; opacity: .92; max-width: 46rem; color: rgba(255, 255, 255, .85); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 1.3rem; }
.hero__stat .num { font-size: 1.5rem; font-weight: 800; }
.hero__stat .lbl { font-size: .8rem; opacity: .85; }
.hero__cta { margin-top: 1.2rem; }
.hero__cta .btn { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.hero__cta .btn:hover { filter: brightness(1.06); }

/* ---------- Sections & module grid ---------- */
.part-head { display: flex; align-items: baseline; gap: .8rem; margin: 2.2rem 0 1rem; }
.part-head h2 { margin: 0; font-size: 1.3rem; }
.part-head .tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-border); border-radius: 99px; padding: .15rem .6rem;
}
.part-head p { margin: 0; color: var(--text-soft); font-size: .9rem; }

.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1rem; }
.mod-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.15rem 1.2rem 1rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .55rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: var(--text);
}
.mod-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--brand-border); text-decoration: none; }
.mod-card__top { display: flex; align-items: center; gap: .7rem; }
.mod-card__icon {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px;
  background: var(--brand-soft); border: 1px solid var(--brand-border);
  display: grid; place-items: center; font-size: 1.3rem;
}
.mod-card__num { font-size: .74rem; font-weight: 700; color: var(--text-soft); letter-spacing: .03em; }
.mod-card__title { font-weight: 750; font-size: 1.02rem; }
.mod-card__sub { font-size: .86rem; color: var(--text-soft); flex: 1; }
.mod-card__meta { display: flex; gap: .9rem; font-size: .78rem; color: var(--text-soft); }
.mod-card__foot { display: flex; align-items: center; gap: .7rem; }
.mod-card__foot .bar { flex: 1; }
.mod-card__foot .pct { font-size: .78rem; color: var(--text-soft); min-width: 2.6rem; text-align: right; }
.badge {
  font-size: .7rem; font-weight: 700; border-radius: 99px; padding: .12rem .55rem;
  border: 1px solid var(--border); color: var(--text-soft); background: var(--surface-2);
}
.badge--done { background: var(--brand-soft); border-color: var(--brand-border); color: var(--brand); }
.badge--active { background: var(--info-bg); border-color: var(--info-border); color: var(--info-text); }
.badge--locked { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.mod-card--locked { opacity: .82; }
.mod-card--locked:hover { opacity: 1; }

/* ---------- Gate: Freischalt-Karte, Login-Form, Konto-Zeile ---------- */
.gate-card { max-width: 640px; margin: 0 auto; }
.gate-card h2 { margin: 0 0 .3rem; }
.gate-card__sub { color: var(--text-soft); margin: 0 0 1rem; }
.gate-card__offers { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .5rem; }
.gate-card__offers li {
  border: 1px solid var(--brand-border); border-radius: var(--radius-sm);
  background: var(--brand-soft); padding: .6rem .9rem; font-size: .93rem;
}
.gate-card__offers b { color: var(--brand); }
.gate-card__note { font-size: .85rem; color: var(--text-soft); }
.gate-login { margin-top: 1rem; }
.gate-login label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: .45rem; }
.gate-login__row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .55rem; }
.gate-login__row input {
  flex: 1; min-width: 220px; font: inherit; padding: .55rem .8rem;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--text);
}
.gate-login__row input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.gate-login__err { color: var(--danger); font-size: .85rem; min-height: 1.2em; }
.gate-account {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .8rem 1.3rem; margin: 0 0 1.8rem; font-size: .9rem; color: var(--text-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  box-shadow: var(--shadow);
  max-width: 680px;  /* kompakt statt Fensterbreite (User-Wunsch 2026-07-21) */
}
.gate-account .gate-login { margin-top: 0; flex-basis: 100%; }
.gate-account .gate-login label { display: none; }

/* Exam teaser card */
.exam-card {
  margin-top: 2.4rem; background: var(--surface); border: 1px dashed var(--brand);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem;
}
.exam-card h3 { margin: 0 0 .25rem; }
.exam-card p { margin: 0; color: var(--text-soft); font-size: .92rem; }
.exam-card .grow { flex: 1; min-width: 260px; }

/* ---------- Module page ---------- */
.mod-layout { display: grid; grid-template-columns: 290px 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 900px) { .mod-layout { grid-template-columns: 1fr; } }

.side {
  position: sticky; top: 118px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
  max-height: calc(100vh - 138px); overflow: auto;
}
@media (max-width: 900px) { .side { position: static; max-height: none; } }
.side__mod { display: flex; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.side__mod .mod-card__icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 1.1rem; }
.side__mod b { font-size: .95rem; line-height: 1.3; }
.side h4 {
  margin: 1rem 0 .35rem; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-soft);
}
.side a.nav-item {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .6rem; border-radius: 8px; font-size: .88rem; color: var(--text);
}
.side a.nav-item:hover { background: var(--surface-2); text-decoration: none; }
.side a.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.side .tick {
  width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%;
  border: 1.5px solid var(--border); display: grid; place-items: center;
  font-size: .65rem; color: #fff;
}
.side .tick.done { background: var(--ok); border-color: var(--ok); }

.main {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem 2.3rem 2.3rem; min-width: 0;
}
@media (max-width: 640px) { .main { padding: 1.3rem 1.1rem 1.6rem; } }

.lesson-head { margin-bottom: 1.4rem; }
.lesson-head .crumb { font-size: .8rem; color: var(--text-soft); margin-bottom: .3rem; }
.lesson-head h1 { margin: 0; font-size: 1.55rem; }
.lesson-head h2 { margin: 0; font-size: 1.45rem; }

.objectives {
  background: var(--brand-soft); border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm); padding: .9rem 1.2rem; margin: 1.1rem 0 1.6rem;
}
.objectives h4 { margin: 0 0 .4rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.objectives ul { margin: 0; padding-left: 1.2rem; }
.objectives li { margin: .2rem 0; font-size: .93rem; }

.takeaways {
  background: var(--surface-2); border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .9rem 1.2rem; margin: 1.8rem 0 1.2rem;
}
.takeaways h4 { margin: 0 0 .4rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.takeaways ul { margin: 0; padding-left: 1.2rem; }
.takeaways li { margin: .25rem 0; font-size: .93rem; }

.lesson-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--border);
}

/* ---------- Content elements (in lesson html) ---------- */
.content h3 { margin: 1.9rem 0 .6rem; font-size: 1.2rem; }
.content h4 { margin: 1.4rem 0 .4rem; font-size: 1.02rem; }
.content p { margin: .7rem 0; }
.content ul, .content ol { margin: .6rem 0; padding-left: 1.35rem; }
.content li { margin: .3rem 0; }
.content table {
  width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem;
  display: block; overflow-x: auto;
}
.content table th, .content table td {
  border: 1px solid var(--border); padding: .5rem .7rem; text-align: left;
  vertical-align: top;
}
.content table th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.content .num, .content td.num { text-align: right; font-variant-numeric: tabular-nums; }

.callout {
  border-radius: var(--radius-sm); padding: .85rem 1.1rem; margin: 1.1rem 0;
  border: 1px solid var(--border); background: var(--surface-2); font-size: .93rem;
}
.callout h4 { margin: 0 0 .3rem; font-size: .9rem; }
.callout p { margin: .3rem 0; }
.callout--info { background: var(--info-bg); border-color: var(--info-border); }
.callout--info h4 { color: var(--info-text); }
.callout--warn { background: var(--warn-bg); border-color: var(--warn-border); }
.callout--warn h4 { color: var(--warn-text); }
.callout--merke { background: var(--brand-soft); border-color: var(--brand-border); }
.callout--merke h4 { color: var(--brand); }

.example {
  border: 1px solid var(--brand-border); border-radius: var(--radius-sm);
  margin: 1.1rem 0; overflow: hidden;
}
.example > h4 {
  margin: 0; padding: .5rem 1.1rem; font-size: .82rem;
  background: var(--brand-soft); color: var(--brand);
  text-transform: uppercase; letter-spacing: .04em;
}
.example > div { padding: .7rem 1.1rem .9rem; font-size: .93rem; }
.example p { margin: .4rem 0; }

.formula {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .7rem 1.1rem; margin: 1rem 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem;
  overflow-x: auto; white-space: pre-wrap;
}

.kv { border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 1rem 0; overflow: hidden; }
.kv__row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 1rem; font-size: .9rem; }
.kv__row:nth-child(odd) { background: var(--surface-2); }
.kv__row b { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin: 1rem 0; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .9rem;
}
.card h4 { margin: 0 0 .3rem; }
.card p { margin: .25rem 0; }

/* ---------- Quiz ---------- */
.quiz-q {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; margin: 1rem 0; background: var(--surface);
}
.quiz-q__title { font-weight: 650; margin-bottom: .6rem; }
.quiz-q ul { list-style: none; margin: 0; padding: 0; }
.quiz-q li {
  border: 1px solid var(--border); border-radius: 9px; padding: .5rem .8rem;
  margin: .4rem 0; cursor: pointer; font-size: .92rem; transition: all .12s;
}
.quiz-q li:hover { border-color: var(--brand); }
.quiz-q li.sel { border-color: var(--brand); background: var(--brand-soft); }
.quiz-q li.correct { border-color: var(--ok); background: var(--brand-soft); }
.quiz-q li.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.quiz-q__fb { margin-top: .6rem; font-size: .88rem; display: none; }
.quiz-q__fb.show { display: block; }
.quiz-q__fb .ok { color: var(--ok); font-weight: 700; }
.quiz-q__fb .no { color: var(--danger); font-weight: 700; }
.quiz-result {
  margin: 1.5rem 0; padding: 1.2rem 1.4rem; border-radius: var(--radius-sm);
  background: var(--brand-soft); border: 1px solid var(--brand-border);
  font-size: .95rem;
}
.quiz-result .note { font-size: 1.6rem; font-weight: 800; color: var(--brand); }

/* ---------- Flashcards ---------- */
.fc-stage { max-width: 560px; margin: 1.2rem auto; perspective: 1200px; }
.fc-card {
  position: relative; width: 100%; min-height: 240px; cursor: pointer;
  transform-style: preserve-3d; transition: transform .5s;
}
.fc-card.flipped { transform: rotateY(180deg); }
.fc-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.6rem; text-align: center; gap: .5rem;
}
.fc-face--back { transform: rotateY(180deg); background: var(--brand-soft); border-color: var(--brand-border); }
.fc-face .side-lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-soft); }
.fc-face .txt { font-size: 1.05rem; font-weight: 600; }
.fc-face--back .txt { font-weight: 500; font-size: .98rem; }
.fc-controls { display: flex; justify-content: center; gap: .8rem; margin-top: 1.1rem; }
.fc-meta { text-align: center; color: var(--text-soft); font-size: .84rem; margin-top: .8rem; }

/* ---------- Cases ---------- */
.case {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin: 1.2rem 0; overflow: hidden;
}
.case > h3 { margin: 0; padding: .8rem 1.2rem; background: var(--surface-2); font-size: 1.05rem; }
.case__body { padding: 1rem 1.2rem 1.2rem; }
.case__task { margin: 1rem 0; padding: .9rem 1.1rem; border: 1px dashed var(--border); border-radius: var(--radius-sm); }
.case__task .q { font-weight: 650; margin-bottom: .5rem; }
.case__sol { display: none; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--border); font-size: .93rem; }
.case__sol.show { display: block; }

/* ---------- Exam ---------- */
.exam-setup { max-width: 640px; margin: 0 auto; }
.exam-setup .field { margin: 1.1rem 0; }
.exam-setup label { font-weight: 650; font-size: .92rem; display: block; margin-bottom: .4rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-row .chip {
  border: 1px solid var(--border); border-radius: 99px; padding: .35rem .85rem;
  font-size: .87rem; cursor: pointer; background: var(--surface); color: var(--text);
}
.choice-row .chip.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.exam-run__head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 1rem; font-size: .9rem; color: var(--text-soft);
}
.exam-timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.exam-timer.low { color: var(--danger); }
.exam-review__item { border-left: 4px solid var(--ok); padding: .6rem 1rem; margin: .8rem 0; background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .92rem; }
.exam-review__item.wrong { border-left-color: var(--danger); }
.exam-review__item .meta { font-size: .78rem; color: var(--text-soft); }

/* ---------- Site-Footer (Regel-Teilmenge der Website) ---------- */
.site-footer {
  background: var(--deep-blue);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 32px;
  margin-top: 80px;
}
.site-footer__disclaimer { margin: 0 0 14px; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .62); max-width: 820px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255, 255, 255, 0.65);
}

/* ---------- Misc ---------- */
.empty { text-align: center; color: var(--text-soft); padding: 3rem 1rem; }
.toast {
  position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; padding: .55rem 1.1rem;
  border-radius: 99px; font-size: .88rem; opacity: 0; pointer-events: none;
  transition: opacity .3s; z-index: 100;
}
.toast.show { opacity: 1; }

@media print {
  .site-header, .learnbar, .site-footer, .side, .lesson-foot, .btn, .toast { display: none !important; }
  .main { border: none; box-shadow: none; padding: 0; }
  body { background: #fff; }
}
