/* Beiderhase Kartei – gemeinsame Gestaltung, Werte 1:1 aus den Entwürfen (entwurf/*.dc.html).
   Module ergänzen eigenes CSS in static/css/<modul>.css (im Block „kopf“ einbinden). */
@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url(/static/fonts/inter-400.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-weight:500;font-display:swap;src:url(/static/fonts/inter-500.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-weight:600;font-display:swap;src:url(/static/fonts/inter-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-weight:700;font-display:swap;src:url(/static/fonts/inter-700.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url(/static/fonts/inter-ext-400.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,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:Inter;font-weight:500;font-display:swap;src:url(/static/fonts/inter-ext-500.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,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:Inter;font-weight:600;font-display:swap;src:url(/static/fonts/inter-ext-600.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,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:Inter;font-weight:700;font-display:swap;src:url(/static/fonts/inter-ext-700.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

*{box-sizing:border-box}
body{margin:0;background:#f4f5f7;font-family:Inter,system-ui,sans-serif;color:#1a1d21;font-size:14px}
a{color:#1f4e8c}a:hover{color:#163a69}
h1,h2,h3{margin:0}
.unsichtbar{position:absolute;left:-9999px}
.inline{display:inline}
.gedimmt{color:#555c66}
.rechts{text-align:right}
.zahl{font-variant-numeric:tabular-nums}

/* ---------- Rahmen + feste Leiste links ---------- */
.rahmen{display:flex;flex-wrap:wrap;min-height:100vh;background:#f4f5f7}
.leiste{flex:0 0 248px;background:#1a1d21;color:#fff;display:flex;flex-direction:column;gap:2px;padding:18px 12px;
  position:sticky;top:0;height:100vh;overflow-y:auto}
.leiste-name{font-weight:700;font-size:18px;padding:4px 12px 14px}
.leiste-name span{font-weight:400;color:#c9ced6}
.leiste-suche{width:100%;height:38px;margin:0 0 10px;border-radius:6px;border:1px solid #4a515b;background:#2a2f36;color:#fff;
  padding:0 12px;font-size:14px;font-family:inherit}
.leiste-suche::placeholder{color:#9aa1ab}
.leiste-link{display:flex;justify-content:space-between;align-items:center;min-height:40px;padding:0 12px;border-radius:6px;
  color:#e4e7eb;text-decoration:none;font-size:14px}
.leiste-link:hover{background:#2a2f36;color:#fff}
.leiste-link.aktiv{color:#fff;background:#3a4048;font-weight:600}
.leiste-zahl{background:#3a4048;color:#fff;font-size:12px;padding:1px 8px;border-radius:99px;font-weight:400}
.leiste-link.aktiv .leiste-zahl{background:#1f4e8c}
.leiste-kopf{padding:16px 12px 6px;font-size:11px;font-weight:600;color:#9aa1ab;text-transform:uppercase;letter-spacing:.6px}
.leiste-platz{flex:1;min-height:24px}
.leiste-benutzer{padding:12px;font-size:13px;color:#c9ced6;border-top:1px solid #3a4048}
.leiste-benutzer .link-knopf{color:#c9ced6}
.inhalt{flex:999 1 560px;min-width:0;padding:16px 24px 24px;display:flex;flex-direction:column;gap:16px}
.inhalt-start{padding:32px;max-width:1360px;margin:0 auto;gap:28px;width:100%}

/* ---------- Karten, Kopfzeilen ---------- */
.karte{background:#fff;border:1px solid #dde1e6;border-radius:10px}
.karte-kopf{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #e8ebef}
.karte-kopf h1{font-size:18px;font-weight:700}
.karte-kopf h1 .anzahl{font-weight:400;color:#555c66}
.karte-kopf h2{font-size:15px;font-weight:700}
.karte-innen{padding:16px 20px}
.karte-fuss{padding:10px 16px;font-size:12px;color:#555c66;border-top:1px solid #eef0f3}
.platz{flex:1}
.seitentitel{font-size:26px;font-weight:700}

/* ---------- Knöpfe ---------- */
.knopf{height:36px;padding:0 12px;border:1px solid #c4c9d0;background:#fff;border-radius:6px;font-size:13px;font-family:inherit;
  cursor:pointer;color:#1a1d21;text-decoration:none;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.knopf:hover{background:#f7f8fa}
.knopf:disabled,.knopf[aria-disabled=true]{opacity:.5;cursor:not-allowed}
.knopf-haupt{border:0;background:#1f4e8c;color:#fff;font-weight:600}
.knopf-haupt:hover{background:#163a69;color:#fff}
.knopf-gefahr{border-color:#f1b0aa;color:#a3231a}
.knopf-gefahr:hover{background:#fdecea}
.knopf-gross{height:44px;padding:0 16px;font-size:14px}
.knopf-klein{height:34px}
.knopf-zeile{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.link-knopf{background:none;border:0;padding:0;font:inherit;color:#1f4e8c;text-decoration:underline;cursor:pointer}
.zurueck{height:36px;padding:0 14px;border:1px solid #c4c9d0;background:#fff;border-radius:6px;font-size:14px;color:#1a1d21;
  text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.brotkrumen{font-size:13px;color:#555c66}

/* Filter-Pillen (Statusfilter) */
.filterleiste{display:flex;flex-wrap:wrap;gap:8px;padding:10px 16px;border-bottom:1px solid #eef0f3}
.filterpille{height:32px;padding:0 12px;border:1px solid #c4c9d0;background:#fff;border-radius:99px;font-size:13px;
  font-family:inherit;cursor:pointer;color:#1a1d21;text-decoration:none;display:inline-flex;align-items:center}
.filterpille.aktiv{border-color:#1f4e8c;background:#eaf0fa;color:#1f4e8c;font-weight:600}

/* ---------- Eingabefelder ---------- */
.feld{height:36px;border:1px solid #c4c9d0;border-radius:6px;padding:0 10px;font-size:14px;font-family:inherit;background:#fff;color:#1a1d21}
textarea.feld{height:auto;min-height:80px;padding:8px 10px}
.feld-breit{flex:10 1 280px}
.feld-zahl{text-align:right;width:96px}
.formular{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px 20px}
.formular label,.feldgruppe label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#555c66;font-weight:500}
.formular .ganz{grid-column:1/-1}
.feldgruppe{display:flex;flex-direction:column;gap:10px}
.pflicht::after{content:" *";color:#a3231a}

/* ---------- Tabellen ---------- */
.tabelle-huelle{overflow-x:auto}
.tabelle{width:100%;border-collapse:collapse;font-size:14px}
.tabelle thead tr.kopf{text-align:left;color:#3d434b;font-size:12px;text-transform:uppercase;letter-spacing:.4px;background:#f7f8fa}
.tabelle th{padding:8px;font-weight:600;text-align:left}
.tabelle th:first-child,.tabelle td:first-child{padding-left:16px}
.tabelle th:last-child,.tabelle td:last-child{padding-right:16px}
.tabelle th.rechts,.tabelle td.rechts{text-align:right}
.tabelle th a.sortieren{color:inherit;text-decoration:none}
.tabelle tr.filter th{padding:4px 8px 6px;font-weight:400;text-transform:none;letter-spacing:0}
.tabelle tr.filter th:first-child{padding-left:16px}
.tabelle tr.filter input{width:100%;min-width:50px;height:30px;border:1px solid #d5d9df;border-radius:5px;padding:0 8px;
  font-size:12px;font-weight:400;font-family:inherit}
.tabelle tbody tr{border-top:1px solid #eef0f3}
.tabelle td{padding:10px 8px;vertical-align:middle}
.tabelle td.fett{font-weight:600}
.tabelle tbody tr.waehlbar{cursor:pointer}
.tabelle tbody tr.waehlbar:hover{background:#f7f9fc}
.tabelle tbody tr.gewaehlt{background:#eaf0fa}
.tabelle-eng{font-size:13px}
.tabelle-eng td{padding:8px}
.tabelle-eng thead tr.kopf{text-transform:none;font-size:13px;letter-spacing:0}
.tabelle .summe td{border-top:2px solid #c4c9d0;font-weight:700;padding-top:10px;padding-bottom:10px}
.leer{padding:24px 16px;color:#555c66;text-align:center}

/* ---------- Status-Pillen (Farbe + Text) ---------- */
.pill{padding:2px 8px;border-radius:99px;font-size:12px;font-weight:600;white-space:nowrap;display:inline-block}
.pill-gross{padding:6px 12px;font-size:13px}
.pill-blau{background:#e8eefb;color:#1f4e8c}
.pill-orange{background:#fff4e5;color:#8a4300}
.pill-gruen{background:#e3f4e8;color:#1a6b3a}
.pill-rot{background:#fdecea;color:#a3231a}
.pill-grau{background:#f0f1f3;color:#3d434b}
.warnung-text{color:#8a4300;font-size:12px}

/* ---------- Hinweise ---------- */
.hinweis{padding:10px 14px;border-radius:8px;font-size:14px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.hinweis-ok{background:#e3f4e8;color:#1a6b3a;border:1px solid #b9e0c5}
.hinweis-fehler{background:#fdecea;color:#a3231a;border:1px solid #f1b0aa}
.hinweis-info{background:#eaf0fa;color:#1f4e8c;border:1px solid #c9d6ee}
#meldungen:empty{display:none}

/* ---------- Startseite ---------- */
.kacheln{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.kachel{background:#fff;border:1px solid #dde1e6;border-radius:10px;padding:20px;text-decoration:none;color:#1a1d21;
  display:flex;flex-direction:column;gap:6px}
.kachel:hover{border-color:#1f4e8c;color:#1a1d21}
.kachel-titel{font-size:13px;color:#555c66;font-weight:500}
.kachel-zahl{font-size:36px;font-weight:700}
.kachel-link{font-size:13px;color:#1f4e8c}
.kachel-faellig{background:#fff4e5;border-color:#f0c98f}
.kachel-faellig .kachel-titel,.kachel-faellig .kachel-link{color:#8a4300;font-weight:600}
.kachel-faellig .kachel-link{font-weight:400}
.kachel-ueberfaellig{background:#fdecea;border-color:#f1b0aa}
.kachel-ueberfaellig .kachel-titel,.kachel-ueberfaellig .kachel-link{color:#a3231a;font-weight:600}
.kachel-ueberfaellig .kachel-link{font-weight:400}
.start-kopf{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px}
.start-kopf .info{font-size:14px;color:#555c66}
.tabelle-start thead tr.kopf{background:transparent;color:#555c66}
.tabelle-start td{padding:12px 8px}
.tabelle-start td:first-child,.tabelle-start th:first-child{padding-left:20px}
.tabelle-start td:last-child,.tabelle-start th:last-child{padding-right:20px}

/* ---------- Anmeldung ---------- */
.anmelde-seite{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.anmelde-karte{background:#fff;border:1px solid #dde1e6;border-radius:10px;padding:28px;width:100%;max-width:380px;
  display:flex;flex-direction:column;gap:16px}
.anmelde-karte .leiste-name{padding:0;color:#1a1d21;font-size:22px}
.anmelde-karte .leiste-name span{color:#555c66}
.anmelde-karte .feld{height:44px;width:100%}
.anmelde-karte .knopf{height:44px;justify-content:center;font-size:15px}

/* ---------- Reiter ---------- */
.reiter{display:flex;flex-wrap:wrap;gap:2px;border-bottom:1px solid #dde1e6}
.reiter a{padding:10px 14px;font-size:14px;color:#555c66;text-decoration:none;border-bottom:2px solid transparent}
.reiter a.aktiv{font-weight:600;color:#1a1d21;border-bottom-color:#1f4e8c}

/* ---------- Dialoge ---------- */
dialog{border:1px solid #dde1e6;border-radius:10px;padding:0;max-width:560px;width:calc(100% - 32px);color:#1a1d21}
dialog::backdrop{background:rgba(20,30,50,.35)}
dialog .dialog-kopf{padding:14px 18px;border-bottom:1px solid #e8ebef;font-weight:700;font-size:16px}
dialog .dialog-innen{padding:16px 18px;display:flex;flex-direction:column;gap:12px}
dialog .dialog-fuss{padding:12px 18px;border-top:1px solid #e8ebef;display:flex;justify-content:flex-end;gap:8px}

@media (max-width:900px){
  .leiste{position:static;height:auto;flex:1 1 100%}
  .inhalt{padding:12px}
}
@media print{
  .leiste,#meldungen,.knopf-zeile{display:none}
}
