/* ===========================================================================
   MARKEN-BLOCK — die einzige Stelle, die je Marke getauscht wird.
   Farben: echtesNLP (Spezifikation Abschnitt 9). Systemschrift, keine externen Ressourcen.
   Alles darunter ist markenneutral.
   =========================================================================== */
:root {
  --bg: #EFF3F9; --surface: #ffffff; --surface2: #F6F8FC;
  --line: #E2E8F2; --line2: #CDD8E8; --line3: #EEF2F8;
  --ink: #1D2A3B; --muted: #5C6B81;
  --accent: #2E6BE6; --accent-ink: #1D4FB8; --accent-soft: #E7EEFC; --accent-text: #ffffff;
  --ok-bg: #E2F5EC; --ok-ink: #14613F;
  --warn-bg: #FFF7D6; --warn-ink: #6B5500; --warn-line: #F2C200;
  --err-bg: #FBE7E4; --err-ink: #A1271D;
  --neu-bg: #EFF3F9; --neu-ink: #4A5568;
  --radius: 16px;
  /* Schrift: vorgesehen wie im NHR-Board (Archia 400–700, Ersatz Figtree). Bis die Archia-Lizenz für Web-Apps
     geklärt ist, bleibt es die Systemschrift — keine Schriftdateien, keine externen Ressourcen. Später nur hier tauschen. */
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

/* ---------- Grundgerüst ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--schrift); font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-text-size-adjust: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
input, select, textarea { font: inherit; color: var(--ink); }
.muted { color: var(--muted); }
.fehler { color: var(--err-ink); }
.mono { font-family: var(--mono); font-size: 13.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Anmeldung ---------- */
.login { max-width: 340px; margin: 12vh auto; padding: 24px 16px; display: flex; flex-direction: column; gap: 14px; }
.login h1 { font-size: 1.25rem; margin: 0 0 4px; }
.login label { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; color: var(--muted); }
.login input { padding: 10px 12px; border: 1.5px solid var(--line2); border-radius: 10px; background: var(--surface); width: 100%; }
.login button { padding: 11px 16px; border: 0; border-radius: 99px; background: var(--accent); color: var(--accent-text); font-weight: 700; }

/* ---------- Umgebungsband (Testsystem), serverseitig eingefügt ---------- */
/* Feste Höhe (--band-h), oben angeheftet: Die Seitenleiste rechnet damit und wird nicht abgeschnitten. */
body[data-umgebung="test"] { --band-h: 34px; outline: 3px solid var(--err-ink); outline-offset: -3px; }
.umgebungsband { position: sticky; top: 0; z-index: 20; height: var(--band-h, 34px); line-height: var(--band-h, 34px); padding: 0 12px; background: var(--err-ink); color: #fff; text-align: center; font-weight: 600; font-size: .9rem; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .umgebungsband { font-size: .78rem; letter-spacing: 0; } }

/* ---------- Rahmen: Seitenleiste + Hauptfläche ---------- */
.app { display: flex; flex-wrap: wrap; min-height: calc(100vh - var(--band-h, 0px)); }
/* Breit: Seitenleiste bleibt beim Blättern stehen, genau so hoch wie der sichtbare Bereich unter dem
   Testsystem-Band — „Abmelden" ist immer zu sehen; ist das Menü länger, blättert die Leiste selbst. */
.side { flex: 1 1 230px; max-width: 250px; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: var(--band-h, 0px); align-self: flex-start; height: calc(100vh - var(--band-h, 0px)); overflow-y: auto; }
.side .sec { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Ist das Menü höher als der sichtbare Bereich, blättert die Leiste — ihre Teile schrumpfen nie (sonst schnitt
   flex-shrink die Abschnittsüberschriften ARBEIT, BATCH, ABLAGE, SYSTEM oben ab, Sichtprüfung V2 Punkt 7). */
.side > * { flex-shrink: 0; }
.wahl { padding: 0 2px 6px; }
.batchwahl { min-height: 40px; padding: 6px 10px; font-weight: 600; font-size: 14px; }
.brand { display: flex; gap: 10px; align-items: center; padding: 2px 8px 14px; }
/* Logo echtesNLP (web/assets/logo-schwarz.png, 553 × 290) — Höhe fest, Breite folgt dem Seitenverhältnis */
.logo { flex: none; display: block; height: 36px; width: auto; }
.brand > div { padding-left: 10px; border-left: 1px solid var(--line); }
.brand b { display: block; font-size: 17px; font-weight: 800; line-height: 1.15; }
.brand small { display: block; font-size: 12.5px; color: var(--muted); }
.sec { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 10px 6px; margin: 0; }
.nav { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.nav:hover { background: var(--surface2); text-decoration: none; }
.nav[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.cnt { margin-left: auto; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 1px 8px; background: var(--warn-bg); color: var(--warn-ink); }
.cnt.r { background: var(--err-bg); color: var(--err-ink); }
.sidefoot { margin-top: auto; padding: 16px 10px 4px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
button.link { background: none; border: 0; padding: 4px 0; min-height: 32px; color: var(--accent-ink); text-decoration: underline; font-weight: 600; font-size: 14px; text-align: left; }
.sidefoot .link { align-self: flex-start; padding: 0; min-height: 0; font-weight: 400; font-size: 13px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: #188055; margin-right: 6px; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
.top h1 { margin: 0; font-size: 24px; font-weight: 800; overflow-wrap: anywhere; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.badge { font-size: 12px; font-weight: 700; background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: 3px 8px; }
.av { flex: none; width: 36px; height: 36px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.body { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 20px; }
/* Menü-Knopf (Kopf) und Schließen-Knopf (Schublade): nur schmal sichtbar */
.menue-knopf, .menue-zu { display: none; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--ink); place-items: center; }
.menue-knopf:hover, .menue-zu:hover { background: var(--surface2); }
.menue-zu { margin-left: auto; border-color: transparent; }
@media (max-width: 900px) {
  /* Schmal: Seitenleiste als Schublade von links (Sichtprüfung V2 Punkt 1). Zu: aus dem Bild und nicht
     erreichbar (visibility), offen: über dem Inhalt mit Schleier. Batch-Umschalter und Fußzeile stehen darin. */
  .side { position: fixed; top: var(--band-h, 0px); left: 0; bottom: auto; z-index: 30; width: min(320px, 86vw); max-width: none;
    height: calc(100vh - var(--band-h, 0px)); height: calc(100dvh - var(--band-h, 0px));
    padding: 12px 14px 16px; box-shadow: 0 20px 50px rgba(29, 42, 59, .25); transform: translateX(-105%); visibility: hidden;
    transition: transform .18s ease, visibility 0s linear .18s; }
  body.menue-offen .side { transform: none; visibility: visible; transition: transform .18s ease; }
  body.menue-offen { overflow: hidden; }
  .menue-schleier { position: fixed; top: var(--band-h, 0px); left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(29, 42, 59, .45); }
  .menue-knopf, .menue-zu { display: inline-grid; }
  .brand { padding-right: 0; }
  .top { padding-top: 10px; padding-bottom: 10px; gap: 8px 12px; }
  .top, .body { padding-left: 16px; padding-right: 16px; }
  .top h1 { font-size: 20px; }
  #nichtgesendet { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none !important; } }
@media (max-width: 520px) {
  /* Kopf in einer Zeile halten: „Testsystem" sagt schon das rote Band oben, das Datum steht auf dem Gerät. */
  .top .b-test, .top .who .zeit { display: none; }
  .top h1 { font-size: 18px; flex: 1 1 170px; min-width: 0; }
  .who { gap: 8px; }
}

/* ---------- Bausteine ---------- */
.hint { background: var(--accent-soft); color: var(--accent-ink); border-radius: 12px; padding: 12px 18px; font-weight: 600; font-size: 14.5px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-width: 0; }
.card h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.lbl { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.g64 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 1100px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .grid2, .g64 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } }
.kpi b { display: block; font-size: 40px; font-weight: 800; line-height: 1.1; margin: 8px 0 4px; }
.kpi span { color: var(--muted); font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.ok { background: var(--ok-bg); color: var(--ok-ink); }
.warn { background: var(--warn-bg); color: var(--warn-ink); }
.err { background: var(--err-bg); color: var(--err-ink); }
.info { background: var(--accent-soft); color: var(--accent-ink); }
.neu { background: var(--neu-bg); color: var(--neu-ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line3); vertical-align: middle; }
.scroll { overflow-x: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 99px; font-weight: 700; font-size: 15px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--ink); text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--surface2); text-decoration: none; }
.btn.p { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.p:hover:not(:disabled) { background: var(--accent-ink); }
.btn.klein { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line3); }
.li:last-child { border-bottom: 0; }
.n { min-width: 30px; height: 26px; border-radius: 99px; display: grid; place-items: center; font-size: 13px; font-weight: 800; padding: 0 8px; flex: none; }
.go { margin-left: auto; font-weight: 700; font-size: 14px; white-space: nowrap; }
.alert { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 16px 22px; color: #3D3000; }
.alert.rot { background: var(--err-bg); border-color: #E7A39B; color: #7A1D15; }
.alert h2 { margin: 0; font-size: 18px; font-weight: 800; }
.alert p { margin: 4px 0 0; }
.alert > div { flex: 1 1 380px; min-width: 0; }
.box { background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-wrap: anywhere; }
.lock svg { flex: none; }
.lock { display: flex; gap: 12px; align-items: flex-start; background: var(--neu-bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--neu-ink); font-size: 14px; }
.ck { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line3); }
.ck:last-child { border-bottom: 0; }
.ic { flex: none; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); font-size: 14.5px; }
.kv > div { padding: 10px 0; border-bottom: 1px solid var(--line3); overflow-wrap: anywhere; }
.kv > div:nth-child(odd) { color: var(--muted); font-weight: 600; padding-right: 12px; }
.leer { color: var(--muted); padding: 18px 0; text-align: center; }

/* ---------- Schrittleiste, Summen, Filter ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 8px; }
.step { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--muted); }
a.step:hover { text-decoration: none; background: var(--surface2); }
.step i { font-style: normal; width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--bg); color: var(--muted); }
.step.done { color: var(--ok-ink); }
.step.done i { background: var(--ok-bg); color: var(--ok-ink); }
.step.on { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.step.on i { background: var(--accent); color: #fff; }
.sum { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .sum { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sum > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.sum b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; }
.sum span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 1.5px solid var(--line2); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Schalter (Business je Person) */
.tg { width: 46px; height: 28px; border-radius: 99px; background: #8796AD; border: 0; position: relative; padding: 0; display: inline-block; vertical-align: middle; }
.tg span { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .12s; }
.tg[aria-checked="true"] { background: var(--accent); }
.tg[aria-checked="true"] span { left: 22px; }
.tg.ask { box-shadow: 0 0 0 3px #F4B4AC; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field label, .lbl2 { font-size: 13.5px; font-weight: 700; }
.inp { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line2); border-radius: 10px; background: var(--surface); }
textarea.inp { min-height: 90px; resize: vertical; }
.okline { font-size: 13.5px; color: var(--ok-ink); font-weight: 600; }
.errline { font-size: 13.5px; color: var(--err-ink); font-weight: 600; }
.quelle { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; background: var(--surface2); }
.quelle legend { padding: 0 6px; font-weight: 700; }

/* ---------- Klären ---------- */
.layout { display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } }
.case { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line3); width: 100%; text-align: left; background: none; color: var(--ink); }
.case:hover { background: var(--surface2); }
.case[aria-current="true"] { background: var(--accent-soft); }
.case small { display: block; color: var(--muted); font-size: 13.5px; }
.grp { padding: 14px 16px 6px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cmp th { text-align: left; font-size: 13px; color: var(--accent-ink); font-weight: 700; padding: 10px 14px; background: var(--surface2); border-bottom: 1px solid var(--line); }
.cmp td { padding: 11px 14px; border-bottom: 1px solid var(--line3); overflow-wrap: anywhere; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td.k { color: var(--muted); font-weight: 600; width: 150px; }
.cmp td.d { background: var(--warn-bg); font-weight: 700; color: #3D3000; }
.cmp td.s { color: var(--muted); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 1100px) { .two { grid-template-columns: 1fr; } }
.choice { display: block; width: 100%; text-align: left; padding: 13px 16px; border: 1.5px solid var(--line2); border-radius: 12px; background: var(--surface); font-weight: 700; color: var(--accent-ink); margin-bottom: 10px; }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent) inset; }
.choice .cs { display: block; font-weight: 500; font-size: 13.5px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
/* Gegenüberstellung neben den Seitenbildern des License Agreements (kein eingebettetes PDF) */
.vergleich { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1250px) { .vergleich { grid-template-columns: 1fr; } }
.seiten { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.seite { margin: 0; min-width: 0; }
.seite a { display: block; }
.seite img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line2); border-radius: 6px; box-shadow: 0 10px 26px rgba(29, 42, 59, .14); }
.seite figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.postenpdf td { background: var(--surface2); }
.postenpdf .seitenbilder { max-width: 760px; }

/* ---------- Eintragen ---------- */
.big { font-size: 34px; font-weight: 800; }
.bar { height: 12px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; margin: 12px 0 10px; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ok-ink); }
.live i { width: 9px; height: 9px; border-radius: 99px; background: #188055; }

/* ---------- Abschluss ---------- */
.mail { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.meta { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 6px 12px; margin-bottom: 14px; font-size: 14.5px; }
.meta > span { color: var(--muted); font-weight: 600; }
.todo { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 20px 22px; color: #3D3000; }
.todo h2 { margin: 0 0 10px; font-size: 18px; font-weight: 800; }
.todo ol { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.mail .kopf { font-weight: 800; }
.mail .ph { background: #FFF0A8; border-radius: 4px; padding: 0 4px; }
.rueckgabe { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Dialog (statt confirm/prompt) ---------- */
.dlg { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; max-width: min(520px, calc(100vw - 32px)); width: 100%; color: var(--ink); background: var(--surface); box-shadow: 0 20px 50px rgba(29, 42, 59, .25); }
.dlg::backdrop { background: rgba(29, 42, 59, .45); }
.dlg h2 { margin: 0 0 10px; font-size: 19px; font-weight: 800; }
.dlg p { margin: 0 0 12px; }
.haken { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--warn-line); background: var(--warn-bg); border-radius: 12px; margin-bottom: 12px; font-weight: 700; color: #3D3000; }
.haken input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }

/* ---------- Meldungen ---------- */
#meldung { position: sticky; top: var(--band-h, 0px); z-index: 5; }
/* Erinnerung „eingetragen, nicht gesendet" unter der Kopfzeile, als Karte wie in der Vorlage */
#nichtgesendet { padding: 20px 28px 0; display: flex; flex-direction: column; gap: 12px; }
#nichtgesendet:empty { display: none; }
#nichtgesendet .alert h2 { font-size: 17px; color: #3D3000; }
.warnsym { flex: none; color: #7A6200; display: inline-flex; }

/* ---------- Leere Zustände und Fehler: Hinweiskarte statt roter Zeile ---------- */
.leerkarte { max-width: 760px; border-left: 6px solid var(--accent); }
.card { scroll-margin-top: calc(var(--band-h, 0px) + 16px); }
.leerkarte.lk-warn { border-left-color: var(--warn-line); background: var(--warn-bg); color: #3D3000; }
.leerkarte.lk-rot { border-left-color: var(--err-ink); background: var(--err-bg); color: #7A1D15; }
.leerkarte p { margin: 0 0 10px; }
.leerkarte .row { margin-top: 14px; }
/* Einstellungen: Zuordnungen je Stufe, Schlüssel nur klein als Zusatz */
.stufe + .stufe { margin-top: 16px; }
.stufe .kv label { color: var(--muted); font-weight: 600; }
.schluessel { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
#meldung .m { padding: 12px 28px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
#meldung .m.err { background: var(--err-bg); color: var(--err-ink); }
#meldung .m.ok { background: var(--ok-bg); color: var(--ok-ink); }
#meldung button { margin-left: auto; background: none; border: 0; text-decoration: underline; color: inherit; font-weight: 700; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12.5px; max-height: 320px; overflow: auto; }

/* U1 */
/* ---------- Runde 2 U1: Übersicht, Neuer Batch, Prüfen, Klären, Freigabe (Vorlage design/*.dc.html) ---------- */
.u1-klein { font-size: 13px; }
.kpi b.kpi-text { font-size: 26px; margin: 14px 0 10px; }
.li.u1-du { background: var(--accent-soft); border-radius: 12px; padding-left: 10px; padding-right: 10px; border-bottom-color: transparent; margin-bottom: 4px; }
.li > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.u1-batches td { vertical-align: top; }
.u1-dran b { font-size: 14px; }
.u1-liste { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.u1-notes { display: grid; gap: 8px; }
.u1-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.u1-pills .pill { white-space: normal; text-align: left; }
.u1-hinweis { font-size: 13px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.u1-quellen { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.u1-quellen b { font-weight: 700; }
.u1-band ul { margin: 6px 0 0; padding-left: 20px; }
.u1-veraltet { margin-bottom: 14px; }
/* Vorschau „So wird eingetragen" (N11): markierte Felder gelb, Legende darunter */
.u1-vorschau td { vertical-align: top; font-size: 14px; }
.u1-vorschau .feld { display: block; overflow-wrap: anywhere; }
.u1-vorschau .feld + .feld { margin-top: 2px; }
.mk { background: var(--warn-bg); color: #3D3000; border-radius: 4px; padding: 0 4px; font-weight: 700; }
.mk-auto { background: var(--accent-soft); color: var(--accent-ink); border-radius: 4px; padding: 0 4px; font-weight: 700; }
.mk-ok { background: var(--ok-bg); color: var(--ok-ink); border-radius: 4px; padding: 0 4px; font-weight: 700; }
.mk-ascii { box-shadow: inset 0 -2px 0 var(--accent); }
.u1-legende { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.u1-knoepfe { display: flex; flex-direction: column; gap: 10px; }
.u1-knoepfe .btn { width: 100%; }
.u1-gesperrt { font-size: 13.5px; color: var(--muted); margin: -4px 0 0; }
@media (max-width: 520px) {
  .li { flex-wrap: wrap; }
  .li .go { margin-left: 44px; }
  .kpi b { font-size: 32px; }
  .kpi b.kpi-text { font-size: 22px; }
  .cmp td.k { width: auto; }
}

/* U2 */
/* Hilfe: „?" im Kopf jedes Screens, Dialog mit Rollen und Glossar */
.hilfe-knopf { flex: none; width: 36px; height: 36px; border-radius: 99px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--accent-ink); font-weight: 800; font-size: 16px; display: inline-grid; place-items: center; margin-left: auto; padding: 0; }
.hilfe-knopf:hover { background: var(--accent-soft); }
.top .hilfe-knopf + .who { margin-left: 0; }
.dlg.hilfe { max-width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
.dlg.hilfe h3 { margin: 16px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.dlg.hilfe dl { margin: 0; display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 6px 14px; }
.dlg.hilfe dt { font-weight: 700; }
.dlg.hilfe dd { margin: 0; }
.hilfe-glossar { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.hilfe-glossar summary { font-weight: 700; cursor: pointer; }
.hilfe-glossar dl { margin-top: 10px; }
@media (max-width: 520px) { .dlg.hilfe dl { grid-template-columns: 1fr; } .dlg.hilfe dd { margin-bottom: 8px; } }
/* Zähler-Kacheln, die sich der Breite anpassen (Offene Posten, Archiv, Eintragen) */
.sum.u2-sum { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* Archiv: Detail je Batch */
.u2-archiv { padding: 6px 0 4px; }
.u2-namen { margin: 0; padding-left: 20px; columns: 2 260px; column-gap: 28px; font-size: 14.5px; }
.u2-namen li { break-inside: avoid; padding: 3px 0; }
/* Eintragen und Abgleich & Mail */
.u2-wer { margin: 10px 0 0; font-size: 14.5px; }
.u2-gross { font-size: 19px; font-weight: 800; line-height: 1.35; margin: 0 0 12px; overflow-wrap: anywhere; }
.u2-rand { border-left: 6px solid var(--accent); }
.meta > label { color: var(--muted); font-weight: 600; padding-top: 10px; }
.mail .ph.gruss { background: var(--err-bg); color: var(--err-ink); font-weight: 700; }
.u2-haken { align-items: flex-start; gap: 12px; }
.u2-haken input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
@media (max-width: 520px) { .meta { grid-template-columns: 1fr; } .meta > label, .meta > span { padding-top: 6px; } }
/* Listenzeilen, die bei 390 px umbrechen dürfen */
.u2-wrap { flex-wrap: wrap; }

/* ---------- Sichtprüfung V1 (04.10.2026, Browser bei 1920 … 390 px gegen design/*.dc.html) ---------- */
/* Testsystem-Rahmen um die ganze Seite, auch bei kurzer Anmeldeseite */
body { min-height: 100vh; }
/* Anmeldung mit Marke wie die Seitenleiste */
.login .brand { padding: 0 0 6px; }
/* Kopfzeile: „?", Datum und Kürzel bleiben beim Umbrechen zusammen rechts */
.who .hilfe-knopf { margin-left: 0; }
/* Marken in Tabellen dürfen umbrechen — sonst bestimmt die längste Marke die Spaltenbreite */
.tbl td .pill { white-space: normal; text-align: left; border-radius: 10px; }
/* Übersicht: Tabelle und Handlungsbedarf erst ab 1280 px nebeneinander */
.u1-start { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1280px) { .u1-start { grid-template-columns: 1fr; } }
/* Schmal: Batch-Tabelle als Liste untereinander statt seitlich zu scrollen */
@media (max-width: 700px) {
  .u1-batches thead { display: none; }
  .u1-batches, .u1-batches tbody, .u1-batches tr, .u1-batches td { display: block; width: auto; }
  .u1-batches tr { padding: 12px 0; border-bottom: 1px solid var(--line3); }
  .u1-batches td { padding: 3px 0; border: 0; }
  .u1-batches td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; font-weight: 600; }
  .u1-batches .go { margin-left: 0; }
}
/* Klären: Gegenüberstellung über die ganze Breite, darunter Entscheidung | License Agreement (Vorlage) */
.u1-entscheid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 22px; }
@media (max-width: 1250px) { .u1-entscheid { grid-template-columns: 1fr; } }
.cmp td.k { overflow-wrap: normal; white-space: nowrap; }
.cmp th { overflow-wrap: normal; }
/* Freigabe-Vorschau: Name nicht in Silben zerlegt, Notes nicht übermäßig breit */
.u1-vorschau td:nth-child(2) { min-width: 140px; }
.u1-vorschau td:last-child { min-width: 220px; font-size: 13px; }
/* Offene Posten: Aktionen in einer lesbaren Spalte */
.tbl td.u2-aktion { min-width: 230px; }
.u2-aktion .btn { white-space: normal; text-align: left; border-radius: 14px; }
.u2-aktion select.inp { min-width: 0; flex: none; }
/* Abschluss: gesendet ist erledigt — ruhige grüne Karte statt gelber Aufgabe */
.todo.fertig { background: var(--ok-bg); border-color: #9FD8BC; color: var(--ok-ink); }
/* Schmal: Warnsymbol der Erinnerungen weglassen, es stünde allein auf einer Zeile */
@media (max-width: 520px) {
  .alert > .warnsym { display: none; }
  .alert { padding: 14px 16px; }
  #nichtgesendet .alert h2 { font-size: 15.5px; }
}
.sidefoot a.link { color: var(--accent-ink); text-decoration: underline; }
.sidefoot a.link[aria-current="page"] { font-weight: 700; }
@media (max-width: 520px) {
  /* Handlungsbedarf: Zahl und Text nebeneinander, der Sprung darunter */
  .li > span:nth-child(2) { flex: 1 1 calc(100% - 60px); }
  /* Kacheln der Übersicht zu zweit statt vier lange Karten untereinander */
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid4 .card { padding: 14px 14px; }
  .kpi b.kpi-text { font-size: 19px; }
  .kpi span { font-size: 13px; }
}
/* Prüfen: Spalte „Stand" breit genug für Marke und Hinweistext, Wörter nicht mitten durch */
.tbl td.u1-stand { min-width: 220px; }
.u1-hinweis { overflow-wrap: break-word; }
/* Offene Posten schmal: Zeilen als Liste untereinander, Aktionen darunter */
@media (max-width: 1100px) {
  .u2-posten thead { display: none; }
  .u2-posten, .u2-posten tbody, .u2-posten tr, .u2-posten td { display: block; width: auto; }
  .u2-posten tr { padding: 12px 0; border-bottom: 1px solid var(--line3); }
  .u2-posten td { padding: 3px 0; border: 0; }
  .u2-posten td:first-child { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .u2-posten td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; font-weight: 600; }
  .tbl.u2-posten td.u2-aktion { min-width: 0; padding-top: 8px; }
}
/* Freigabe-Vorschau schmal: je Person ein Block (Nr. und Name oben, Felder darunter) statt Silbentrennung */
@media (max-width: 700px) {
  .u1-vorschau thead { display: none; }
  .u1-vorschau, .u1-vorschau tbody, .u1-vorschau tr, .u1-vorschau td { display: block; width: auto; min-width: 0 !important; }
  .u1-vorschau tr { padding: 12px 0; border-bottom: 1px solid var(--line3); }
  .u1-vorschau td { padding: 2px 0; border: 0; }
  .u1-vorschau td:first-child { float: left; margin-right: 8px; font-weight: 700; }
  .u1-vorschau td:first-child:not(:empty)::before { content: "Nr. "; }
  .u1-vorschau td[data-label]:not([data-label="Name"])::before { content: attr(data-label); display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .u1-vorschau .feld { overflow-wrap: break-word; }
}
@media (max-width: 700px) { .u1-vorschau td[data-label="Name"] .feld { display: inline; margin-right: 4px; font-weight: 700; } }
/* Schlüssel-Wert-Listen bei 390 px untereinander: Auswahlfelder (Zuordnungen) bekommen die volle Breite */
@media (max-width: 520px) {
  .kv { grid-template-columns: 1fr; }
  .kv > div:nth-child(odd) { padding-bottom: 2px; border-bottom: 0; }
  .kv > div:nth-child(even) { padding-top: 2px; }
}
/* Einstellungen schmal: Nutzer je Konto als Block, Rechte-Matrix mit lesbarer erster Spalte */
.u2-rechte td:first-child { min-width: 170px; }
@media (max-width: 700px) {
  .u2-nutzer thead { display: none; }
  .u2-nutzer, .u2-nutzer tbody, .u2-nutzer tr, .u2-nutzer td { display: block; width: auto; }
  .u2-nutzer tr { padding: 12px 0; border-bottom: 1px solid var(--line3); }
  .u2-nutzer td { padding: 4px 0; border: 0; text-align: left !important; }
  .u2-nutzer td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 2px; }
}
/* Hilfe: „Schließen" bleibt unten sichtbar, auch wenn der Dialog (Glossar) blättert */
.hilfe-fuss { justify-content: flex-end; position: sticky; bottom: -22px; margin: 12px 0 -22px; padding: 12px 0 22px; background: var(--surface); border-top: 1px solid var(--line3); }

/* ---------- Sichtprüfung V2 (04.10.2026) ---------- */
/* Punkt 2: Erinnerung außerhalb der Übersicht als EINE Zeile — Anzahl, das Wichtigste, „anzeigen" */
#nichtgesendet.kompakt { padding-top: 12px; gap: 10px; }
.alert.kompakt-zeile { flex-wrap: nowrap; gap: 10px; padding: 6px 8px 6px 16px; border-radius: 12px; min-height: 44px; }
.alert.kompakt-zeile .kt { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 14.5px; }
.alert.kompakt-zeile .warnsym { display: inline-flex !important; }
.alert.kompakt-zeile button.link { flex: none; min-height: 32px; padding: 4px 8px; color: #3D3000; }
@media (max-width: 520px) {
  /* Schmal: zwei Zeilen statt „2 Batches ungesendet b…" */
  .alert.kompakt-zeile .kt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; font-size: 13.5px; }
  .alert.kompakt-zeile .warnsym { display: none !important; }
  .alert.kompakt-zeile { padding-left: 12px; }
}
/* Kopf der Batch-Ansichten: Schritt groß, Batch-Titel dahinter — schmal als kleinere zweite Zeile */
.h1-batch::before { content: " · "; }
@media (max-width: 520px) {
  .h1-batch { display: block; font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.3; margin-top: 2px; }
  .h1-batch::before { content: none; }
}
/* Punkt 3: Tabellen bei schmaler Breite als Karte je Zeile — Titel (.kt) oben, Ergebnis/Stand/Aktion (.kw) gleich
   darunter, der Rest mit Spaltenüberschrift (data-label aus beschriften(), util.js). */
@media (max-width: 700px) {
  .tbl.karten thead { display: none; }
  .tbl.karten, .tbl.karten tbody, .tbl.karten td { display: block; width: auto; }
  .tbl.karten tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line3); }
  .tbl.karten td.kt, .tbl.karten td.kw, .tbl.karten td[colspan] { flex: 1 1 100%; }
  .tbl.karten td { padding: 0; border: 0; min-width: 0 !important; }
  .tbl.karten td:empty { display: none; }
  .tbl.karten td.kt { order: -2; font-size: 15.5px; }
  .tbl.karten td.kw { order: -1; }
  .tbl.karten td.kw .btn { margin-top: 4px; }
  .tbl.karten td[data-label]:not(.kt):not(.kw)::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; font-weight: 600; }
  .tbl.karten td.leer { text-align: left; }
}
/* Wo eine Tabelle seitlich scrollt: sichtbarer Hinweis (app.js setzt data-wischen nur, wenn sie wirklich breiter ist) */
.scroll[data-wischen]::before { content: "← seitlich wischen →"; display: block; position: sticky; left: 0; padding: 0 0 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 520px) {
  /* Klären: Gegenüberstellung passt in die Karte — Feldnamen dürfen umbrechen, engere Zellen */
  .cmp th, .cmp td { padding: 8px 8px; }
  .cmp td.k { white-space: normal; overflow-wrap: break-word; }
}
/* Breit: Überschriften dürfen umbrechen — sonst schob „LICENSE AGREEMENT“ die Aktion („Klären →“) bei 1440 px aus dem Bild */
.tbl.karten th { white-space: normal; }
/* Punkt 4: Schrittleiste — „on" = geöffnete Seite (Rahmen), „jetzt" = Stand des Batches (gefüllte Zahl + Marke) */
.step.on { border-color: var(--accent); color: var(--accent-ink); background: var(--surface); box-shadow: 0 0 0 1px var(--accent) inset; }
.step.on i { background: var(--accent-soft); color: var(--accent-ink); }
.step.jetzt { background: var(--accent-soft); color: var(--accent-ink); }
.step.jetzt i { background: var(--accent); color: #fff; }
.jetzt-marke { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 7px; }
.u2-folge { margin-top: -4px; }
@media (max-width: 520px) {
  /* Schmal: nur die geöffnete Seite mit Text, die anderen als Zahl — der Stand gefüllt (Text bleibt für Screenreader) */
  .steps { gap: 6px; }
  .step { padding: 6px 10px; gap: 6px; }
  .step:not(.on) { padding: 6px; }
  .jetzt-marke { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .step:not(.on) .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Runde 3 W2 (04.10.2026): Schritte nummeriert, Batch-Karte, „Kurz erklärt" ---------- */
/* Seitenleiste: Schritte mit Nummer (Michaels Modell), Klären eingerückt unter Prüfen, Zähler in Worten darunter */
.nav-nr { flex: none; font-style: normal; width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--bg); color: var(--muted); }
.nav[aria-current="page"] .nav-nr { background: var(--accent); color: #fff; }
.nav-t { min-width: 0; }
.nav.nav-unter { padding-left: 42px; font-size: 14px; font-weight: 600; }
.nav.nav-unter::before { content: "↳"; margin-left: -18px; color: var(--muted); font-weight: 400; }
.nav-erkl { margin: 2px 10px 4px 42px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
/* Batch-Karte statt nacktem Auswahlfeld: Titel umbricht, Stand und „Jetzt: …" darunter */
.batchkarte { position: relative; margin: 0 2px 8px; padding: 10px 12px; border: 1.5px solid var(--line2); border-radius: 12px; background: var(--surface2); display: flex; flex-direction: column; gap: 6px; }
.bk-titel { font-size: 14.5px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.bk-zeile { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.bk-zeile .pill { font-size: 12px; padding: 2px 8px; white-space: normal; }
.bk-dran { line-height: 1.35; }
.bk-dran.du { color: var(--accent-ink); font-weight: 700; }
.bk-wechsel { font-size: 12.5px; font-weight: 700; color: var(--accent-ink); }
.bk-wahl { cursor: pointer; }
.bk-wahl:hover { background: var(--accent-soft); border-color: var(--accent); }
.bk-wahl:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Das Auswahlfeld liegt unsichtbar über der ganzen Karte — Klick, Tippen und Tastatur öffnen die System-Auswahl */
.batchkarte select.batchwahl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; margin: 0; }
/* „Kurz erklärt": Raster Wer ist dran · Wozu · Was prüfen · Danach, wegklickbar */
.kurz { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 14px 18px 16px; }
.kurz-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.kurz-kopf h2 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); }
.kurz-titel { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.kurz-zu { margin-left: auto; background: none; border: 0; padding: 4px 6px; min-height: 32px; color: var(--muted); text-decoration: underline; font-weight: 600; font-size: 13.5px; }
.kurz-zu:hover { color: var(--ink); }
.kurz-raster { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 1.1fr); gap: 14px 20px; }
.kurz-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.kurz-wert { font-size: 14px; line-height: 1.45; overflow-wrap: break-word; }
.kurz-wert ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.kurz-stand { display: block; margin-top: 4px; font-size: 13px; color: var(--warn-ink); background: var(--warn-bg); border-radius: 8px; padding: 4px 8px; }
.kurz-weiter { margin-top: 8px; }
@media (max-width: 1100px) { .kurz-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kurz { padding: 12px 14px 14px; } .kurz-raster { grid-template-columns: 1fr; gap: 10px; } }
/* „Erklärung einblenden" im Kopf, wenn die Box weggeklickt ist */
.kurz-ein { flex: none; min-height: 36px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--accent-ink); font-weight: 700; font-size: 13.5px; }
.kurz-ein:hover { background: var(--accent-soft); }
.kurz-ein-kurz { display: none; }
@media (max-width: 520px) {
  .kurz-ein { width: 36px; padding: 0; font-family: Georgia, serif; font-style: italic; font-size: 16px; }
  .kurz-ein-lang { display: none; }
  .kurz-ein-kurz { display: inline; }
}
/* Testsystem-Band bei 390 px: zwei Zeilen statt abgeschnitten (Höhe wächst mit, Seitenleiste rechnet mit --band-h) */
@media (max-width: 520px) {
  body[data-umgebung="test"] { --band-h: 44px; }
  .umgebungsband { white-space: normal; line-height: 1.2; display: flex; align-items: center; justify-content: center; padding: 0 10px; font-size: .74rem; }
}
/* Schrittleiste ohne Nummer (Neuer Batch, Klären): schmal nur zeigen, wenn geöffnet oder Stand des Batches */
@media (max-width: 520px) {
  .step.ohne-nr:not(.on):not(.jetzt) { display: none; }
  .step.ohne-nr.jetzt:not(.on) { padding: 6px 10px; }
  .step.ohne-nr.jetzt:not(.on) .t { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
/* Übersicht: je offenem Batch eine Karte (ein bis zwei nebeneinander), „Jetzt: …" groß */
.u3-karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.u3-karten.eins { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) { .u3-karten { grid-template-columns: minmax(0, 1fr); } }
.u3-batch { display: flex; flex-direction: column; gap: 12px; }
.u3-batch.du { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.u3-batch-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.u3-batch-kopf h2 { margin: 0; overflow-wrap: anywhere; }
.u3-batch-info { margin: 0; font-size: 14px; }
.u3-batch-info b { color: var(--ink); }
.u3-jetzt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); font-size: 15.5px; }
.u3-jetzt.du { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.u3-jetzt b { overflow-wrap: anywhere; }
/* Handlungsbedarf: Gruppen „Für dich", „Für Operations" …, Marken in Worten mit Legende */
.u3-gruppe + .u3-gruppe { margin-top: 10px; }
.u3-gruppe h3 { margin: 6px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.u3-gruppe.du h3 { color: var(--accent-ink); }
.u3-gruppe .li > .pill { flex: none; min-width: 74px; justify-content: center; }
.u3-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line3); font-size: 12.5px; color: var(--muted); }
.u3-legende .pill { font-size: 11.5px; padding: 1px 8px; }
.u3-du { color: var(--accent-ink); }
@media (max-width: 520px) { .u3-gruppe .li .go { margin-left: 0; } }
/* Freigabe: niemand Unbeteiligtes übrig — die nächste Aktion deutlich darunter */
.u3-naechste { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 14px; }
/* Kleinere Befunde (Runde 3): F-Badges in Klären gleich breit; Erinnerungsband bei 390 px ganz lesbar */
.case .n { min-width: 46px; }
@media (max-width: 520px) {
  .alert.kompakt-zeile { flex-wrap: wrap; align-items: flex-start; }
  .alert.kompakt-zeile .kt { display: block; white-space: normal; overflow: visible; -webkit-line-clamp: unset; text-overflow: clip; flex: 1 1 200px; }
  /* Kopf bei 390 px möglichst einzeilig: Titel nimmt den Rest, Kennzeichen „Beispieldaten" klein */
  .top h1 { flex: 1 1 120px; }
  .top .b-bsp { font-size: 11px; padding: 2px 6px; }
}
/* Übersicht: Schrittleiste in der Batch-Karte kompakt — ohne „Neuer Batch", Klären nur, wenn der Batch dort steht */
.u3-batch .steps { gap: 6px; }
.u3-batch .step { padding: 4px 10px; font-size: 13px; gap: 6px; }
.u3-batch .step i { width: 20px; height: 20px; font-size: 11px; }
.u3-batch .step.ohne-nr:not(.jetzt) { display: none; }
.u3-batch .jetzt-marke { font-size: 10px; }
/* „Kurz erklärt": Knopf unter dem Danach-Text, nicht mitten im Satz */
.kurz-wert > span { display: block; }
.kurz-weiter { margin-top: 8px; }
@media (max-width: 520px) {
  /* Kopf möglichst einzeilig: engere Abstände; der Stand des Batches steht schon in „Kurz erklärt" und in der
     Batch-Karte, „Beispieldaten" im Titel („BEISPIEL – …") — beide fallen im Kopf der Batch-Ansichten weg.
     Passt es trotzdem nicht, bricht der Titel als Ganzes in eine eigene Zeile (nie Buchstabe für Buchstabe). */
  .top { gap: 8px; }
  .top h1 { flex: 1 1 120px; min-width: 0; }
  .top > .pill, .top:has(.h1-batch) > .b-bsp { display: none; }
  .top .who { gap: 6px; }
}
/* „5 Senden & Mail" springt zur Karte „Batch senden" — nicht unter das Testsystem-Band */
.todo { scroll-margin-top: calc(var(--band-h, 0px) + 16px); }
/* Prüfen (Runde 3): geöffnete Person in der Liste markiert; Auswahl „Warum nicht certified?" ohne Browser-Rahmen */
.u3-offen td { background: var(--accent-soft); }
.u3-wahl { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.u3-wahl legend { padding: 0; margin-bottom: 6px; font-weight: 700; }
/* Betrieb einrichten (04.10.2026): Speichern dort, wo man eingibt — Knopf je Karte, daneben „Nicht gespeichert"
   bzw. die Bestätigung; Nutzer: Spalte „Aktion", in der Kartenansicht breiter blauer Knopf */
.u3-speichern { margin-top: 16px; }
.u3-stand:empty { display: none; }
.u3-stand { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 700px) {
  .u2-nutzer td.aktion { padding-top: 8px; }
  .u2-nutzer td.aktion .btn { width: 100%; min-height: 44px; }
}
