/* ─── kathar.io Design-System · bold/kontrastreich ───────── */
:root {
  --blanc:      #FFFFFF;
  --bg:         #E7ECF3;   /* getönter Seitenhintergrund -> weiße Karten heben sich ab */
  --bg-2:       #DCE3EC;
  --cool-grey:  #EEF1F5;
  --mist:       #D4D7DB;
  --pale-blue:  #B8C5D1;
  --dusty-blue: #9EAFC1;
  --steel:      #5E83AD;
  --deep-blue:  #3E6FA8;   /* satter als zuvor */
  --blue-bright:#4F86C6;
  --navy:       #1E2A38;   /* dunkler -> mutiges Hero-Panel */
  --navy-2:     #27384B;
  --gold:       #C9A84C;
  --gold-light: #F5E4A8;
  --gold-dark:  #8A6A1A;
  --teal:       #1D9E8A;
  --teal-soft:  #DDF3EF;
  --text-main:  #1E2A38;
  --text-muted: #5A6A7A;
  --text-hint:  #8A99AA;
  --ok:         #1D9E75;
  --ok-soft:    #E1F5EE;
  --err:        #C0492F;
  --err-soft:   #FBE9E5;
  --border:     rgba(30,42,56,0.10);
  --surface:    #FFFFFF;
  --serif: 'Lora', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
  --mono:  'JetBrains Mono', monospace;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(30,42,56,.06);
  --shadow:    0 8px 28px rgba(30,42,56,.10);
  --shadow-lg: 0 18px 50px rgba(30,42,56,.16);
  --shadow-gold: 0 14px 40px rgba(201,168,76,.30);
  --shadow-blue: 0 14px 40px rgba(62,111,168,.30);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(62,111,168,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(201,168,76,.08), transparent 55%),
    var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
/* Dezenter, markenfarbener Tap-Highlight statt grauer Standardflaeche auf Touch (B-28). */
a, button, label, .opt-choice, .pal, .filter-chip { -webkit-tap-highlight-color: rgba(31, 58, 95, .12); }
html, body { max-width: 100%; overflow-x: clip; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; color: var(--text-main); align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.quiz-stem, .card-desc, .card-title, .qrow .q-stem, .opt-choice span { overflow-wrap: anywhere; }

/* ─── Reveal-on-scroll ────────────────────────────────── */
.rv { opacity: 0; transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }

/* ─── Nav ─────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(30,42,56,.06);
  padding: 0 1.5rem; height: 84px;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { height: 66px; width: auto; display: block; transition: transform .25s; }
.nav-logo:hover .nav-logo-img { transform: scale(1.04); }
.nav-logo-sub {
  font-size: 11px; color: var(--text-hint); font-style: italic;
  padding-left: 12px; border-left: 1px solid var(--border); line-height: 1.2;
  white-space: nowrap;
}

.nav-links { display: flex; gap: .35rem; margin-left: auto; align-items: center; }
.nav-link { font-size: 14px; color: var(--text-muted); padding: .5rem .85rem; border-radius: 999px;
  transition: all .18s; border: 1px solid transparent; }
.nav-link:hover { color: var(--text-main); background: rgba(30,42,56,.06); }
.nav-link.active { color: #fff; background: var(--navy); box-shadow: var(--shadow-sm); }
.nav-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: #fff;
  margin-left: 0.4rem; cursor: pointer;
}

/* ─── Hero (mutig, dunkel) ────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  max-width: 1080px; margin: 1.6rem auto 0;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(700px 360px at 88% -20%, rgba(79,134,198,.55), transparent 60%),
    radial-gradient(520px 320px at 8% 120%, rgba(201,168,76,.30), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 2.6rem 2.4rem;
  box-shadow: var(--shadow-lg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 45% 80%, rgba(201,168,76,.6), transparent);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .9fr; gap: 1.5rem; align-items: center;
}
.hero-greeting { font-size: 12.5px; color: rgba(255,255,255,.6); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.7rem; }
.hero-title { font-family: var(--serif); font-size: 2.5rem; font-weight: 500; color: #fff; line-height: 1.15; margin-bottom: 0.9rem; }
.hero-title em { color: var(--gold-light); font-style: italic; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,.75); max-width: 440px; line-height: 1.6; margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.hero-right { position: relative; z-index: 1; display: grid; place-items: center; }
/* Weicher Lichtschein als Backdrop statt weisser Kachel, damit die transparente
   Illustration ruhig im dunklen Hero-Panel sitzt. */
.hero-right::before {
  content: ""; position: absolute; inset: -12% -6% -8%;
  background: radial-gradient(closest-side at 55% 48%,
              rgba(245,228,168,.20), rgba(79,134,198,.12) 55%, transparent 78%);
  z-index: 0; pointer-events: none;
}
.hero-illu { position: relative; z-index: 1; display: block;
  width: 100%; max-width: 380px; height: auto; }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: .8rem 1.4rem; border-radius: 999px; border: none;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn-gold  { background: linear-gradient(135deg, #E5C76B, var(--gold)); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-blue  { background: linear-gradient(135deg, var(--blue-bright), var(--deep-blue)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-blue:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: rgba(62,111,168,0.06); color: var(--deep-blue); border: 1.5px solid var(--dusty-blue); }
.btn-ghost:hover { background: rgba(62,111,168,0.12); }
/* Ghost-Variante auf dunklem Grund (Hero) */
.hero .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-sm    { font-size: 12px; padding: .55rem 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Stat-Kacheln (große Zahlen) ─────────────────────── */
.stat-tiles { max-width: 1080px; margin: 1.4rem auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 0 1.5rem; }
.tile { position: relative; border-radius: var(--radius-md); padding: 1.3rem 1.3rem 1.2rem; overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s; }
.tile:hover { transform: translateY(-6px); }
.tile-num { font-family: var(--serif); font-weight: 600; font-size: 2.9rem; line-height: 1; letter-spacing: -.02em; }
.tile-num .u { font-size: 1.4rem; font-weight: 500; margin-left: 2px; }
.tile-label { font-size: 12.5px; margin-top: .45rem; font-weight: 500; }
.tile-foot { font-size: 11px; margin-top: .7rem; opacity: .85; }
.tile-ico { position: absolute; top: 1rem; right: 1rem; opacity: .9; }
.tile-navy  { background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: #fff; box-shadow: var(--shadow); }
.tile-navy:hover { box-shadow: var(--shadow-lg); }
.tile-gold  { background: linear-gradient(140deg, #E7CB72, var(--gold)); color: var(--navy); box-shadow: var(--shadow-gold); }
.tile-blue  { background: linear-gradient(140deg, var(--blue-bright), var(--deep-blue)); color: #fff; box-shadow: var(--shadow-blue); }
.tile-white { background: var(--blanc); color: var(--text-main); box-shadow: var(--shadow); border: 1px solid var(--border); }
.tile-white .tile-num { color: var(--deep-blue); }

/* ─── Main layout ─────────────────────────────────────── */
main { max-width: 1080px; margin: 0 auto; padding: 2.6rem 1.5rem; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1.1rem; }
.section-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--text-main); }
.section-title .em, .section-title em { color: var(--deep-blue); font-style: normal; }
.section-link { font-size: 13px; color: var(--deep-blue); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.section-link:hover { text-decoration: underline; }

/* ─── Course grid ─────────────────────────────────────── */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; margin-bottom: 2.4rem; }
.course-card { position: relative; background: var(--blanc); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s; }
.course-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.card-color-bar { height: 6px; }
.course-card:hover .card-color-bar { filter: saturate(1.2); }
.bar-blue  { background: linear-gradient(90deg, var(--blue-bright), var(--deep-blue)); }
.bar-gold  { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
.bar-steel { background: linear-gradient(90deg, var(--dusty-blue), var(--steel)); }
.bar-pale  { background: linear-gradient(90deg, var(--pale-blue), var(--dusty-blue)); }
.card-body { padding: 1.15rem 1.25rem 1.25rem; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.card-tag { display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 700; letter-spacing: .02em; }
.tag-psych { background: #E6EEF7; color: var(--deep-blue); }
.tag-law   { background: var(--gold-light); color: var(--gold-dark); }
.tag-med   { background: var(--cool-grey); color: var(--text-muted); }
.tag-exam  { background: var(--navy); color: var(--blanc); }
.card-tier { font-size: 11px; font-weight: 700; color: var(--gold-dark); }
.card-title { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--text-main); line-height: 1.3; margin-bottom: 0.35rem; }
.card-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 0.9rem; }
.card-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 11.5px; color: var(--text-hint); margin-bottom: 0.75rem; }
.card-meta-item { display: flex; align-items: center; gap: 4px; }
.card-stat { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .5rem; }
.card-stat .big { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--deep-blue); line-height: 1; }
.card-stat .small { font-size: 12px; color: var(--text-hint); }
.card-progress-wrap { height: 8px; background: var(--cool-grey); border-radius: 999px; overflow: hidden; margin-bottom: 0.6rem; }
.card-progress-fill { height: 100%; border-radius: 999px; transition: width 1.1s cubic-bezier(.2,.7,.3,1); }
.fill-blue { background: linear-gradient(90deg, var(--blue-bright), var(--deep-blue)); }
.fill-gold { background: linear-gradient(90deg, var(--gold), var(--gold-dark)); }
.card-progress-label { font-size: 11px; color: var(--text-hint); }
.card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-hint); }
.card-go { color: var(--deep-blue); font-weight: 700; display: inline-flex; gap: 3px; align-items: center; opacity: 0; transform: translateX(-4px); transition: .25s; }
.course-card:hover .card-go { opacity: 1; transform: none; }

/* ─── Themen-Übersicht ────────────────────────────────── */
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; margin-bottom: 2.4rem; }
.topic-item { background: var(--blanc); border-radius: var(--radius-md); padding: 1rem 1.1rem; display: flex; align-items: center; gap: 0.9rem;
  cursor: pointer; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s; }
.topic-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--dusty-blue); }
.topic-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
  color: #fff; font-family: var(--serif); font-size: 17px; font-weight: 600;
  background: linear-gradient(135deg, var(--blue-bright), var(--deep-blue)); transition: transform .25s; }
.topic-item:hover .topic-icon { transform: rotate(-8deg) scale(1.06); }
.topic-icon.gold-bg { background: linear-gradient(135deg, #E5C76B, var(--gold)); color: var(--navy); }
.topic-icon.navy-bg { background: linear-gradient(135deg, var(--navy), var(--steel)); }
.topic-icon.pale-bg { background: linear-gradient(135deg, #5FD0BD, var(--teal)); }
.topic-name { font-size: 13.5px; color: var(--text-main); font-weight: 600; line-height: 1.25; }
.topic-count { font-size: 11.5px; color: var(--text-hint); }

/* ─── Prüfungssimulation banner ───────────────────────── */
.exam-banner { position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: radial-gradient(600px 300px at 90% -30%, rgba(201,168,76,.35), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff; padding: 2rem 2.3rem; display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.exam-banner-title { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 0.3rem; font-weight: 600; }
.exam-banner-sub { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 1.1rem; }
.exam-banner-meta { display: flex; gap: 2rem; margin-top: 0.75rem; }
.exam-meta-item { text-align: left; }
.exam-meta-val { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold-light); line-height: 1; }
.exam-meta-label { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 3px; }

/* ─── Reco / Empfehlung ───────────────────────────────── */
.reco { display: flex; gap: 1.1rem; align-items: center; background: var(--blanc); border: 1px solid var(--border);
  border-left: 5px solid var(--gold); border-radius: var(--radius-md); padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-sm); margin-bottom: 1.8rem; transition: box-shadow .25s, transform .25s; }
.reco:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.reco-illu { flex-shrink: 0; }
.reco-body { flex: 1; }
.reco-title { font-family: var(--serif); font-size: 1.05rem; color: var(--text-main); font-weight: 600; margin-bottom: 0.2rem; }
.reco-text { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.reco-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 0.6rem; }
.reco-pill { font-size: 11.5px; padding: 4px 11px; border-radius: 999px; background: var(--gold-light); color: var(--gold-dark); font-weight: 600; }

/* ─── Footer ──────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 2rem 1.5rem; text-align: center; margin-top: 1.5rem; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: var(--serif); font-size: 15px; color: var(--text-main); font-style: italic; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-link { font-size: 13px; color: var(--text-hint); }
.footer-link:hover { color: var(--deep-blue); }
.footer-note { font-size: 12px; color: var(--text-hint); }

code { font-family: var(--mono); font-size: 12px; background: var(--cool-grey); color: var(--deep-blue); padding: 2px 6px; border-radius: 4px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 10px; }

/* ─── Login / Auth ────────────────────────────────────── */
.auth-wrap { min-height: calc(100vh - 84px); display: flex; align-items: center; justify-content: center; padding: 2rem;
  background: radial-gradient(700px 400px at 80% 0%, rgba(62,111,168,.12), transparent 60%); }
.auth-card { background: var(--blanc); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.auth-mark { width: 54px; height: 54px; border-radius: 15px; background: linear-gradient(135deg, var(--deep-blue), var(--navy));
  display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 24px; margin-bottom: 1.3rem; box-shadow: var(--shadow-blue); }
.auth-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 0.25rem; }
.auth-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 1.5rem; }
.auth-illu { width: 140px; max-width: 60%; height: auto; object-fit: contain; margin: 0 auto 0.75rem; display: block; }
.auth-logo { width: 160px; max-width: 55%; height: auto; object-fit: contain; margin: 0 auto 1rem; display: block; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 0.4rem; font-weight: 500; }
.field input { width: 100%; font-family: var(--sans); font-size: 14px; padding: 0.8rem 0.9rem; border: 1.5px solid var(--mist);
  border-radius: var(--radius-sm); background: #fff; color: var(--text-main); transition: border-color 0.18s, box-shadow .18s; }
.field input:focus { outline: none; border-color: var(--deep-blue); box-shadow: 0 0 0 3px rgba(62,111,168,.15); }
.auth-foot { font-size: 12px; color: var(--text-hint); text-align: center; margin-top: 1.25rem; }

/* ─── Meldungen ───────────────────────────────────────── */
.alert { font-size: 13px; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.alert-err { background: var(--err-soft); color: var(--err); }
.alert-ok  { background: var(--ok-soft);  color: var(--ok); }
.badge { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok  { background: var(--ok-soft);  color: var(--ok); }
.badge.err { background: var(--err-soft); color: var(--err); }

/* ─── Mobile ──────────────────────────────────────────── */
@media (max-width: 820px) {
  nav { padding: 0 1rem; gap: 0.5rem; }
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 84px; left: 0; right: 0; margin-left: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,0.98); border-bottom: 1px solid var(--border); padding: 0.5rem 1rem 0.9rem; display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.7rem 0.85rem; border-radius: var(--radius-sm); }
  .hero { margin: 1rem 1rem 0; padding: 2rem 1.5rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .hero-right { display: none; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  main { padding: 1.75rem 1.25rem; }
  .exam-banner { padding: 1.5rem; }
  .exam-banner-meta { gap: 1.25rem; }
  .quiz-card { padding: 1.1rem; }
  .quiz-stem { font-size: 1rem; }
  .quiz-stem ol.stem-list { padding-left: 1.4rem; }
  .hero-actions .btn, .quiz-actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .page-head.has-illu { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .page-head-illu { width: 130px; max-width: 130px; align-self: center; }
  .result-illu { width: 130px; }
}

/* ─── Admin ───────────────────────────────────────────── */
.admin-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }
.filter-chip { font-size: 12px; padding: 6px 13px; border-radius: 999px; background: var(--blanc); color: var(--text-muted); border: 1px solid var(--border); cursor: pointer; transition: all .15s; }
.filter-chip:hover { border-color: var(--dusty-blue); }
.filter-chip.active { background: var(--deep-blue); color: var(--blanc); border-color: var(--deep-blue); }

/* ─── Themen: Filterleisten (Container + Label) ───────── */
.filter-bar {
  max-width: 1080px; margin: .55rem auto 0; padding: 0 1.5rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.filter-bar:first-of-type { margin-top: 1rem; }
.filter-label {
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  margin-right: .35rem; min-width: 64px;
}
.page-lead { color: var(--text-muted); margin: .35rem 0 0; max-width: 65ch; line-height: 1.6; }
.filter-empty { max-width: 1080px; margin: 1rem auto; padding: 0 1.5rem; color: var(--text-hint); }

/* ─── Themen: großes Hintergrundmotiv (bricht aus dem Raster aus) ─── */
.themen-page { position: relative; }
.themen-page > :not(.page-bg-illu) { position: relative; z-index: 1; }
.page-bg-illu {
  position: absolute; top: -8px; right: clamp(-90px, -4vw, -10px);
  width: min(48vw, 560px); height: auto; z-index: 0;
  opacity: .16; pointer-events: none; user-select: none;
}
@media (max-width: 820px) {
  .page-bg-illu { width: 70vw; top: -10px; right: -18vw; opacity: .10; }
}

/* ─── Fortschritt: großes Hintergrundmotiv hinter den Widgets ─── */
.progress-page { position: relative; }
.progress-page > :not(.page-bg-illu) { position: relative; z-index: 1; }
.progress-page .page-bg-illu {
  top: -64px; right: clamp(-70px, -2vw, 0px);
  width: min(52vw, 660px); opacity: .20;
}
@media (max-width: 820px) {
  .progress-page .page-bg-illu { width: 78vw; right: -16vw; top: -6px; opacity: .10; }
}
.qrow { display: flex; align-items: center; gap: 12px; padding: 0.85rem 1rem; background: var(--blanc); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.5rem; box-shadow: var(--shadow-sm); }
.qrow:hover { border-color: var(--dusty-blue); }
.qrow .q-stem { flex: 1; font-size: 13px; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow .q-type { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: var(--cool-grey); color: var(--deep-blue); white-space: nowrap; }
.qrow .q-mod { font-size: 11px; color: var(--text-hint); font-family: var(--mono); white-space: nowrap; }
.q-inactive { opacity: 0.5; }
.field textarea { width: 100%; font-family: var(--sans); font-size: 14px; padding: 11px 13px; border: 1.5px solid var(--mist); border-radius: var(--radius-sm); background: #fff; color: var(--text-main); line-height: 1.5; resize: vertical; }
.field textarea:focus, .field select:focus { outline: none; border-color: var(--deep-blue); box-shadow: 0 0 0 3px rgba(62,111,168,.15); }
.field select { width: 100%; font-family: var(--sans); font-size: 14px; padding: 11px 13px; border: 1.5px solid var(--mist); border-radius: var(--radius-sm); background: #fff; }
.opt-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.opt-row .opt-label { width: 26px; height: 26px; border-radius: 8px; background: var(--cool-grey); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--deep-blue); flex-shrink: 0; }
.opt-row input[type=text] { flex: 1; font-size: 13px; padding: 8px 10px; border: 1.5px solid var(--mist); border-radius: var(--radius-sm); }
.opt-row label.corr { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 160px; }
.check-line { display: flex; gap: 1.5rem; align-items: center; margin: 0.5rem 0 1rem; font-size: 13px; color: var(--text-muted); }

/* ─── Quiz ────────────────────────────────────────────── */
.quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.quiz-progress { font-size: 12px; color: var(--text-hint); font-family: var(--mono); }
.quiz-bar { height: 8px; background: var(--cool-grey); border-radius: 999px; overflow: hidden; margin-bottom: 1.5rem; }
.quiz-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue-bright), var(--gold)); border-radius: 999px; transition: width 1.1s cubic-bezier(.2,.7,.3,1); }
.quiz-card { background: var(--blanc); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.quiz-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: #E6EEF7; color: var(--deep-blue); margin-bottom: 0.9rem; }
.quiz-stem { font-family: var(--serif); font-size: 1.06rem; line-height: 1.65; color: var(--text-main); margin-bottom: 1.4rem; }
.quiz-stem .stem-lead { margin: 0 0 0.9rem; }
.quiz-stem .stem-lead:last-child { margin-bottom: 0; }
.quiz-stem ol.stem-list { list-style: decimal; padding-left: 1.7rem; margin: 0.3rem 0 0; display: flex; flex-direction: column; gap: 0.55rem; }
.quiz-stem ol.stem-list li { padding-left: 0.4rem; line-height: 1.55; }
.quiz-stem ol.stem-list li::marker { color: var(--deep-blue); font-weight: 600; }
.quiz-hint { font-size: 12px; color: var(--text-hint); margin-bottom: 0.75rem; }
.opt-list { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.3rem; }
.opt-choice { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.9rem 1.1rem; border: 1.5px solid var(--mist); border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; font-size: 14px; line-height: 1.45; }
.opt-choice:hover { border-color: var(--deep-blue); background: #F7FAFD; transform: translateX(4px); }
.opt-choice input { margin-top: 4px; flex-shrink: 0; }
.opt-choice .opt-key { font-weight: 700; color: var(--deep-blue); flex-shrink: 0; }
.opt-choice.correct { border-color: var(--ok); background: var(--ok-soft); }
.opt-choice.wrong   { border-color: var(--err); background: var(--err-soft); }
.opt-choice.muted   { opacity: .7; }
.opt-mark { margin-left: auto; font-weight: 700; flex-shrink: 0; }
.opt-mark.ok { color: var(--ok); }
.opt-mark.no { color: var(--err); }
.feedback { border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.feedback.ok   { background: var(--ok-soft); border: 1px solid var(--ok); }
.feedback.wrong{ background: var(--err-soft); border: 1px solid var(--err); }
.feedback-title { font-weight: 700; margin-bottom: 0.35rem; }
.feedback.ok .feedback-title { color: var(--ok); }
.feedback.wrong .feedback-title { color: var(--err); }
.feedback-expl { font-size: 13px; color: var(--text-main); line-height: 1.55; }
.feedback-expl.placeholder { color: var(--text-hint); font-style: italic; }
.quiz-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.result-score { font-family: var(--serif); font-size: 3rem; font-weight: 600; color: var(--deep-blue); line-height: 1; }
.result-sub { color: var(--text-muted); font-size: 14px; }

/* ─── Illustration + Animationen ──────────────────────── */
.illu { display: block; width: 100%; height: auto; }
.illu .breathe { transform-origin: center; animation: kio-breathe 7s ease-in-out infinite; }
.illu .breathe.d { animation-delay: -3s; }
.illu .floaty { animation: kio-float 6s ease-in-out infinite; }
.illu .floaty.a { animation-duration: 7.5s; animation-delay: -1.5s; }
.illu .floaty.b { animation-duration: 8.5s; animation-delay: -3.5s; }
.illu .twinkle { animation: kio-twinkle 4.5s ease-in-out infinite; }
.illu .twinkle.a { animation-delay: -1.2s; }
.illu .twinkle.b { animation-delay: -2.6s; }
.illu .spin { transform-box: fill-box; transform-origin: center; animation: kio-spin 26s linear infinite; }
.illu .bob { transform-box: fill-box; transform-origin: center; animation: kio-bob 4.5s ease-in-out infinite; }
@keyframes kio-breathe { 0%,100%{transform:scale(1);opacity:.85} 50%{transform:scale(1.05);opacity:1} }
@keyframes kio-float   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes kio-twinkle { 0%,100%{opacity:.35} 50%{opacity:1} }
@keyframes kio-spin    { to { transform: rotate(360deg); } }
@keyframes kio-bob     { 0%,100%{transform:rotate(-2deg)} 50%{transform:rotate(2deg)} }

@media (prefers-reduced-motion: reduce) {
  .illu * { animation: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  * { transition: none !important; }
}

/* ─── Probeklausur ────────────────────────────────────── */
.exam-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.exam-timer { font-family: var(--mono); font-size: 1.05rem; font-weight: 600; color: var(--deep-blue); background: var(--cool-grey); padding: 6px 14px; border-radius: 999px; }
.exam-timer.low { color: var(--err); background: var(--err-soft); }
.palette { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.25rem; }
.pal { width: 44px; height: 44px; border: 1px solid var(--mist); background: #fff; border-radius: 9px; font-size: 12px; cursor: pointer; color: var(--text-muted); padding: 0; transition: all .15s; }
.pal:hover { border-color: var(--dusty-blue); transform: translateY(-2px); }
.pal.answered { background: var(--cool-grey); color: var(--deep-blue); border-color: var(--dusty-blue); }
.pal.current { background: var(--deep-blue); color: #fff; border-color: var(--deep-blue); }
.review-item { margin-bottom: 1.25rem; }
.review-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.review-n { font-family: var(--mono); font-size: 12px; color: var(--text-hint); }
.review-badge { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.review-badge.ok { background: var(--ok-soft); color: var(--ok); }
.review-badge.no { background: var(--err-soft); color: var(--err); }

/* ─── Versions-Badge in der Nav ───────────────────────── */
.nav-version {
  font-family: var(--mono); font-size: 12px; color: var(--text-muted);
  padding: .3rem .6rem; border-radius: 999px; margin-left: .4rem;
  border: 1px solid var(--border); background: rgba(30,42,56,.04);
  letter-spacing: .02em; transition: all .18s; white-space: nowrap;
}
.nav-version:hover { color: var(--deep-blue); border-color: var(--deep-blue); }
.nav-version.active { color: #fff; background: var(--deep-blue); border-color: var(--deep-blue); }

/* ─── Changelog-Seite ─────────────────────────────────── */
.changelog { display: flex; flex-direction: column; gap: 1rem; max-width: 760px; }
.cl-entry {
  background: var(--blanc); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.cl-meta { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-bottom: .35rem; }
.cl-version { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text-main); }
.cl-date { font-size: 12px; color: var(--text-hint); margin-left: auto; }
.cl-badge {
  font-size: 11px; font-weight: 500; padding: .12rem .5rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.cl-major   { background: var(--gold-light); color: var(--gold-dark); }
.cl-feature { background: var(--teal-soft); color: var(--teal); }
.cl-fix     { background: var(--cool-grey); color: var(--text-muted); }
.cl-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--text-main); margin-bottom: .5rem; }
.cl-list { list-style: none; display: flex; flex-direction: column; gap: .3rem; }
.cl-list li { position: relative; padding-left: 1.1rem; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.cl-list li::before { content: "›"; position: absolute; left: 0; color: var(--deep-blue); font-weight: 600; }

@media (max-width: 760px) {
  .nav-version { margin-left: 0; align-self: flex-start; }
}

/* Onboarding / Begruessungsseite */
.onboarding-card { max-width: 440px; }
.onboarding-card .field { margin-bottom: 1.1rem; text-align: left; }
.field-label { display: block; font-weight: 500; margin-bottom: .4rem; }
.field-hint { margin: .35rem 0 0; font-size: .82rem; color: var(--muted, #7a8290); }
.choice { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; cursor: pointer; }
.choice input { width: auto; margin: 0; }
.onboarding-card select { width: 100%; }
.onboarding-card .btn-ghost { margin-top: .5rem; }

/* ===== Fortschrittsseite ===== */
.page-head { max-width: 1080px; margin: 1.6rem auto 0; padding: 0 1.5rem; }
.page-eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-hint); margin: 0 0 .3rem; }
.page-title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--text-main); margin: 0 0 .35rem; }
.page-sub { color: var(--text-muted); margin: 0; max-width: 60ch; }

/* Seitenkopf mit seitlicher Illustration (Fortschritt, Themen) */
.page-head.has-illu { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.page-head.has-illu .page-head-inner { flex: 1; min-width: 0; }
.page-head-illu { width: 170px; max-width: 32%; height: auto; object-fit: contain; flex-shrink: 0; display: block; }

/* Motivierende Illustration auf Ergebnisseiten */
.result-illu { width: 160px; max-width: 60%; height: auto; object-fit: contain; display: block; margin: 0 auto 1rem; }

.rdy-dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 4px; vertical-align: middle; }
.rdy-ok  { background: var(--ok); }
.rdy-mid { background: var(--gold); }
.rdy-low { background: var(--err); }

.prognose { max-width: 1080px; margin: 1.6rem auto 0; padding: 1.3rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.prognose-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.prognose-text { color: var(--text-main); line-height: 1.6; margin: 0; }
.plan-pill { font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; }
.plan-ok   { background: var(--ok-soft); color: var(--ok); }
.plan-warn { background: var(--gold-light); color: var(--gold-dark); }
.goal-row { margin-top: 1rem; }
.goal-label { font-size: .85rem; color: var(--text-muted); margin-bottom: .4rem; }

.section-hint { font-size: .78rem; color: var(--text-hint); font-family: var(--mono); }

.fill-ok   { background: linear-gradient(90deg, #36c79a, var(--ok)); }
.fill-mid  { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
.fill-low  { background: linear-gradient(90deg, #e98a72, var(--err)); }
.fill-pale { background: var(--mist); }

.reife-list { max-width: 1080px; margin: .8rem auto 0; padding: 0 1.5rem; display: grid; gap: 1rem; }
.reife-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: .9rem 1.1rem; box-shadow: var(--shadow-sm); }
.reife-row.is-tier1 { border-left: 3px solid var(--gold); }
.reife-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.reife-name { font-weight: 500; color: var(--text-main); }
.reife-val { font-family: var(--mono); font-size: .85rem; color: var(--text-muted); white-space: nowrap; }
.reife-foot { font-size: .78rem; color: var(--text-hint); margin-top: .45rem; }
.reife-tier { color: var(--gold-dark); }

.consist { max-width: 1080px; margin: .8rem auto 0; padding: 1.3rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.consist-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 1.3rem; }
.cs { text-align: center; }
.cs-num { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--text-main); }
.cs-lbl { display: block; font-size: .72rem; color: var(--text-hint); margin-top: .2rem; }

.heatmap-wrap { overflow-x: auto; }
.heatmap { display: flex; gap: 3px; min-width: max-content; }
.heat-col { display: flex; flex-direction: column; gap: 3px; }
.heat-cell { width: 12px; height: 12px; border-radius: 3px; background: var(--cool-grey); display: inline-block; }
.heat-cell.lvl-1 { background: #cfe0d9; }
.heat-cell.lvl-2 { background: #8fc7b4; }
.heat-cell.lvl-3 { background: #4fae92; }
.heat-cell.lvl-4 { background: var(--teal); }
.heat-cell.is-future { opacity: .35; }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--text-hint); margin-top: .7rem; }

.trend { max-width: 1080px; margin: .8rem auto 0; padding: 1.3rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.trend-svg { width: 100%; height: auto; }
.trend-line { fill: none; stroke: var(--deep-blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.trend-pass { stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 5 5; }
.trend-pass-lbl { fill: var(--gold-dark); font-size: 11px; font-family: var(--mono); }
.trend-dot { fill: var(--deep-blue); }
.trend-dot.is-exam { fill: var(--gold); }
.exam-mile { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.exam-mile-lbl { font-size: .8rem; color: var(--text-muted); }
.exam-chip { font-size: .76rem; font-family: var(--mono); padding: .25rem .6rem; border-radius: 999px; }
.exam-chip.is-pass { background: var(--ok-soft); color: var(--ok); }
.exam-chip.is-fail { background: var(--err-soft); color: var(--err); }

@media (max-width: 700px) {
    .consist-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Profil-/Einstellungsseite ===== */
.profile-main { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.prof-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); margin-top: 1.2rem; }
.prof-h { font-family: var(--serif); font-size: 1.15rem; color: var(--text-main); margin: 0 0 1rem; }
.prof-card .field { margin-bottom: 1rem; }
.prof-card .btn { margin-top: .3rem; }

.avatar-row { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.avatar-preview { width: 84px; height: 84px; border-radius: 999px; overflow: hidden; flex-shrink: 0; background: var(--deep-blue); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-letter { color: #fff; font-family: var(--serif); font-size: 2rem; }
.avatar-form { flex: 1; min-width: 220px; }
.avatar-form input[type=file] { display: block; margin-bottom: .3rem; }

/* Avatar in der Navigation als Bild */
.nav-avatar { overflow: hidden; text-decoration: none; }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* ===== Fortschrittsseite: visuelles Layout (v0.7) ===== */
.prog { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.prog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.2rem; }
.prog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); margin-top: 1.2rem; }
.prog-grid .prog-card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-h { font-family: var(--serif); font-size: 1.2rem; color: var(--text-main); margin: 0; }

/* Ring-Graph */
.ring { width: 132px; height: 132px; }
.ring-bg { fill: none; stroke: var(--cool-grey); stroke-width: 9; }
.ring-fg { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.7,.3,1); }
.ring-blue { stroke: var(--deep-blue); }
.ring-ok   { stroke: var(--ok); }
.ring-mid  { stroke: var(--gold); }
.ring-low  { stroke: var(--err); }
.ring-big   { fill: var(--text-main); font-family: var(--serif); font-size: 30px; font-weight: 500; }
.ring-small { fill: var(--text-hint); font-family: var(--sans); font-size: 12px; }

/* Lernstufen-Karte */
.level-card { display: flex; align-items: center; gap: 1.4rem; }
.level-illu { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.level-illu .illu { position: absolute; inset: 0; width: 100%; height: 100%; }
.level-illu .ring { position: absolute; inset: 0; }
.level-eyebrow { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-hint); margin: 0 0 .2rem; }
.level-name { font-family: var(--serif); font-size: 1.7rem; color: var(--text-main); margin: 0 0 .3rem; }
.level-next { color: var(--text-muted); margin: 0 0 .8rem; font-size: .9rem; }
.level-steps { display: flex; gap: 6px; }
.step-pip { width: 26px; height: 6px; border-radius: 999px; background: var(--mist); }
.step-pip.on { background: linear-gradient(90deg, var(--blue-bright), var(--deep-blue)); }

/* "Auf Kurs"-Karte */
.kurs-body { display: flex; align-items: center; gap: 1.3rem; margin-bottom: .9rem; }
.kurs-ring { flex-shrink: 0; }
.kurs-figs { display: grid; gap: .9rem; }
.fig { display: flex; flex-direction: column; }
.fig-num { font-family: var(--serif); font-size: 1.7rem; color: var(--text-main); line-height: 1; }
.fig-lbl { font-size: .76rem; color: var(--text-hint); margin-top: .25rem; }
.kurs-text { color: var(--text-main); line-height: 1.55; margin: 0; }

/* Module-Reife als Raster */
.reife-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.6rem; }
.reife-grid .reife-row { background: transparent; border: none; box-shadow: none; padding: 0; }
.reife-grid .reife-row.is-tier1 { border: none; padding-left: 10px; border-left: 3px solid var(--gold); }
.reife-grid .reife-top { margin-bottom: .35rem; }

/* Konsistenz-Zahlen */
.consist-figs { display: flex; gap: 1.8rem; margin-bottom: 1.2rem; flex-wrap: wrap; }

/* Badges */
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.badge { text-align: center; padding: 1rem .5rem; border-radius: var(--radius-md); border: 1px solid var(--border); }
.badge-ic { width: 40px; height: 40px; margin: 0 auto .5rem; display: grid; place-items: center; border-radius: 999px; }
.badge-ic svg { width: 22px; height: 22px; }
.badge-lbl { font-size: .78rem; color: var(--text-muted); }
.badge.earned { background: var(--ok-soft); border-color: transparent; }
.badge.earned .badge-ic { background: var(--ok); color: #fff; }
.badge.earned .badge-lbl { color: var(--text-main); font-weight: 500; }
.badge.locked { opacity: .55; }
.badge.locked .badge-ic { background: var(--cool-grey); color: var(--text-hint); }

/* Naechster Schritt */
.next-card { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; }
.next-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

@media (max-width: 820px) {
    .prog-grid { grid-template-columns: 1fr; }
    .reife-grid { grid-template-columns: 1fr; }
    .badge-grid { grid-template-columns: repeat(2, 1fr); }
    .level-card { flex-direction: column; text-align: center; }
    .level-steps { justify-content: center; }
}

/* ─── Einstiegs-Guide (3 Schritte) ────────────────────── */
.guide { background: var(--blanc); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1.5rem 1.6rem 1.7rem; margin-bottom: 2.2rem;
  position: relative; overflow: hidden; }
.guide::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--deep-blue), var(--teal)); opacity: .9; }
.guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.guide-eyebrow { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-dark); background: var(--gold-light);
  padding: 3px 10px; border-radius: 999px; }
.guide-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--text-main);
  margin: .55rem 0 .35rem; }
.guide-lead { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; max-width: 60ch; }
.guide-toggle { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--cool-grey); border: 1px solid var(--border); color: var(--text-muted);
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; padding: .5rem .85rem;
  border-radius: 999px; transition: background .2s, color .2s; }
.guide-toggle:hover { background: var(--mist); color: var(--text-main); }
.guide-chevron { transition: transform .3s ease; }

/* Body ein-/ausklappen */
.guide-body { overflow: hidden; max-height: 1400px; opacity: 1;
  transition: max-height .4s ease, opacity .3s ease, margin-top .4s ease; margin-top: 1.3rem; }
.guide.is-collapsed .guide-body { max-height: 0; opacity: 0; margin-top: 0; }
.guide.is-collapsed .guide-chevron { transform: rotate(-180deg); }

/* Schritt-Karten */
.guide-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem;
  margin: 0; padding: 0; }
.guide-step { position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .7rem; background: var(--cool-grey); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem 1.4rem 1.4rem;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s; }
.guide-step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.guide-step.is-next { border-color: rgba(201,168,76,.6); box-shadow: var(--shadow-gold); background: #fff; }
.guide-step.is-done { background: var(--ok-soft); border-color: rgba(29,158,117,.30); }

/* Große, mittige Illustration */
.guide-step-art { width: 116px; height: 116px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--border); margin-bottom: .2rem; }
.guide-step.is-next .guide-step-art { background: var(--gold-light); box-shadow: none; }
.guide-step.is-done .guide-step-art { background: #fff; }
.guide-illu { width: 92px; height: 92px; }

/* Schritt-Kennzeichnung */
.guide-step-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: #fff; background: var(--deep-blue);
  padding: 5px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.guide-step.is-next .guide-step-kicker { background: var(--gold); color: var(--navy); }
.guide-step.is-done .guide-step-kicker { background: var(--ok); }
.guide-step-check { display: none; }
.guide-step.is-done .guide-step-check { display: block; }

.guide-step-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.15;
  color: var(--text-main); }
.guide-step-text { font-size: 14px; color: var(--text-muted); line-height: 1.55; flex: 1; max-width: 26ch; }

/* Button als abgesetzter Footer */
.guide-step-btn { width: 100%; margin-top: .9rem; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--sans); font-size: 14px; font-weight: 600; padding: .8rem 1rem;
  border-radius: var(--radius-md); background: var(--navy); color: #fff; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, background .2s; }
.guide-step-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-step.is-next .guide-step-btn { background: linear-gradient(135deg, #E5C76B, var(--gold)); color: var(--navy);
  box-shadow: var(--shadow-gold); }
.guide-step.is-done .guide-step-btn { background: var(--ok); }
.guide-step-btn .arr { transition: transform .2s; }
.guide-step-btn:hover .arr { transform: translateX(4px); }

@media (max-width: 820px) {
  .guide-steps { grid-template-columns: 1fr; }
  .guide-title { font-size: 1.3rem; }
  .guide-toggle-label { display: none; }
  .guide-toggle { padding: .5rem; }
  .guide-step-title { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-body, .guide-chevron, .guide-step, .guide-step-btn, .guide-step-btn .arr { transition: none !important; }
}
