@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/poppins-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/poppins-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/poppins-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/poppins-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/poppins-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/poppins-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --grund: #ECE8E2; --flaeche: #fff; --text: #17243A; --leise: #6A7383; --linie: #E8E4DD; --linie-stark: #CFC9C0;
  --akzent: #002855; --akzent-dunkel: #001B3C; --akzent-hell: #E4E9F0; --akzent-text: #fff;
  --gut: #1E7A4F; --warn: #9A6700; --fehler: #B9342B;
  --warn-grund: #FBF1DB; --fehler-grund: #FBE9E7; --gut-grund: #E3F3EA;
  --schatten: 0 1px 2px rgba(0, 27, 60, .05), 0 4px 16px rgba(0, 27, 60, .05);
  --rund: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text);
  font: 15px/1.6 "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--akzent); text-underline-offset: 2px; }
a:hover { color: var(--akzent-dunkel); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap; padding: 10px max(16px, calc((100% - 1148px) / 2));
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.kopf .marke { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em;
  color: var(--text); text-decoration: none; }
.kopf .marke svg { width: 28px; height: 28px; flex: none; }
.kopf nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.kopf nav a { padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--leise); font-weight: 500; font-size: 15px; }
.kopf nav a:hover { background: var(--grund); color: var(--text); }
.kopf nav a.aktiv { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.kopf form { margin: 0 0 0 8px; }
.kopf button.link { color: var(--leise); text-decoration: none; font-size: 15px; padding: 7px 4px; }
.kopf button.link:hover { color: var(--text); text-decoration: underline; }
.punkt { display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--fehler); vertical-align: middle; }

main { max-width: 1180px; margin: 0 auto; padding: 28px 16px 72px; }
h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; margin: 4px 0 10px; }
h2 { font-size: 18px; letter-spacing: -.01em; font-weight: 600; margin: 36px 0 10px; }
.leise, small { color: var(--leise); font-size: 14px; }
.unterzeile { margin: 0 0 20px; }

/* Schrittanzeige */
.weg { display: flex; flex-wrap: wrap; gap: 6px 4px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; font-weight: 500; color: var(--leise); }
.weg li { display: flex; align-items: center; gap: 8px; }
.weg li + li::before { content: ""; width: 22px; height: 1px; margin: 0 6px; background: var(--linie-stark); }
.weg i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 13px;
  border: 1px solid var(--linie-stark); background: var(--flaeche); }
.weg .fertig { color: var(--text); }
.weg .fertig i { background: var(--akzent-hell); border-color: var(--akzent-hell); color: var(--akzent-dunkel); }
.weg .jetzt { color: var(--akzent-dunkel); }
.weg .jetzt i { background: var(--akzent); border-color: var(--akzent); color: #fff; }

/* Flächen */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: var(--schatten);
  padding: 24px; margin: 16px 0; }
.karte > h2:first-child, .karte > input[type=hidden] + h2 { margin-top: 0; }
.karte h2 { margin-top: 30px; }
.schmal { max-width: 460px; }
.mitte { margin: 9vh auto 0; }
.anmeldung { text-align: left; }
.anmeldung .zeichen { display: block; width: 44px; height: 44px; margin-bottom: 18px; }
.anmeldung h1 { font-size: 24px; }
.anmeldung .knopf { width: 100%; margin-top: 8px; }

/* Formulare */
label { display: block; margin: 14px 0; font-weight: 500; font-size: 14px; }
label small { display: block; font-weight: 400; margin-top: 4px; line-height: 1.4; }
input:not([type=checkbox]):not([type=file]), select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 9px 11px; font: inherit; font-size: 15px; color: inherit;
  background: #fff; border: 1px solid var(--linie-stark); border-radius: 8px; transition: border-color .15s, box-shadow .15s; }
input:not([type=checkbox]):not([type=file]):hover, select:hover, textarea:hover { border-color: #A9A39A; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--akzent);
  box-shadow: 0 0 0 3px rgba(0, 40, 85, .18); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(0, 40, 85, .35); outline-offset: 2px; border-radius: 6px; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--akzent); }
.haken { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.haken input { margin-top: 3px; flex: none; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 20px; }
.pflicht { margin-left: 4px; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; color: var(--fehler);
  background: var(--fehler-grund); text-transform: uppercase; letter-spacing: .04em; }
.knopf { display: inline-block; padding: 10px 18px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  color: var(--akzent-text); background: var(--akzent); border: 1px solid var(--akzent); border-radius: 9px;
  transition: background .15s, border-color .15s; }
.knopf:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); color: var(--akzent-text); }
.knopf.zweit { color: var(--akzent-dunkel); background: #fff; border-color: var(--linie-stark); }
.knopf.zweit:hover { background: var(--akzent-hell); border-color: var(--akzent); }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--akzent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.zeile { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
form.zeile label { display: flex; align-items: center; gap: 10px; margin: 0; }
form.zeile input[type=date] { width: auto; margin-top: 0; }
.leiste { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 12px 16px; margin: 14px 0; }
.fuss { position: sticky; bottom: 0; margin: 16px -16px 0; padding: 14px 16px; background: rgba(236, 232, 226, .94);
  backdrop-filter: blur(8px); border-top: 1px solid var(--linie); }

/* Meldungen */
.meldung { padding: 11px 14px; border-radius: 10px; border: 1px solid; margin: 12px 0; font-size: 15px; }
.meldung.ok { background: var(--gut-grund); border-color: #b4dcc6; color: #0c4f33; }
.meldung.fehler { background: var(--fehler-grund); border-color: #f2bcb7; color: #7d1a14; }
.meldung.hinweis { background: var(--warn-grund); border-color: #ecd596; color: #654000; }

/* Ablagefläche */
.ablage { position: relative; display: grid; justify-items: center; gap: 6px; padding: 44px 20px; margin: 0; text-align: center; cursor: pointer;
  font-weight: 400; font-size: 15px; color: var(--leise);
  background: #FAF9F7; border: 2px dashed var(--linie-stark); border-radius: var(--rund); transition: background .15s, border-color .15s; }
.ablage:hover, .ablage.drueber, .ablage:focus-within { background: var(--akzent-hell); border-color: var(--akzent); }
.ablage svg { width: 40px; height: 40px; color: var(--akzent); margin-bottom: 6px; }
.ablage b { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.ablage u { color: var(--akzent); text-underline-offset: 2px; }
.ablage input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ablage.laedt { pointer-events: none; border-style: solid; }
.dreier { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 22px 0 0;
  counter-reset: s; }
.dreier li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 0 10px; align-content: start; font-size: 14px; color: var(--leise); }
.dreier li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--akzent-hell); color: var(--akzent-dunkel); font-weight: 600; font-size: 13px; }
.dreier b { color: var(--text); font-size: 15px; }

/* Tabellen */
.rollen { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund);
  box-shadow: var(--schatten); margin: 12px 0; }
table { border-collapse: collapse; width: 100%; background: var(--flaeche); font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--linie); }
th { font-size: 12px; color: var(--leise); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  background: #F7F5F1; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #FAF9F7; }
td form { margin: 0; }
table.klein td, table.klein th { font-size: 13px; padding: 7px 11px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
table.klein th { text-transform: none; letter-spacing: 0; }
.rechts { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zeile-fehler td, tbody tr.zeile-fehler:hover td { background: var(--fehler-grund); }
.zeile-warn td, tbody tr.zeile-warn:hover td { background: var(--warn-grund); }
.marke-fehler { color: var(--fehler); font-weight: 600; }
.marke-warn, .warntext { color: var(--warn); font-weight: 600; }
.gut { color: var(--gut); }
td .leise { margin-top: 2px; }
.pille { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: #F0EDE8; color: var(--leise); }
.pille.fertig { background: var(--gut-grund); color: var(--gut); }
.pille.läuft { background: var(--akzent-hell); color: var(--akzent-dunkel); }
.pille.abgebrochen { background: var(--fehler-grund); color: var(--fehler); }

/* Kennzahlen */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0 12px; }
.kennzahlen div { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: var(--schatten);
  padding: 16px 18px; }
.kennzahlen b { display: block; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kennzahlen span { color: var(--leise); font-size: 14px; }
.kennzahlen .schlecht { background: var(--fehler-grund); border-color: #f2bcb7; }
.kennzahlen .schlecht b { color: var(--fehler); }
.kennzahlen .warn { background: var(--warn-grund); border-color: #ecd596; }
.kennzahlen .warn b { color: var(--warn); }

details summary { cursor: pointer; }
.posten { margin: 8px 0 4px; padding-left: 18px; font-size: 14px; }
.posten li { margin: 3px 0; }
.vortext { white-space: pre-line; margin-top: 8px; padding: 8px 10px; max-width: 62ch; background: #F7F5F1; border-radius: 8px; font-size: 13px; }
.balken { height: 10px; background: #DDD8D0; border-radius: 6px; overflow: hidden; margin: 16px 0 8px; }
.balken div { height: 100%; width: 0; background: var(--akzent); border-radius: 6px; transition: width .4s; }

@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .karte { padding: 18px; }
  .weg li + li::before { width: 10px; margin: 0 2px; }
  .ablage { padding: 32px 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
