/* Akademie – baut auf familie.css auf (Navy/Gold, Noto Serif + Atkinson Hyperlegible, hell/dunkel über data-thema) */
body { padding-bottom: 1rem; }
body.breit main { max-width: 1080px; }
.kopf-link { color: inherit; text-decoration: none; }
.klein { font-size: .8rem; }
.zurueck { font-size: .9rem; color: var(--muted); text-decoration: none; }
.zurueck:hover { color: var(--stark); }
.abschnitt { font-size: 1.1rem; margin-top: .6rem; }
.gut-text { color: var(--ok); } .warn-text { color: var(--warn); } .schlecht-text { color: var(--crit); }
.knopfzeile { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.knopfzeile.zw { justify-content: space-between; }
.knopf.aus { opacity: .5; cursor: not-allowed; }
.klein-knopf { padding: .25rem .55rem; font-size: .8rem; }
label.chk { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; line-height: 1.4; }
label.chk input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--gold); }

/* Pegel */
.pegel { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pegel.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pegel.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }

/* Startseite */
.pfad-karte { text-decoration: none; color: var(--fg); }
.pfad-karte:hover { border-color: var(--gold); }
.pfad-titel { font-family: var(--f-display); font-size: 1.2rem; color: var(--stark); }

/* Lernpfad */
.pfad-kopf { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.pfad-kopf > div:first-child { min-width: 0; display: grid; gap: .25rem; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring-grund { stroke: var(--surface-2); }
.ring-bogen { stroke: var(--gold); stroke-linecap: round; }
.ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring b { font-family: var(--f-display); font-size: 1.3rem; color: var(--stark); }
.ring small { font-size: .7rem; color: var(--muted); }
.etappen { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.etappe { display: grid; grid-template-columns: 38px 1fr auto; gap: .65rem; align-items: center; text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .75rem; }
.etappe:hover { border-color: var(--gold); }
.etappe .nr { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line);
  font-family: var(--f-display); font-weight: 700; color: var(--muted); }
.etappe.fertig .nr { background: var(--gold); border-color: var(--gold); color: var(--auf-gold); }
.etappe .t { min-width: 0; display: grid; }
.etappe .t b { color: var(--stark); }
@media (max-width: 420px) { .etappe { grid-template-columns: 34px 1fr; } .etappe .pegel { grid-column: 2; justify-self: start; } }
.pruefung-karte { background: linear-gradient(135deg, #1d3157, #15233e); color: #f8f6f1; border-radius: 14px; padding: 1rem;
  display: grid; gap: .55rem; border-top: 3px solid var(--gold); }
.pruefung-karte h2 { color: #fff; }
.pruefung-karte p { margin: 0; color: #d6d9e2; }
.pruefung-karte .label { color: #e9c05a; }
.pruefung-karte .gut-text { color: #8fe0b2; }
.pruefung-karte .knopf:not(.gold) { background: transparent; color: #f8f6f1; border-color: #3a4b78; }

/* Lernkarte */
.schritte { display: flex; gap: 4px; }
.schritte i { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); }
.schritte i.an { background: var(--gold); border-color: var(--gold); }
.lernkarte h2 { font-size: 1.15rem; }
.lerntext p { margin: 0 0 .6rem; }
.lerntext ul, .lerntext ol { margin: 0 0 .6rem; padding-left: 1.25rem; display: grid; gap: .35rem; }
.lerntext table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.lerntext th, .lerntext td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.lerntext th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lerntext td.d { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tab-wrap { overflow-x: auto; margin-bottom: .6rem; }
.merk { border-left: 4px solid var(--gold); background: var(--surface-2); padding: .6rem .75rem; border-radius: 0 10px 10px 0; font-weight: 700;
  display: grid; gap: .15rem; color: var(--stark); }

/* Quiz und Prüfung */
.quiz { display: grid; gap: .8rem; }
fieldset.frage, .frage fieldset { margin: 0; min-width: 0; }
.frage fieldset { border: 0; padding: 0; display: grid; gap: .5rem; }
.frage legend { font-family: var(--f-display); font-weight: 600; color: var(--stark); font-size: 1.05rem; display: grid; gap: .2rem; padding: 0; margin-bottom: .5rem; }
.frage-text { font-size: 1.15rem !important; }
.opt { display: flex; gap: .6rem; align-items: flex-start; border: 2px solid var(--line); border-radius: 10px; padding: .6rem .7rem;
  background: var(--surface-2); cursor: pointer; font-weight: 400; }
.opt:hover { border-color: var(--gold); }
.opt:has(input:checked) { border-color: var(--gold); }
.opt input { margin-top: .2rem; accent-color: var(--gold); flex: none; }
.ergebnis { text-align: center; justify-items: center; }
.ergebnis p { margin: 0; }
.gross { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--gold-dunkel); }
.antwort { border-left: 4px solid var(--line); }
.antwort.ok { border-left-color: var(--ok); }
.antwort.nein { border-left-color: var(--crit); }
.antwort b { color: var(--stark); }
.regeln { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.pruef-leiste { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; justify-content: space-between; }
.uhr { font-weight: 700; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; }
.uhr.knapp { color: var(--crit); border-color: var(--crit); }

/* Unterschrift (regeln/_signatur.html) */
.formular { display: grid; gap: .7rem; }
.formular label { display: grid; gap: .3rem; font-weight: 700; font-size: .9rem; }
.formular label.chk { display: flex; }
.signatur-rahmen { position: relative; background: #fff; border: 1px solid var(--feld-linie); border-radius: 10px; overflow: hidden; }
.signatur-rahmen .linie { position: absolute; left: 12px; right: 12px; bottom: 34px; border-top: 1px solid #b9b2a2; font-size: .7rem;
  color: #8a8474; padding-top: 2px; pointer-events: none; }
.knopfreihe { display: flex; gap: .5rem; justify-content: space-between; }
.knopfreihe button { border-radius: 9px; padding: .6rem 1rem; font-weight: 700; cursor: pointer; border: 1px solid var(--line); }
.knopfreihe .hell { background: var(--surface-2); color: var(--fg); }
.knopfreihe .gold { background: var(--gold); color: var(--auf-gold); border-color: var(--gold); flex: 1; }

/* Urkunde (Vorschau im Browser) */
.urkunde-vorschau { background: var(--surface); border: 2px solid var(--gold); border-radius: 6px; padding: 6px; }
.urkunde-vorschau .innen { border: 1px solid var(--gold); padding: 1.4rem 1rem; text-align: center; display: grid; gap: .35rem; justify-items: center; }
.urkunde-vorschau h2 { font-size: 1.8rem; }
.urk-name { font-family: var(--f-display); font-size: 1.4rem; color: var(--stark); border-bottom: 2px solid var(--gold); padding: 0 .6rem .2rem; margin: .3rem 0; }
.siegel { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700;
  color: #15233e; background: linear-gradient(100deg, #8a6420 0%, #c69829 22%, #f6e7c1 46%, #e9c05a 56%, #c69829 76%, #8a6420 100%); }

/* Echtheit */
.echt.ok { border-left: 4px solid var(--ok); }
.echt.nein { border-left: 4px solid var(--crit); }
.werte-liste { display: grid; grid-template-columns: max-content 1fr; gap: .3rem .9rem; margin: .3rem 0 0; }
.werte-liste dt { color: var(--muted); font-size: .85rem; }
.werte-liste dd { margin: 0; font-weight: 700; color: var(--stark); min-width: 0; }
.umbruch { word-break: break-all; }

/* Übersicht */
.tabelle-rahmen { overflow-x: auto; padding: .3rem .5rem; }
.tabelle { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .9rem; }
.tabelle th, .tabelle td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabelle th { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.tabelle tr:last-child td { border-bottom: 0; }
.balken.mini { display: block; width: 90px; height: 6px; margin-top: .25rem; }
.zuweisen-zeile { display: grid; grid-template-columns: 1fr 1fr auto; gap: .6rem; align-items: end; }
@media (max-width: 620px) { .zuweisen-zeile { grid-template-columns: 1fr; } }
