/* @revision 2026-11-29o */
/* GOÄ-Rechnung – helles Layout mit Seitenleiste */
:root {
  --grund: #f6f5f5; --flaeche: #fff; --rand: #e7e2e2; --rand-stark: #d8d0d0;
  --text: #241e1e; --leise: #766c6c; --akzent: #b5121b; --akzent-hover: #8f0e15; --akzent-hell: #fbe5e6;
  --gruen: #1d7350; --gruen-bg: #e3f3ea; --gelb: #8a5a00; --gelb-bg: #fcefd2; --rot: #9c1c14; --rot-bg: #fdecea;
  --blau: #285f8f; --blau-bg: #e5eef7; --grau-bg: #f0eeee;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--grund); display: flex; min-height: 100vh; }
a { color: var(--akzent); }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.abstand { flex: 1; }
.klein { font-size: .82rem; color: var(--leise); }
.r { text-align: right; }

/* ---------- Seitenleiste ---------- */
.seitenleiste { width: 248px; flex: none; background: var(--flaeche); border-right: 1px solid var(--rand); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 1.1rem .75rem .75rem; }
.marke { display: flex; align-items: center; gap: .6rem; padding: 0 .6rem 1.1rem; font-weight: 700; font-size: 1.05rem; color: var(--akzent); }
.marke .icon { width: 30px; height: 30px; stroke-width: 2; }
.marke img { width: 36px; height: 36px; flex: none; }
.marke small { display: block; font-weight: 500; font-size: .75rem; color: var(--leise); }
.seitenleiste nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.seitenleiste .gruppe { font-size: .78rem; color: var(--leise); padding: 1rem .7rem .35rem; font-weight: 500; }
.seitenleiste nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 8px; color: var(--text);
  text-decoration: none; font-size: .95rem; position: relative; }
.seitenleiste nav a .icon { color: var(--leise); width: 20px; height: 20px; }
.seitenleiste nav a span { flex: 1; }
.seitenleiste nav a:hover { background: var(--grau-bg); }
.seitenleiste nav a.aktiv { background: var(--akzent-hell); font-weight: 600; }
.seitenleiste nav a.aktiv::before { content: ""; position: absolute; left: -.75rem; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--akzent); }
.seitenleiste nav a.aktiv .icon { color: var(--akzent); }
.zaehler { min-width: 1.6rem; padding: .05rem .45rem; border-radius: 99px; background: var(--grau-bg); font-size: .78rem; text-align: center; font-weight: 600; }
.zaehler:empty { display: none; }
.zaehler.warn { background: var(--gelb-bg); color: var(--gelb); }
/* Statistik in der Seitenleiste */
.statistik { border: 1px solid var(--rand); border-radius: var(--radius); padding: .45rem .55rem; margin-top: .6rem; display: flex; flex-direction: column; gap: .15rem; }
.statistik .stat-zeile { display: grid; grid-template-columns: 1fr auto; column-gap: .5rem; padding: .3rem .25rem; border-radius: 6px; color: var(--text); text-decoration: none; }
.statistik .stat-zeile:hover { background: var(--grau-bg); }
.statistik .stat-zeile span { font-size: .78rem; color: var(--leise); }
.statistik .stat-zeile b { font-size: .92rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.statistik .stat-zeile small { grid-column: 1 / -1; font-size: .7rem; color: var(--leise); }
.statistik .stat-zeile.warn b, .statistik .stat-zeile.warn span { color: var(--rot); }
.art-filter button { white-space: nowrap; }
.nutzerkarte { border: 1px solid var(--rand); border-radius: var(--radius); padding: .7rem; margin-top: .6rem; }
.nutzer { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.nutzer-text { min-width: 0; }
.nutzer b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.nutzer small { color: var(--leise); font-size: .78rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--akzent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .85rem; flex: none; }
.nutzer-links { display: flex; justify-content: space-around; border-top: 1px solid var(--rand); margin-top: .65rem; padding-top: .5rem; }
.nutzer-links a { color: var(--leise); padding: .25rem .6rem; border-radius: 6px; }
.nutzer-links a:hover { background: var(--grau-bg); color: var(--text); }

/* ---------- Hauptbereich ---------- */
main { flex: 1; min-width: 0; padding: 1.4rem 2rem 3rem; }
.seitenkopf { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.seitenkopf h1 { margin: 0; font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; }
.zurueck { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--text); }
.zurueck:hover { background: var(--grau-bg); }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.karte h2 { font-size: 1rem; margin: 0 0 .8rem; }
.karte h3 { font-size: .92rem; margin: 1.2rem 0 .6rem; }
.kartenkopf { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.kartenkopf h2 { margin: 0; }
details.karte > summary { cursor: pointer; font-weight: 600; }
details.karte[open] > summary { margin-bottom: .8rem; }
.zweispaltig { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.schmal-spalte { max-width: 760px; }
@media (max-width: 1150px) { .zweispaltig { grid-template-columns: 1fr; } }

/* ---------- Knöpfe ---------- */
button, .knopf-hell, summary.knopf-hell { font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; border-radius: 9px; padding: .5rem .95rem; }
button { border: 1px solid transparent; }
.primaer { background: var(--akzent); color: #fff; font-weight: 600; }
.primaer:hover { background: var(--akzent-hover); }
.primaer:disabled { opacity: .5; cursor: default; }
.knopf-hell { background: var(--flaeche); color: var(--text); border: 1px solid var(--rand-stark); }
.knopf-hell:hover { background: var(--grau-bg); }
.gefahr { color: var(--rot); }
.icon-knopf { background: var(--flaeche); border: 1px solid var(--rand-stark); padding: .5rem .6rem; color: var(--text); }
.icon-knopf.gefahr { color: var(--rot); border-color: transparent; }
.icon-knopf:hover { background: var(--grau-bg); }
button.link { background: none; border: 0; padding: .2rem .3rem; color: var(--leise); }
button.link:hover { color: var(--text); text-decoration: underline; }
.knopfzeile { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; }
.klein-knopf { padding: .25rem .65rem; font-size: .85rem; }

/* ---------- Formulare ---------- */
input, select, textarea { font: inherit; color: var(--text); padding: .5rem .6rem; border: 1px solid var(--rand-stark); border-radius: 8px; width: 100%; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--akzent) 35%, transparent); outline-offset: 0; border-color: var(--akzent); }
input:disabled, select:disabled, textarea:disabled { background: #f5f4f4; color: #444; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--akzent); }
input[type=checkbox] { width: 16px; height: 16px; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .84rem; color: var(--leise); margin-bottom: .6rem; }
.raster label { margin-bottom: 0; }
label.inline { flex-direction: row; align-items: center; gap: .45rem; color: var(--text); }
label.wahl { align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--rand); border-radius: 10px; margin-bottom: .5rem; cursor: pointer; }
label.wahl:has(input:checked) { border-color: var(--akzent); background: var(--akzent-hell); }
label.wahl input { margin-top: .2rem; }
.raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: .6rem; }
.spalte-2 { grid-column: span 2; }
@media (max-width: 900px) { .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mit-praefix { display: flex; align-items: stretch; }
.mit-praefix > span { display: flex; align-items: center; padding: 0 .55rem; background: var(--grau-bg); border: 1px solid var(--rand-stark); border-right: 0;
  border-radius: 8px 0 0 8px; color: var(--leise); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mit-praefix > span:empty { display: none; }
.mit-praefix > span:not(:empty) + input { border-radius: 0 8px 8px 0; }
.feldwert { padding: .5rem 0; font-weight: 600; color: var(--text); }
input.schmal { width: 240px; }
input.zahl { text-align: right; }
input.kurz { width: 5.2rem; }
input.pflicht { border-color: var(--rot); background: var(--rot-bg); }
details > summary { cursor: pointer; color: var(--akzent); margin: .3rem 0; }
form.inline { display: flex; gap: .4rem; align-items: center; }
form.inline input[type=file] { width: auto; padding: .3rem; }

/* ---------- Filterleiste, Tabs, Suche ---------- */
.filterleiste { display: flex; align-items: center; gap: .8rem; padding: .7rem; flex-wrap: wrap; }
.tabs { display: inline-flex; border: 1px solid var(--rand); border-radius: 10px; padding: 3px; gap: 2px; }
.tabs button { background: none; border: 0; padding: .4rem .75rem; border-radius: 8px; color: var(--text); font-weight: 500; }
.tabs button:hover { background: var(--grau-bg); }
.tabs button.aktiv { background: var(--akzent-hell); font-weight: 600; }
.tabs button .zaehler { background: rgba(0,0,0,.06); font-weight: 500; }
.suchfeld { flex-direction: row; align-items: center; gap: 0; margin: 0; position: relative; flex: 0 1 460px; }
.suchfeld .icon { position: absolute; left: .7rem; color: var(--leise); }
.suchfeld input { padding-left: 2.3rem; }
.aufklapp { position: relative; }
.aufklapp > summary { list-style: none; margin: 0; }
.aufklapp > summary::-webkit-details-marker { display: none; }
.aufklapp-menue { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: 10px; padding: .9rem; width: 260px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.filter-zahl:not(:empty) { background: var(--akzent); color: #fff; border-radius: 99px; padding: 0 .45rem; font-size: .75rem; }

/* ---------- Tabellen ---------- */
.tabellenkarte { padding: 0; overflow: hidden; }
table { border-collapse: collapse; width: 100%; }
table.liste th, table.liste td { padding: .8rem .9rem; text-align: left; border-bottom: 1px solid var(--rand); vertical-align: middle; }
table.liste th { background: #f9f8f8; font-weight: 600; font-size: .88rem; color: var(--text); white-space: nowrap; }
table.liste th.sortierbar { cursor: pointer; user-select: none; }
table.liste th.sortierbar::after { content: " ⇅"; color: var(--leise); font-weight: 400; }
table.liste th.sort-auf::after { content: " ↑"; color: var(--akzent); }
table.liste th.sort-ab::after { content: " ↓"; color: var(--akzent); }
table.liste th.r, table.liste td.r { text-align: right; }
table.liste tbody tr { cursor: pointer; }
table.liste tbody tr:last-child td { border-bottom: 0; }
table.liste tbody tr:hover { background: #fbfafa; }
table.liste tbody tr.gewaehlt { background: #fcf1f1; }
table.liste td.wahl, table.liste th.wahl { width: 40px; padding-right: 0; }
table.liste td.menue { width: 44px; text-align: center; }
td .unterzeile { display: block; font-weight: 400; font-size: .8rem; color: var(--leise); margin-top: .1rem; }
td.name { font-weight: 600; }
td.betrag { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
#beg-liste tr.nur-lesen { cursor: default; color: var(--text-leise, #666); }
td.diagnose-zelle { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.hinweis-zelle .hinweis-text { display: block; }
.hinweis-text.optimierung { color: var(--gruen); font-weight: 600; white-space: nowrap; }
#liste-koerper td:nth-child(2) .unterzeile, #liste-koerper td:nth-child(3) .unterzeile { white-space: nowrap; }
#liste-koerper td .art-badge { margin-left: 0; white-space: nowrap; }
table.positionen tr.pos-zusatz.mehrfach input { font-size: .85rem; }
td.vorschlag-betrag { color: var(--gruen); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.kuerzen { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
tr.inaktiv { color: #999; }
.leer { color: var(--leise); text-align: center; padding: 2.5rem !important; cursor: default; }
.punkte-knopf { background: none; border: 0; padding: .2rem .45rem; color: var(--leise); font-size: 1.1rem; letter-spacing: .05em; border-radius: 6px; }
.punkte-knopf:hover { background: var(--grau-bg); color: var(--text); }
.auswahlleiste { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-bottom: 1px solid var(--rand); background: var(--flaeche); flex-wrap: wrap; }
.auswahl-text b { font-weight: 600; }
.zeilenmenue { position: fixed; z-index: 30; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.1);
  padding: .3rem; min-width: 190px; display: flex; flex-direction: column; }
.zeilenmenue button { background: none; border: 0; text-align: left; padding: .5rem .7rem; border-radius: 6px; color: var(--text); }
.zeilenmenue button:hover { background: var(--grau-bg); }
.zeilenmenue button.gefahr { color: var(--rot); }

/* ---------- Status-Badges ---------- */
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 99px; font-size: .8rem; font-weight: 600; background: var(--grau-bg); color: var(--leise);
  border: 1px solid transparent; white-space: nowrap; }
.badge.bereit, .badge.bezahlt { background: var(--gruen-bg); color: var(--gruen); border-color: #bfe3cf; }
.badge.unvollstaendig, .badge.entwurf { background: var(--gelb-bg); color: var(--gelb); border-color: #f1dca8; }
.badge.offen, .badge.gestellt { background: var(--blau-bg); color: var(--blau); border-color: #c8d9ea; }
.badge.ueberfaellig, .badge.storniert { background: var(--rot-bg); color: var(--rot); border-color: #f3c6c2; }
.hinweis-text { color: var(--text); }
.hinweis-text.leise { color: var(--leise); }

/* ---------- Editor ---------- */
.editor-raster { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; align-items: start; }
.editor-seite { position: sticky; top: 1rem; }
@media (max-width: 1200px) { .editor-raster { grid-template-columns: 1fr; } .editor-seite { position: static; } }
table.positionen { margin: .4rem 0 .8rem; }
table.positionen th { text-align: left; font-size: .8rem; color: var(--leise); font-weight: 500; padding: .3rem; border-bottom: 1px solid var(--rand); }
table.positionen th.r { text-align: right; }
table.positionen td { padding: .25rem .3rem; }
table.positionen tr.pos-zusatz td { border-bottom: 1px solid var(--rand); padding-bottom: .55rem; }
table.positionen tr.pos td:first-child { width: 5.5rem; }
table.positionen tr.pos td:nth-child(2) { width: 50%; }
td.punkte { color: var(--leise); width: 3.5rem; text-align: right; }
td.betrag { width: 6.5rem; text-align: right; }
tr.konflikt td input[data-f="ziffer"] { border-color: var(--rot); background: var(--rot-bg); }
tr.automatisch input { background: #f8f3f3; }
span.auto { font-size: .7rem; background: var(--gruen-bg); color: var(--gruen); border-radius: 99px; padding: .1rem .45rem; font-weight: 600; }
button.entfernen { background: none; border: 0; color: #999; padding: .2rem .45rem; }
button.entfernen:hover { color: var(--rot); background: var(--rot-bg); }
#re-summen > div { display: flex; justify-content: space-between; padding: .15rem 0; color: var(--leise); }
#re-summen .gesamt { color: var(--text); font-size: 1.35rem; font-weight: 700; border-top: 1px solid var(--rand); margin-top: .4rem; padding-top: .55rem; }
.hinweisliste { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.hinweisliste li { padding: .45rem .65rem; border-radius: 8px; font-size: .88rem; }
.hinweisliste li.fehler { background: var(--rot-bg); color: var(--rot); }
.hinweisliste li.warnung { background: var(--gelb-bg); color: var(--gelb); }
.hinweisliste li.optional { background: var(--grau-bg); color: var(--leise); }
.ok-text { color: var(--gruen); font-weight: 600; display: flex; align-items: center; gap: .4rem; margin: .5rem 0 0; }
.vorschlaege { display: flex; flex-direction: column; gap: .5rem; margin: .4rem 0 .6rem; }
.vorschlag { border: 1px solid var(--rand); background: #fbfafa; border-radius: 10px; padding: .6rem .75rem; font-size: .9rem; }
.vorschlag.optimierung { border-color: #f0c4c6; background: #fdf5f5; }
.vorschlag .klein-knopf { margin-top: .4rem; }
.ziffer-chip { display: inline-block; border: 1px solid var(--rand-stark); background: #fff; border-radius: 99px; padding: 0 .55rem; margin: .2rem .1rem; font-size: .85rem; }
.ziffer-chip.da { background: var(--gruen-bg); border-color: #bfe3cf; color: var(--gruen); }

/* ---------- Meldungen ---------- */
#meldung { position: fixed; top: 1rem; right: 1.2rem; max-width: 480px; padding: .8rem 1rem; border-radius: 10px; z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); cursor: pointer; border: 1px solid transparent; }
#meldung.ok { background: var(--gruen-bg); color: var(--gruen); border-color: #bfe3cf; }
#meldung.fehler { background: var(--rot-bg); color: var(--rot); border-color: #f3c6c2; }
#meldung.warnung { background: var(--gelb-bg); color: var(--gelb); border-color: #f1dca8; }
#meldung ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.fehler { color: var(--rot); }

/* ---------- Anmeldung ---------- */
body.login { display: grid; place-items: center; }
body.login form { width: 360px; display: flex; flex-direction: column; gap: .2rem; padding: 1.8rem; }
body.login .marke { padding: 0 0 1rem; }
body.login button { justify-content: center; margin-top: .4rem; }

@media (max-width: 800px) {
  body { flex-direction: column; }
  .seitenleiste { position: static; width: 100%; height: auto; }
  main { padding: 1rem; }
}
label input, label select, label textarea, label .mit-praefix > span { font-size: 1rem; }
label input[type=checkbox], label input[type=radio] { font-size: inherit; }

/* ---------- Ziffernsuche im Einsatz ---------- */
.ziffersuche { position: relative; margin: .6rem 0 .2rem; }
.ziffersuche .suchfeld { flex: none; width: 100%; }
.trefferliste { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 25; background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.1); padding: .3rem; max-height: 360px; overflow-y: auto; }
.trefferliste button { display: grid; grid-template-columns: 4rem 1fr auto; gap: .6rem; width: 100%; text-align: left; background: none; border: 0;
  padding: .5rem .6rem; border-radius: 7px; color: var(--text); }
.trefferliste button:hover, .trefferliste button.markiert { background: var(--akzent-hell); }
.leer-treffer { padding: .6rem; }
select.kurz { width: 5.6rem; padding-right: .2rem; }

/* Einsatzart: Notarzteinsatz / Leichenschau */
#ansicht-rechnung[data-art="leichenschau"] .nur-notarzt,
#ansicht-rechnung:not([data-art="leichenschau"]) .nur-leichenschau { display: none !important; }
.art-badge { display: inline-block; font-size: .7rem; font-weight: 600; padding: .05rem .4rem; border-radius: 4px;
  background: #ece6f5; color: #4b3577; margin-left: .35rem; vertical-align: middle; }
#re-positionen tr.wegegeld td { color: #444; }
.vorschlag.hinweis { border-color: #f1dca8; background: var(--gelb-bg); }
.nutzerkarte .revision { font-size: .7rem; color: var(--leise); text-align: center; padding-top: .35rem; }
#ansicht-rechnung #re-buendel { display: flex; flex-direction: row; flex-wrap: wrap; gap: .4rem; }
#re-buendel:empty { display: none; }
#re-buendel .buendel-knopf { font-weight: 600; width: auto; flex: none; }
.buendel-knopf, .knopf-hell.buendel-knopf { background: var(--gruen-bg); border-color: #bfe3cf; color: var(--gruen); }
.buendel-knopf:hover, .knopf-hell.buendel-knopf:hover { background: #d2ecdd; border-color: #9fd3b6; color: var(--gruen); }
.trefferliste button.buendel-treffer { background: var(--gruen-bg); }
.trefferliste button.buendel-treffer > b { color: var(--gruen); }
.trefferliste button.buendel-treffer.markiert { background: #d2ecdd; }
.badge.erstellt { background: #f3e8fb; color: #6b2c91; border-color: #e0c8ef; }
/* Pflicht-Vorschau vor dem Erstellen */
dialog.vorschau-dialog { width: min(980px, 96vw); height: 92vh; padding: 0; border: 1px solid var(--rand, #ddd); border-radius: 10px;
  display: none; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog.vorschau-dialog[open] { display: flex; }
dialog.vorschau-dialog::backdrop { background: rgba(20, 20, 20, .45); }
dialog.vorschau-dialog header, dialog.vorschau-dialog footer { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; }
dialog.vorschau-dialog header { border-bottom: 1px solid #e5e5e5; }
dialog.vorschau-dialog header h2 { margin: 0; font-size: 1.05rem; }
dialog.vorschau-dialog footer { border-top: 1px solid #e5e5e5; flex-wrap: wrap; }
dialog.vorschau-dialog footer .klein { flex: 1 1 320px; margin: 0; }
dialog.vorschau-dialog iframe { flex: 1; width: 100%; border: 0; background: #888; }
td.ziffer-zelle { white-space: nowrap; padding-left: .5rem !important; }
td.leistung-zelle { line-height: 1.35; }
.seitenleiste nav a.neu-link { color: var(--akzent); }
/* Diagnosen / Alias */
.diagnose-wahl { margin-top: .4rem; }
.buendel-chip { display: inline-block; font-size: .75rem; font-weight: 600; background: var(--gruen-bg); color: var(--gruen);
  border: 1px solid #bfe3cf; border-radius: 99px; padding: .05rem .5rem; margin: .1rem 0; }
fieldset.buendel-wahl { border: 1px solid var(--rand); border-radius: 8px; padding: .5rem .8rem; margin: .6rem 0; }
fieldset.buendel-wahl legend { font-size: .85rem; padding: 0 .3rem; }
fieldset.buendel-wahl label.inline { display: flex; margin: .2rem 0; }
#ali-form { align-items: flex-end; }
#ali-form label:not(.suchfeld) { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; margin: 0; }
dialog.vorschau-dialog .vd-hinweis { margin: 0; padding: .7rem 1rem; background: var(--gelb-bg); color: var(--gelb); }

/* Revision o: Abmelde-Timer, Mahnwesen, abweichender Rechnungsempfänger */
.nutzerkarte .abmelde-timer { font-size: .72rem; color: var(--leise); text-align: center; padding-top: .45rem; font-variant-numeric: tabular-nums; }
.nutzerkarte .abmelde-timer.bald { color: var(--rot); font-weight: 600; }
dialog.timeout-dialog { width: min(440px, 92vw); border: 1px solid var(--rand, #ddd); border-radius: 10px; padding: 1.1rem 1.3rem; }
dialog.timeout-dialog::backdrop { background: rgba(20, 20, 20, .45); }
dialog.timeout-dialog h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
dialog.timeout-dialog p { margin: 0 0 1rem; }
.statistik .stat-zeile.mv b, .statistik .stat-zeile.mv span { color: #8a4b00; }
.statistik .stat-zeile.leise b, .statistik .stat-zeile.leise span { color: var(--leise); font-weight: normal; }
.badge.mahnverfahren { background: #fdf0e1; color: #8a4b00; border-color: #f0d2ab; }
.badge.uneintreibbar { background: #ececec; color: #555; border-color: #d4d4d4; }
.unterzeile.mahn { color: var(--rot); }
.mahnliste { list-style: none; margin: .2rem 0 .7rem; padding: 0; font-size: .85rem; }
.mahnliste li { padding: .3rem 0; border-top: 1px solid var(--rand); }
.mahnliste li:first-child { border-top: 0; }
.knopfspalte { display: flex; flex-direction: column; gap: .4rem; }
.knopfspalte button { width: 100%; }
.abw-empf { display: inline-block; margin-top: .15rem; font-size: .72rem; color: var(--blau); background: var(--blau-bg); border-radius: 4px; padding: 0 .35rem; }
.login .hinweis { background: var(--blau-bg); color: var(--blau); padding: .5rem .7rem; border-radius: 6px; }
.mahnliste .unterzeile { display: block; }
