/* DARUMonitor: Aufbau wie DARUFleet und DARULager (dunkler Kopf, Menü links dunkelblau, helle Fläche, weisse Kacheln), Programmfarbe Violett.
   Die Anmeldeseite bleibt dunkel wie in den anderen Programmen (gemeinsame daru-login.css). */
@font-face { font-family: "Metrophobic"; src: url(metrophobic.woff2) format("woff2"); font-display: swap; }
.dl.generator.zeit { --dl-farbe: #a48cf5; }
.dl.zeit button[type=submit] { color: #1b1240; }
body.dunkel { margin: 0; background: #36454c; color: #e6eef0; font: 16px/1.5 "Noto Sans", "Segoe UI", Arial, sans-serif; }

body.app {
  --bg: #f3f5f8; --panel: #f5f7fa; --panel2: #e9eef4; --line: #d9e0e7; --fg: #1d2733; --fg2: #3d4a58; --fg3: #66737f;
  --akzent: #6a4ce2; --akzent-dunkel: #4f35c2; --akzent-hell: #efebfd; --akzent-text: #fff;
  --nacht: #141a4a; --nacht2: #232a66; --nacht-linie: #333c80;
  /* Status (fest): gut, Warnung, ernst, kritisch – immer mit Symbol und Text */
  --gut: #0aac23; --warn: #fbb315; --ernst: #f18a59; --kritisch: #dc3c3d;
  --gut-text: #17703a; --warn-text: #7a5200; --ernst-text: #9c4317; --kritisch-text: #a82324;
  --gut-hell: #e2f5e6; --warn-hell: #fdf1d3; --ernst-hell: #fde6da; --kritisch-hell: #fbe1e1;
  /* Kategorien (fest, in dieser Reihenfolge) */
  --kat-a: #257de0; --kat-b: #f47230; --kat-c: #00b894;
  margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 "Noto Sans", "Segoe UI", Arial, sans-serif; min-height: 100vh; display: flex; flex-direction: column; color-scheme: light;
}
body.app * { box-sizing: border-box; }
[hidden] { display: none !important; }
body.app h1, body.app h2, body.app h3 { font-family: "Metrophobic", "Segoe UI", Arial, sans-serif; font-weight: 400; letter-spacing: .02em; margin: 0; text-wrap: balance; }
body.app h2 { font-size: 26px; } body.app h3 { font-size: 18.5px; }
body.app a { color: var(--akzent-dunkel); }
body.app :focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf */
.kopf { background: #2d3a40; color: #e6eef0; position: sticky; top: 0; z-index: 25; }
.kopf .in { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 11px 20px; }
.marke { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 25px "Metrophobic", "Segoe UI", Arial, sans-serif; letter-spacing: .03em; }
.marke img { width: 32px; height: 32px; }
.marke i { font-style: normal; color: #b6a4ff; }
.wer { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: #bac6c8; text-align: right; line-height: 1.3; }
.wer b { display: block; color: #e6eef0; font-weight: 600; font-size: 14px; }
#abmelden { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; background: transparent; color: #e6eef0; border: 1px solid #587077; cursor: pointer; }
#abmelden:hover { background: #42545c; }
#abmelden svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Rahmen: Menü links, Inhalt rechts */
.rahmen { flex: 1; display: grid; grid-template-columns: 228px minmax(0, 1fr); align-items: start; }
.inhalt { min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - 56px); }
main#seite { flex: 1; padding: 20px 24px 34px; outline: none; display: flex; flex-direction: column; gap: 18px; }
.fuss { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 10px 24px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg3); }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: var(--nacht); position: sticky; top: 56px; min-height: calc(100vh - 56px); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #c9d1f5; text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--nacht2); color: #fff; }
.nav a[aria-current=page] { background: var(--akzent); color: #fff; font-weight: 600; }
.nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav .trenner { height: 1px; background: var(--nacht-linie); margin: 8px 4px; }
.nav .titel { color: #8d96cf; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px 2px; }
.nav .zahl { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #343c8c; color: #e3e8ff; font-size: 12px; font-weight: 600; text-align: center; line-height: 20px; }
.nav .zahl.rot { background: var(--kritisch); color: #fff; }
.nav :focus-visible { outline-color: #fff; }
.testband { background: repeating-linear-gradient(-45deg, #f1edff, #f1edff 14px, #e7e0ff 14px, #e7e0ff 28px); border-bottom: 1px solid #cfc3ff; color: #3b2a8a; font-size: 13.5px; padding: 7px 24px; }
@media (max-width: 860px) {
  .rahmen { grid-template-columns: 1fr; }
  .nav { flex-direction: row; overflow-x: auto; position: sticky; top: 56px; z-index: 20; min-height: 0; padding: 8px 10px; scrollbar-width: none; }
  .nav a { padding: 8px 10px; } .nav .trenner, .nav .titel { display: none; }
  .inhalt { min-height: 0; } main#seite { padding: 14px 12px 30px; } .kopf .in { padding: 10px 12px; } .wer span.wer-text { display: none; }
}

/* Bausteine */
.seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; }
.seitenkopf p { margin: 4px 0 0; color: var(--fg3); font-size: 14px; }
.knopf { font: 600 14.5px "Noto Sans", Arial, sans-serif; padding: 9px 15px; background: var(--akzent); color: var(--akzent-text); border: 1px solid var(--akzent); border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.knopf:hover { background: var(--akzent-dunkel); }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.knopf.zweit { background: #fff; color: var(--fg); border-color: var(--line); }
.knopf.zweit:hover { background: var(--panel); }
.knopf.rot { background: #fff; color: var(--kritisch-text); border-color: var(--kritisch); }
.knopf.klein { font-size: 13px; padding: 5px 10px; }
.knopf svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kachel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kachel-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.kachel-kopf h3 { display: flex; align-items: center; gap: 8px; }
.kachel-kopf .hinweis { font-size: 13px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.raster.zwei { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.raster > .breit { grid-column: 1 / -1; }
@media (max-width: 520px) { .raster, .raster.zwei { grid-template-columns: 1fr; } }
.hinweis { color: var(--fg3); font-size: 13.5px; margin: 0; }
.leer { padding: 22px 10px; text-align: center; color: var(--fg3); font-size: 14.5px; }
.hinweisbox { padding: 11px 14px; background: var(--panel); border-left: 4px solid var(--akzent); border-radius: 8px; font-size: 14px; color: var(--fg2); display: flex; gap: 10px; align-items: flex-start; }
.hinweisbox > svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.hinweisbox b { color: var(--fg); }
.hinweisbox.gut { border-left-color: var(--gut); background: var(--gut-hell); } .hinweisbox.warn { border-left-color: var(--warn); background: var(--warn-hell); }
.hinweisbox.ernst { border-left-color: var(--ernst); background: var(--ernst-hell); } .hinweisbox.kritisch { border-left-color: var(--kritisch); background: var(--kritisch-hell); }
.hinweisbox ul { margin: 4px 0 0; padding-left: 18px; }
.fehler { color: var(--kritisch-text); font-size: 14px; margin: 0; } .fehler:empty { display: none; }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1800px) { .kpis { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px 12px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; box-shadow: inset 0 3px 0 var(--k, transparent); min-width: 0; }
a.kpi:hover { background: var(--panel); }
.kpi .t { font-size: 13px; color: var(--fg3); display: flex; align-items: center; gap: 6px; }
.kpi .t svg { width: 15px; height: 15px; flex: none; }
.kpi b { font: 700 28px/1.2 "Noto Sans", Arial, sans-serif; color: var(--fg); font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12.5px; color: var(--fg3); }

/* Status: Farbe + Symbol + Text */
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 2px 9px 2px 7px; border-radius: 10px; white-space: nowrap; background: var(--panel2); color: var(--fg2); }
.st svg { width: 14px; height: 14px; flex: none; }
.st.gut { background: var(--gut-hell); color: var(--gut-text); } .st.warn { background: var(--warn-hell); color: var(--warn-text); }
.st.ernst { background: var(--ernst-hell); color: var(--ernst-text); } .st.kritisch { background: var(--kritisch-hell); color: var(--kritisch-text); }
.st.neutral { background: var(--panel2); color: var(--fg3); }
.ic-gut { color: var(--gut); } .ic-warn { color: #c98a00; } .ic-ernst { color: var(--ernst); } .ic-kritisch { color: var(--kritisch); }
svg.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:where(svg.ic) { width: 1em; height: 1em; vertical-align: -0.15em; flex: none; }
.kat { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12.5px; white-space: nowrap; color: var(--fg); }
.kat::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--kf, var(--line)); }
.kat.A { --kf: var(--kat-a); } .kat.B { --kf: var(--kat-b); } .kat.C { --kf: var(--kat-c); }
.firma { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 0 6px; border-left: 3px solid var(--f, var(--line)); background: var(--panel2); border-radius: 3px; color: var(--fg2); white-space: nowrap; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 10px; background: var(--panel2); color: var(--fg2); white-space: nowrap; }
.pill.akzent { background: var(--akzent-hell); color: var(--akzent-dunkel); }

/* Filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.suchfeld, .wahl, .feld input, .feld select, .feld textarea { font: 14.5px "Noto Sans", Arial, sans-serif; color: var(--fg); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 0; }
.suchfeld { flex: 1 1 220px; }
.suchfeld:focus, .wahl:focus, .feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { font: 13.5px "Noto Sans", Arial, sans-serif; padding: 5px 11px; background: #fff; color: var(--fg2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chips button:hover { background: var(--panel); }
.chips button[aria-pressed=true] { background: var(--akzent); border-color: var(--akzent); color: #fff; font-weight: 600; }
.chips button .n { font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; }
.chips button svg { width: 14px; height: 14px; }
.jahrwahl { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--fg3); }

/* Formulare */
.feld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--fg3); min-width: 0; }
.feld input, .feld select { width: 100%; } .feld textarea { width: 100%; min-height: 70px; resize: vertical; }
.feld input:disabled, .feld select:disabled, .feld textarea:disabled, .regel input:disabled, .regel select:disabled { background: var(--panel); color: var(--fg2); cursor: default; }
.feld small { color: var(--fg3); font-size: 12px; }
.formular { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 14px; }
.schalter { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg2); cursor: pointer; }
.schalter input { accent-color: var(--akzent); width: 17px; height: 17px; flex: none; }

/* Tabellen */
.tabelle { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12.5px; color: var(--fg3); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 600; vertical-align: bottom; }
th[data-sort] { cursor: pointer; user-select: none; } th[data-sort]:hover { color: var(--fg); }
th[aria-sort=ascending]::after { content: " ▲"; font-size: 9px; } th[aria-sort=descending]::after { content: " ▼"; font-size: 9px; }
td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
th.z, td.z { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.klick { cursor: pointer; } tr.klick:hover td { background: var(--panel); }
td .unter, .unter { display: block; color: var(--fg3); font-size: 12.5px; }
td.name a { color: var(--fg); text-decoration: none; font-weight: 600; } td.name a:hover { color: var(--akzent-dunkel); }
.nw { white-space: nowrap; }
.mehr { text-align: center; padding-top: 10px; }
.zusammen { font-size: 13px; color: var(--fg3); display: flex; gap: 6px 18px; flex-wrap: wrap; }
.zusammen b { color: var(--fg); font-variant-numeric: tabular-nums; }

/* Listen in Kacheln */
.dliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dliste li { display: flex; align-items: center; gap: 6px 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.dliste li:last-child { border-bottom: 0; }
.dliste a { color: var(--fg); text-decoration: none; } .dliste a:hover { color: var(--akzent-dunkel); }
.dliste .rechts { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.dliste .zahl { font-size: 13px; color: var(--fg2); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 96px; text-align: right; }

/* Messbalken in Tabellen und Listen: Stand gegenüber Grenze, Hochrechnung als dünner Strich */
.messer { position: relative; width: 120px; height: 10px; background: var(--panel2); border-radius: 5px; overflow: visible; flex: none; }
.messer i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--mf, var(--akzent)); max-width: 100%; }
.messer .prog { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--fg2); border-radius: 1px; }
.messer .grenzlinie { position: absolute; top: -4px; bottom: -4px; right: 0; width: 2px; background: var(--fg); opacity: .5; }
.messer.lang { width: 100%; }
.mzeile { display: flex; align-items: center; gap: 10px; }
.mzeile .zahl { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--fg2); white-space: nowrap; }

/* Diagramme */
.dia { position: relative; min-width: 0; }
.dia svg { display: block; width: 100%; height: auto; overflow: visible; }
.dia text { font: 12px "Noto Sans", Arial, sans-serif; fill: var(--fg3); }
.dia text.wert { fill: var(--fg); font-weight: 600; }
.dia text.weiss { fill: #fff; font-weight: 700; }
.dia .gitter line { stroke: var(--line); stroke-width: 1; }
.dia .achse { stroke: #b8c3ce; stroke-width: 1; }
.dia .ziel { stroke-width: 44; stroke: transparent; fill: transparent; cursor: default; }
.dia .hover-band { fill: var(--panel2); opacity: 0; pointer-events: none; }
.dia .aktiv .hover-band { opacity: .7; }
.legende { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--fg2); align-items: center; }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 12px; height: 12px; border-radius: 3px; background: var(--lf); flex: none; }
.legende i.linie { height: 3px; border-radius: 2px; width: 18px; }
.legende i.strich { height: 0; border-top: 2px dashed var(--lf); background: none; width: 18px; border-radius: 0; }
.legende svg { width: 14px; height: 14px; }
.dia-fuss { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tabellenknopf { background: none; border: 0; color: var(--fg3); font: 12.5px "Noto Sans", Arial, sans-serif; cursor: pointer; padding: 2px 0; text-decoration: underline; text-underline-offset: 2px; }
.tabellenknopf:hover { color: var(--fg); }
.dia-tabelle table { font-size: 13px; } .dia-tabelle td, .dia-tabelle th { padding: 5px 10px 5px 0; }
#tipp { position: fixed; z-index: 200; pointer-events: none; background: #1d2733; color: #fff; padding: 8px 11px; border-radius: 8px; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 30px -8px rgba(20, 30, 40, .45); max-width: 300px; opacity: 0; transition: opacity .08s; }
#tipp.da { opacity: 1; }
#tipp b { font-weight: 700; } #tipp .z { display: flex; justify-content: space-between; gap: 14px; } #tipp .z span:first-child { display: inline-flex; align-items: center; gap: 6px; }
#tipp i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--lf); }
#tipp small { color: #b9c3cc; display: block; }

/* Statusbalken (Anteile pro Kategorie) */
.sbalken { display: grid; grid-template-columns: 74px minmax(0, 1fr) 52px; gap: 8px 10px; align-items: center; }
.sbalken .lab { font-size: 13.5px; color: var(--fg2); }
.sbalken .bar { display: flex; height: 22px; gap: 2px; min-width: 0; }
.sbalken .bar span { display: flex; align-items: center; justify-content: center; min-width: 0; font-size: 12px; font-weight: 700; color: #1d2733; overflow: hidden; white-space: nowrap; cursor: default; }
.sbalken .bar span:first-child { border-radius: 4px 0 0 4px; } .sbalken .bar span:last-child { border-radius: 0 4px 4px 0; } .sbalken .bar span:only-child { border-radius: 4px; }
.sbalken .bar span.gut { background: var(--gut); color: #fff; } .sbalken .bar span.warn { background: var(--warn); } .sbalken .bar span.ernst { background: var(--ernst); }
.sbalken .bar span.kritisch { background: var(--kritisch); color: #fff; } .sbalken .bar span.neutral { background: #c5ced8; }
.sbalken .bar.leer-bar { background: var(--panel2); border-radius: 4px; }
.sbalken .tot { font-size: 13px; color: var(--fg3); text-align: right; font-variant-numeric: tabular-nums; }

/* Kalender (Jahr in Wochen: Spalten = Wochen, Zeilen = Mo bis So) */
.kal { overflow-x: auto; padding-bottom: 4px; }
.kal-gitter { display: grid; grid-auto-flow: column; grid-template-rows: 16px repeat(7, 15px); grid-auto-columns: 15px; gap: 2px; width: max-content; position: relative; }
.kal-gitter .wt { font-size: 10.5px; color: var(--fg3); line-height: 15px; padding-right: 4px; text-align: right; width: 22px; }
.kal-gitter .mo { font-size: 10.5px; color: var(--fg3); white-space: nowrap; line-height: 16px; overflow: visible; }
.kal-gitter .t { width: 15px; height: 15px; border-radius: 3px; background: #eef1f5; font: 700 9px/15px "Noto Sans", Arial, sans-serif; text-align: center; color: #2b3640; position: relative; }
.kal-gitter .t.W { background: var(--kat-a); }
.kal-gitter .t.F { background: var(--kat-c); }
.kal-gitter .t.f { background: repeating-linear-gradient(135deg, var(--kat-b), var(--kat-b) 3px, #f9a77c 3px, #f9a77c 5px); }
.kal-gitter .t.A { background: #d5dce4; }
.kal-gitter .t.A.an { box-shadow: inset 0 -3px 0 var(--kat-c); }
.kal-gitter .t.X { background: repeating-linear-gradient(135deg, #f1f3f6, #f1f3f6 3px, #e2e7ec 3px, #e2e7ec 4px); }
.kal-gitter .t.zu { background: #f6f8fa; outline: 1px dashed #d5dce4; outline-offset: -1px; }
.kal-gitter .t.ft::after { content: ""; position: absolute; right: 1px; top: 1px; width: 0; height: 0; border-top: 5px solid #1d2733; border-left: 5px solid transparent; }
.kal-gitter .t.so { outline: 2px solid #1d2733; outline-offset: -2px; }
.kal-gitter .t:hover { outline: 2px solid var(--akzent); outline-offset: 0; }
.kal-legende { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--fg2); }
.kal-legende span { display: inline-flex; align-items: center; gap: 6px; }
.kal-legende .t { width: 13px; height: 13px; border-radius: 3px; display: inline-block; font: 700 8px/13px "Noto Sans", Arial, sans-serif; text-align: center; position: relative; }

/* Person */
.angaben { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.angaben div { background: var(--panel); border-radius: 8px; padding: 8px 11px; font-size: 12.5px; color: var(--fg3); min-width: 0; overflow-wrap: break-word; }
.angaben b { display: block; font-size: 14.5px; color: var(--fg); font-weight: 600; }
.angaben b small { font-weight: 400; color: var(--fg3); font-size: 12px; }
.grosszahl { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.grosszahl b { font: 700 30px/1.15 "Noto Sans", Arial, sans-serif; font-variant-numeric: tabular-nums; }
.grosszahl span { color: var(--fg3); font-size: 14px; }
.rechnung { font-size: 13.5px; width: 100%; } .rechnung td { padding: 5px 10px 5px 0; } .rechnung tr.summe td { font-weight: 700; border-top: 2px solid var(--fg2); border-bottom: 0; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; text-decoration: none; color: var(--fg3); }
.zurueck:hover { color: var(--fg); }
details.auf { border-top: 1px solid var(--line); padding-top: 10px; }
details.auf summary { cursor: pointer; font-weight: 600; color: var(--fg2); font-size: 14px; }

/* Import */
.ablage { border: 2px dashed #c6cfda; border-radius: 14px; background: #fff; padding: 26px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.ablage:hover, .ablage.drueber { border-color: var(--akzent); background: var(--akzent-hell); }
.ablage svg { width: 40px; height: 40px; fill: none; stroke: var(--akzent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ablage b { font-size: 16px; }
.schritt { display: flex; gap: 12px; align-items: flex-start; }
.schritt .nr { width: 28px; height: 28px; border-radius: 50%; background: var(--akzent-hell); color: var(--akzent-dunkel); font-weight: 700; display: grid; place-items: center; flex: none; }
.faellig { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.faellig .datum { font: 700 22px/1.2 "Noto Sans", Arial, sans-serif; }

/* Meldungen */
#meldungen { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(560px, calc(100vw - 24px)); }
.meldung { background: #1d2733; color: #fff; padding: 10px 16px; font-size: 14.5px; font-weight: 600; border-radius: 8px; box-shadow: 0 10px 30px -8px rgba(20, 30, 40, .45); border-left: 5px solid var(--gut); }
.meldung.fehler { border-left-color: var(--kritisch); }
.laden { padding: 40px 10px; text-align: center; color: var(--fg3); }
.mail-text { white-space: pre-wrap; font: 13px/1.5 Consolas, "Courier New", monospace; background: var(--panel); padding: 12px; border-radius: 8px; color: var(--fg2); overflow-wrap: anywhere; }
.regel { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(220px, 2fr); gap: 6px 16px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.regel:last-child { border-bottom: 0; }
.regel .was b { display: block; font-size: 14px; } .regel .was span { font-size: 12.5px; color: var(--fg3); }
.regel .wert { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.regel .wert input[type=number] { width: 110px; } .regel .wert input.breit { width: 100%; }
.einheit { font-size: 13px; color: var(--fg3); }
@media (max-width: 620px) { .regel { grid-template-columns: 1fr; } }
.ft-matrix th, .ft-matrix td { text-align: center; padding: 6px 8px; } .ft-matrix th:first-child, .ft-matrix td:first-child { text-align: left; }
.ft-matrix input { accent-color: var(--akzent); width: 16px; height: 16px; }
.erklaerung { font-size: 14px; color: var(--fg2); line-height: 1.6; }
.erklaerung h4 { margin: 14px 0 4px; font-size: 15px; color: var(--fg); }
.erklaerung p { margin: 0 0 8px; } .erklaerung ul { margin: 0 0 8px; padding-left: 20px; }
.erklaerung code { background: var(--panel2); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
@media print { .nav, .kopf, .fuss, .knopf, .filter, #meldungen { display: none !important; } .rahmen { display: block; } body.app { background: #fff; } .kachel { break-inside: avoid; } }
