/* Abgleich im elleta-Look: hell, ruhig, elleta-Blau als einziger Akzent. Ton und Bausteine wie Helpdesk und Monatsreport. */
:root {
  --elleta: #004b87;
  --elleta-dunkel: #003763;
  --elleta-hell: #e8f0f7;
  --bg: #f8fafc;
  --flaeche: #ffffff;
  --s100: #f1f5f9;
  --s200: #e2e8f0;
  --s300: #cbd5e1;
  --s400: #94a3b8;
  --s500: #64748b;
  --s600: #475569;
  --s700: #334155;
  --s800: #1e293b;
  --text: #0f172a;
  --rot: #b91c1c;
  --sand: #8a6a2f;
  --radius: 6px;
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  caret-color: var(--elleta);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
::selection { background: color-mix(in srgb, var(--elleta) 18%, transparent); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--elleta); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ic { width: 16px; height: 16px; flex: none; }

/* ---------- Gerüst ---------- */
.kopf { background: var(--flaeche); border-bottom: 1px solid var(--s200); }
.kopf-in { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.marke { font-size: 15px; font-weight: 600; color: var(--elleta); padding: 10px 0; }
.nav { display: flex; gap: 4px; flex: 1; margin-bottom: -1px; overflow-x: auto; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 10px; border-bottom: 2px solid transparent; font-weight: 500; color: var(--s600); white-space: nowrap; }
.nav a:hover { border-color: var(--s300); color: var(--text); }
.nav a[aria-current] { border-color: var(--elleta); color: var(--elleta); }
.zahl { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 4px; font-size: 11.5px; font-weight: 600; }
.zahl.rot { background: var(--rot); color: #fff; }
.zahl.blau { background: var(--elleta); color: #fff; }
.ich { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--s700); }
.seite { max-width: 1280px; margin: 0 auto; padding: 24px 16px 96px; }

.av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; flex: none; }
.av.p0 { background: var(--elleta-hell); color: var(--elleta-dunkel); }
.av.p1 { background: #f3ecdf; color: #6b4f1d; }

/* ---------- Kopf einer Seite ---------- */
.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
h2 { font-size: 14px; font-weight: 600; }
.sub { color: var(--s600); margin-top: 4px; max-width: 72ch; }
.crumb { color: var(--s500); font-size: 13px; margin-bottom: 12px; display: flex; gap: 7px; }
.crumb a:hover { color: var(--elleta); text-decoration: underline; text-underline-offset: 2px; }
.top-act { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--s300); background: var(--flaeche); color: var(--s700); font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--s400); background: var(--bg); }
.btn.primary { background: var(--elleta); border-color: var(--elleta); color: #fff; font-weight: 600; box-shadow: 0 1px 2px rgb(15 23 42 / 0.06); }
.btn.primary:hover { background: var(--elleta-dunkel); border-color: var(--elleta-dunkel); }
.btn.klein { height: 30px; padding: 0 10px; gap: 6px; font-size: 13px; }
.btn.klein .ic { width: 14px; height: 14px; }
.btn.leise { border-color: transparent; background: transparent; padding: 0 10px; }
.btn.leise:hover { background: var(--s100); color: var(--text); border-color: transparent; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.55; }
.btn:disabled:hover { background: var(--flaeche); border-color: var(--s300); }
.btn.primary:disabled:hover { background: var(--elleta); border-color: var(--elleta); }
.btn.ok { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.link { background: none; border: 0; padding: 0; color: var(--elleta); font-weight: 500; }
.link:hover { color: var(--elleta-dunkel); text-decoration: underline; text-underline-offset: 2px; }
.link.quiet { color: var(--s500); font-weight: 400; }
.link.quiet:hover { color: var(--text); }

/* ---------- Abzeichen ---------- */
.abz { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; letter-spacing: 0; box-shadow: inset 0 0 0 1px var(--ring); }
.abz.grau { background: var(--s100); color: var(--s700); --ring: var(--s200); }
.abz.blau { background: var(--elleta-hell); color: var(--elleta-dunkel); --ring: rgb(0 75 135 / 0.2); }
.abz.gelb { background: #fffbeb; color: #78350f; --ring: #fde68a; }
.abz.rot { background: #fef2f2; color: #991b1b; --ring: #fecaca; }
.abz.gruen { background: #ecfdf5; color: #065f46; --ring: #a7f3d0; }
.frei { display: inline-flex; align-items: center; gap: 6px; color: var(--s600); font-size: 13px; }
.frei::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10b981; }

/* ---------- Offene Wellen auf der Startseite ---------- */
.offen { margin-bottom: 28px; border: 1px solid var(--s200); border-radius: var(--radius); background: var(--flaeche); }
.offen li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 16px; }
.offen li + li { border-top: 1px solid var(--s100); }
.offen li.todo { background: var(--elleta-hell); }
.offen li.todo:first-child { border-radius: 5px 5px 0 0; }
.offen li.todo:last-child { border-radius: 0 0 5px 5px; }
.offen li.todo:only-child { border-radius: 5px; }
.offen-text { min-width: 0; flex: 1 1 320px; }
.offen-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.offen-kopf b { font-weight: 600; }
.offen-kopf a { color: var(--elleta); font-weight: 500; }
.offen-kopf a:hover { text-decoration: underline; text-underline-offset: 2px; }
.offen-fakten { color: var(--s600); font-size: 13px; margin-top: 2px; }
.offen-akt { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Suche und Filter ---------- */
.suche { position: relative; display: block; width: min(300px, 100%); }
.suche .ic { position: absolute; left: 10px; top: 50%; margin-top: -8px; color: var(--s400); pointer-events: none; }
.suche input { height: 32px; padding-left: 32px; margin: 0; }
.suche.gross { width: min(560px, 100%); margin-bottom: 14px; }
.suche.gross input { height: 40px; padding-left: 36px; font-size: 15px; }
.suche.gross .ic { left: 12px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; border-bottom: 1px solid var(--s200); margin-bottom: 14px; }
.tools > .suche { margin: 0 0 8px auto; }
.tabs { display: flex; gap: 2px; margin-bottom: -1px; overflow-x: auto; max-width: 100%; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-bottom: 2px solid transparent; background: none; font-weight: 500; color: var(--s600); white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-current], .tab[aria-pressed="true"] { border-color: var(--elleta); color: var(--elleta-dunkel); }
.tab b { padding: 0 6px; border-radius: 4px; background: var(--s100); color: var(--s700); font-size: 12px; font-weight: 500; line-height: 18px; }
.tab.warn b { background: var(--rot); color: #fff; font-weight: 600; }
.count { color: var(--s500); font-size: 13px; margin-left: auto; padding-bottom: 2px; }

/* ---------- Tabellen ---------- */
.tafel { overflow-x: auto; border: 1px solid var(--s200); border-radius: var(--radius); background: var(--flaeche); }
.grid { width: 100%; border-collapse: collapse; }
.grid th { text-align: left; font-size: 12px; font-weight: 600; color: var(--s600); padding: 8px 12px; border-bottom: 1px solid var(--s200); white-space: nowrap; }
.grid td { padding: 9px 12px; border-bottom: 1px solid var(--s100); vertical-align: top; }
.grid tbody:last-of-type tr:last-child td { border-bottom: 0; }
.grid tbody tr:hover td { background: var(--bg); }
.grid tbody tr[data-href] { cursor: pointer; }
.grid .num { text-align: right; }
.grid th .mk { margin-right: 7px; }
.grid tr.gruppe th { background: var(--s100); color: var(--s700); padding: 6px 12px; border-bottom: 1px solid var(--s200); }
.firm { min-width: 220px; }
.firm a { font-weight: 500; color: var(--text); }
.firm a:hover { color: var(--elleta); text-decoration: underline; text-underline-offset: 2px; }
.firm .dim { margin-left: 8px; }
.dim { color: var(--s500); }
.none { color: var(--s400); }
.rel { color: var(--s600); max-width: 320px; }
.rel b { color: var(--text); font-weight: 600; }
.st { text-align: right; white-space: nowrap; }
.stand { white-space: nowrap; }
.stand .abz + .abz { margin-left: 6px; }
.who { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.who + .who { margin-top: 3px; }
.who .dim { font-size: 13px; }
.mk { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex: none; position: relative; top: -0.5px; }
.mk.p0 { --c: var(--elleta); }
.mk.p1 { --c: var(--sand); }
.mk.sent { background: var(--c); }
.mk.plan { box-shadow: inset 0 0 0 1.5px var(--c); }
.empty td { padding: 40px 16px; text-align: center; color: var(--s600); }
.empty:hover td { background: none !important; }
.empty p { margin-bottom: 14px; }
.empty p:last-child { margin-bottom: 0; }
.empty b { color: var(--text); font-weight: 600; }

/* ---------- Hinweise ---------- */
.meldung { padding: 12px 16px; border: 1px solid var(--s200); border-radius: var(--radius); background: var(--flaeche); color: var(--s700); margin-bottom: 20px; }
.meldung b { color: var(--text); font-weight: 600; }
.meldung.blau { background: var(--elleta-hell); border-color: rgb(0 75 135 / 0.22); color: var(--elleta-dunkel); }
.meldung.blau > p b { color: var(--elleta-dunkel); }
.meldung.gelb { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.meldung.rot { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.meldung.rot > p b, .meldung.rot > b { color: #991b1b; }
.meldung.gruen { background: #ecfdf5; border-color: #a7f3d0; color: #064e3b; }
.meldung.gruen > p b { color: #065f46; }
.note { color: var(--s600); margin: -8px 0 16px; }
.quiet-text { color: var(--s600); }
.box { border: 1px solid var(--s200); border-radius: var(--radius); background: var(--flaeche); padding: 16px; }
.box > h2 { margin-bottom: 12px; }

/* ---------- Formulare ---------- */
label { display: block; font-size: 13px; font-weight: 500; color: var(--s800); }
label > input, label > select, label > textarea { display: block; margin-top: 5px; font-weight: 400; }
input, select, textarea { height: 36px; padding: 0 10px; background: var(--flaeche); border: 1px solid var(--s300); border-radius: var(--radius); color: var(--text); width: 100%; font-size: 14px; outline: none; }
textarea { height: auto; padding: 8px 10px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--s400); }
input:hover, select:hover, textarea:hover { border-color: var(--s400); }
input:focus, select:focus, textarea:focus { border-color: var(--elleta); box-shadow: 0 0 0 3px rgb(0 75 135 / 0.15); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
.opt { color: var(--s500); font-weight: 400; }
.stack { display: grid; gap: 14px; }
.stack.tight { gap: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.actions.left { justify-content: flex-start; }
.err { color: var(--rot); font-size: 13px; font-weight: 500; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg legend { font-size: 13px; font-weight: 500; color: var(--s800); margin-bottom: 6px; }
.seg label { cursor: pointer; font-weight: 400; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg span { display: block; padding: 6px 11px; border-radius: var(--radius); border: 1px solid var(--s300); background: var(--flaeche); color: var(--s700); }
.seg label:hover span { border-color: var(--s400); }
.seg input:checked + span { border-color: var(--elleta); background: var(--elleta-hell); color: var(--elleta-dunkel); font-weight: 500; }
.seg input:focus-visible + span { outline: 2px solid var(--elleta); outline-offset: 2px; }

dialog { background: var(--flaeche); color: var(--text); border: 1px solid var(--s200); border-radius: 10px; padding: 20px 22px; width: min(540px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgb(15 23 42 / 0.2); }
dialog::backdrop { background: rgb(15 23 42 / 0.35); }
dialog h2 { font-size: 16px; letter-spacing: -0.01em; }
.hits { display: grid; gap: 4px; margin-top: -6px; }
.hits a { display: block; padding: 8px 10px; border: 1px solid #fde68a; border-radius: var(--radius); background: #fffbeb; color: #78350f; font-size: 13px; }
.hits a b { font-weight: 600; }
.hits a:hover { border-color: #f59e0b; }

/* ---------- Firma ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.spalte { display: grid; gap: 16px; min-width: 0; }
.ev { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--s100); }
.ev:first-child { padding-top: 0; border-top: 0; }
.ev:last-child { padding-bottom: 0; }
.ev-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ev-head b { font-weight: 600; }
.ev-head time { color: var(--s600); }
.ev-meta { color: var(--s600); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.ev-meta a, .raus-liste a { color: var(--elleta); font-weight: 500; }
.ev-meta a:hover, .raus-liste a:hover { text-decoration: underline; text-underline-offset: 2px; }
.ev-note { margin-top: 5px; max-width: 70ch; }
.ev-note .dim { margin-right: 6px; }
.ev-act { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 7px; font-size: 13px; }
.ev-act:empty { display: none; }
.raus-liste { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--s100); color: var(--s600); font-size: 13px; display: grid; gap: 4px; }
.raus-liste b { font-weight: 600; color: var(--s800); }
.add { display: grid; gap: 13px; }
.add > h2 { margin-bottom: 0; }
.fact { margin-bottom: 12px; line-height: 1.5; }
.fact b { font-weight: 600; }
.alike li { padding: 6px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.alike a { font-weight: 500; }
.alike a:hover { color: var(--elleta); text-decoration: underline; text-underline-offset: 2px; }
.alike form { margin-left: auto; font-size: 13px; }
.foot { font-size: 13px; }

/* ---------- Welle: Check in der Liste ---------- */
.go { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 14px; margin-top: 10px; }
.go details { flex: 1 1 320px; font-size: 13px; }
.go summary { display: inline-block; padding: 6px 0; color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.go textarea { margin: 6px 0; font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre; }
.bilanz { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgb(15 23 42 / 0.1); color: var(--s700); }
.bilanz h2 { font-size: 13px; color: var(--text); margin-bottom: 4px; }
.bilanz h2 .dim { font-weight: 500; margin-left: 4px; }
.bilanz li { display: flex; flex-wrap: wrap; gap: 0 8px; padding: 2px 0; font-size: 13px; }
.bilanz li a { color: var(--text); font-weight: 500; }
.bilanz li a:hover { color: var(--elleta); text-decoration: underline; text-underline-offset: 2px; }
.bilanz-grund { color: var(--s600); }
.bilanz-grund::before { content: "·"; margin-right: 8px; color: var(--s400); }

.paste { margin-bottom: 20px; padding: 0; }
.paste summary { display: flex; align-items: center; gap: 8px; padding: 11px 16px; font-weight: 500; color: var(--s700); list-style: none; }
.paste summary::-webkit-details-marker { display: none; }
.paste summary:hover { color: var(--elleta); }
.paste[open] summary { border-bottom: 1px solid var(--s100); color: var(--text); }
.paste form { display: grid; gap: 10px; padding: 14px 16px 16px; max-width: 860px; }
.paste .sub { margin: 0; }
.paste textarea { font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; }

.pruef td.firm { width: 27%; }
.pruef .firm .dim { display: block; margin: 1px 0 0; font-size: 13px; }
.pruef .kontakt { color: var(--s700); min-width: 130px; }
.hinweis { color: var(--s600); font-size: 13px; min-width: 240px; max-width: 420px; }
.hinweis p + p { margin-top: 2px; }
.hinweis b { color: var(--s800); font-weight: 600; }
.hinweis a { color: var(--elleta); font-weight: 500; }
.hinweis a:hover { text-decoration: underline; text-underline-offset: 2px; }
.urteil { white-space: nowrap; }
.pruef td { padding-top: 8px; padding-bottom: 8px; }
.pruef td.firm, .pruef td.kontakt, .pruef td.hinweis, .pruef td.urteil { padding-top: 13px; }
.akt { width: 1%; white-space: nowrap; }
.akt-in { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.akt-in .link { margin-left: 6px; font-size: 13px; }
tr.raus td { background: var(--bg); }
tr.raus .firm a { color: var(--s500); font-weight: 400; text-decoration: line-through; text-decoration-color: var(--s400); }
tr.raus .firm a:hover { color: var(--elleta); }
.pruef td.grund { padding-top: 8px; }
.grund p { padding-top: 5px; color: var(--s600); font-size: 13px; }
.grund p b { color: var(--s800); font-weight: 600; }
.grund-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.grund-wer { color: var(--s500); font-size: 13px; margin-right: 2px; white-space: nowrap; }
.grund-chip { height: 28px; padding: 0 10px; border: 1px solid var(--s300); border-radius: 14px; background: var(--flaeche); color: var(--s700); font-size: 13px; white-space: nowrap; }
.grund-chip:hover { border-color: var(--elleta); color: var(--elleta-dunkel); }
.grund-chip[aria-pressed="true"] { border-color: var(--elleta); background: var(--elleta-hell); color: var(--elleta-dunkel); font-weight: 600; }
.grund-form input { flex: 1 1 200px; width: auto; max-width: 300px; height: 28px; font-size: 13px; }
.grund-gemerkt { display: inline-flex; align-items: center; gap: 4px; color: #065f46; font-size: 12.5px; white-space: nowrap; }
.grund-gemerkt .ic { width: 13px; height: 13px; }
tr.wartet td { opacity: 0.6; }
.pruef tr:focus { outline: none; }
.pruef tr:focus-visible td { background: var(--elleta-hell); }
tr.blink td { animation: blink 0.9s ease-out; }
@keyframes blink { from { background: var(--elleta-hell); } }

/* Abschlussleiste: bleibt am unteren Rand stehen, damit der Abschluss bei 250 Zeilen immer erreichbar ist. */
.leiste { position: sticky; bottom: 12px; z-index: 5; margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 10px 12px 10px 16px; border: 1px solid var(--s300); border-radius: 8px; background: var(--flaeche); box-shadow: 0 6px 20px rgb(15 23 42 / 0.1); }
.leiste-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; color: var(--s600); }
.leiste-text b { color: var(--text); font-weight: 600; }
.leiste-text .warn { color: var(--rot); font-weight: 600; }
.leiste-akt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }

/* ---------- Verlauf ---------- */
.day { color: var(--s600); font-size: 12px; font-weight: 600; padding: 18px 0 8px; }
.day:first-of-type { padding-top: 0; }
.log { border: 1px solid var(--s200); border-radius: var(--radius); background: var(--flaeche); }
.log li { display: grid; grid-template-columns: 44px 24px 1fr; gap: 12px; align-items: center; padding: 8px 16px; }
.log li + li { border-top: 1px solid var(--s100); }
.log time { color: var(--s500); font-size: 13px; }
.log b { font-weight: 600; }
.log a:hover { color: var(--elleta); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Anmeldung ---------- */
body.bare { display: grid; place-items: center; padding: 24px 16px; }
.auth { width: min(360px, 100%); margin-top: -6vh; }
.auth .marke { padding: 0 0 22px; }
.auth h1 { font-size: 22px; }
.lead { color: var(--s600); margin: 6px 0 22px; }
.lead b { color: var(--text); font-weight: 600; }
.auth .stack { padding: 20px; border: 1px solid var(--s200); border-radius: 8px; background: var(--flaeche); }
.fine { color: var(--s500); font-size: 13px; margin-top: 16px; line-height: 1.5; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}
/* Die Prüfliste wird früh zu Karten: Firma, Hinweis, Urteil und Aktionen untereinander. Die Aktionen dürfen nie hinter
   waagrechtem Scrollen verschwinden. */
@media (max-width: 1040px) {
  .pruef, .pruef tbody, .pruef tr, .pruef td, .pruef tr.gruppe th { display: block; }
  .pruef thead { display: none; }
  .pruef tbody[hidden] { display: none; }
  .pruef tr:not(.gruppe):not(.empty) { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 11px 12px; border-bottom: 1px solid var(--s100); }
  .pruef td { padding: 0 !important; border: 0; min-width: 0; max-width: none; width: auto; }
  .pruef td.firm { grid-column: 1; width: auto; }
  .pruef td.urteil { grid-column: 2; grid-row: 1; }
  .pruef td.kontakt, .pruef td.hinweis, .pruef td.grund, .pruef td.akt { grid-column: 1 / -1; }
  .pruef td.kontakt:has(.none), .pruef td.hinweis:has(> .none) { display: none; }
  .pruef .akt-in { justify-content: flex-start; margin-top: 6px; }
  .pruef tr.raus { background: var(--bg); }
}
@media (max-width: 720px) {
  .nav { order: 3; flex: 1 0 100%; }
  .ich-name, .ich-ab { display: none; }
  .seite { padding: 18px 12px 96px; }
  .two { grid-template-columns: 1fr; }
  .tools > .suche { width: 100%; margin: 10px 0; }
  .suche.gross { width: 100%; }
  .pruef .btn.klein { height: 36px; padding: 0 14px; }
  .grund-chip { height: 34px; }
  .grund-form input { max-width: none; flex-basis: 100%; height: 36px; }
  .bilanz-grund { flex-basis: 100%; }
  .bilanz-grund::before { content: none; }
  .bilanz li { padding: 4px 0; }
  .leiste { bottom: 8px; }
  .leiste-akt, .leiste-akt form, .leiste-akt .btn { width: 100%; }
  .offen-akt, .offen-akt .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .tab, input, select, textarea, .seg span, .grund-chip { transition: background-color 0.12s, border-color 0.12s, color 0.12s; }
}
@media (prefers-reduced-motion: reduce) {
  tr.blink td { animation: none; }
}
