/* Schrift Inter, selbst ausgeliefert (T5, Bauregel 12). Lizenz: SIL Open Font License 1.1, siehe ../schrift/LIZENZ-Inter.txt */
@font-face { font-family: 'Inter'; src: url('../schrift/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Gestaltung aus dem Prototyp der Verwaltung (../prototyp-verwaltung.html), verschlankt für v1.
   Keine fremden Schriften und Bilder, keine style-Attribute im HTML (spätere Inhaltsregel). */
:root {
  --ink: #222222; --text: #717171; --muted: #9A9A9A; --line: #EEEEEE; --line2: #E4E4E4; --fill: #F2F2F2; --fill-hover: #EBEBEB; --bg: #F7F7F7; --paper: #FFFFFF;
  --acc: #C9432F; --b1: linear-gradient(90deg, #D4432F, #C73E2E); --danger: #B3261E;
  --sh-card: 0 2px 6px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.08);
  --sh-soft: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.06);
  --sh-btn: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.08);
  --sh-b1: 0 6px 16px -6px rgba(199,62,46,.45);
  --ease: cubic-bezier(.16,1,.3,1);
}
/* Ziegelrot (--acc, --b1) nur für die eine Hauptaktion je Ansicht, den aktiven Bereich und Zähler, die Arbeit bedeuten; sonst Tinte */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 14px; color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; } }
.skip { position: absolute; left: 16px; top: 12px; z-index: 30; padding: 10px 18px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none; transform: translateY(-300%); }
.skip:focus { transform: none; box-shadow: var(--sh-card); }

/* ---------- Rahmen ---------- */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
aside { background: var(--paper); border-right: 1px solid var(--line); padding: 24px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 10px; background: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }
.brand-mark span { width: 9px; height: 9px; border-radius: 100px; background: #FFFFFF; }
.brand-name { font-size: 14px; font-weight: 600; }
.brand-by { font-size: 12px; color: var(--text); margin-top: 1px; }
nav { display: flex; flex-direction: column; gap: 2px; }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 12px; font-size: 14px; text-align: left; transition: background .2s var(--ease); }
.nav:hover { background: var(--bg); }
.nav.on { background: var(--bg); color: var(--acc); font-weight: 600; }
.nav.on::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--b1); }
.nav .cnt { font-size: 12px; font-weight: 500; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 100px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); font-variant-numeric: tabular-nums; }
.nav .cnt.hot { background: var(--b1); color: #FFFFFF; font-weight: 600; }
.nav .cnt.zero, .nav .cnt:empty { display: none; }
.aside-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--text); line-height: 1.8; display: flex; flex-direction: column; align-items: flex-start; }

main { padding: 44px 56px 96px; max-width: 1160px; width: 100%; min-width: 0; }
.view { display: none; }
.view.on { display: block; animation: in .45s var(--ease) both; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--text); }
h1 { margin-top: 6px; font-size: 28px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; overflow-wrap: anywhere; }
.lead { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--text); max-width: 68ch; }
h2 { font-size: 18px; font-weight: 600; }
.h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.card { background: var(--paper); border-radius: 20px; box-shadow: var(--sh-card); }

/* ---------- Knöpfe ---------- */
.btn { min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--b1); color: #FFFFFF; font-weight: 600; box-shadow: var(--sh-b1); }
.btn-primary:hover { box-shadow: 0 8px 20px -6px rgba(199,62,46,.55); }
.btn-primary:disabled { background: var(--fill); color: var(--text); box-shadow: none; cursor: not-allowed; }
.btn-secondary { background: var(--fill); }
.btn-secondary:hover { background: var(--fill-hover); }
.btn-danger { color: var(--danger); padding: 0 10px; text-decoration: underline; text-decoration-color: rgba(179,38,30,.3); text-underline-offset: 3px; }
.btn-danger:hover { text-decoration-color: var(--danger); }
/* Gefährliche Hauptaktion (Sperren, „Ja, ablehnen“): Fläche, rote Schrift */
.btn-danger-voll { background: var(--fill); color: var(--danger); font-weight: 600; padding: 0 20px; }
.btn-danger-voll:hover { background: var(--fill-hover); }
.btn-link { padding: 0 10px; text-decoration: underline; text-decoration-color: rgba(34,34,34,.3); text-underline-offset: 3px; }
.btn-link:hover { text-decoration-color: var(--ink); }
.btn-link.klein { padding: 0; min-height: 0; font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.btn:disabled { cursor: not-allowed; }
.btn[aria-busy="true"] { opacity: .7; }
.btn.cp { min-height: 32px; padding: 0 12px; font-size: 12.5px; flex: none; }
.zurueck { padding: 0; margin-bottom: 14px; min-height: 32px; }
.zurueck::before { content: "‹"; font-size: 18px; margin-right: 4px; text-decoration: none; }
.link-knopf { text-align: left; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(34,34,34,.25); text-underline-offset: 3px; overflow-wrap: anywhere; }
.link-knopf:hover { text-decoration-color: var(--ink); }

/* ---------- Anmeldung ---------- */
.anm { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 48px; }
.anm-card { width: 100%; max-width: 440px; padding: 32px; }
.anm-card .brand { padding: 0; margin-bottom: 24px; }
.anm-card h1 { font-size: 24px; }
.anm-card .lead { font-size: 14px; }
.feld { display: block; width: 100%; margin-top: 8px; min-height: 48px; padding: 0 16px; border-radius: 14px; background: var(--paper); border: 0; box-shadow: 0 0 0 1px var(--line2); color: var(--ink); font-size: 16px; }
.feld:focus { outline: none; box-shadow: 0 0 0 2px var(--ink); }
.feld[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--danger); }
.feld.code { font-size: 22px; letter-spacing: .3em; font-variant-numeric: tabular-nums; max-width: 220px; }
.qr-box { margin-top: 18px; display: flex; justify-content: center; padding: 16px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line2); }
.qr { width: 200px; height: 200px; image-rendering: pixelated; }
.hinweis { margin-bottom: 18px; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-size: 14px; line-height: 1.5; box-shadow: inset 3px 0 0 var(--ink); }

/* ---------- Übersicht ---------- */
.kpis { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; text-align: left; padding: 20px 22px; background: var(--paper); border-radius: 20px; box-shadow: var(--sh-soft); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.kpi:hover { box-shadow: var(--sh-card); transform: translateY(-1px); }
.kpi b { font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi.hot b { color: var(--acc); }
.kpi span { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--text); }

/* ---------- Prüfen ---------- */
.split { margin-top: 32px; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.queue { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.q-item { display: block; width: 100%; text-align: left; padding: 16px 18px; background: var(--paper); border-radius: 18px; box-shadow: var(--sh-soft); transition: box-shadow .2s var(--ease); }
.q-item:hover { box-shadow: var(--sh-card); }
.q-item.on { box-shadow: 0 0 0 2px var(--ink), var(--sh-card); }
.q-item .n { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.q-item .m { margin-top: 3px; font-size: 13px; color: var(--text); }
.q-item .w { margin-top: 10px; display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 100px; background: var(--fill); color: #484848; }
.q-item .w.old { color: var(--danger); }
.detail { padding: 28px; min-width: 0; }
.detail-head { display: flex; justify-content: space-between; gap: 8px 16px; align-items: flex-start; flex-wrap: wrap; }
.detail-head .pill { white-space: normal; }
.detail h2 { font-size: 22px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.dl { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.dl div { min-width: 0; padding: 11px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.dl dt { color: var(--text); flex: 0 0 auto; }
.dl dd { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.recherche { margin-top: 20px; padding: 16px 18px 8px; border-radius: 16px; background: var(--bg); }
.copy { margin-top: 6px; }
.copy div { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; min-width: 0; }
.copy div:first-child { border-top: none; }
.copy dt { flex: 0 0 132px; color: var(--text); font-size: 13px; }
.copy dd { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.verlauf { margin-top: 22px; }
.verlauf ul { list-style: none; }
.verlauf li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; }
.verlauf li b { font-weight: 600; }
.verlauf li .sub { display: inline; margin-left: 8px; }
.verlauf li p { margin-top: 2px; overflow-wrap: anywhere; }
.checklist { margin-top: 24px; padding: 18px 20px 10px; border-radius: 16px; background: var(--bg); }
.checklist .eyebrow { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font-weight: 600; font-size: 14px; }
.checklist .eyebrow h3 { font: inherit; }
.checklist .eyebrow span { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.chk { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; font-size: 14px; cursor: pointer; line-height: 1.45; border-top: 1px solid var(--line); }
.checklist .chk:first-of-type, fieldset .chk:first-of-type { border-top: none; }
.chk input { width: 20px; height: 20px; accent-color: var(--ink); flex: 0 0 auto; margin-top: 1px; }
.chk small { display: block; font-size: 12.5px; color: var(--text); margin-top: 2px; }
.note { margin-top: 8px; width: 100%; min-height: 76px; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 0; box-shadow: 0 0 0 1px var(--line2); color: var(--ink); font-size: 14px; resize: vertical; }
.note:focus { outline: none; box-shadow: 0 0 0 2px var(--ink); }
.note[aria-invalid="true"], fieldset[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--danger); border-radius: 14px; }
.rv-label { display: block; margin-top: 22px; font-size: 14px; font-weight: 500; }
.rv-hint { margin-top: 6px; font-size: 12.5px; color: var(--text); line-height: 1.45; }
.rv-err { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--danger); }
.rv-err:empty { display: none; }
.detail-actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.detail-actions .grow { flex: 1 1 auto; }
.rv-next { font-size: 13px; color: var(--text); line-height: 1.45; }
/* Entscheidungsleiste: bleibt am unteren Rand der Prüfkarte sichtbar */
.rv-bar { position: sticky; bottom: 0; z-index: 2; margin: 24px -28px -28px; padding: 14px 28px 20px; background: var(--paper); border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; box-shadow: 0 -10px 18px -14px rgba(0,0,0,.18); }
.rv-bar .detail-actions { margin-top: 10px; }
.rv-done h2 { font-size: 22px; }
.rv-done-text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text); }
.empty { padding: 44px 24px; text-align: center; font-size: 15px; color: var(--text); }
.empty .detail-actions { justify-content: center; margin-top: 18px; }
.hint { margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.5; background: var(--bg); box-shadow: inset 3px 0 0 var(--ink); }
.hint b { font-weight: 600; }
.hint small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.hint.warn { box-shadow: inset 3px 0 0 var(--danger); }
.hint.warn b { color: var(--danger); }
.sub { display: block; margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }

/* Bestätigung im Seitenaufbau */
.frage { padding: 2px 0; animation: in .3s var(--ease) both; }
.frage-t { font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.frage-s { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--text); max-width: 68ch; }
.frage .detail-actions { margin-top: 12px; }
.fragt { background: var(--paper); }

/* ---------- Schilder ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 100px; background: var(--fill); color: #484848; white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 100px; background: var(--muted); flex: none; }
.pill.ok { color: var(--ink); }
.pill.ok i { background: var(--ink); }
.pill.bad { color: var(--danger); }
.pill.bad i { background: var(--danger); }

/* ---------- Listen und Tabellen ---------- */
.items { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.item { padding: 20px 24px; }
.item-head { display: flex; justify-content: space-between; gap: 6px 16px; align-items: baseline; flex-wrap: wrap; }
.item-head h2 { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.item .meta { font-size: 13px; color: var(--text); }
.item-head + .pill { margin-top: 8px; white-space: normal; }
.toolbar { margin-top: 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search { flex: 1 1 260px; max-width: 400px; min-width: 0; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--paper); border: 0; box-shadow: 0 0 0 1px var(--line2), var(--sh-btn); color: var(--ink); font-size: 14px; }
.search:focus { outline: none; box-shadow: 0 0 0 2px var(--ink), var(--sh-btn); }
.table-wrap { margin-top: 16px; max-width: 100%; overflow-x: auto; border-radius: 20px; background: var(--paper); box-shadow: var(--sh-card); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--text); padding: 16px 16px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
td { padding: 14px 16px; font-size: 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.45; overflow-wrap: break-word; }
tr:first-child td { border-top: none; }
tbody tr:hover td { background: #FCFCFC; }
td.muted, .muted { color: var(--text); }
td.empty-row { text-align: center; padding: 40px; }
.foot { margin-top: 14px; font-size: 13px; color: var(--text); }
.kopfzeile { margin-top: 10px; }
.aktion { margin-top: 16px; padding: 24px 28px; }
.aktion h2 { font-size: 18px; }
.aktion fieldset { margin-top: 14px; border: none; padding: 0 4px; }
.aktion legend { font-size: 14px; font-weight: 500; padding-bottom: 4px; }
[data-view="firma"] .detail { margin-top: 16px; }
[data-view="firma"] .dl { margin-top: 0; }

/* Vergleich alt und neu; geänderte Zeilen mit Fläche, Randstrich, fetter neuer Angabe und Wort „geändert“ (nicht nur Farbe) */
.cmp-wrap { margin-top: 14px; overflow-x: auto; }
.cmp { table-layout: fixed; }
.cmp th, .cmp td { padding: 8px 10px; font-size: 13.5px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; vertical-align: middle; border-top: 1px solid var(--line); border-bottom: none; }
.cmp th:first-child, .cmp td:first-child { padding-left: 10px; }
.cmp th:last-child, .cmp td:last-child { padding-right: 10px; }
.cmp thead th { border-top: none; padding-top: 0; font-size: 12.5px; font-weight: 500; color: var(--text); }
.cmp thead th:first-child { width: 150px; }
.ntask .cmp thead th:last-child { width: 104px; }
.cmp tbody th { font-size: 13px; font-weight: 400; color: var(--text); }
.cmp td.old { color: var(--text); }
.cmp td.cp-cell { text-align: right; }
.cmp tr.chg th, .cmp tr.chg td, .cmp tbody tr.chg:hover td { background: var(--bg); }
.cmp tbody tr:not(.chg):hover td { background: transparent; }
.cmp tr.chg th { color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--ink); }
.cmp tr.chg td.new { font-weight: 600; }
.chg-tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 100px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.done-box { margin-top: 28px; }
.done-box summary { cursor: pointer; font-size: 15px; font-weight: 600; padding: 6px 0; width: max-content; max-width: 100%; }
.done-box .card { margin-top: 10px; }
.task { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); }
.task:first-child { border-top: none; }
.task .t { font-size: 14px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.task .s { margin-top: 3px; font-size: 13px; color: var(--text); line-height: 1.45; }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--paper); font-size: 14px; font-weight: 500; padding: 13px 20px; border-radius: 100px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0,0,0,.14); display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); transition: opacity .2s var(--ease), transform .45s var(--ease); z-index: 10; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 8px; height: 8px; border-radius: 100px; background: var(--ink); flex: none; }

/* ---------- Schmale Fenster ---------- */
@media (max-width: 1180px) {
  main { padding: 40px 32px 96px; }
  .split { grid-template-columns: 250px minmax(0, 1fr); }
  .dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  aside { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 14px 16px; gap: 12px; }
  nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .nav { white-space: nowrap; min-height: 38px; }
  .nav.on::before { left: 12px; right: 12px; top: auto; bottom: 2px; width: auto; height: 2px; border-radius: 2px; }
  .aside-foot { position: absolute; top: 18px; right: 16px; margin: 0; padding: 0; border: 0; }
  .aside-foot .betreiber { display: none; }
  .aside-foot .btn-link.klein { font-size: 13px; }
  aside { position: relative; }
  main { padding: 24px 16px 64px; }
  h1 { font-size: 24px; }
  .kpis { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .split { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .q-item { padding: 12px 14px; }
  .q-item .w { margin-top: 6px; }
  .detail { padding: 20px; }
  .rv-bar { margin: 20px -20px -20px; padding: 10px 20px 12px; }
  .rv-bar .rv-next { font-size: 12px; }
  .rv-bar .detail-actions { margin-top: 8px; gap: 6px; }
  .rv-bar .btn { min-height: 36px; padding: 0 14px; }
  .search { max-width: none; }
  .copy div { flex-wrap: wrap; gap: 4px 12px; }
  .copy dt { flex-basis: 100%; }
  .item { padding: 18px; }
  .aktion { padding: 20px; }
  .task { padding: 14px 18px; flex-wrap: wrap; }
  .anm { padding-top: 24px; }
  .anm-card { padding: 24px 20px; }
  /* Firmenliste als Karten: jede Zelle mit ihrer Überschrift */
  table.liste thead { display: none; }
  table.liste, table.liste tbody, table.liste tr, table.liste td { display: block; width: 100%; }
  table.liste tr { padding: 14px 18px; border-top: 1px solid var(--line); }
  table.liste tr:first-child { border-top: none; }
  table.liste td { border: none; padding: 3px 0; display: flex; gap: 12px; justify-content: space-between; }
  table.liste td::before { content: attr(data-label); color: var(--text); font-size: 13px; flex: none; }
  table.liste td:first-child { padding-left: 0; display: block; }
  table.liste td:first-child::before { content: none; }
  table.liste td:last-child { padding-right: 0; }
  table.liste td.empty-row { display: block; }
  table.liste td.empty-row::before { content: none; }
  .cmp thead th:first-child { width: 104px; }
  .ntask .cmp thead th:last-child { width: 90px; }
  .cmp th, .cmp td { padding: 8px 6px; }
}
/* Vergleich alt und neu auf dem Telefon: je Angabe ein Block, „Bisher“ und „Neu“ untereinander, Kopieren rechts */
@media (max-width: 700px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody { display: block; }
  .cmp tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line); }
  .cmp tbody tr:first-child { border-top: none; }
  .cmp th, .cmp td { display: block; border: none; padding: 1px 0; background: transparent; }
  .cmp tr.chg th, .cmp tr.chg td { background: transparent; }
  .cmp tr.chg { background: var(--bg); box-shadow: inset 3px 0 0 var(--ink); }
  .cmp tr.chg th { box-shadow: none; }
  .cmp tbody th, .cmp tbody th:first-child { grid-column: 1 / -1; padding-left: 0; }
  .cmp td.old, .cmp td.new { grid-column: 1; }
  .cmp td.old::before, .cmp td.new::before { content: attr(data-label) ": "; color: var(--text); font-weight: 400; }
  .cmp td.cp-cell { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
}

/* Kulanz: Auswahl der Monate und Betrag nebeneinander */
.ku-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.ku-reihe .rv-label { margin: 0; }
.ku-reihe .select, .ku-reihe .input { padding: 10px 12px; border-radius: 12px; border: 0; background: var(--paper); box-shadow: 0 0 0 1px var(--line2); color: var(--ink); font-size: 14px; }
.ku-reihe .input { width: 120px; }
.ku-reihe .select:focus, .ku-reihe .input:focus { outline: none; box-shadow: 0 0 0 2px var(--ink); }
