/* Osteo-Skript – eigenes, schlankes CSS auf Design-Tokens.
   Gestaltung „Salbei & Apricot“: Seitenleiste in Salbei bis ganz oben, obere Leiste nur rechts daneben,
   Inhalt auf Weiß, Apricot als Zweitakzent. Kästen ohne Farbfläche (nur Linie + farbige Überschrift). */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f5f4;
  --text: #1f2b23;
  --text-2: #5d6568;
  --line: #e3e9e5;
  --accent: #46614f;          /* Salbei: Knöpfe, aktive Zustände */
  --accent-soft: #edf3ef;
  --akzent2: #b0582e;         /* Apricot dunkel: Abschnittsnummern, Etiketten */
  --akzent2-soft: #fbeee5;
  --leiste: #46614f;          /* Seitenleiste */
  --leiste-text: #e8f0ea;
  --leiste-leise: #afc4b5;
  --leiste-linie: rgba(255,255,255,.14);
  --leiste-hover: rgba(255,255,255,.08);
  --leiste-aktiv: rgba(255,255,255,.16);
  --apricot: #f5c6a5;         /* Apricot hell: in der Leiste, Zähler */
  --apricot-text: #45200a;
  --tab-kopf: #5a7866;        /* Tabellenkopf: helles Salbei, weiße Schrift (Kontrast 4,9:1) */
  --merke: #46614f;      --merke-bg: #edf3ef;
  --achtung: #a8432f;    --achtung-bg: #f8ebe6;
  --ergaenzung: #85600f; --ergaenzung-bg: #f7efdc;
  --frage: #3a6378;      --frage-bg: #eaf1f4;
  --tipp: #6a527f;       --tipp-bg: #f1ecf5;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 10px;
  --topbar-h: 64px;
  --sidebar-w: 284px;
  --toc-w: 230px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121815; --surface: #182019; --surface-2: #212a24; --text: #e3eae5; --text-2: #a1aca4; --line: #2b352f;
    --accent: #8fbf9f; --accent-soft: #1f2e25; --akzent2: #eea47c; --akzent2-soft: #35261d;
    --leiste: #1b2820; --leiste-text: #dbe5de; --leiste-leise: #8ca294; --leiste-linie: rgba(255,255,255,.08);
    --leiste-hover: rgba(255,255,255,.05); --leiste-aktiv: rgba(255,255,255,.09); --tab-kopf: #3d5646;
    --merke: #8fbf9f; --merke-bg: #1d2b22; --achtung: #f0957a; --achtung-bg: #33211b;
    --ergaenzung: #e2bf6a; --ergaenzung-bg: #2d2717; --frage: #8fb8cf; --frage-bg: #1b282f;
    --tipp: #c3aee0; --tipp-bg: #272135;
  }
}
:root[data-theme="dark"] {
  --bg: #121815; --surface: #182019; --surface-2: #212a24; --text: #e3eae5; --text-2: #a1aca4; --line: #2b352f;
  --accent: #8fbf9f; --accent-soft: #1f2e25; --akzent2: #eea47c; --akzent2-soft: #35261d;
  --leiste: #1b2820; --leiste-text: #dbe5de; --leiste-leise: #8ca294; --leiste-linie: rgba(255,255,255,.08);
  --leiste-hover: rgba(255,255,255,.05); --leiste-aktiv: rgba(255,255,255,.09); --tab-kopf: #3d5646;
  --merke: #8fbf9f; --merke-bg: #1d2b22; --achtung: #f0957a; --achtung-bg: #33211b;
  --ergaenzung: #e2bf6a; --ergaenzung-bg: #2d2717; --frage: #8fb8cf; --frage-bg: #1b282f;
  --tipp: #c3aee0; --tipp-bg: #272135;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--topbar-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); }
a { color: var(--accent); }

/* Gerüst: Seitenleiste links über die ganze Höhe, rechts obere Leiste + Inhalt */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.haupt { min-width: 0; display: flex; flex-direction: column; }

/* Seitenleiste */
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px;
  background: var(--leiste); color: var(--leiste-text); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent;
}
.brand { font-size: 23px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: #fff; text-decoration: none; white-space: nowrap; }
.brand span { font-weight: 400; color: var(--apricot); }
.sidebar .brand { flex-shrink: 0; height: var(--topbar-h); display: flex; align-items: center; padding: 0 10px; }
.sidebar .hinweis-leiste { margin: 0; }
.nav-baum { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -12px; padding: 0 12px 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.nav-link {
  display: flex; align-items: baseline; gap: 10px; padding: 6px 10px; border-radius: 9px;
  font-size: 13.5px; line-height: 1.4; color: var(--leiste-text); text-decoration: none;
}
.nav-link:hover { background: var(--leiste-hover); }
.nav-link.active { background: var(--leiste-aktiv); color: #fff; font-weight: 600; }
/* Seitenleiste nach Entwurf G10b: Wähler für Jahr und Modul, darunter der Baum des Moduls */
.n-wahl { flex-shrink: 0; }
.n-waehler {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 6px; padding: 10px 12px;
  border: 1px solid var(--leiste-linie); border-radius: 12px; background: rgba(255,255,255,.07);
  color: #fff; font: inherit; text-align: left; cursor: pointer;
}
.n-waehler:hover { background: rgba(255,255,255,.12); }
.n-waehler small { display: block; font-size: 11.5px; font-weight: 500; color: var(--leiste-text); opacity: .8; }
.n-waehler b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.n-waehler .nav-pfeil { margin-left: auto; transform: rotate(90deg); }
.n-waehler[aria-expanded="true"] .nav-pfeil { transform: rotate(-90deg); }
.n-liste {
  max-height: 60vh; overflow-y: auto; margin: 0 0 10px; padding: 6px; border-radius: 12px;
  background: var(--surface); color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.n-jahr { margin: 8px 8px 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.n-liste a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; color: var(--text); text-decoration: none; }
.n-liste a:hover { background: var(--surface-2); }
.n-liste a.an { background: var(--accent-soft); font-weight: 600; }
.n-tag { margin-left: auto; font-size: 11px; color: var(--akzent2); }
.n-leer { margin: 0; padding: 2px 8px 6px; font-size: 12.5px; color: var(--text-2); }
.nav-baum .nav-link { color: rgba(255,255,255,.78); }
.nav-baum .nav-link.active { color: #fff; }
.n-knoten {
  display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 10px; border: 0; border-radius: 9px;
  background: transparent; color: rgba(255,255,255,.78); font: inherit; font-size: 13.5px; line-height: 1.4; text-align: left; cursor: pointer;
}
.n-knoten:hover { background: var(--leiste-hover); }
.n-name { min-width: 0; }
.n-zahl { margin-left: auto; font-size: 11.5px; color: rgba(255,255,255,.6); }
.nav-pfeil { flex-shrink: 0; transition: transform .15s; }
.n-knoten[aria-expanded="true"] .nav-pfeil { transform: rotate(90deg); }
/* Erste Ebene (Überblick, Theorie, Praxis, Prüfungsfragen): Überschrift mit feiner Linie darüber */
.nav-baum .n-kopf {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); border-radius: 0;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.nav-baum > .n-kopf:first-child { margin-top: 0; border-top: 0; padding-top: 6px; }
.nav-baum .n-kopf.active { border-radius: 0 0 9px 9px; }
.n-kopf .n-zahl { letter-spacing: 0; text-transform: none; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.65); }
.n-kopf .nav-pfeil { width: 11px; height: 11px; opacity: .75; }
/* Nur Kapitel in einer Gruppe sind eingerückt */
.n-ast { margin-left: 10px; border-left: 1px solid rgba(255,255,255,.2); }
.nav-titel { min-width: 0; }
.nav-link .status { margin-left: auto; font-size: 11px; color: var(--apricot); opacity: .9; }
.sidebar .offline-marke { margin-left: auto; background: var(--leiste-aktiv); color: var(--apricot); }
.nav-mobil { display: none; flex-shrink: 0; flex-direction: column; gap: 1px; padding-bottom: 8px; border-bottom: 1px solid var(--leiste-linie); }
/* Konto unten in der Seitenleiste: eine Zeile, Menü öffnet nach oben */
.konto { position: relative; flex-shrink: 0; padding-top: 8px; border-top: 1px solid var(--leiste-linie); }
.konto-knopf { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 11px;
  background: transparent; color: var(--leiste-text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.konto-knopf:hover, .konto-knopf[aria-expanded="true"] { background: var(--leiste-aktiv); }
.nav-avatar { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: var(--apricot); color: var(--apricot-text); font-weight: 700; font-size: 13px; }
.konto-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.konto-name > span { font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.konto-name small { font-size: 12px; color: var(--leiste-leise); }
.konto-pfeil { flex-shrink: 0; color: var(--leiste-leise); transition: transform .15s; }
.konto-knopf[aria-expanded="true"] .konto-pfeil { transform: rotate(180deg); }
.konto-menue { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 5; display: flex; flex-direction: column; gap: 1px;
  padding: 8px; border-radius: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0,0,0,.24); }
.konto-gruppe { margin: 0; padding: 6px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--akzent2); }
.konto-menue a, .konto-menue > button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none;
  font: inherit; font-size: 14px; text-align: left; color: var(--text); text-decoration: none; cursor: pointer; }
.konto-menue a:hover, .konto-menue > button:hover, .konto-menue a.active { background: var(--surface-2); }
.konto-trenner { height: 1px; margin: 6px 4px; background: var(--line); }
.konto-darstellung { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; font-size: 14px; }
.konto-darstellung .segment button { font: inherit; font-size: 12px; font-weight: 600; padding: 4px 8px; border: 0; background: none; color: var(--text-2); cursor: pointer; }
.konto-darstellung .segment button + button { border-left: 1px solid var(--line); }
.konto-darstellung .segment button[aria-pressed="true"] { background: var(--accent); color: var(--surface); }
.konto-menue .konto-abmelden { color: var(--achtung); }

/* Obere Leiste (nur rechts neben der Seitenleiste) */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h); flex-shrink: 0;
  display: flex; align-items: center; gap: 8px; padding: 0 24px 0 20px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: none; color: var(--text); cursor: pointer; }
.brand-mobil { display: none; }
/* Rechner: Seitenleiste einklappbar (☰ links in der oberen Leiste); eingeklappt steht die Wortmarke oben */
@media (min-width: 861px) {
  .menu-btn { display: inline-flex; margin-left: -8px; color: var(--text-2); }
  .menu-btn:hover { background: var(--surface-2); color: var(--text); }
  .leiste-zu .app { grid-template-columns: minmax(0, 1fr); }
  .leiste-zu .sidebar { display: none; }
  .leiste-zu .brand-mobil { display: inline-block; margin-right: 12px; color: var(--text); font-size: 21px; }
  .leiste-zu .brand-mobil span { color: var(--akzent2); }
}
.bereiche { display: flex; gap: 2px; }
.bereich {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.bereich svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bereich:hover { background: var(--surface-2); color: var(--text); }
.bereich.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.zaehler { font-size: 11px; font-weight: 700; line-height: 18px; min-width: 18px; text-align: center; padding: 0 6px; border-radius: 999px;
  background: var(--apricot); color: var(--apricot-text); }
.search { margin-left: auto; width: min(320px, 34vw); }
.search input {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px;
}
.search input:focus { outline: none; border-color: var(--accent); background: var(--surface); }

/* Inhalt + Inhaltsverzeichnis */
.layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) var(--toc-w); }
.content { padding: 44px 48px 80px; min-width: 0; }
.toc {
  position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); overflow-y: auto;
  padding: 44px 20px 24px 0;
}
.toc h4 { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); }
.toc a { display: block; font-size: 13px; line-height: 1.4; color: var(--text-2); text-decoration: none; padding: 4px 0 4px 12px; box-shadow: inset 1px 0 0 var(--line); }
.toc a.h3 { padding-left: 24px; font-size: 12.5px; }
.toc a:hover { color: var(--text); box-shadow: inset 2px 0 0 var(--akzent2); }

/* Text */
.prose { max-width: 740px; margin: 0 auto; }
.prose h1 { font-size: 2.6rem; line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 .45em; color: var(--text); }
.prose h2 { font-size: 1.6rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; margin: 2.2em 0 .6em; padding-bottom: .35em;
  border-bottom: 1px solid var(--line); color: var(--text); }
.prose h3 { font-size: 1.15rem; font-weight: 650; margin: 1.8em 0 .5em; color: var(--text); }
.prose h4 { font-size: 1rem; margin: 1.4em 0 .4em; color: var(--text-2); }
.h-nr { color: var(--akzent2); font-variant-numeric: tabular-nums; margin-right: .4em; }
.h-trenner, .h-abstand { display: none; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin: .2em 0; }
.prose li > ul, .prose li > ol { margin: .2em 0 .4em; }
.prose strong { font-weight: 650; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.prose figure { margin: 1.5em 0; }
.prose figure img { max-height: 420px; width: auto; display: block; }
.prose .cards figure { margin: 0; }
.prose .cards figure img { max-height: none; width: 100%; }
.prose figcaption { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.prose .lead { font-size: 1.1rem; line-height: 1.65; color: var(--text-2); }

.prose .tabelle { margin: 1.2em 0 1.6em; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.prose table { width: 100%; margin: 0; font-size: 14.5px; border-collapse: separate; border-spacing: 0; }
.prose th, .prose td { padding: 9px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
/* Kopfzeile wie ursprünglich gefüllt, aber in hellerem Salbei statt fast Schwarz */
.prose th { background: var(--tab-kopf); color: #fff; font-weight: 600; border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.prose td:first-child { font-weight: 600; }
.prose table.plain td:first-child { font-weight: 400; }

.prose blockquote { margin: 1.2em 0; padding: .2em 1em; border-left: 2px solid var(--line); color: var(--text-2); }

/* Kästen: keine Farbfläche, nur Linie links und farbige Überschrift */
.callout { --c: var(--line); margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--c); }
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; font-size: 14px; letter-spacing: .01em; margin-bottom: 4px; color: var(--c); }
.callout-merke { --c: var(--accent); }
.callout-achtung { --c: var(--achtung); }
.callout-ergaenzung { --c: var(--ergaenzung); }
.callout-tipp { --c: var(--tipp); }
.callout-lernziel { --c: var(--akzent2); }
.callout-pruefung { --c: var(--akzent2); }

/* Selbsttest */
.frage-rahmen { position: relative; margin: 1em 0; }
details.frage { margin: 1em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.frage-rahmen > details.frage { margin: 0; }
.frage-rahmen > details.frage > summary { padding-right: 52px; }
details.frage[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
details.frage > summary { cursor: pointer; padding: 12px 16px; list-style: none; }
details.frage > summary::-webkit-details-marker { display: none; }
details.frage > summary .label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--akzent2); margin-bottom: 2px; }
details.frage > summary .hint { font-size: 12px; color: var(--text-2); }
details.frage[open] > summary .hint { display: none; }
details.frage > .antwort { padding: 4px 16px 12px; border-top: 1px dashed var(--line); }
details.frage > .antwort > :last-child { margin-bottom: 0; }

/* Quellenverweise */
a.quelle {
  display: inline-block; font-size: 12px; line-height: 1.5; padding: 0 7px; margin: 0 2px;
  border-radius: 999px; background: var(--surface-2); color: var(--text-2); text-decoration: none;
  border: 1px solid transparent; white-space: nowrap; vertical-align: 1px;
}
a.quelle:hover { color: var(--accent); border-color: var(--accent); }

/* Blättern */
.pager { max-width: 740px; margin: 48px auto 0; display: flex; justify-content: space-between; gap: 16px; }
.pager a {
  flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--text); background: var(--surface);
}
.pager a:hover { border-color: var(--accent); }
.pager a.next { text-align: right; }
.pager small { display: block; color: var(--akzent2); font-size: 12px; font-weight: 600; }

/* Suche */
.search-result { padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-result a { font-weight: 600; text-decoration: none; }
.search-result p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.search-result mark { background: var(--akzent2-soft); color: inherit; border-radius: 3px; padding: 0 2px; }

/* Startseite: Kacheln */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 1.5em 0; }
.card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--accent); }
.card strong { display: block; margin-bottom: 4px; }
.card span { font-size: 14px; color: var(--text-2); }

/* Responsiv */
@media (max-width: 1200px) { .layout { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 1060px) { .bereich svg { display: none; } .bereich { padding: 8px 10px; } }
@media (max-width: 860px) {
  :root { --topbar-h: 56px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: min(300px, 86vw); z-index: 45;
    transform: translateX(-100%); transition: transform .2s; padding-top: env(safe-area-inset-top);
  }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .nav-mobil { display: flex; }
  .topbar { background: var(--leiste); border-bottom: 0; padding: 0 6px 0 4px; gap: 4px; backdrop-filter: none; }
  .menu-btn { display: inline-flex; color: #fff; }
  .brand-mobil { display: inline-block; font-size: 20px; margin-right: auto; }
  .bereich { display: none; }
  .bereich-lernen { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--leiste-aktiv); color: #fff; font-weight: 600; }
  .bereich-lernen:hover, .bereich-lernen.active { background: rgba(255,255,255,.24); color: #fff; }
  .search { margin-left: 0; width: 118px; }
  .search input { height: 34px; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; }
  .search input::placeholder { color: rgba(255,255,255,.7); }
  .search input:focus { background: rgba(255,255,255,.22); border-color: transparent; }
  .content { padding: 24px 16px 64px; }
  .prose h1 { font-size: 1.85rem; }
  .prose h2 { font-size: 1.35rem; }
}
@media print {
  .topbar, .sidebar, .toc, .pager { display: none; }
  .app, .layout { display: block; }
  details.frage { break-inside: avoid; }
}

/* Eigene Schemata (inline-SVG, theme-fähig) */
.schema-fig { margin: 1.8em 0; }
.schema-fig figcaption { font-size: 13px; color: var(--text-2); margin-top: 6px; }
svg.schema { width: 100%; height: auto; max-width: 720px; display: block; }
svg.schema text { fill: var(--text); font-family: var(--font); font-size: 13px; }
svg.schema .klein { font-size: 11.5px; fill: var(--text-2); }
svg.schema .knochen { fill: var(--surface-2); stroke: var(--text-2); stroke-width: 1.6; }
svg.schema .arm-kurz { stroke: #d08c2a; stroke-width: 7; stroke-linecap: round; }
svg.schema .arm-lang { stroke: #3d86c6; stroke-width: 7; stroke-linecap: round; }
svg.schema .t-kurz { fill: #d08c2a; font-weight: 600; font-size: 12px; }
svg.schema .t-lang { fill: #3d86c6; font-weight: 600; font-size: 12px; }
svg.schema .punkt { fill: var(--text); }
svg.schema .achse { stroke-width: 2.4; stroke-dasharray: 7 4; fill: none; }
svg.schema .duenn { stroke-width: 1.6; stroke-dasharray: 3 4; }
svg.schema .a1 { stroke: #c0392b; } svg.schema .a1-t { fill: #c0392b; font-weight: 600; font-size: 12.5px; }
svg.schema .a2 { stroke: #2f8f6f; } svg.schema .a2-t { fill: #2f8f6f; font-weight: 600; font-size: 12.5px; }
svg.schema .a3 { stroke: #6a4fb3; } svg.schema .a3-t { fill: #6a4fb3; font-weight: 600; font-size: 12.5px; }
svg.schema .ap { fill: none; stroke: var(--text); stroke-width: 1.6; }
svg.schema .ap-punkt { fill: var(--text); }
svg.schema .fix { fill: var(--bg); stroke: var(--text); stroke-width: 2; }
svg.schema .ant { fill: #d9534f; } svg.schema .post { fill: #3d86c6; }
svg.schema .marke { fill: #fff; font-weight: 700; font-size: 12px; }
svg.schema .panel-titel { font-size: 18px; font-weight: 700; }
svg.schema .t-phys { fill: #2f8f6f; font-size: 12px; font-weight: 600; }
svg.schema .t-unphys { fill: #c0392b; font-size: 12px; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) svg.schema .a1 { stroke: #f08070; } :root:not([data-theme="light"]) svg.schema .a1-t { fill: #f08070; }
  :root:not([data-theme="light"]) svg.schema .a2-t { fill: #6fcfab; } :root:not([data-theme="light"]) svg.schema .a2 { stroke: #6fcfab; }
  :root:not([data-theme="light"]) svg.schema .a3-t { fill: #b39cf0; } :root:not([data-theme="light"]) svg.schema .a3 { stroke: #b39cf0; }
}
:root[data-theme="dark"] svg.schema .a1 { stroke: #f08070; } :root[data-theme="dark"] svg.schema .a1-t { fill: #f08070; }
:root[data-theme="dark"] svg.schema .a2-t { fill: #6fcfab; } :root[data-theme="dark"] svg.schema .a2 { stroke: #6fcfab; }
:root[data-theme="dark"] svg.schema .a3-t { fill: #b39cf0; } :root[data-theme="dark"] svg.schema .a3 { stroke: #b39cf0; }
svg.schema line.a1, svg.schema line.a2, svg.schema line.a3 { fill: none; }

/* --- Lernskript-Standard (Kapitelvorlage): Farben kommen aus den Tokens oben --- */
:root { --head: var(--text); --head-text: #ffffff; }
.prose p.quelle { font-size: 12.5px; color: var(--text-2); font-style: italic; margin-top: -0.3em; }
.prose p.quelle a.quelle { font-style: normal; }
.prose .vergleich { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 1.2em 0; }
.prose .vergleich > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.prose .vergleich > div > :last-child { margin-bottom: 0; }
.prose .vergleich h4 { margin: 0 0 6px; color: var(--head); }

/* =============================================================================================
   Lernkarten: Werkzeuge im Skript, Dialoge, Lernansicht
   ============================================================================================= */
.leise { color: var(--text-2); }
.klein { font-size: 13px; }
kbd { font: 11px var(--mono); padding: 1px 5px; border: 1px solid currentColor; border-radius: 4px; opacity: .7; margin-left: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--accent); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primaer { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.btn-primaer:hover { filter: brightness(1.08); }
.btn-gefahr { color: var(--achtung); }
.btn-gefahr:hover { border-color: var(--achtung); }
.btn-scharf { background: var(--achtung); border-color: var(--achtung); color: #fff; }
.btn-klein { font-size: 13px; padding: 5px 10px; }
.btn-gross { font-size: 16px; padding: 15px 22px; width: 100%; border-radius: 12px; }

.lernen-btn {
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--accent);
  padding: 6px 12px; border-radius: 8px; background: var(--accent-soft);
}
.lernen-btn:hover { filter: brightness(.97); }
.nav-app { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.nav-app .nav-link { font-weight: 550; color: var(--text); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit; font-size: 13px; line-height: 1.3; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
}
button.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.an { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip.aus { background: var(--achtung-bg); border-color: var(--achtung); color: var(--achtung); text-decoration: line-through; }
.chip.geerbt { border-style: dashed; border-color: var(--accent); color: var(--accent); }
.chip.klein { font-size: 11.5px; padding: 1px 8px; cursor: default; }

/* Werkzeuge im Skript */
.abschnitt-wz, .kapitel-wz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -.3em 0 1em; }
.kapitel-wz { margin: 0 0 .5em; padding: 0; font-size: 13px; color: var(--text-2); }
.kapitel-wz .wz-gruppe { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; }
.wz-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.wz-btn {
  font: inherit; font-size: 12.5px; line-height: 1.3; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; background: var(--surface-2); color: var(--text-2);
}
.wz-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.wz-btn.hat { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }
.wz-btn:disabled { opacity: .6; cursor: default; }
.frage-wz { margin-left: 8px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.ziel-markiert { animation: zielBlink 2s ease-out; }
@keyframes zielBlink { 0%, 30% { background: var(--ergaenzung-bg); } 100% { background: transparent; } }
.markier-knopf {
  position: absolute; z-index: 30; font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 8px;
  background: var(--accent); color: var(--surface); border: 0; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
mark.markierung { background: var(--ergaenzung-bg); color: inherit; border-bottom: 2px solid var(--ergaenzung); padding: 0 1px; }

/* Dialog */
dialog.dlg {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
dialog.dlg-breit { width: min(680px, calc(100vw - 32px)); }
dialog.dlg::backdrop { background: rgba(0,0,0,.35); }
.dlg-form { display: flex; flex-direction: column; max-height: calc(100vh - 50px); }
.dlg-kopf { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dlg-kopf h3 { margin: 0; font-size: 16px; }
.dlg-x { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--text-2); cursor: pointer; padding: 0 4px; }
.dlg-inhalt { padding: 16px 18px; overflow-y: auto; }
.dlg-fuss { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }

/* Formulare */
.feld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.feld-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.feld input:not([type=radio]):not([type=checkbox]), .feld textarea, .feld select,
.app-ansicht select, .app-ansicht input[type=search], .tag-zeile input, .tag-neu input, .tag-neu-form input {
  font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); width: 100%;
}
.feld textarea { resize: vertical; }
.feld input:focus, .feld textarea:focus, .feld select:focus, .app-ansicht select:focus, .app-ansicht input[type=search]:focus,
.tag-zeile input:focus, .tag-neu input:focus, .tag-neu-form input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: 0; border-color: var(--accent);
}
.feld-zeile { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.feld-zeile input { max-width: 110px; }
.zitat { margin: 0; padding: 6px 10px; border-left: 3px solid var(--ergaenzung); background: var(--ergaenzung-bg); font-size: 14px; border-radius: 4px; }
.tag-neu { display: flex; gap: 6px; margin-top: 10px; }
.tag-neu input { flex: 1; }
.segment { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: fit-content; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-2); }
.seg + .seg span { border-left: 1px solid var(--line); }
.seg input:checked + span { background: var(--accent); color: var(--surface); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.schalter { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* App-Ansichten */
.app-ansicht { max-width: 760px; margin: 0 auto; }
.app-ansicht h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 .5em; color: var(--head); }
.app-ansicht h2 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
.aktionen-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.vorlagen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.vorlagen select { flex: 1; min-width: 200px; width: auto; }
.filter-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 16px; }
.filter-box > summary { cursor: pointer; padding: 10px 14px; font-size: 14px; list-style: none; }
.filter-box > summary::-webkit-details-marker { display: none; }
.filter-box > summary::before { content: "▸ "; color: var(--text-2); }
.filter-box[open] > summary::before { content: "▾ "; }
.filter-inhalt { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.f-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.f-zeile select { width: auto; flex: 1; min-width: 150px; }
.f-label { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); width: 44px; }

.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 18px; }
.kachel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px 18px; font-size: 14px; color: var(--text-2); }
.kachel .zahl { display: block; font-size: 2.3rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 6px; letter-spacing: -0.02em; }
.k-faellig .zahl { color: var(--accent); }
.k-lernend .zahl { color: var(--akzent2); }
.lern-datum { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: var(--akzent2); }
.app-ansicht h1.lern-titel { font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.03em; margin: 0; color: var(--text); }
.lern-titel em { font-style: normal; color: var(--accent); }
.lernen-start .lern-status { margin-bottom: 22px; }
.lernen-start .lern-start { width: auto; padding: 15px 30px; }
.lernen-start .lern-status > .leise { margin: 12px 0 0; }
@media (max-width: 860px) {
  .app-ansicht h1.lern-titel { font-size: 2rem; }
  .kacheln { gap: 8px; margin: 14px 0; }
  .kachel { padding: 12px; font-size: 13px; }
  .kachel .zahl { font-size: 1.9rem; }
  .lernen-start .lern-start { width: 100%; }
}
.fertig-text { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); }

/* Lernsitzung */
.lern-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; }
.lern-kopf .zurueck { text-decoration: none; }
.lern-kopf .rest { font-variant-numeric: tabular-nums; color: var(--text-2); }
.lernkarte { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 18px 20px; min-height: 40vh; }
.lk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); margin-bottom: 14px; }
.lk-meta .badge { padding: 1px 8px; border-radius: 999px; background: var(--frage-bg); color: var(--frage); font-weight: 600; }
.lk-prio { margin-left: auto; }
.lk-prio .seg span { padding: 2px 8px; font-size: 12px; }
.lk-vorne { font-size: 1.35rem; font-weight: 650; line-height: 1.35; color: var(--head); }
.lk-hinten { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); max-width: none; }
.lk-link { display: inline-block; margin-top: 12px; font-size: 14px; }
.lk-aktionen {
  position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 25%); margin-top: 8px;
}
.bewerten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bew { flex-direction: column; gap: 2px; padding: 10px 4px; min-height: 62px; border: 0; border-radius: 14px; }
.bew:hover { filter: brightness(.97); }
.bew kbd { margin-left: 8px; opacity: .55; }
.bew small { font-size: 12px; font-weight: 500; color: inherit; opacity: .8; }
.bew-1 { background: var(--achtung-bg); color: var(--achtung); }
.bew-2 { background: var(--ergaenzung-bg); color: var(--ergaenzung); }
.bew-3 { background: var(--accent); color: var(--surface); }
.bew-4 { background: var(--accent-soft); color: var(--accent); }
.fertig { text-align: center; padding: 40px 16px; }
.hinweis { padding: 8px 12px; border-radius: 8px; background: var(--achtung-bg); color: var(--achtung); }

/* Kartenliste */
.karten-liste { display: flex; flex-direction: column; gap: 6px; }
.karten-zeile {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; font: inherit; cursor: pointer;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text);
}
.karten-zeile:hover { border-color: var(--accent); }
.karten-zeile.fehlend { border-color: var(--achtung); }
.karten-mehr { align-self: center; margin-top: 6px; }
.kz-vorne { font-weight: 600; }
.kz-prio { grid-row: 1 / span 3; grid-column: 2; align-self: center; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); }
.kz-prio.p1 { background: var(--achtung-bg); color: var(--achtung); }
.kz-meta { font-size: 12.5px; color: var(--text-2); }
.kz-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.kz-tags:empty { display: none; }
.tag-zeile { display: grid; grid-template-columns: 1fr auto auto auto auto; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tag-neu-form input { flex: 1; width: auto; }

/* Meldungen */
#meldungen { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.meldung { padding: 8px 16px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.2); transition: opacity .4s; }
.meldung-fehler { background: var(--achtung); color: #fff; }
.meldung.weg { opacity: 0; }

@media (max-width: 860px) {
  .lernen-btn { padding: 5px 10px; }
  .brand { font-size: 15px; }
  .lernkarte { padding: 14px; border-radius: 12px; }
  .lk-vorne { font-size: 1.15rem; }
  .bew { font-size: 13px; }
  .tag-zeile { grid-template-columns: 1fr auto auto; }
  .tag-zeile code, .tag-zeile .klein { display: none; }
}
@media print { .abschnitt-wz, .kapitel-wz, .frage-wz, .markier-knopf, .lernen-btn { display: none !important; } }
.feld > .btn { align-self: flex-start; }
.lk-fuss { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.lk-fuss .lk-link { margin-top: 0; }
.rueckseite-vorschau { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; }
.rueckseite-vorschau > summary { cursor: pointer; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--accent); }
.rueckseite-vorschau > .prose { padding: 4px 14px 10px; border-top: 1px dashed var(--line); max-width: none; font-size: 15px; }

/* Anmelden */
body.anmelden-seite { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.anmelden { width: min(400px, 100%); }
body.anmelden-seite { background: var(--leiste); }
.anmelden h1 { margin: 0 0 8px; }
.anmelden h1 .brand { font-size: 2.2rem; }
.anmelden > .leise { margin: 0 0 22px; color: var(--leiste-text); opacity: .85; }
.anmelden-form { border-radius: 16px; background: var(--surface); padding: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.anmelden-fehler { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--achtung-bg); color: var(--achtung); font-size: 14px; }
.hinweis-leiste { margin: 0 0 16px; padding: 8px 12px; border-radius: 8px; background: var(--ergaenzung-bg); color: var(--ergaenzung); font-size: 14px; }
.link-box { display: flex; gap: 6px; margin-top: 6px; }
.link-box input { flex: 1; font: 13px var(--mono); padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.nutzer-tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.nutzer-tabelle th, .nutzer-tabelle td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.nutzer-tabelle th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }

/* Offline */
.offline-wz { display: flex; align-items: center; gap: 8px; margin: 0 0 1.4em; padding-bottom: 1.1em; border-bottom: 1px solid var(--line); font-size: 13px; }
.offline-marke { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 0 7px; margin-left: 6px; }
.offline-wz .offline-marke { margin-left: 0; }
.lern-kopf .netz { margin-left: auto; margin-right: 12px; font-size: 12.5px; }
.netz-aus { color: var(--achtung); font-weight: 600; }
.netz-wartet { color: var(--text-2); }

/* Lernmodus: ablenkungsfrei, ganze Fläche */
body.lernmodus { background: var(--surface); }
body.lernmodus .topbar, body.lernmodus .sidebar, body.lernmodus .toc, body.lernmodus .pager { display: none !important; }
body.lernmodus .layout, body.lernmodus .app { display: block; }
body.lernmodus .content { padding: 0; }
.lern-sitzung { max-width: 720px; margin: 0 auto; min-height: calc(100dvh - var(--topbar-h) - 120px); display: flex; flex-direction: column; }
body.lernmodus .lern-sitzung { min-height: 100vh; min-height: 100dvh; padding: calc(10px + env(safe-area-inset-top)) 20px 0; }
.lern-sitzung .lern-kopf { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; padding-top: 8px; font-size: 13.5px; color: var(--text-2); }
.lern-x, .lern-vollbild { font: inherit; font-size: 18px; line-height: 1; color: var(--text-2); text-decoration: none; background: none; border: 0;
  padding: 8px; margin: -8px; border-radius: 8px; cursor: pointer; }
.lern-x:hover, .lern-vollbild:hover { color: var(--text); background: var(--surface-2); }
.lern-sitzung .netz { margin-left: auto; margin-right: 0; }
.lern-sitzung .rest { font-variant-numeric: tabular-nums; opacity: .7; }
.lern-sitzung .netz:empty + .rest { margin-left: auto; }
.lern-sitzung .lern-buehne { flex: 1; display: flex; flex-direction: column; }
.lern-sitzung .lernkarte { border: 0; background: none; padding: 0; min-height: 0; flex: 1; border-radius: 0; }
.lern-sitzung .lk-vorne { font-size: 2rem; line-height: 1.22; font-weight: 700; color: var(--text); margin: 8vh 0 0; letter-spacing: -0.025em; }
.lern-fortschritt { height: 4px; margin: 0 0 10px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.lern-fortschritt span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .3s; }
body.lernmodus .lern-fortschritt { position: fixed; top: 0; left: 0; right: 0; margin: 0; border-radius: 0; z-index: 25; }
.lern-sitzung .lk-hinten { font-size: 1.05rem; }
.lern-sitzung .lk-hinten { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.lern-sitzung .lk-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 22px 0 8px; padding-top: 12px;
  border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--text-2); }
.lern-sitzung .lk-fuss .badge { padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-weight: 600; }
.lern-sitzung .lk-fuss .lk-link { margin: 0; color: var(--text-2); font-size: 12.5px; }
.lern-sitzung .lk-fuss .lk-prio { margin-left: auto; }
.lern-sitzung .lk-fuss .lk-prio .seg span { padding: 2px 8px; font-size: 12px; }
.lern-sitzung .lk-aktionen { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--surface) 30%); padding-top: 16px; }
.lern-sitzung .fertig { margin-top: 12vh; }
@media (max-width: 860px) {
  body.lernmodus .lern-sitzung { padding-left: 16px; padding-right: 16px; }
  .lern-sitzung .lk-vorne { font-size: 1.55rem; margin-top: 5vh; }
}
@media (hover: none) { kbd { display: none; } }

/* Persönliches: ⋯, ★, eigene Notizen, Meldungen */
.prose h2[data-id], .prose h3[data-id] { position: relative; padding-right: 36px; }
.prose h1.mit-menue { position: relative; padding-right: 44px; }
.prose h1.mit-menue > .meins-knopf { top: .32em; transform: none; }
/* ⋯ an der ersten Textzeile ausrichten, nicht an der Mitte der ganzen Überschrift (Abstand zur Linie, zweite Zeile) */
.prose h2[data-id] > .meins-knopf { top: .625em; }
.prose h3[data-id] > .meins-knopf { top: .825em; }   /* h3 erbt die Zeilenhöhe 1.65 */
.meins-knopf { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid transparent; background: none; color: var(--text-2); cursor: pointer; font: inherit; line-height: 1; }
/* drei gezeichnete Punkte statt des Zeichens „⋯“ (das sitzt je nach Schrift unter der Mitte) */
.meins-knopf { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.meins-knopf::before { content: ""; width: 16px; height: 4px; background: radial-gradient(circle, currentColor 1.7px, transparent 2px) 0 50% / 6px 4px repeat-x; }
.meins-knopf:hover { border-color: var(--line); background: var(--surface-2); color: var(--text); }
.meins-knopf-frage { top: 10px; right: 10px; transform: none; }
.meins-stern::before { content: "★"; color: #d4a017; margin-right: 6px; font-size: .85em; }
.meins-kapitel { display: inline-flex; gap: 6px; margin-left: auto; }
.offline-wz { flex-wrap: wrap; }
.meins-notizen { display: flex; flex-direction: column; gap: 8px; margin: .4em 0 1.2em; }
.meins-notiz { padding: 2px 0 2px 18px; border-left: 2px solid var(--tipp); }
.meins-merke { border-left-color: var(--ergaenzung); }
.meins-merke .meins-notiz-kopf > span { color: var(--ergaenzung); }
.meins-notiz-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--tipp); margin-bottom: 2px; }
.meins-text { max-width: none; font-size: 15px; }
.meins-text > :last-child { margin-bottom: 0; }
.aktionen-menue { display: flex; flex-direction: column; gap: 8px; }
.aktionen-menue .btn { justify-content: flex-start; padding: 12px 14px; font-size: 15px; }
.aktionen-trenner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12.5px; }
.aktionen-trenner > span:first-child { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--akzent2); }
/* Punkt am ⋯: zu dieser Stelle gibt es schon eine Karte (nur Redaktion) */
.hat-karte > .meins-knopf::after, .hat-karte .meins-knopf-frage::after {
  content: ""; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.meins-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.meldung-karte { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px 14px; margin-bottom: 10px; }
.meldung-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; margin-bottom: 6px; }
.meldung-text { font-size: 15px; }
.meldung-antwort { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.meldung-aktionen { margin-top: 10px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.badge-fehler { background: var(--achtung-bg); color: var(--achtung); }
.badge-vorschlag { background: var(--merke-bg); color: var(--merke); }
.lern-sitzung .lk-meins { display: inline-flex; gap: 6px; }
.lk-notizen:empty { display: none; }
.lern-sitzung .lk-notizen { margin-top: 12px; }

/* Claude-Spalte rechts */
:root { --claude-breite: 420px; }
.claude-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 35; width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: var(--accent); color: var(--surface); font-size: 22px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.claude-fab:hover { filter: brightness(1.08); }
body.claude-offen .claude-fab { display: none; }
body.lernsitzung .claude-fab { bottom: calc(96px + env(safe-area-inset-bottom)); }
.claude-spalte { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: var(--claude-breite); display: none; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: -10px 0 30px rgba(0,0,0,.06); }
body.claude-offen .claude-spalte { display: flex; }
@media (min-width: 900px) { body.claude-offen { padding-right: var(--claude-breite); } }
.cs-griff { position: absolute; left: -5px; top: 0; bottom: 0; width: 10px; cursor: col-resize; z-index: 1; }
.cs-griff:hover, body.cs-zieht .cs-griff { background: linear-gradient(90deg, transparent 4px, var(--accent) 4px, var(--accent) 6px, transparent 6px); }
body.cs-zieht { user-select: none; cursor: col-resize; }

/* Kopf: Logo, Titel des Gesprächs, Symbolknöpfe */
.cs-kopf { display: flex; align-items: center; gap: 10px; min-height: var(--topbar-h); padding: env(safe-area-inset-top) 10px 0 16px; border-bottom: 1px solid var(--line); }
.cs-logo { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); font-size: 16px; }
.cs-kopftext { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cs-kopftext strong { font-size: 15px; }
.cs-titel { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-icon { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--text-2); cursor: pointer; }
.cs-icon:hover { background: var(--surface-2); color: var(--text); }

/* Bezug als Pille */
.cs-kontext { display: flex; align-items: center; gap: 6px; padding: 10px 16px 0; font-size: 12.5px; color: var(--text-2); }
.cs-bezug { min-width: 0; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-bezug .leise { color: var(--accent); font-weight: 600; }
.cs-bezug.aus { background: var(--surface-2); color: var(--text-2); text-decoration: line-through; }
.cs-bezug-knopf { flex-shrink: 0; border: 0; border-radius: 999px; padding: 2px 8px; background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.cs-bezug-knopf:hover { color: var(--text); }

/* Verlauf */
.cs-inhalt { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cc-nachricht { max-width: 88%; font-size: 15px; line-height: 1.55; }
.cc-ich { align-self: flex-end; padding: 9px 14px; border-radius: 16px 16px 4px 16px; background: var(--accent); color: var(--surface); white-space: pre-wrap; }
.cc-claude { align-self: flex-start; max-width: 100%; padding: 2px 2px 2px 14px; border-left: 2px solid var(--accent-soft); }
.cc-claude .prose { max-width: none; font-size: 15px; }
.cc-claude .prose > :last-child { margin-bottom: 0; }
.cc-schritt { align-self: flex-start; display: flex; gap: 8px; align-items: baseline; padding: 0 2px; font-size: 12.5px; color: var(--text-2); }
.cc-schritt::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; opacity: .5; transform: translateY(-2px); }
.cc-denkt { animation: ccPuls 1.4s ease-in-out infinite; }
.cc-denkt::before { background: var(--accent); opacity: 1; }
@keyframes ccPuls { 50% { opacity: .45; } }
.cc-aenderung { align-self: stretch; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; background: var(--accent-soft); font-size: 13.5px; }
.cc-aenderung code { font-size: 12px; background: var(--surface); }
.cc-aenderung.cc-zurueck { background: var(--surface-2); color: var(--text-2); text-decoration: line-through; }
.cc-aenderung.cc-zurueck .btn { text-decoration: none; }

/* Eingabe: Feld wächst mit, Senden-Knopf im Feld */
.cs-eingabe { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cs-feld { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.cs-feld:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.cs-feld textarea { flex: 1; min-width: 0; max-height: 240px; margin: 0; padding: 6px 0; border: 0; outline: 0; resize: none; overflow-y: auto;
  background: transparent; color: var(--text); font: inherit; font-size: 16px; line-height: 1.45; }
.cs-feld textarea:focus { outline: 0; box-shadow: none; }
.cs-senden { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--surface); cursor: pointer; }
.cs-senden:hover { filter: brightness(1.08); }
.cs-feld:has(textarea:placeholder-shown) .cs-senden { opacity: .4; }
.claude-spalte.cs-arbeitet .cs-senden { opacity: .4; pointer-events: none; }
.cs-hinweis { margin: 6px 4px 0; font-size: 11.5px; color: var(--text-2); }
@media (hover: none) { .cs-hinweis { display: none; } }

/* Gesprächsliste */
.claude-spalte.cs-listenansicht .cs-eingabe, .claude-spalte.cs-listenansicht .cs-kontext { display: none; }
.cs-liste { display: flex; flex-direction: column; gap: 4px; }
.cs-eintrag { display: flex; align-items: center; gap: 6px; border-radius: 10px; }
.cs-eintrag.aktiv { background: var(--accent-soft); }
.cs-oeffnen { flex: 1; min-width: 0; text-align: left; font: inherit; background: none; border: 0; padding: 9px 12px; cursor: pointer; color: var(--text); border-radius: 10px; }
.cs-oeffnen:hover { background: var(--surface-2); }
.cs-oeffnen span { display: block; font-size: 14px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-oeffnen small { color: var(--text-2); font-size: 12px; }
@media (max-width: 899px) { .claude-spalte { width: 100vw; border-left: 0; } .cs-griff { display: none; } }
@media print { .claude-fab, .claude-spalte { display: none !important; } }

/* Fortschritt – Farben: geordnete Salbei-Abstufung (hell → dunkel = mehr gelernt), passend zur Seitenleiste */
:root {
  --fs-neu: #e4e9e5; --fs-lernphase: #a9c7b3; --fs-gelernt: #4f7a5d; --fs-sicher: #2b4433;
  --fs-h0: #eef2ef; --fs-h1: #bcd4c3; --fs-h2: #86ad92; --fs-h3: #557d62; --fs-h4: #2b4433;
  --fs-saeule: #4f7a5d;
  --fs-r-neu: #e39a5c; --fs-r-wdh: #2f7a4f; /* neu gelernt / wiederholt – validiert (CVD, Helligkeitsband) */
  --fs-r-dg: #a3aba5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fs-neu: #2a332d; --fs-lernphase: #3d5a46; --fs-gelernt: #5d8a6b; --fs-sicher: #b5d6bf;
    --fs-h0: #212a24; --fs-h1: #2f4a38; --fs-h2: #4c7559; --fs-h3: #79a585; --fs-h4: #b5d6bf; --fs-saeule: #79a585;
    --fs-r-neu: #a9592a; --fs-r-wdh: #58a876; --fs-r-dg: #6d7770;
  }
}
:root[data-theme="dark"] {
  --fs-neu: #2a332d; --fs-lernphase: #3d5a46; --fs-gelernt: #5d8a6b; --fs-sicher: #b5d6bf;
  --fs-h0: #212a24; --fs-h1: #2f4a38; --fs-h2: #4c7559; --fs-h3: #79a585; --fs-h4: #b5d6bf; --fs-saeule: #79a585;
  --fs-r-neu: #a9592a; --fs-r-wdh: #58a876; --fs-r-dg: #6d7770;
}
.fortschritt { max-width: 980px; }
.app-ansicht.lernen-start { max-width: 980px; }
.app-ansicht h2.fs-titel { display: flex; align-items: baseline; gap: 12px; font-size: 1.6rem; letter-spacing: -0.02em;
  margin: 2.4em 0 .4em; }
.fs-titel-hinweis { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.fs-motiv { font-size: 1.05rem; color: var(--text-2); margin: -.2em 0 1.2em; }
.fs-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-bottom: 18px; }
.fs-kachel { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fs-kachel.fs-aktion { border-color: var(--accent); }
.fs-label { font-size: 12.5px; color: var(--text-2); }
.fs-zahl { font-size: 1.7rem; font-weight: 650; line-height: 1.15; color: var(--text); }
.fs-unter { font-size: 12.5px; color: var(--text-2); }
.fs-karte { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px 16px; margin-bottom: 16px; }
.fs-karte h2 { margin: 0 0 10px; font-size: 1rem; color: var(--text); }
.fs-satz { margin: 0 0 12px; font-size: 15px; }
.fs-zweispaltig { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
.fs-zweispaltig .fs-karte { margin-bottom: 16px; min-width: 0; }
@media (max-width: 760px) { .fs-zweispaltig { grid-template-columns: 1fr; } }
/* Segmentierter Balken: 2px Abstand statt Rahmen, abgerundete Enden */
.fs-balken { display: flex; gap: 2px; width: 100%; }
.fs-hoch { height: 28px; }
.fs-hoch .fs-teil { border-radius: 4px; }
.fs-duenn { height: 8px; }
.fs-duenn .fs-teil:first-child { border-radius: 4px 0 0 4px; } .fs-duenn .fs-teil:last-child { border-radius: 0 4px 4px 0; }
.fs-duenn .fs-teil:only-child { border-radius: 4px; }
.fs-teil { min-width: 3px; display: flex; align-items: center; padding-left: 8px; font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; }
.fs-teil.fs-neu, .fs-teil.fs-lernphase { color: #0b0b0b; }
.fs-neu { background: var(--fs-neu); } .fs-lernphase { background: var(--fs-lernphase); } .fs-gelernt { background: var(--fs-gelernt); } .fs-sicher { background: var(--fs-sicher); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fs-teil.fs-neu, :root:not([data-theme="light"]) .fs-teil.fs-lernphase { color: #fff; } :root:not([data-theme="light"]) .fs-teil.fs-sicher { color: #0b0b0b; } }
:root[data-theme="dark"] .fs-teil.fs-neu, :root[data-theme="dark"] .fs-teil.fs-lernphase { color: #fff; } :root[data-theme="dark"] .fs-teil.fs-sicher { color: #0b0b0b; }
.fs-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.fs-legende span { display: inline-flex; align-items: center; gap: 6px; }
.fs-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.fs-legende b { color: var(--text); font-weight: 600; }
/* Neu gelernt / wiederholt: Kacheln und Verlauf der letzten 14 Tage */
.fs-r-neu { background: var(--fs-r-neu); } .fs-r-wdh { background: var(--fs-r-wdh); }
.fs-kachel.fs-matrix { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; column-gap: 10px; row-gap: 6px; align-items: center;
  margin-bottom: 18px; padding: 14px 16px; }
.fs-matrix .fs-kopf { justify-self: end; font-size: 13px; font-weight: 600; color: var(--text-2); padding-left: 14px; }
.fs-matrix i { width: 10px; height: 10px; border-radius: 3px; }
.fs-r-dg { background: var(--fs-r-dg); } /* Durchgänge: gefüllt wie die anderen, neutral grau (nicht im Diagramm) */
.fs-matrix .fs-w { font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-matrix .fs-n { justify-self: end; padding-left: 14px; font-size: 1.3rem; font-weight: 650; line-height: 1.25; color: var(--text); font-variant-numeric: tabular-nums; }
.fs-verlauf { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; height: 176px; align-items: end; position: relative; }
.fs-verlauf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 36px; border-bottom: 1px solid var(--line); pointer-events: none; }
/* Knopf = ganze Spalte inkl. Beschriftung (unten 36px Platz für Wochentag und Datum) */
.fs-v-tag { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative;
  appearance: none; background: none; border: 0; padding: 0 0 36px; margin: 0; font: inherit; color: inherit; cursor: pointer; border-radius: 6px;
  -webkit-tap-highlight-color: transparent; }
.fs-v-tag.fs-v-an { background: var(--accent-soft); }
.fs-v-tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fs-v-an .fs-v-wt, .fs-v-an .fs-v-datum { color: var(--text); font-weight: 700; }
.fs-v-detail { margin: 12px 0 0; font-size: 14.5px; color: var(--text-2); }
.fs-v-detail b { color: var(--text); font-weight: 600; }
.fs-v-stapel { display: flex; flex-direction: column; gap: 2px; width: 72%; max-width: 26px; }
.fs-v-stapel > span { min-height: 2px; }
.fs-v-stapel > span:first-child { border-radius: 4px 4px 0 0; }
.fs-v-tag .fs-wert { font-size: 11.5px; }
.fs-v-wt, .fs-v-datum { position: absolute; font-size: 11px; color: var(--text-2); line-height: 1; }
.fs-v-wt { bottom: 19px; } .fs-v-datum { bottom: 5px; font-variant-numeric: tabular-nums; }
.fs-v-heute .fs-v-wt, .fs-v-heute .fs-v-datum { color: var(--text); font-weight: 700; }
.fs-verlauf + .fs-legende { margin-top: 10px; }
.fs-mini { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.fs-mini b { color: var(--text); font-weight: 600; }
/* Säulen */
.fs-saeulen { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 150px; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.fs-saeule { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.fs-saeule-bar { width: 70%; max-width: 28px; background: var(--fs-saeule); border-radius: 4px 4px 0 0; }
.fs-wert { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.fs-tag { position: absolute; bottom: -20px; font-size: 11.5px; color: var(--text-2); }
.fs-saeulen + p { margin-top: 28px; }
/* Kapitel */
.fs-kapitel { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.fs-modul { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin: 10px 0 4px; }
.fs-kapitel-zeile { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) auto; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fs-kapitel-zeile a { text-decoration: none; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-kapitel-zahl { font-size: 13px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fs-faellig { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .fs-kapitel-zeile { grid-template-columns: 1fr auto; } .fs-kapitel-zeile .fs-balken { grid-column: 1 / -1; grid-row: 2; } }
/* Kurzfassung in der Lern-Übersicht */
.fs-kurz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 10px 14px; margin-bottom: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text-2); font-size: 14px; }
.fs-kurz strong { color: var(--text); font-size: 15px; }
.fs-kurz .fs-pfeil { margin-left: auto; color: var(--accent); font-weight: 600; }

/* Darstellung (Hell / Dunkel / wie Gerät): Formularelemente folgen der Wahl */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* Meins: Reiter Gemerkt · Notizen · Meldungen */
.reiter { display: flex; gap: 4px; margin: 0 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.reiter-link { padding: 9px 14px; font-size: 14.5px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.reiter-link:hover { color: var(--text); }
.reiter-link.aktiv { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.meins-inhalt h1 { display: none; }
.meins-inhalt .app-ansicht { max-width: none; }

/* Leiste „Neue Version“ (nach einem Deploy), unten mittig, über allem */
.neu-version { position: fixed; z-index: 200; left: 16px; right: 16px; margin: 0 auto; width: fit-content; max-width: calc(100vw - 32px);
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-size: 14.5px; box-shadow: 0 6px 24px rgba(0, 0, 0, .22); }
.neu-version button { font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: 7px 12px; cursor: pointer; background: var(--bg); color: var(--text); white-space: nowrap; }
.lernsitzung .neu-version { bottom: auto; top: calc(10px + env(safe-area-inset-top)); } /* Bewertungsknöpfe unten frei lassen */
.neu-version .neu-version-zu { background: none; color: var(--bg); padding: 4px 8px; font-size: 18px; line-height: 1; }
.konto-version { margin: 6px 12px 2px; font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
