/* ==========================================================================
   CIB Mitgliederverwaltung – Oberfläche 2026
   Ersetzt style2.css. Grundlage: Gestaltungsentwurf entwurf/index.html
   (Verwaltungsstandard, Akzent CIB-Blau nur für Handlung/Auswahl,
   Rot/Gelb/Grün nur für Status). Der zweite Teil übersetzt die Bausteine
   der Bestandsseiten (eingabebox_*, buttonneu, Tabellen mit width="70%",
   <font color> für Meldungen) auf dieses System.
   ========================================================================== */

:root {
  --canvas: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --ink: #15181c;
  --ink-2: #454d57;
  --ink-3: #636c77;
  --line: #e3e6ea;
  --line-2: #d2d7dd;
  --accent: #1f5fae;
  --accent-hover: #184e90;
  --accent-soft: #e9f1fb;
  --accent-ink: #174a88;
  --red: #b8322a;
  --red-soft: #fcecea;
  --amber: #7d5200;
  --amber-soft: #fcf1d4;
  --green: #256a41;
  --green-soft: #e4f2e9;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, .18), 0 4px 10px -4px rgba(16, 24, 40, .08);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sidebar: 248px;
  --topbar: 60px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 var(--font);
  color: var(--ink);
  background: var(--canvas) !important;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  padding: 32px 24px 48px;
}
/* Platz für Seitenleiste und Kopfzeile nur auf Seiten mit Navigation */
body:has(.cib-sidebar) { padding: calc(var(--topbar) + 8px) 28px 48px calc(var(--sidebar) + 28px); }
::selection { background: #cfe0f5; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: #c5cbd2 transparent; }
a { color: var(--accent); text-underline-offset: 3px; }
img { border: 0; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1 { font-size: 26px; line-height: 1.2; margin: 18px 0 18px; letter-spacing: -.01em; font-weight: 700; }
h2 { font-size: 20px; margin: 22px 0 10px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
h4 { font-size: 14.5px; margin: 14px 0 6px; }
p { margin: 8px 0; }

/* ---------- Rahmen: Seitenleiste ---------- */
.cib-sidebar {
  position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: var(--sidebar); overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 12px 12px; text-align: left;
}
.cib-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 18px; text-decoration: none; color: var(--ink); }
.cib-brand img { width: 52px; height: auto; }
.cib-brand strong { display: block; font-size: 15px; line-height: 1.25; }
.cib-brand span { display: block; font-size: 12.5px; color: var(--ink-3); }
.cib-nav-group { margin-top: 14px; }
.cib-nav-group > h2 { font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 0 10px 4px; }
.cib-nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14.5px;
}
.cib-nav a:hover { background: var(--surface-2); color: var(--ink); }
.cib-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.cib-nav a .count { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.cib-sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.cib-avatar { width: 32px; height: 32px; border-radius: 50%; background: #e7ebf0; color: var(--ink-2); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.cib-who { font-size: 13.5px; line-height: 1.3; min-width: 0; }
.cib-who span { color: var(--ink-3); display: block; }
.cib-icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.cib-icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.cib-sidebar-foot .cib-icon-btn { margin-left: auto; }
.cib-copyright { font-size: 12px; color: var(--ink-3); padding: 10px 8px 0; margin: 0; }
body.cib-login { grid-template-rows: 1fr auto; }
body.cib-login .cib-copyright { text-align: center; padding: 16px 0 0; }

/* ---------- Rahmen: Kopfzeile ---------- */
.cib-topbar {
  position: fixed; z-index: 40; top: 0; left: var(--sidebar); right: 0; height: var(--topbar);
  display: flex; align-items: center; gap: 12px; padding: 0 28px; text-align: left;
  background: rgba(243, 244, 246, .92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.cib-topbar .cib-menu-btn, .cib-topbar .cib-top-logo { display: none; }
.cib-search {
  flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; margin: 0;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--ink-3);
}
.cib-search input { border: 0 !important; outline: 0; background: transparent !important; flex: 1; min-width: 0; height: auto !important; padding: 0 !important; box-shadow: none !important; font: inherit; color: var(--ink); width: auto; }
.cib-search input::placeholder { color: var(--ink-3); }
.cib-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cib-search kbd { font: 12px/1 var(--font); color: var(--ink-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; background: var(--surface-2); }

/* ---------- Mitglieds-Reiter (Daten, Zahlung, Notizen …) ---------- */
.cib-member-head { text-align: left; margin: 16px 0 0; }
.cib-member-head .name { font-size: 22px; font-weight: 700; line-height: 1.25; }
.cib-member-head .meta { color: var(--ink-3); font-size: 14px; }
.cib-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin: 12px 0 8px; text-align: left; }
.cib-tabs a {
  padding: 10px 8px; margin: 0 4px -1px 0; font-weight: 600; font-size: 14px; color: var(--ink-3); text-decoration: none;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.cib-tabs a:hover { color: var(--ink); }
.cib-tabs a[aria-current="page"] { color: var(--accent-ink); border-bottom-color: var(--accent); }

/* ---------- Filterzeile der Mitgliederliste ---------- */
.cib-filterbar { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; text-align: left; }
.cib-filterbar .cib-switch { margin-top: 6px; }
.cib-chips { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.cib-chips::-webkit-scrollbar { display: none; }
.cib-chip {
  height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; flex: none;
}
.cib-chip:hover { border-color: #b9c0c8; color: var(--ink); }
.cib-chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.cib-switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; text-decoration: none; flex: none; }
.cib-switch .track { width: 34px; height: 20px; border-radius: 99px; background: #c9cfd6; position: relative; flex: none; }
.cib-switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .25); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.cib-switch[aria-checked="true"] .track { background: var(--accent); }
.cib-switch[aria-checked="true"] .track::after { transform: translateX(14px); }

/* ---------- Bausteine der neuen Seiten (wie im Entwurf) ---------- */
.cib-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 18px 0 18px; text-align: left; }
.cib-head h1 { margin: 0; }
.cib-head p { margin: 4px 0 0; color: var(--ink-3); }
.cib-head .cib-aktionen { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
a.cib-btn, button.cib-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--font);
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s;
}
a.cib-btn:hover, button.cib-btn:hover { background: var(--surface-2); border-color: #b9c0c8; }
a.cib-btn.primary, button.cib-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(23, 74, 136, .3); }
a.cib-btn.primary:hover, button.cib-btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
a.cib-btn svg.i, button.cib-btn svg.i { width: 17px; height: 17px; }
.cib-werkzeuge { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; text-align: left; }
.cib-seg { display: inline-flex; background: #e8ebee; border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.cib-seg a { height: 32px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.cib-seg a .n { font-weight: 500; color: var(--ink-3); }
.cib-seg a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.cib-suchfeld { flex: 1 1 260px; max-width: 360px; position: relative; margin: 0; }
.cib-suchfeld svg { position: absolute; left: 11px; top: 11px; color: var(--ink-3); }
.cib-suchfeld input, .cib-suchfeld input[type="search"] { width: 100%; padding-left: 36px; margin: 0; }
.cib-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: left; }
table.cib-list { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.cib-list th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
table.cib-list td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.cib-list tbody tr:last-child td { border-bottom: 0; }
table.cib-list tbody tr { transition: background .12s; }
table.cib-list tbody tr:hover { background: #f7f9fb; }
table.cib-list tfoot td { background: var(--surface-2); font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
table.cib-list .num { text-align: right; white-space: nowrap; }
table.cib-list td:first-child { white-space: nowrap; }
table.cib-list .strong { font-weight: 600; }
table.cib-list a.zeile { color: inherit; text-decoration: none; }
table.cib-list a.zeile:hover .strong { color: var(--accent-ink); }
.cib-sub { display: block; font-size: 13px; color: var(--ink-3); }
.cib-leer { padding: 32px; text-align: center; color: var(--ink-3); }
.cib-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.cib-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cib-badge.offen { color: var(--red); background: var(--red-soft); }
.cib-badge.bezahlt { color: var(--green); background: var(--green-soft); }
.cib-badge.entwurf { color: var(--amber); background: var(--amber-soft); }
.cib-badge.einzug { color: var(--ink-2); background: #eceef1; }
.cib-erechnung { display: inline-flex; vertical-align: -3px; margin-left: 4px; color: var(--ink-3); }
.cib-erechnung svg.i { width: 15px; height: 15px; }
.cib-zeilenaktionen { display: flex; gap: 2px; justify-content: flex-end; }
.cib-zeilenaktionen a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); color: var(--ink-2); }
.cib-zeilenaktionen a:hover { background: var(--surface-2); color: var(--ink); }
.cib-zeilenaktionen a.gefahr:hover { color: var(--red); background: var(--red-soft); }
.cib-zeilenaktionen a.haupt { color: var(--accent); }
.cib-status-zelle { display: inline-flex; align-items: center; gap: 8px; }
.cib-status-knopf { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); color: var(--ink-3); border: 1px solid var(--line-2); background: var(--surface); }
.cib-status-knopf:hover { color: var(--ink); background: var(--surface-2); }
.cib-status-knopf.haupt { color: var(--green); }
.cib-status-knopf.haupt:hover { background: var(--green-soft); border-color: #a9d2b8; }

/* ---------- Mitgliederübersicht: Liste + Detail ---------- */
.cib-split { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 18px; align-items: start; text-align: left; }
.cib-split > * { min-width: 0; }
table.cib-mitglieder tbody tr { cursor: pointer; }
table.cib-mitglieder tbody tr[aria-selected="true"] { background: var(--accent-soft); }
table.cib-mitglieder tbody tr[aria-selected="true"] td { box-shadow: inset 0 1px 0 #9dbbe0, inset 0 -1px 0 #9dbbe0; }
table.cib-mitglieder td:first-child { max-width: 320px; }
table.cib-mitglieder .name-zeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; row-gap: 3px; min-width: 0; }
table.cib-mitglieder .name-zeile .strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
table.cib-mitglieder td.tagzelle { white-space: nowrap; }
table.cib-mitglieder tr.gruppe { cursor: default; background: var(--surface); }
table.cib-mitglieder tr.gruppe:hover { background: var(--surface); }
table.cib-mitglieder tr.gruppe td { padding: 18px 14px 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
table.cib-mitglieder tr.ehemalig { background: #eef0f2; }
table.cib-mitglieder tr.ehemalig:hover { background: #e7eaed; }
table.cib-mitglieder tr.ehemalig[aria-selected="true"] { background: #d3e1f2; }
table.cib-mitglieder tr.ehemalig td { color: var(--ink-3); }
table.cib-mitglieder tr.ehemalig .strong { color: var(--ink-2); text-decoration: line-through; text-decoration-color: #9aa2ab; text-decoration-thickness: 1px; }
.cib-tag { display: inline-block; font-size: 12px; font-weight: 500; color: var(--ink-2); background: #eef0f3; border-radius: 5px; padding: 1px 7px; margin: 1px 4px 1px 0; white-space: nowrap; }
.cib-badge.ehemalig { height: 22px; font-size: 12px; color: #fff; background: #5b636c; }
.cib-badge.ehemalig::before { background: #fff; }
.cib-detail { position: sticky; top: calc(var(--topbar) + 16px); }
.cib-detail-kopf { padding: 20px 20px 0; }
.cib-detail-kopf h2 { font-size: 20px; margin: 0; line-height: 1.25; }
.cib-meta { color: var(--ink-3); margin-top: 2px; font-size: 14px; }
.cib-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.cib-zurueck { display: none; }
.cib-hinweis { margin: 14px 20px 0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px; line-height: 1.45; background: var(--surface-2); color: var(--ink-2); }
.cib-hinweis.warn { background: var(--amber-soft); color: var(--amber); }
.cib-schnell { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 20px; }
.cib-schnell .cib-btn { height: 32px; padding: 0 10px; font-size: 13.5px; }
.cib-tabs.cib-tabs-innen { margin: 0; padding: 0 16px; mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.cib-tabs.cib-tabs-innen a { padding: 10px 6px; margin-right: 1px; }
.cib-tabs.cib-tabs-innen a:last-child { margin-right: 24px; }
dl.cib-fakten { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; padding: 18px 20px 6px; font-size: 14.5px; }
dl.cib-fakten dt { color: var(--ink-3); }
dl.cib-fakten dd { margin: 0; overflow-wrap: anywhere; }
dl.cib-fakten .strong { font-weight: 600; }
.cib-abschnitt { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 14px 20px 0; }
.cib-detail-fuss { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 20px 18px; border-top: 1px solid var(--line); margin-top: 12px; }
.cib-detail-fuss .cib-sub { margin-right: auto; flex: 1 1 200px; min-width: 0; }
.cib-detail-knoepfe { display: flex; gap: 8px; flex: none; margin-left: auto; }
.cib-detail-fuss .cib-btn { height: 32px; padding: 0 10px; font-size: 13.5px; }
a.cib-btn.cib-btn-gefahr { color: var(--red); }
a.cib-btn.cib-btn-gefahr:hover { background: var(--red-soft); border-color: #efc3bf; }
@media (min-width: 861px) and (max-width: 1280px) {
  .cib-split { grid-template-columns: minmax(0, 1fr) 400px; }
  table.cib-mitglieder th:nth-child(2), table.cib-mitglieder td.tagzelle { display: none; }
}

/* ---------- Rechnung anlegen / bearbeiten ---------- */
.cib-pfad { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); margin-top: 16px; text-align: left; }
.cib-pfad a { color: var(--ink-3); text-decoration: none; }
.cib-pfad a:hover { color: var(--accent); }
.cib-pfad svg.i { width: 14px; height: 14px; }
.cib-editor { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; text-align: left; }
.cib-editor > *, .cib-stapel > * { min-width: 0; }
.cib-stapel { display: grid; gap: 18px; }
.cib-panel-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cib-panel-kopf h2 { font-size: 15.5px; margin: 0; }
.cib-panel-kopf .cib-sub { margin-left: auto; }
.cib-panel-inhalt { padding: 18px; }
.cib-feldgitter { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cib-feldgitter.vier { grid-template-columns: 1.2fr 1.2fr 1fr 1.3fr; }
.cib-feld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cib-feld.breit { grid-column: 1 / -1; }
.cib-feld label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cib-feld input, .cib-feld select { width: 100%; margin: 0; }
.cib-feldreihe { display: flex; gap: 8px; align-items: center; }
.cib-feldreihe input.land { width: 58px; flex: none; }
.cib-feldreihe input.plz { width: 90px; flex: none; }
.cib-feldreihe input.zahl { width: 90px; flex: none; }
table.cib-pos { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.cib-pos th { font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-align: left; padding: 0 8px 8px; }
table.cib-pos td { padding: 8px; vertical-align: top; border-top: 1px solid var(--line); }
table.cib-pos .p-menge { width: 72px; }
table.cib-pos .p-preis { width: 112px; }
table.cib-pos .p-mwst { width: 96px; }
table.cib-pos th.p-summe { width: 100px; text-align: right; }
table.cib-pos td.p-summe { width: 100px; text-align: right; padding-top: 17px; font-weight: 600; white-space: nowrap; }
table.cib-pos .p-weg { width: 42px; }
table.cib-pos td.p-weg { padding-top: 10px; }
table.cib-pos td input, table.cib-pos td select { width: 100%; margin: 0; }
table.cib-pos td.p-menge input, table.cib-pos td.p-preis input { text-align: right; }
table.cib-pos textarea.p-text { resize: none; overflow: hidden; min-height: 38px; width: 100%; margin: 0; padding-top: 8px; padding-bottom: 8px; line-height: 1.4; }
.p-extra { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.p-extra .p-rabatt { display: none; align-items: center; gap: 8px; }
.p-extra[data-offen] .p-rabatt { display: inline-flex; }
.p-extra[data-offen] .p-rabatt-auf { display: none; }
.p-extra .p-rabatt input { width: 72px; min-height: 30px; font-size: 13.5px; text-align: right; }
button.cib-linkknopf { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 0; margin: 0; min-height: 0; color: var(--accent); font: 600 13px/1.2 var(--font); cursor: pointer; }
button.cib-linkknopf:hover { text-decoration: underline; text-underline-offset: 3px; background: none; }
button.cib-linkknopf svg.i { width: 14px; height: 14px; }
.cib-combo { position: relative; }
.cib-combo-liste { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 4px; display: none; max-height: 300px; overflow: auto; }
.cib-combo.offen .cib-combo-liste { display: block; }
.cib-combo-liste button { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; border: 0; background: none; padding: 8px 10px; margin: 0; border-radius: 6px; cursor: pointer; min-height: 0; font: inherit; color: var(--ink); }
.cib-combo-liste button:hover, .cib-combo-liste button.hl { background: var(--accent-soft); }
.cib-combo-liste .n, .cib-combo-liste .p { font-weight: 600; font-size: 14px; }
.cib-combo-liste .m { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
.cib-combo-hinweis { padding: 6px 10px 4px; font-size: 12.5px; color: var(--ink-3); }
.cib-pos-neu { padding-top: 12px; border-top: 1px solid var(--line); }
.cib-summe { position: sticky; top: calc(var(--topbar) + 16px); }
.cib-summe-zeilen { padding: 16px 18px; display: grid; gap: 8px; font-size: 14.5px; }
.cib-summe-zeilen > div, #cibSteuer > div { display: flex; justify-content: space-between; gap: 12px; }
#cibSteuer { display: grid; gap: 8px; justify-content: stretch; }
#cibSteuer:empty { display: none; }
.cib-summe-zeilen span:first-child { color: var(--ink-2); }
.cib-summe-gesamt { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; border-top: 1px solid var(--line); }
.cib-summe-gesamt span { font-weight: 600; }
.cib-summe-gesamt strong { font-size: 26px; letter-spacing: -.01em; }
#cibHinweis .cib-hinweis { margin: 0 18px 16px; }
.cib-hinweis.info { background: var(--accent-soft); color: var(--accent-ink); }
.cib-summe-aktionen { display: grid; gap: 8px; padding: 0 18px 18px; }
.cib-summe-aktionen .cib-btn { justify-content: center; }
a.cib-btn.cib-btn-leise { border-color: transparent; background: transparent; color: var(--ink-2); }
a.cib-btn.cib-btn-leise:hover { background: #e9ecef; }
.cib-summenleiste { display: none; }

/* ---------- Offene Posten ---------- */
.cib-kennzahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; text-align: left; }
.cib-kennzahlen > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.cib-kennzahlen span { font-size: 13px; color: var(--ink-3); }
.cib-kennzahlen strong { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cib-kennzahlen small { font-size: 12.5px; color: var(--ink-3); }
.cib-kennzahlen .rot strong { color: var(--red); }
table.cib-list .cib-wahlzelle { width: 44px; padding-right: 0; }
table.cib-list .cib-wahlzelle input { margin: 0; }
table.cib-list tbody tr.gewaehlt { background: var(--accent-soft); }
.cib-nurhandy { display: none; }
.cib-einzug { margin-top: 14px; text-align: left; }
.cib-einzug-inhalt { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.cib-einzug-inhalt .cib-feld { flex: 0 1 320px; }
.cib-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Beiträge einziehen ---------- */
.cib-einzugkonto { padding: 16px 20px; border-top: 1px solid var(--line); text-align: left; }
.cib-einzugkonto:first-of-type { border-top: 0; }
.cib-einzugkonto-kopf .strong { font-weight: 600; font-size: 15px; }
.cib-einzugzahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 14px; }
.cib-einzugzahlen > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.cib-einzugzahlen dt { font-size: 12.5px; color: var(--ink-3); }
.cib-einzugzahlen dd { margin: 0; display: grid; }
.cib-einzugzahlen strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.cib-einzugzahlen span { font-size: 12.5px; color: var(--ink-3); }
ol.cib-schritte { list-style: none; counter-reset: schritt; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
ol.cib-schritte li { counter-increment: schritt; display: flex; align-items: center; gap: 10px; }
ol.cib-schritte li::before { content: counter(schritt, lower-alpha); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; flex: none; }
ol.cib-schritte li > span { font-size: 13px; color: var(--ink-3); }
.cib-ohnekonto { margin: 0 20px 16px; }
.cib-ohnekonto summary { cursor: pointer; }
.cib-ohnekonto ul { margin: 8px 0 0; padding-left: 18px; columns: 2; font-size: 13.5px; }
.cib-ohnekonto a { color: inherit; }
.cib-schritt + .cib-schritt { margin-top: 14px; }
.cib-schritt h2 { display: flex; align-items: center; gap: 10px; }
.cib-schrittnr { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.cib-rechnungsschritt { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; justify-content: space-between; text-align: left; }
.cib-rechnungsschritt > div { flex: 1 1 320px; }
.cib-rechnungsschritt .strong { font-weight: 600; }
.cib-head-klein { margin-top: 28px; }
/* ---------- Mitgliederkarte ---------- */
.cib-karte { overflow: hidden; }
#cibKarte { display: block; height: calc(100vh - 250px); min-height: 420px; }
.cib-schalter { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); margin-left: 8px; white-space: nowrap; }
.cib-karte-fuss { margin: 0 0 10px; text-align: left; }
.cib-werkzeuge + .cib-hinweis { margin: 0 0 12px; }
tr.cib-anker { scroll-margin-top: calc(var(--topbar) + 60px); }
tr.cib-anker:target { background: var(--accent-soft); }
.cib-head-klein h2 { font-size: 18px; margin: 0; }
.cib-terminwahl { display: flex; align-items: center; gap: 8px; }
.cib-terminwahl label { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.cib-terminwahl select { margin: 0; min-width: 220px; }
@media (max-width: 1100px) {
  .cib-editor { grid-template-columns: 1fr; }
  .cib-summe { position: static; }
}

/* ---------- Hinweisband der Testumgebung ---------- */
.cib-testband {
  position: fixed; z-index: 60; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: calc(100vw - 24px);
  background: var(--amber-soft); color: var(--amber); border: 1px solid #ecd9a4; border-radius: 99px;
  padding: 7px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); text-align: center;
}
@media (max-width: 860px) {
  .cib-testband { bottom: calc(76px + env(safe-area-inset-bottom)); font-size: 11.5px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; opacity: .92; }
}

/* ---------- Anmeldung ---------- */
body.cib-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.cib-login-karte {
  width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 32px 28px 28px; text-align: left;
}
.cib-login-logo { display: block; width: 88px; height: auto; margin: 0 auto 18px; }
.cib-login h1 { font-size: 22px; text-align: center; margin: 0; }
.cib-login-sub { text-align: center; color: var(--ink-3); margin: 4px 0 22px; font-size: 14px; }
.cib-login form { display: grid; gap: 6px; }
.cib-login label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 8px; }
.cib-login input[type="text"], .cib-login input[type="password"] { width: 100%; height: 42px; margin: 0; }
.cib-login-knopf.cib-login-knopf {
  margin: 18px 0 0; height: 42px; width: 100%; background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius-sm);
  color: #fff; font: 600 15px/1 var(--font); cursor: pointer; transition: background .15s;
  box-shadow: 0 1px 2px rgba(23, 74, 136, .3);
}
.cib-login-knopf.cib-login-knopf:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cib-login-fehler { background: var(--red-soft); color: var(--red); font-weight: 600; font-size: 14px; padding: 10px 12px; border-radius: var(--radius-sm); margin: 0 0 6px; }

/* ---------- Mobile Leiste ---------- */
.cib-tabbar, .cib-scrim { display: none; }

/* ==========================================================================
   Übersetzung der Bestandsbausteine
   ========================================================================== */

/* Altes Kopflogo und Zentrierung */
.ueberschrift { display: none; }
center { display: block; text-align: left; }
body > center { max-width: 1240px; }

/* Schaltflächen */
.buttonneu, .buttonneuaktiv, .buttonneunavi, .buttonnavi, .buttonbreit, a.button, input.button,
input[type="submit"], input[type="button"], input[type="reset"], button:not(.cib-icon-btn):not([class*="cib-"]) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; margin: 3px 4px 3px 0;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); font: 600 14px/1.2 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; vertical-align: middle;
  text-align: center; width: auto; height: auto; box-shadow: none; text-shadow: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.buttonneu:hover, .buttonnavi:hover, .buttonneunavi:hover, input[type="reset"]:hover, input[type="button"]:hover { background: var(--surface-2); border-color: #c3c9d0; color: var(--ink); }
.buttonneuaktiv { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); }
/* Absenden = Hauptaktion */
input[type="submit"], input[type="submit"].buttonneu {
  background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(23, 74, 136, .3);
}
input[type="submit"]:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
a.buttonneu:active, input.buttonneu:active { transform: translateY(1px); }

/* Eingabefelder */
.eingabebox_normal, .eingabebox_plz, .eingabebox_ort, .eingabebox_strasse, .eingabebox_mini, .eingabebox_doppelt, .eingabebox_doppel,
.nachrichtenbox_doppel, input[type="text"], input[type="date"], input[type="email"], input[type="number"], input[type="password"],
input[type="search"], input[type="tel"], input[type="url"], input[type="file"], select, textarea {
  font: 15px/1.4 var(--font); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 11px; min-height: 38px; height: auto;
  max-width: 100%; transition: border-color .15s, box-shadow .15s; box-shadow: none; margin: 2px 0;
}
textarea, .nachrichtenbox_doppel { padding: 9px 11px; min-height: 90px; resize: vertical; width: 100%; }
input[type="file"] { padding: 6px 8px; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636c77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:hover, select:hover, textarea:hover { border-color: #b9c0c8; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); vertical-align: middle; margin: 0 6px 0 0; }
.eingabebox_normal { width: 100%; max-width: 440px; }
.eingabebox_doppelt, .eingabebox_doppel { width: 100%; max-width: 660px; }
.eingabebox_strasse { width: calc(100% - 118px); max-width: 320px; }
.eingabebox_ort { width: 240px; }
.eingabebox_plz { width: 110px; }
.eingabebox_mini { width: 64px; }

/* Tabellen der Bestandsseiten (Formulare und Listen) */
table[width="70%"], table[width="90%"], table[width="100%"] {
  width: 100%; max-width: 1240px; border-collapse: separate; border-spacing: 0; margin: 8px 0 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  font-size: 14.5px; text-align: left;
}
table[width] > tbody > tr > td, table[width] > tbody > tr > th, table[width] > tr > td {
  padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left;
}
table[width] > tbody > tr:last-child > td { border-bottom: 0; }
table[width] tr[bgcolor] { background-color: var(--surface-2) !important; }
table[width] td b { font-weight: 600; }
table[width] td > b:only-child { color: var(--ink-2); }
th { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
td[align="right"], th[align="right"] { text-align: right; }

/* Meldungen (<p><font color=…><b>…</b></font></p>) */
font[color="#008000"], font[color="#FF0000"], font[color="#ff0000"], font[color="#c0680b"] { font-weight: 600; }
font[color="#008000"] { color: var(--green); }
font[color="#FF0000"], font[color="#ff0000"] { color: var(--red); }
font[color="#c0680b"] { color: var(--amber); }
p:has(> font[color="#008000"]), p:has(> font[color="#FF0000"]), p:has(> font[color="#ff0000"]) {
  display: block; padding: 11px 14px; border-radius: var(--radius-sm); max-width: 1240px; text-align: left; margin: 12px 0;
}
p:has(> font[color="#008000"]) { background: var(--green-soft); }
p:has(> font[color="#FF0000"]), p:has(> font[color="#ff0000"]) { background: var(--red-soft); }
.meldung_ok { color: var(--green); background: var(--green-soft); padding: 11px 14px; border-radius: var(--radius-sm); display: block; }
.meldung_fehler { color: var(--red); background: var(--red-soft); padding: 11px 14px; border-radius: var(--radius-sm); display: block; }

/* Kalender (kalender.php / jahresansicht.php) */
table.cal { border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; margin: 6px; }
.calHead { font-weight: 600; color: var(--ink-3); padding: 4px 6px; text-align: center; }
.calDay, .calDayEmpty, .calDayToday, .calDayAuswahl { padding: 4px 6px; text-align: center; }
.calDayToday { background: var(--accent); color: #fff; border-radius: var(--radius-sm); }
.calDayAuswahl { background: var(--amber-soft); border-radius: var(--radius-sm); }
.dayNum { font-weight: 600; }

/* Symbole der Bestandsseiten (images/gruen/*.png, 48 px) einheitlich klein */
img[src*="images/gruen/"], input[type="image"][src*="images/gruen/"] {
  width: 34px; height: 34px; padding: 6px; border-radius: var(--radius-sm); vertical-align: middle; cursor: pointer; transition: background .12s;
}
a:hover > img[src*="images/gruen/"], input[type="image"][src*="images/gruen/"]:hover { background: var(--surface-2); }

/* Statistikgrafiken und sonstige Bilder in Tabellen */
.Statistik img, td img { max-width: 100%; height: auto; }

/* ==========================================================================
   Handy und Tablet (unter 860 px)
   ========================================================================== */
@media (max-width: 860px) {
  body { padding: 20px 14px 32px; }
  body:has(.cib-sidebar) { padding: calc(var(--topbar) + 4px) 14px calc(88px + env(safe-area-inset-bottom)); }
  .cib-sidebar { width: min(84vw, 300px); transform: translateX(-102%); transition: transform .28s cubic-bezier(.16, 1, .3, 1); box-shadow: var(--shadow-lg); }
  body.cib-drawer-open .cib-sidebar { transform: none; }
  body.cib-drawer-open .cib-scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(21, 24, 28, .35); }
  .cib-topbar { left: 0; padding: 0 12px; gap: 8px; }
  .cib-topbar .cib-menu-btn { display: inline-grid; }
  .cib-topbar .cib-top-logo { display: block; width: 34px; height: auto; }
  .cib-search kbd { display: none; }
  h1 { font-size: 22px; margin: 12px 0 12px; }
  .cib-filterbar { flex-wrap: wrap; }
  .cib-chips { flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
  .cib-chips::-webkit-scrollbar { display: none; }

  .cib-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .cib-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-decoration: none; padding: 4px 0; border-radius: 8px; }
  .cib-tabbar a svg.i { width: 22px; height: 22px; }
  .cib-tabbar a[aria-current="page"] { color: var(--accent-ink); }

  /* Neue Listen werden Kartenlisten */
  .cib-head .cib-aktionen .cib-btn:not(.primary) { display: none; }
  .cib-suchfeld { max-width: none; flex-basis: 100%; }
  table.cib-list thead { display: none; }
  table.cib-list, table.cib-list tbody, table.cib-list tfoot, table.cib-list td { display: block; }
  table.cib-list tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.cib-list td { padding: 0; border: 0; }
  table.cib-list td[data-m="aus"] { display: none; }
  table.cib-list td[data-m="rechts"] { text-align: right; grid-column: 2; grid-row: 1; }
  table.cib-list td[data-m="rechts2"] { text-align: right; grid-column: 2; grid-row: 2; }
  table.cib-list td[data-m="voll"] { grid-column: 1 / -1; }
  table.cib-list td[data-m="name"] { grid-column: 1; grid-row: 1 / span 2; white-space: normal; min-width: 0; }
  .cib-sub.cib-nurhandy { display: block; }
  table.cib-list td[data-m="aktion"] { grid-column: 2; grid-row: 3; }
  table.cib-list td.cib-wahlzelle { grid-column: 1; grid-row: 3; width: auto; font-size: 13.5px; color: var(--ink-2); align-self: center; }
  table.cib-list td.cib-wahlzelle:empty { display: none; }
  table.cib-list td.cib-wahlzelle label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
  .cib-nurhandy { display: inline; }
  .cib-kennzahlen { grid-template-columns: 1fr 1fr; }
  .cib-kennzahlen > div:first-child { grid-column: 1 / -1; }
  .cib-einzug-inhalt .cib-feld, .cib-einzug-inhalt .cib-btn { flex: 1 1 100%; justify-content: center; }
  .cib-einzugkonto { padding: 14px 16px; }
  .cib-einzugzahlen { grid-template-columns: 1fr 1fr; }
  ol.cib-schritte { flex-direction: column; align-items: stretch; }
  ol.cib-schritte li { flex-wrap: wrap; }
  ol.cib-schritte li .cib-btn { flex: 1 1 auto; justify-content: center; }
  ol.cib-schritte li > span { flex-basis: 100%; padding-left: 32px; margin-top: -4px; }
  .cib-ohnekonto { margin: 0 16px 14px; }
  .cib-ohnekonto ul { columns: 1; }
  .cib-rechnungsschritt .cib-btn { flex: 1 1 100%; justify-content: center; }
  .cib-terminwahl { flex: 1 1 100%; }
  .cib-terminwahl select { flex: 1; min-width: 0; }
  table.cib-list tfoot tr { display: flex; justify-content: space-between; padding: 12px 14px; }
  table.cib-list tfoot td { background: none; border: 0; padding: 0; }
  table.cib-list tfoot td:empty { display: none; }

  /* Mitglieder: Liste oder Detail, nicht beides */
  .cib-split { grid-template-columns: 1fr; }
  .cib-split .cib-detail { display: none; position: static; }
  .cib-split.cib-detail-offen .cib-liste { display: none; }
  .cib-split.cib-detail-offen .cib-detail { display: block; }
  body:has(.cib-detail-offen) .cib-head, body:has(.cib-detail-offen) .cib-filterbar { display: none; }
  .cib-zurueck { display: inline-flex; align-items: center; gap: 4px; margin: -4px 0 10px; font-weight: 600; font-size: 14px; text-decoration: none; }
  table.cib-mitglieder td:first-child { max-width: none; }
  table.cib-mitglieder .name-zeile .strong { white-space: normal; }
  table.cib-mitglieder td.tagzelle { white-space: normal; }
  table.cib-mitglieder tbody tr.gruppe { display: block; padding: 0; }
  table.cib-mitglieder tbody tr.gruppe td { display: block; padding: 18px 14px 8px; }
  table.cib-mitglieder tbody tr[aria-selected="true"] td { box-shadow: none; }
  .cib-split:not(.cib-detail-offen) table.cib-mitglieder tbody tr[aria-selected="true"]:not(.ehemalig) { background: var(--surface); }
  .cib-split:not(.cib-detail-offen) table.cib-mitglieder tbody tr.ehemalig[aria-selected="true"] { background: #eef0f2; }
  dl.cib-fakten { grid-template-columns: 1fr; gap: 2px; }
  dl.cib-fakten dd { margin-bottom: 10px; }
  .cib-schnell .cib-btn { flex: 1 1 calc(50% - 8px); justify-content: center; }

  /* Rechnungseditor am Handy */
  .cib-feldgitter, .cib-feldgitter.vier { grid-template-columns: 1fr 1fr; }
  .cib-feldgitter.vier > :first-child { grid-column: 1 / -1; }
  .cib-feld:has(> .cib-feldreihe .plz), .cib-feld:has(> input[type="email"]) { grid-column: 1 / -1; }
  .cib-feldreihe input:not(.land):not(.plz):not(.zahl) { flex: 1 1 auto; min-width: 0; }
  table.cib-pos thead { display: none; }
  table.cib-pos, table.cib-pos tbody { display: block; }
  table.cib-pos tr.cib-position { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 10px 8px; padding: 14px 0; border-top: 1px solid var(--line); }
  table.cib-pos tr.cib-position:first-child { border-top: 0; padding-top: 0; }
  table.cib-pos td { padding: 0; border: 0; width: auto !important; }
  table.cib-pos td.p-art { grid-column: 1 / -1; grid-row: 1; }
  table.cib-pos td.p-menge { grid-column: 1; grid-row: 2; }
  table.cib-pos td.p-preis { grid-column: 2; grid-row: 2; }
  table.cib-pos td.p-mwst { grid-column: 3; grid-row: 2; }
  table.cib-pos td.p-summe { grid-column: 1 / 3; grid-row: 3; text-align: left; padding-top: 0; align-self: center; font-size: 16px; }
  table.cib-pos td.p-weg { grid-column: 3; grid-row: 3; justify-self: end; padding-top: 0; }
  table.cib-pos td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 3px; }
  .cib-summe-aktionen { display: none; }
  body:has(.cib-editor) .cib-tabbar { display: none; }
  body:has(.cib-editor) { padding-bottom: 96px; }
  body:has(.cib-editor) .cib-testband { bottom: 84px; }
  .cib-summenleiste {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 42;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px -10px rgba(16, 24, 40, .25);
  }
  .cib-summenleiste span { font-size: 12.5px; color: var(--ink-3); display: block; }
  .cib-summenleiste strong { font-size: 19px; }
  .cib-summenleiste .cib-btn { margin-left: auto; }

  /* Bestandstabellen: Zellen untereinander */
  table[width], table[width] > tbody, table[width] > tbody > tr, table[width] > tbody > tr > td { display: block; width: 100% !important; }
  table[width] > tbody > tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  table[width] > tbody > tr > td { border: 0; padding: 3px 14px; }
  table[width] > tbody > tr > td:empty { display: none; }
  .eingabebox_normal, .eingabebox_doppelt, .eingabebox_doppel, .eingabebox_strasse, .eingabebox_ort { width: 100%; max-width: none; }
  .eingabebox_plz { width: 120px; }
  input, select, textarea { font-size: 16px; } /* verhindert das Hineinzoomen unter iOS */
}
