:root {
  --bg: #f6f7f9; --flaeche: #ffffff; --text: #1d2229; --leise: #5c6470; --linie: #dde2e8;
  --akzent: #0b5fa5; --akzent-hell: #e3eefb; --rot: #b3261e; --rot-hell: #fbe9e7; --gruen: #1b7f4b; --gruen-hell: #e4f5eb;
  --gelb: #8a6d00; --gelb-hell: #fff5cc; --code: #eef1f4;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171b; --flaeche: #1d2126; --text: #e6e9ed; --leise: #9aa3ad; --linie: #2e353d;
    --akzent: #6fb1ff; --akzent-hell: #1c2b3d; --rot: #ff8a80; --rot-hell: #3a1f1d; --gruen: #6fd39a; --gruen-hell: #1c3327;
    --gelb: #ffd666; --gelb-hell: #3a3210; --code: #262c33; }
}
* { box-sizing: border-box; }
html { color-scheme: light dark; }
body { margin: 0; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
.kopf { display: flex; align-items: center; gap: 1.5rem; padding: 0.6rem 1.25rem; background: var(--flaeche); border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.marke { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.marke span { color: var(--akzent); }
.hauptnav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.hauptnav a { padding: 0.35rem 0.7rem; border-radius: 6px; color: var(--text); }
.hauptnav a.aktiv, .hauptnav a:hover { background: var(--akzent-hell); text-decoration: none; }
.zahl { display: inline-block; min-width: 1.4em; padding: 0 0.4em; margin-left: 0.3em; border-radius: 999px; background: var(--rot); color: #fff; font-size: 0.8em; text-align: center; }
.abmelden { margin-left: auto; display: flex; gap: 0.6rem; align-items: center; color: var(--leise); }
.rahmen { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 100px); }
.seitenleiste { padding: 1rem; border-right: 1px solid var(--linie); background: var(--flaeche); }
.sl-titel { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--leise); margin-bottom: 0.5rem; }
.dokliste { list-style: none; margin: 0; padding: 0; counter-reset: dok; }
.dokliste li { counter-increment: dok; }
.dokliste a { display: block; padding: 0.3rem 0.4rem; border-radius: 5px; color: var(--text); font-size: 0.92rem; }
.dokliste a::before { content: counter(dok, decimal-leading-zero) " "; color: var(--leise); font-variant-numeric: tabular-nums; }
.dokliste a.aktiv, .dokliste a:hover { background: var(--akzent-hell); text-decoration: none; }
.inhalt { padding: 1.25rem 2rem 3rem; max-width: 1040px; }
.fuss { padding: 0.75rem 1.25rem; color: var(--leise); font-size: 0.8rem; border-top: 1px solid var(--linie); }
h1 { font-size: 1.6rem; margin: 0.2rem 0 0.8rem; }
h2 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }
h3 { font-size: 1.02rem; margin: 1.2rem 0 0.4rem; }
.leise { color: var(--leise); }
.klein { font-size: 0.85rem; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.kachel { display: block; padding: 0.9rem 1rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; color: var(--text); }
.kachel:hover { border-color: var(--akzent); text-decoration: none; }
.k-zahl { font-size: 1.8rem; font-weight: 700; }
.k-zahl span { font-size: 0.95rem; color: var(--leise); font-weight: 400; margin-left: 0.3rem; }
.k-text { color: var(--leise); font-size: 0.9rem; }
.liste { padding-left: 1.2rem; }
.tag { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--akzent-hell); color: var(--akzent); font-size: 0.78rem; white-space: nowrap; }
.tag.rot { background: var(--rot-hell); color: var(--rot); }
.tag.gruen { background: var(--gruen-hell); color: var(--gruen); }
.tag.gelb { background: var(--gelb-hell); color: var(--gelb); }
.punkt { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 0.9rem 1.1rem; margin: 0.8rem 0; }
.punkt.blocker:not(.beantwortet) { border-left: 4px solid var(--rot); }
.punkt.beantwortet { border-left: 4px solid var(--gruen); }
.punkt header { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.punkt header h2 { margin: 0; font-size: 1.05rem; flex: 1 1 auto; }
.kennung { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--leise); font-size: 0.85rem; }
.punkt-text p { margin: 0.4rem 0; }
.antwort { margin: 0.5rem 0 0; padding: 0.5rem 0.7rem; background: var(--gruen-hell); border-radius: 6px; }
.wann { color: var(--leise); font-size: 0.8rem; margin-right: 0.3rem; font-variant-numeric: tabular-nums; }
.formular { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.5rem 0; }
.klein-form { margin-top: 0.7rem; }
textarea, input, select { font: inherit; padding: 0.45rem 0.6rem; border: 1px solid var(--linie); border-radius: 6px; background: var(--bg); color: var(--text); width: 100%; }
button { font: inherit; padding: 0.45rem 0.9rem; border: 0; border-radius: 6px; background: var(--akzent); color: #fff; cursor: pointer; align-self: flex-start; }
.abmelden button { background: transparent; color: var(--leise); border: 1px solid var(--linie); }
.verlauf { list-style: none; padding: 0; }
.verlauf li { padding: 0.35rem 0; border-bottom: 1px solid var(--linie); }
.tabelle { width: 100%; border-collapse: collapse; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; }
.tabelle th, .tabelle td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.tabelle th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--leise); }
.r { text-align: right; }
.markdown { line-height: 1.6; }
.markdown table { border-collapse: collapse; margin: 0.8rem 0; display: block; overflow-x: auto; max-width: 100%; }
.markdown th, .markdown td { border: 1px solid var(--linie); padding: 0.3rem 0.55rem; vertical-align: top; font-size: 0.92rem; }
.markdown th { background: var(--code); }
.markdown code { background: var(--code); padding: 0.05rem 0.3rem; border-radius: 4px; font-size: 0.9em; }
.markdown pre { background: var(--code); padding: 0.7rem 0.9rem; border-radius: 8px; overflow-x: auto; }
.markdown pre code { background: none; padding: 0; }
.markdown img { max-width: 100%; height: auto; border: 1px solid var(--linie); border-radius: 6px; background: #fff; }
.markdown blockquote { margin: 0.8rem 0; padding: 0.4rem 0.9rem; border-left: 4px solid var(--akzent); background: var(--akzent-hell); }
.toc { margin: 0.5rem 0 1rem; padding: 0.5rem 0.9rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; }
.toc ul { margin: 0.3rem 0; padding-left: 1.1rem; }
.stand { padding: 0.8rem 1.1rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; }
.login-seite { display: grid; place-items: center; min-height: 100vh; }
.login-karte { width: min(420px, 92vw); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 1.5rem 1.6rem; }
.login-karte form { display: flex; flex-direction: column; gap: 0.7rem; }
.login-karte label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }
.fehler { color: var(--rot); }
@media (max-width: 780px) {
  .rahmen { grid-template-columns: 1fr; }
  .seitenleiste { border-right: 0; border-bottom: 1px solid var(--linie); }
  .inhalt { padding: 1rem; }
}
