/* Konjugationstabellen (Vokabelwerk). Farben aus dem Designsystem (data-tb-design, Akzent indigo). */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text-primary);
  font-family: var(--schrift, system-ui, "Segoe UI", sans-serif); font-size: 16px; line-height: 1.55; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.kopf { padding: 26px 0 18px; }
.krumen { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 4px; }
.krumen a { color: var(--text-secondary); text-decoration: none; }
.krumen a:hover { color: var(--accent); text-decoration: underline; }
.krumen .trenner { color: var(--text-muted); }
.kennung { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
h1 { font-family: var(--kopf); font-size: clamp(34px, 6vw, 52px); line-height: 1.05; letter-spacing: -.02em; }
.vorspann { color: var(--text-secondary); font-size: 17px; margin-top: 10px; max-width: 62ch; }
.merkmale { margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bedeutung { font-size: 19px; color: var(--text-secondary); }
.marke { font-size: 12px; font-weight: 600; border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 10px; color: var(--text-muted); }
.marke.unreg { border-color: var(--accent); color: var(--accent); }
.hinweis-text { margin-top: 10px; color: var(--text-secondary); max-width: 70ch; }
.sprung { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.sprung a { font-size: 13px; text-decoration: none; color: var(--text-secondary); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; }
.sprung a:hover { border-color: var(--accent); color: var(--accent); }
main { padding-bottom: 10px; }
h2 { font-family: var(--kopf); font-size: 21px; letter-spacing: -.01em; margin: 28px 0 12px; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.zeit { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; scroll-margin-top: 80px; }
.zeit h3 { font-size: 15px; margin-bottom: 8px; }
.orig { font-weight: 400; color: var(--text-muted); font-style: italic; }
.zeit table { width: 100%; border-collapse: collapse; font-size: 15px; }
.zeit th, .zeit td { text-align: left; padding: 3px 0; vertical-align: top; }
.zeit th { color: var(--text-muted); font-weight: 400; width: 42%; padding-right: 8px; }
.zeit td { color: var(--text-primary); font-weight: 600; }
.wolke { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.wolke a { text-decoration: none; }
.wolke a:hover { text-decoration: underline; }
.hinweis.klein { font-size: 13px; color: var(--text-muted); margin-top: 22px; }
.suche { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.suche input { font: inherit; font-size: 16px; color: var(--text-primary); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 10px; padding: 11px 14px; flex: 1 1 280px; max-width: 460px; }
.suche input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.suche span { font-size: 14px; color: var(--text-muted); }
.liste { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.liste li[hidden] { display: none; }
.liste a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; text-decoration: none; color: var(--text-primary);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.liste a:hover { border-color: var(--accent); }
.liste b { font-size: 16px; }
.liste span { font-size: 13px; color: var(--text-muted); }
.liste .marke { padding: 0 8px; font-size: 11px; }
.leer { color: var(--text-muted); margin-top: 14px; }
.zeitliste { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.zeitliste li { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 14px; }
.sprachen { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 8px; }
.sprache { display: grid; gap: 4px; text-decoration: none; color: var(--text-primary); background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.sprache:hover { border-color: var(--accent); }
.sprache .kz { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--auf-akzent, #fff);
  background: var(--akzent-flaeche, var(--accent)); border-radius: 6px; padding: 2px 8px; justify-self: start; }
.sprache b { font-family: var(--kopf); font-size: 20px; }
.sprache span:last-child { font-size: 13px; color: var(--text-muted); }
.werbung { margin-top: 38px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--surface);
  border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 20px 22px; }
.werbung img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.werbung div { flex: 1 1 260px; }
.werbung h2 { font-size: 19px; margin: 0 0 4px; }
.werbung p { margin: 0; font-size: 15px; color: var(--text-secondary); }
.btn { display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 10px;
  padding: 11px 18px; border: 1px solid var(--accent); background: var(--akzent-flaeche, var(--accent)); color: var(--auf-akzent, #fff); }
footer { border-top: 1px solid var(--border); padding: 24px 0 40px; margin-top: 44px; font-size: 13px; color: var(--text-muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--text-secondary); }
@media print {
  .tb-nav, .sprung, .werbung, footer, .krumen { display: none !important; }
  body { background: #fff; color: #000; }
  .zeit { border: 1px solid #999; break-inside: avoid; }
}
/* Trainer */
.trainer-wahl { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: grid; gap: 14px; }
.trainer-wahl label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.trainer-wahl select { font: inherit; font-size: 16px; color: var(--text-primary); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; max-width: 360px; }
.trainer-wahl fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.trainer-wahl legend { font-size: 14px; font-weight: 600; padding: 0 6px; }
.zeitwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 14px; }
.zeitwahl label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.zeitwahl input { width: 17px; height: 17px; accent-color: var(--accent); }
.trainer-wahl .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.btn.hell { background: transparent; color: var(--accent); cursor: pointer; font: inherit; font-weight: 600; }
.trainer-karte { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: grid; gap: 14px; }
.trainer-karte[hidden], .trainer-wahl[hidden] { display: none; }
.trainer-karte .stand { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }
.balken { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.balken div { height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
.frage-kopf { text-align: center; color: var(--text-muted); font-size: 14px; }
.frage { text-align: center; font-family: var(--kopf); font-size: clamp(26px, 5vw, 36px); line-height: 1.2; }
#antwort { font: inherit; font-size: 20px; text-align: center; width: 100%; color: var(--text-primary); background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px; }
#antwort:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.urteil { min-height: 48px; text-align: center; border-radius: 10px; padding: 12px; }
.urteil.gut { background: color-mix(in srgb, #2e7d32 14%, transparent); }
.urteil.fast { background: color-mix(in srgb, #b26a00 16%, transparent); }
.urteil.falsch { background: color-mix(in srgb, #c62828 14%, transparent); }
.knoepfe { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.knoepfe .btn { cursor: pointer; font: inherit; font-weight: 600; }
.ergebnis { font-family: var(--kopf); font-size: 26px; text-align: center; }
.wiederholen { list-style: none; display: grid; gap: 4px; font-size: 15px; }
.fehler { color: #b3261e; font-size: 14px; }
html[data-thema="dunkel"] .fehler { color: #f2b8b5; }
.ueben { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); border-radius: 999px; padding: 4px 12px; }
.trainer-link { margin-top: 14px; }
