/* app.css - Layout der Academy. Farben NUR aus tokens.css. */
* { margin: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
.app { max-width: 760px; margin: 0 auto; padding: 28px 18px 80px; }

/* Kopf */
.kopf { text-align: center; padding: 18px 0 8px; }
.marke { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.marke-k { color: var(--ink); }
.marke-a { color: var(--amber); margin-left: .35em; }
.unter { color: var(--ink-muted); margin-top: 6px; }
.stats { display: flex; gap: 10px; justify-content: center; margin: 22px 0 6px; }
.stat {
  background: var(--surface); border: 1px solid var(--surface-3); border-radius: 16px;
  padding: 12px 18px; min-width: 92px;
}
.stat b { display: block; font-size: 24px; color: var(--amber); }
.stat span { font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; }

/* Kapitel */
.kapitel-liste { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.kapitel {
  background: var(--surface); border: 1px solid var(--surface-3);
  border-radius: 20px; padding: 16px 16px 8px; overflow: hidden;
}
.kapitel.geschafft { border-color: var(--amber); }
.kapitel-kopf { display: flex; align-items: center; gap: 14px; }
.kapitel-kopf-text { flex: 1; }
.kapitel-kopf h2 { font-size: 19px; font-weight: 700; }
.balken { height: 6px; background: var(--surface-3); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.balken i { display: block; height: 100%; background: var(--amber); border-radius: 99px; transition: width .4s; }
.zaehler { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.abzeichen { color: var(--amber); width: 26px; height: 26px; flex: none; }
/* Linien-Icons (statt Emojis) erben die Groesse vom Container via 1em */
.abzeichen svg, .belohnung-icon svg, .report-ikon svg { width: 1em; height: 1em; display: block; }
.abzeichen { font-size: 26px; }

.lektionen { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.lektion {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--surface-2); border: 1px solid var(--surface-3);
  border-radius: 14px; padding: 14px 14px; cursor: pointer;
  color: var(--ink); font-size: 16px; text-align: left; min-height: 48px;
  transition: border-color .15s, transform .05s;
}
.lektion:hover { border-color: var(--amber); }
.lektion:active { transform: scale(.995); }
.lektion .haken {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-3); color: var(--ink-muted); font-weight: 700;
}
.lektion.erledigt .haken { background: var(--amber); color: var(--amber-ink, #1d1503); }
.lektion-titel { flex: 1; }
.lektion-xp { color: var(--ink-muted); font-size: 13px; }

/* Lektion-Screen */
.zurueck, .leise {
  background: none; border: none; color: var(--ink-muted); cursor: pointer;
  font-size: 15px; padding: 6px 8px;
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px;
}
.zurueck:hover, .leise:hover { color: var(--ink); }
.karte-lektion {
  background: var(--surface); border: 1px solid var(--surface-3);
  border-radius: 20px; padding: 24px; margin-top: 10px;
}
.kapitel-chip { color: var(--amber); font-size: 14px; font-weight: 600; }
.karte-lektion h1 { font-size: 26px; font-weight: 800; margin: 10px 0 14px; letter-spacing: -.01em; }
.lektion-text { color: var(--ink-dim); font-size: 17px; line-height: 1.6; }
.lektion-video, .lektion-bild { width: 100%; border-radius: 14px; margin-top: 16px; display: block; border: 1px solid var(--surface-3); background: #000; }
/* Lerntiefe (Block 3): "Was du lernst" - ruhiger Kasten mit Bernstein-Kante;
   Video-Textfassung als <details> (48px-Zeile zum Aufklappen). */
.lernziele { margin: 14px 0 18px; padding: 14px 18px; border-radius: 0 12px 12px 0; background: var(--surface-2); border-left: 3px solid var(--amber); }
.lernziele-t { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--amber); }
.lernziele ul { margin: 0; padding-left: 20px; color: var(--ink); font-size: 16px; line-height: 1.55; }
.lernziele li + li { margin-top: 2px; }
.transkript { margin-top: 10px; border: 1px solid var(--surface-3); border-radius: 12px; background: var(--surface-2); }
.transkript summary { min-height: 48px; display: flex; align-items: center; padding: 0 16px; cursor: pointer; color: var(--ink); font-weight: 600; }
.transkript summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.transkript ol { margin: 0; padding: 0 18px 14px 36px; color: var(--ink-dim); line-height: 1.55; }
.schritte { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.schritt { counter-increment: s; position: relative; padding-left: 44px; }
.schritt::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: var(--amber-ink, #1d1503); font-weight: 800; display: grid; place-items: center; }
.schritt-bild { width: 100%; border-radius: 12px; border: 1px solid var(--surface-3); margin-bottom: 8px; display: block; }
.schritt-text { font-size: 16px; color: var(--ink); padding-top: 3px; }
.weiter {
  margin-top: 20px; background: var(--amber); color: var(--amber-ink, #1d1503);
  border: none; border-radius: 14px; padding: 14px 22px; font-size: 16px; font-weight: 700;
  cursor: pointer; min-height: 48px;
}
.weiter:hover { filter: brightness(1.05); }

/* Download-Vorlage (Lead-Magnet) */
.download-knopf {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  background: var(--amber-soft); color: var(--amber);
  border: 1.5px solid var(--amber); border-radius: 14px;
  padding: 13px 20px; font-size: 15px; font-weight: 700;
  cursor: pointer; min-height: 48px;
}
.download-knopf:hover { background: var(--amber); color: var(--amber-ink, #1d1503); }
/* Download + "Zur Frage" als eine Zeile: gleicher Abstand, gleiche Linie. */
.lektion-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.lektion-knoepfe > * { margin: 0; min-height: 48px; }

/* Frage */
.frage { margin-top: 22px; }
.frage h3 { font-size: 18px; margin-bottom: 14px; }
.optionen { display: flex; flex-direction: column; gap: 10px; }
.option {
  text-align: left; background: var(--surface-2); border: 1.5px solid var(--surface-3);
  border-radius: 14px; padding: 14px 16px; color: var(--ink); font-size: 16px;
  cursor: pointer; min-height: 48px;
}
.option:hover:not(:disabled) { border-color: var(--amber); }
.option:disabled { cursor: default; opacity: .9; }
.option.richtig { border-color: #5fbf7a; background: rgba(95,191,122,.14); }
.option.gewaehlt-richtig { border-color: #5fbf7a; background: rgba(95,191,122,.22); }
.option.falsch { border-color: #d66; background: rgba(214,102,102,.16); }
.erklaerung {
  margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-size: 15px;
  background: var(--surface-2); border: 1px solid var(--surface-3); color: var(--ink);
}
.pruef-frage { margin-top: 22px; }
.pruef-frage h3 { font-size: 17px; margin-bottom: 10px; }
.option.gewaehlt { border-color: var(--amber); background: var(--amber-soft); }
.weiter:disabled { opacity: .5; cursor: default; }

.erklaerung.gut { border-color: rgba(95,191,122,.5); }
.erklaerung.hinweis { border-color: rgba(245,165,36,.5); }

/* Gleise */
.gleis-kopf { margin: 34px 2px 12px; }
.gleis-titel { font-size: 15px; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: .1em; }
.gleis-unter { color: var(--ink-muted); font-size: 14px; margin-top: 2px; }

/* CTA-Band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 22px; padding: 18px 20px; border-radius: 18px; text-decoration: none;
  background: var(--amber);
  color: var(--amber-ink, #1d1503);
}
.cta-band b { display: block; font-size: 18px; font-weight: 800; }
.cta-band span { font-size: 14px; opacity: .85; }
.cta-pfeil { font-size: 26px; font-weight: 800; }
.cta-band:hover { filter: brightness(1.05); }

.fuss { text-align: center; margin-top: 30px; }

/* Navigation */
.nav { display: flex; gap: 8px; margin: 22px 0 4px; }
.nav-knopf {
  flex: 1; background: var(--surface); border: 1px solid var(--surface-3); color: var(--ink-muted);
  border-radius: 14px; padding: 12px 8px; font-size: 15px; cursor: pointer; min-height: 48px;
}
.nav-knopf:hover { color: var(--ink); border-color: var(--amber); }
.nav-knopf.aktiv { color: var(--amber-ink, #1d1503); background: var(--amber); border-color: var(--amber); font-weight: 700; }

.nav { flex-wrap: wrap; }
.nav-knopf { flex: 1 1 40%; }

/* Ausruestungs-Ratgeber */
.guide-titel { font-size: 20px; font-weight: 800; margin: 28px 0 12px; }
.setup { background: var(--surface-2); border: 1px solid var(--surface-3); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.setup-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.setup-kopf h3 { min-width: 0; }
.setup-kopf h3 { font-size: 18px; font-weight: 700; }
.setup-kosten { color: var(--amber); font-weight: 700; font-size: 14px; }
.setup-fuer { color: var(--ink-muted); font-size: 14px; margin: 10px 0; }
.setup-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.setup-spalten > * { min-width: 0; }
@media (max-width: 600px) { .setup-spalten { grid-template-columns: 1fr; } }
.setup-spalten ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.setup-spalten li { font-size: 14px; padding-left: 22px; position: relative; }
.plus li::before { content: "✓"; position: absolute; left: 0; color: #5fbf7a; font-weight: 700; }
.minus li::before { content: "–"; position: absolute; left: 0; color: #d66; font-weight: 700; }
.setup-tipp { margin-top: 12px; font-size: 14px; color: var(--ink); background: var(--amber-soft); border-radius: 10px; padding: 10px 12px; }

.tabelle-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.drucker-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.drucker-tabelle th { text-align: left; color: var(--ink-muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--surface-3); white-space: nowrap; }
.drucker-tabelle td { padding: 10px; border-bottom: 1px solid var(--surface-3); vertical-align: top; }
.drucker-tabelle .d-name { font-weight: 700; }
.drucker-tabelle .d-hinweis { color: var(--ink-muted); }

.mini-liste { display: flex; flex-direction: column; gap: 8px; }
.mini-zeile { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; background: var(--surface-2); border: 1px solid var(--surface-3); border-radius: 12px; padding: 10px 14px; }
.mini-zeile b { min-width: 170px; }
.mini-zeile > span { color: var(--amber); font-size: 14px; }
.mini-zeile .mini-wann { color: var(--ink-muted); flex: 1; }

/* Belohnung */
.belohnung {
  display: flex; align-items: center; gap: 16px; margin-top: 16px;
  padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--surface-3);
}
.belohnung.frei { border-color: var(--amber); background: var(--amber-soft); }
.belohnung-icon { font-size: 34px; flex: none; color: var(--amber); }
.belohnung > div:nth-child(2) { flex: 1; }
.belohnung b { font-size: 16px; }
.belohnung-unter { color: var(--ink-muted); font-size: 13px; margin: 4px 0 8px; }
.agb-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--amber); text-decoration: underline; }
.gutschein-code {
  display: inline-block; margin-top: 6px; font-family: ui-monospace, Menlo, monospace;
  font-size: 20px; font-weight: 700; color: var(--amber); letter-spacing: .06em;
}
.balken.breit { height: 8px; margin-top: 0; }
.weiter.klein { padding: 10px 16px; font-size: 14px; min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* Region & Rechner */
.region-leiste { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.region-leiste > span { color: var(--ink-muted); font-size: 14px; }
.region-wahl {
  flex: 1; background: var(--surface-2); color: var(--ink); border: 1px solid var(--surface-3);
  border-radius: 12px; padding: 12px 14px; font-size: 16px; min-height: 48px;
}
.rechner-felder { display: flex; flex-direction: column; gap: 18px; margin: 22px 0; }
.feld-kopf { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.feld-kopf > span:first-child { color: var(--ink); font-size: 15px; }
.feld-wert { color: var(--amber); font-weight: 700; font-variant-numeric: tabular-nums; }
.feld input[type=range] { width: 100%; accent-color: var(--amber); height: 44px; }
.rechner-ergebnis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.erg-karte { background: var(--surface-2); border: 1px solid var(--surface-3); border-radius: 14px; padding: 14px; text-align: center; }
.erg-karte b { display: block; font-size: 26px; }
.erg-karte span { color: var(--ink-muted); font-size: 13px; }
.erg-karte.gross { border-color: var(--amber); }
.erg-karte.gross b { color: var(--amber); }
.rechner-hinweis { color: var(--ink-muted); font-size: 13px; margin-top: 16px; }

/* Zertifikat */
.zert-name {
  width: 100%; background: var(--surface-2); color: var(--ink); border: 1px solid var(--surface-3);
  border-radius: 12px; padding: 14px 16px; font-size: 16px; margin: 18px 0; min-height: 48px;
}
.zert-vorschau { margin: 8px 0 18px; }
/* Mehrere verifizierte Zertifikate (je Lernpfad eins): Auswahl als Reihe. */
.zert-wahl { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.zert-wahl .option { width: auto; margin: 0; min-height: 48px; }
.zert-wahl .option[aria-pressed="true"] { border-color: var(--amber); }
/* Pruefnummer sichtbar + kopierbar unter der Urkunde (Fund Windows-Strang: am Handy unlesbar im Bild). */
.zert-pruefnr { margin: -6px 0 4px; color: var(--ink); font-size: 15px; }
.zert-pruefnr code { font-family: var(--mono); user-select: all; overflow-wrap: anywhere; }
/* Knopfpaar gleich hoch (52px wie hero-knopf2); am Handy beide volle Breite. */
.zert-aktionen > .weiter, .zert-aktionen > .hero-knopf2 { height: 52px; min-height: 52px; margin: 0; }
@media (max-width: 600px) { .zert-aktionen > .weiter, .zert-aktionen > .hero-knopf2 { width: 100%; } }

/* Consent */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  background: var(--surface); border: 1px solid var(--surface-3); border-radius: 16px;
  padding: 14px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s;
  max-width: 760px; margin: 0 auto;
}
.consent.an { opacity: 1; transform: translateY(0); }
.consent p { flex: 1; min-width: 220px; font-size: 14px; color: var(--ink-muted); }
.consent-knoepfe { display: flex; gap: 8px; align-items: center; }

/* Abzeichen-Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--surface); border: 1px solid var(--amber); color: var(--ink);
  padding: 14px 20px; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
  opacity: 0; transition: opacity .35s, transform .35s; z-index: 50; font-size: 15px;
}
.toast.an { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 480px) {
  .marke { font-size: 28px; }
  .stat { min-width: 0; flex: 1; padding: 10px; }
}

/* Sprachumschalter (Kopf, oben rechts) */
.sprach-leiste { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.sprach-wahl {
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--surface-3);
  border-radius: 10px; padding: 6px 10px; font-size: 13px; cursor: pointer; min-height: 44px;
}

/* Footer-Rechtslinks + Consent-Datenschutzlink */
.fuss-recht { margin-top: 10px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.fuss-trenn { color: var(--ink-muted); }
.consent-link {
  background: none; border: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--amber); text-decoration: underline; font: inherit;
}

/* Werbe-Opt-in (Konto) + Widerruf */
.opt-in { display:flex; gap:10px; align-items:center; min-height:44px; margin:6px 0 2px; font-size:13px; color:var(--ink-muted); cursor:pointer; }
.opt-in input { width:22px; height:22px; flex:0 0 auto; accent-color:var(--amber); }
.widerruf-zeile { margin-top:18px; padding-top:12px; border-top:1px solid var(--surface-3); }

/* Playbook-Download-Band (Lead-Magnet) */
.report-band { display:flex; align-items:center; gap:14px; text-decoration:none;
  margin:14px 0 4px; padding:14px 16px; border-radius:14px;
  background:var(--amber-soft); border:1px solid var(--amber-line); color:var(--ink); }
.report-band:hover { background:rgba(245,165,36,.18); }
.report-ikon { font-size:28px; flex:0 0 auto; color: var(--amber); }
.report-text { flex:1; display:flex; flex-direction:column; gap:2px; }
.report-text b { font-size:15px; }
.report-text span { font-size:12.5px; color:var(--ink-muted); }
.report-knopf { flex:0 0 auto; background:var(--amber); color:var(--amber-ink);
  font-weight:800; font-size:13px; border-radius:10px; padding:9px 14px; white-space:nowrap; }

/* ---- R2-Redesign: Hero, Lernwege-Kacheln, Kursansicht ---- */
/* Seitenrahmen: breite Marketing-/Dashboard-Flaeche fuer Start + Kurs. */
.app--breit { max-width: var(--content-max); padding-left: 24px; padding-right: 24px; }

/* Kopfleiste (Mockup 01). */
.kopfleiste { display: flex; align-items: center; gap: 16px; height: 64px; margin: -6px 0 10px; }
.kl-marke { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; background: none; border: none; padding: 0; cursor: pointer; color: var(--ink); }
.kl-logo { width: 32px; height: 32px; border-radius: 7px; display: block; }
.kl-marke-text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.kl-marke-text b { font-size: 17px; font-weight: 700; }
.kl-sub { font-size: 11px; color: var(--amber); letter-spacing: .14em; margin-top: 2px; }
.kl-nav { display: flex; gap: 2px; margin-left: 8px; }
.kl-link { background: none; border: none; cursor: pointer; color: var(--ink-muted); font: inherit; font-size: 15px; padding: 8px 10px; border-radius: var(--r); min-height: 44px; display: inline-flex; align-items: center; }
.kl-link:hover { color: var(--ink); }
.kl-link.aktiv { color: var(--ink); font-weight: 600; }
.kl-rechts { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.kl-cta { width: auto; height: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; white-space: nowrap; }
.kl-burger { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--ink); cursor: pointer; }
.kl-burger svg { width: 24px; height: 24px; }
.kl-menu { display: none; }

@media (max-width: 860px) {
  .kopfleiste { flex-wrap: wrap; height: auto; padding: 6px 0; }
  .kl-nav, .kl-cta { display: none; }
  .kl-burger { display: inline-flex; }
  .kl-menu { display: none; flex-direction: column; width: 100%; gap: 2px; padding: 6px 0 2px; }
  .kl-menu.auf { display: flex; }
  .kl-menu .kl-link { min-height: 48px; text-align: left; }
}

/* Hero (Mockup 01): Foto, Textblock rechts (Box links frei) vertikal zentriert,
   Faktenleiste unten ueber die volle Breite (4 Spalten). Verlauf rechts + unten
   fuer Kontrast (>=4.5:1). Bis 900px gestapelt: Bild oben (16:10), Text darunter,
   Fakten 2x2. */
.hero { position: relative; border-radius: 20px; overflow: hidden; margin: 6px 0 14px;
  min-height: clamp(480px, 42vw, 560px); padding: 56px 0 120px;
  display: flex; align-items: center; justify-content: flex-end; background: var(--surface-2); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(270deg, rgba(15,14,17,.95) 0%, rgba(15,14,17,.55) 50%, rgba(15,14,17,.03) 80%),
    linear-gradient(0deg, rgba(15,14,17,.8) 0%, rgba(15,14,17,.25) 16%, transparent 32%); }
.hero-inhalt { position: relative; z-index: 1; width: min(48%, 580px); margin-right: 5%; text-align: left; }
.hero-h1 { font-size: clamp(40px, 3.6vw, 50px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; color: var(--ink); }
.hero-h1 .zeile-b { color: var(--amber); }
.hero-sub { font-size: 18px; line-height: 1.55; max-width: 44ch; margin: 0 0 20px; color: var(--ink); opacity: .9; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-knopf { width: auto; height: 52px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; line-height: 1; white-space: nowrap; border-radius: 12px; }
.hero-knopf2 { width: auto; height: 52px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 22px; line-height: 1; white-space: nowrap; background: transparent; border: 1px solid var(--amber-line); color: var(--ink);
  border-radius: 12px; font: inherit; font-weight: 600; cursor: pointer; }
.hero-knopf2:hover { border-color: var(--amber); }
.hero-fakten { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 5%; }
.fakt { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fakt-ikon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--amber-soft); color: var(--amber); flex: none; }
.fakt-ikon svg { width: 20px; height: 20px; }
.fakt > div { min-width: 0; }
.fakt-wert { display: block; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.fakt-label { font-size: 13px; color: var(--ink-muted); overflow-wrap: anywhere; }

.fortschritt-zeile { color: var(--ink-muted); font-size: 14px; font-variant-numeric: tabular-nums; margin: 20px 0 16px; }

@media (max-width: 900px) {
  .hero { display: block; min-height: 0; padding: 0; background: transparent; border-radius: 0; overflow: visible; }
  .hero-bg { position: static; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
  .hero::after { display: none; }
  .hero-inhalt { width: auto; margin: 0; padding-top: 16px; }
  .hero-ctas .hero-knopf, .hero-ctas .hero-knopf2 { flex: 1 1 auto; }
  .hero-fakten { position: static; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 0 0; }
}

.block { margin-top: var(--space-section); }
.block-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.eyebrow { color: var(--amber); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.block-h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--ink); margin: 2px 0 0; }

/* Lernpfad-Karten (Mockup 02): Bild 16:9, Icon, Titel, 3 Haken-Punkte, Knopf,
   zentrierte Meta + Fortschrittsbalken. */
.lernwege { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.lernweg { display: flex; flex-direction: column; text-align: left; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.lernweg.geschafft { border-color: var(--amber); }
.lernweg-bild { aspect-ratio: 16 / 9; background: var(--surface-2); }
.lernweg-bild img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.lernweg-koerper { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.lernweg-ikon { color: var(--amber); width: 28px; height: 28px; }
.lernweg-ikon svg { width: 28px; height: 28px; }
.lernweg h3 { margin: 0; font-size: 20px; font-weight: 700; }
.lernweg-unter { margin: 0; color: var(--ink-muted); font-size: 15px; }
.lernweg-punkte { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lernweg-punkte li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.haken-kreis { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--amber-soft); color: var(--amber); flex: none; }
.haken-kreis svg { width: 12px; height: 12px; }
.lernweg-knopf { width: 100%; height: 48px; min-height: 48px; margin-top: auto; display: inline-flex; align-items: center; justify-content: center; }
.lernweg-meta2 { text-align: center; color: var(--ink-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lernweg .balken.breit { height: 6px; }
.block-intro { margin: 6px 0 0; color: var(--ink-muted); font-size: 16px; max-width: 60ch; }

/* Kursuebersicht (Mockup 02 rechts): ab 1024px zweispaltig, links sticky. */
.kurs-brotkrumen { margin: 4px 0 12px; }
.kurs-layout { display: grid; gap: 24px; align-items: start; }
.kurs-seite { display: flex; flex-direction: column; gap: 10px; }
.kurs-bild { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.kurs-bild img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.kurs-seite h1 { margin: 4px 0 0; font-size: 24px; font-weight: 800; }
.kurs-meta { color: var(--ink-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.kurs-seite .gleis-unter { margin: 2px 0 4px; }
@media (min-width: 1024px) {
  .kurs-layout { grid-template-columns: 360px minmax(0, 760px); }
  .kurs-seite { position: sticky; top: 16px; }
}
.kurs-balken { height: 8px; }
.kurs-proz { color: var(--ink-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.kurs-aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kurs-fertig { color: var(--amber); font-weight: 600; margin: 0; }
.kurs-liste { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.kurs-kapitel-titel { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 16px 0 6px; }
.kurs-zeile { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 14px; color: var(--ink); cursor: pointer; }
.kurs-zeile:hover { border-color: var(--amber-line); }
.kurs-zeile.naechste { background: var(--amber-soft); border-color: var(--amber-line); }
.kurs-kreis { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-3); color: var(--ink); font-size: 13px; font-weight: 700; flex: none; }
.kurs-zeile.erledigt .kurs-kreis, .kurs-zeile.naechste .kurs-kreis { background: var(--amber); color: var(--amber-ink); }
.kurs-zeile-titel { flex: 1; min-width: 0; font-size: 15px; }
.kurs-zeile-status { color: var(--ink-muted); font-size: 13px; white-space: nowrap; }
.kurs-zeile.naechste .kurs-zeile-status { color: var(--amber); font-weight: 600; }

/* A11y-Fundament (ACAD-011): sichtbarer Fokus-Ring bei Tastaturnutzung. */
:where(a, button, select, input, [tabindex]):focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---- Vorgerenderter Inhalt (ACAD-007, tools/vorrendern.mjs) ----
   Steht nur bis zum Start der App in #app (Suchmaschinen, langsames Netz);
   main.js ersetzt ihn beim ersten Rendern. Schlicht und lesbar. */
.vr { max-width: var(--content-max, 1200px); margin: 0 auto; padding: 28px 20px 48px; }
.vr-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 28px; }
.vr-kopf a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
/* Alle Links im vorgerenderten Block mindestens 44px hoch (AAA 2.5.5). */
.vr-inhalt a { display: inline-flex; align-items: center; min-height: 44px; }
.vr-marke { font-weight: 800; font-size: 18px; }
.vr-kopf nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.vr-inhalt { max-width: 760px; color: var(--ink-dim); line-height: 1.6; }
.vr-inhalt h1 { color: var(--ink); font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 4px 0 14px; }
.vr-inhalt h2 { color: var(--ink); font-size: 20px; margin: 26px 0 8px; }
.vr-eyebrow { color: var(--amber); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 0; }
.vr-inhalt a { color: var(--amber); }
.vr-liste { padding-left: 22px; } .vr-liste li { margin: 6px 0; }
.vr-faq dt { color: var(--ink); font-weight: 700; margin-top: 16px; } .vr-faq dd { margin: 4px 0 0; }

/* ---- Block 4: reicherer Look (11.10.2026) ----
   Abzeichen-Galerie auf /fortschritt; sanfte Hover/Fokus-Uebergaenge fuer
   Karten und Zeilen; Fortschrittsbalken fahren beim Laden ein. Alles nur
   transform/opacity/Farbe - die reduced-motion-Regel unten schaltet es ab. */
.abz-gruppen { display: flex; flex-direction: column; gap: 18px; margin-bottom: 8px; }
.abz-gleis { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.abz-galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
/* Feste Spalten (6/3/2): Einsteiger und Betrieb haben je 6 Abzeichen - mit
   auto-fill blieb am Desktop rechts eine leere 7. Spalte (Messung 11.10.). */
@media (min-width: 600px) { .abz-galerie { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .abz-galerie { grid-template-columns: repeat(6, 1fr); } }
.abz { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 16px 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-height: 132px; }
.abz-medaille { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-3); color: var(--ink-muted); }
.abz-name { font-size: 15px; color: var(--ink-muted); }
.abz-unter { font-size: 13px; color: var(--ink-muted); line-height: 1.35; }
.abz--hat { border-color: var(--amber-line); background: linear-gradient(180deg, var(--amber-soft), var(--surface) 70%); }
.abz--hat .abz-medaille { background: var(--amber); color: var(--amber-ink); box-shadow: 0 0 0 4px var(--amber-soft); }
.abz--hat .abz-name { color: var(--ink); }
.abz--hat .abz-unter { color: var(--amber); font-weight: 600; }

.lernweg, .fs-pfad, .stat, .abz { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
@media (hover: hover) {
  .lernweg:hover, .abz--hat:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); border-color: var(--amber-line); }
  .lernweg-bild img { transition: transform .4s ease; }
  .lernweg:hover .lernweg-bild img { transform: scale(1.03); }
}
.lernweg:focus-within { border-color: var(--amber); }
.kurs-zeile { transition: border-color .15s ease, background-color .15s ease; }
@keyframes balken-ein { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.balken i { transform-origin: left center; animation: balken-ein .7s cubic-bezier(.2, .7, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Handy: Playbook-Knopf unter den Text (voll breit) statt daneben gequetscht. */
@media (max-width: 600px) {
  .report-band { flex-wrap: wrap; }
  .report-text { flex: 1 1 100%; }
  .report-knopf { flex: 1 1 100%; text-align: center; margin-top: 10px; padding: 12px 14px; }
}

/* Lektion (Mockup 03): Inhalt + Seitenleiste, ab 1024px zweispaltig, Seite sticky. */
.lektion-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) {
  .lektion-layout { grid-template-columns: minmax(0, var(--reading-max)) 340px; justify-content: space-between; }
  .lekt-seite { position: sticky; top: 16px; }
}
.lekt-seite { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.lekt-meta { color: var(--ink-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lekt-seite-titel { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.lekt-toc { display: flex; flex-direction: column; gap: 2px; }
.lekt-toc-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; min-height: 44px; padding: 6px 8px; border: none; background: none; color: var(--ink-muted); border-radius: var(--r); font: inherit; font-size: 14px; cursor: pointer; }
.lekt-toc-item:hover { color: var(--ink); background: var(--surface-2); }
.lekt-toc-item.aktiv { color: var(--ink); font-weight: 600; background: var(--amber-soft); }
.lekt-toc-haken { color: var(--ink-muted); flex: none; width: 16px; text-align: center; }
.lekt-toc-item.erledigt .lekt-toc-haken { color: var(--amber); }

/* AAA-Tippflächen auf dem Handy (Ziel 48, min. 44): Textlinks/Steuerungen,
   die am Pointer ok sind, bekommen auf Touch-Breiten genug Höhe. */
@media (max-width: 600px) {
  .sprach-wahl { min-height: 44px; }
  .kl-marke { min-height: 44px; }
  .zurueck, .leise { min-height: 44px; padding-top: 11px; padding-bottom: 11px; }
  .agb-link { display: inline-flex; align-items: center; min-height: 44px; }
  .consent-link { display: inline-flex; align-items: center; min-height: 44px; }
  .consent-knoepfe .leise, .consent-knoepfe .weiter { min-height: 44px; padding-left: 14px; padding-right: 14px; }
  .fuss-recht { flex-wrap: wrap; row-gap: 2px; }
  .lekt-toc-item { min-height: 44px; }
}

/* Phase 2: schlanke Startseite-Teaser, Ressourcen-Kacheln, 404. */
.block--erste { margin-top: 16px; }
.block-link { background: none; border: none; cursor: pointer; color: var(--amber); font: inherit; font-weight: 600; font-size: 14px; white-space: nowrap; align-self: flex-end; padding: 8px 0; display: inline-flex; align-items: center; min-height: 44px; }
.pfad-teaser { display: flex; flex-direction: column; gap: 10px; }
.pfad-zeile { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; color: var(--ink); cursor: pointer; }
.pfad-zeile:hover { border-color: var(--amber-line); }
.pfad-zeile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pfad-zeile-text b { font-size: 16px; }
.pfad-zeile-meta { color: var(--ink-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ress-teaser, .ress-kachel { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; color: var(--ink); cursor: pointer; }
.ress-teaser:hover, .ress-kachel:hover { border-color: var(--amber-line); }
.ress-teaser > div, .ress-kachel > div { flex: 1; min-width: 0; }
.ress-teaser b, .ress-kachel b { font-size: 16px; }
.ress-kachel-text { color: var(--ink-muted); font-size: 14px; margin-top: 2px; }
.ress-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.ress-ikon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); flex: none; }
.ress-ikon svg { width: 22px; height: 22px; }
.nf { text-align: center; }
.nf .weiter { width: auto; display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; }

.lernweg-meta2.links { text-align: left; }

/* ===== Darkroom AAA: Flaechen, Karten, Knoepfe, CTA (zentral, 09.10.2026) ===== */
body {
  background:
    radial-gradient(1100px 560px at 78% -160px, rgba(245,165,36,.11), transparent 62%),
    radial-gradient(900px 700px at -12% 38%, rgba(196,112,52,.07), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Karten: sanfter Verlauf, warme Linie, Tiefe. */
.lernweg, .kurs-zeile, .ress-kachel, .ress-teaser, .belohnung, .karte-lektion,
.lekt-seite, .kurs-seite, .setup, .kapitel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 40px -24px rgba(0,0,0,.8);
}
.kurs-seite { padding: 18px; border-radius: var(--r-lg); }
.lernweg:hover, .kurs-zeile:hover, .ress-kachel:hover, .ress-teaser:hover,
.pfad-zeile:hover { border-color: var(--amber-line); }

/* Primaer-Knopf: amber-Verlauf, Schein, dunkle Schrift. */
.weiter {
  background: linear-gradient(180deg, #f8b445, var(--amber-deep));
  color: var(--amber-ink); border: none;
  box-shadow: 0 10px 26px -12px rgba(245,165,36,.55), inset 0 1px 0 rgba(255,255,255,.35);
}

/* Sekundaer (Umriss) - auf dem Hero mit leichtem Blur. */
.hero-knopf2 { border: 1px solid rgba(255,236,210,.28); color: var(--ink); background: rgba(12,11,14,.35); backdrop-filter: blur(6px); }
.hero-knopf2:hover { border-color: var(--amber); }

/* Abschluss-CTA: dunkler Kasten, Amber gezielt (nicht mehr vollflaechig). */
.cta-band {
  background: linear-gradient(135deg, #221a10, #16120d);
  border: 1px solid var(--amber-line); color: var(--ink);
  box-shadow: 0 24px 60px -30px rgba(245,165,36,.45);
}
.cta-band b { color: var(--amber); }
.cta-band span { color: var(--ink); }
.cta-pfeil { color: var(--amber); }

/* Fortschrittsbalken: warme Spur, amber-Verlauf. */
.balken { background: rgba(255,236,210,.08); }
.balken i { background: linear-gradient(90deg, var(--amber-deep), #ffc25c); }

/* "Erledigt" in Listen gruen (wie im Mockup); Haken-Kreise bleiben amber. */
.kurs-zeile.erledigt .kurs-kreis { background: var(--ok); color: #06251a; }
.kurs-zeile.naechste .kurs-kreis { background: var(--amber); color: var(--amber-ink); }
.lekt-toc-item.erledigt .lekt-toc-haken { color: var(--ok); }

/* Dashboard /fortschritt. */
.fs-hinweis { color: var(--ink-muted); font-size: 14px; margin: 14px 0 0; }
.fs-abschnitt { font-size: 16px; font-weight: 700; margin: 22px 0 10px; color: var(--ink); }
.fs-pfade { display: flex; flex-direction: column; gap: 10px; }
.fs-pfad { display: flex; align-items: center; gap: 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 40px -24px rgba(0,0,0,.8); }
.fs-pfad-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fs-pfad-text b { font-size: 16px; }
/* Vom Hub verbuchte Pruefung (ACAD-005) - Text --ok-ink auf --ok-soft (AAA). */
.fs-bestanden { display: table; margin: 6px 0 2px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ok-ink); background: var(--ok-soft); }
.fs-pfad-meta { color: var(--ink-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.fs-pfad .weiter.klein, .fs-pfad .hero-knopf2 { flex: 0 0 auto; margin-top: 0; }
.fs-reset { margin-top: 22px; }

/* FAQ/Glossar (/faq): natives <details>-Accordion. */
.faq-liste { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 40px -24px rgba(0,0,0,.8); overflow: hidden; }
.faq-frage { list-style: none; cursor: pointer; padding: 14px 16px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--ink); }
.faq-frage::-webkit-details-marker { display: none; }
.faq-frage::after { content: "+"; color: var(--amber); font-size: 20px; line-height: 1; flex: none; }
.faq-item[open] .faq-frage::after { content: "–"; }
.faq-antwort { padding: 0 16px 16px; color: var(--ink-dim); line-height: 1.6; }
.glossar { margin: 0; }
.glossar dt { font-weight: 700; color: var(--ink); margin-top: 14px; }
.glossar dd { margin: 4px 0 0; color: var(--ink-dim); line-height: 1.6; }

/* Ausrichtung (Eigentümer-Befund): Knöpfe in einer Zeile ohne den globalen
   .weiter-Abstand (margin-top:20px schob sie 10px tiefer) und mit EINER Höhe
   je Zeile: Hero 52, Standard 48, klein 44 - nie gemischt. */
.hero-ctas > *, .kl-rechts > *, .consent-knoepfe > *, .kurs-aktionen > *,
.frage-aktionen > *, .fs-pfad > * { margin-top: 0; margin-bottom: 0; }
.kopfleiste .sprach-wahl, .kl-cta, .kl-burger { height: 48px; min-height: 48px; }
.frage-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.frage-aktionen > * { min-height: 48px; }
.kurs-aktionen .hero-knopf2 { height: 48px; min-height: 48px; }
