/* Madegrain CRM, Stylesheet nach _local/crm/DESIGN-VORGABE-CRM.md (24.11.2026). Kein Inline-Stil, eine Datei. */

/* ------------------------------------------------------------------ 3.2 Schriften */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* ------------------------------------------------------------------ 3.1 Farben */
:root {
  color-scheme: light dark;
  --grund: #F7F2E7; --flaeche: #FFFDF7; --mulde: #EFE8D7; --mulde-2: #E6DFCB;
  --linie: #E2D8BF; --linie-2: #CFC4A6; --feld: #8C8568; --feld-hover: #435243;
  --ink: #16231B; --ink-2: #435243; --ink-3: #6B7062;
  --rahmen: #18281D; --rahmen-hover: #1E3325; --rahmen-aktiv: #2A4532; --rahmen-linie: #374438;
  --auf-rahmen: #F4EDDD; --auf-rahmen-2: #C3D0B4;
  --haupt: #1E3325; --haupt-hover: #2A4532; --haupt-druck: #16231B; --auf-haupt: #F4EDDD;
  --neben: #EFE8D7; --neben-hover: #E6DFCB; --neben-druck: #DDD4BC;
  --leise-hover: #EFE8D7; --leise-druck: #E6DFCB;
  --akzent: #B5522D; --auf-akzent: #FFFDF7;
  --ok: #2B4A30; --ok-soft: #E3E9D5;
  --warn: #8A5F12; --warn-soft: #F8ECC8;
  --fehler: #9C3F1F; --fehler-soft: #F6E3DA;
  --aus: #E3E9D5; --aus-linie: #C9D4B8;
  --fokus: #16231B; --fokus-rahmen: #F4EDDD;
  --d-netto: #1E3325; --d-abzug: #8C8568; --d-gitter: #E2D8BF; --d-null: #8C8568;
  --d-minus: #9C3F1F; --d-band: #EFE8D7; --d-spur: #EFE8D7;
  --blatt: #FFFDF7;
  --st-neu: #1E3325; --auf-st-neu: #F4EDDD; --chip-zahl-an: #C3D0B4;
  --pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2316231B' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --lupe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23435243' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #0F1813; --flaeche: #16231B; --mulde: #1E3325; --mulde-2: #2A4532;
    --linie: #2A3B2F; --linie-2: #3A4D3F; --feld: #7F8F7A; --feld-hover: #C3D0B4;
    --ink: #F4EDDD; --ink-2: #C3D0B4; --ink-3: #8F9C88;
    --rahmen: #0A110D; --rahmen-hover: #16231B; --rahmen-aktiv: #1E3325; --rahmen-linie: #1E3325;
    --auf-rahmen: #F4EDDD; --auf-rahmen-2: #C3D0B4;
    --haupt: #F4EDDD; --haupt-hover: #FFFDF7; --haupt-druck: #C3D0B4; --auf-haupt: #16231B;
    --neben: #1E3325; --neben-hover: #2A4532; --neben-druck: #33503B;
    --leise-hover: #1E3325; --leise-druck: #2A4532;
    --akzent: #E08A63; --auf-akzent: #16231B;
    --ok: #A9D2A0; --ok-soft: #1F3A26;
    --warn: #F0C878; --warn-soft: #3A2F17;
    --fehler: #F2B6A0; --fehler-soft: #3D211A;
    --aus: #1F3A26; --aus-linie: #2B4A33;
    --fokus: #F4EDDD; --fokus-rahmen: #F4EDDD;
    --d-netto: #C3D0B4; --d-abzug: #687560; --d-gitter: #2A3B2F; --d-null: #687560;
    --d-minus: #F2B6A0; --d-band: #1E3325; --d-spur: #1E3325;
    --st-neu: #F4EDDD; --auf-st-neu: #16231B; --chip-zahl-an: #435243;
    --pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23F4EDDD' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --lupe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23C3D0B4' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  }
}

/* ------------------------------------------------------------------ Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 500 15px/24px "Manrope", system-ui, sans-serif; font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
  color: var(--ink); background: var(--grund); overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
th { font-weight: inherit; text-align: left; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }
.r { text-align: right; }
.unbekannt { color: var(--ink-3); }
.sy { flex: none; display: block; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; }

/* Typostufen */
.t2 { font: 600 32px/40px "Bricolage", sans-serif; letter-spacing: -0.02em; }
.t3 { font: 600 28px/36px "Bricolage", sans-serif; letter-spacing: -0.015em; }
.t4 { font: 600 28px/32px "Bricolage", sans-serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
h2 { font: 700 17px/24px "Manrope", sans-serif; letter-spacing: -0.01em; }
h3 { font: 700 15px/24px "Manrope", sans-serif; }
.zwei-zeilen { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

/* ------------------------------------------------------------------ 3.5 Layout */
.inhalt { display: block; margin-left: 240px; padding: 40px 40px 64px; }
.inhalt > .seite { max-width: 1120px; margin: 0 auto; }
body.ohne-rahmen .inhalt { margin-left: 0; }
.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.s12 { grid-column: span 12; } .s8 { grid-column: span 8; } .s6 { grid-column: span 6; } .s4 { grid-column: span 4; }
.hauptspalte, .seitenspalte { min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.nur-handy, .nur-handy-inline { display: none !important; }

/* ------------------------------------------------------------------ 3.6 Rahmen */
.sprung { position: absolute; left: -9999px; top: 0; }
.sprung:focus { position: fixed; z-index: 30; top: 16px; left: 16px; display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border-radius: 8px; background: var(--flaeche); color: var(--ink); font-weight: 600; text-decoration: none; }
.rahmen { position: fixed; inset: 0 auto 0 0; width: 240px; background: var(--rahmen); color: var(--auf-rahmen-2); z-index: 10; }
.rahmen :focus-visible { outline-color: var(--fokus-rahmen); outline-offset: -3px; }
.rahmen > .wortmarke { position: absolute; top: 12px; left: 12px; width: 216px; height: 48px; padding: 0 12px; border-radius: 8px; }
.wortmarke { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--auf-rahmen); align-content: center; flex-wrap: nowrap; }
.rahmen > .wortmarke { align-items: center; }
.wm-wort { font: 600 20px/24px "Bricolage", sans-serif; letter-spacing: -0.01em; color: var(--auf-rahmen); }
.wm-zusatz { font: 600 14px/20px "Manrope", sans-serif; color: var(--auf-rahmen-2); position: relative; top: 1px; }
.rahmen-nav { position: absolute; top: 80px; left: 0; right: 0; padding: 0 12px; }
.rahmen-nav ul { display: flex; flex-direction: column; gap: 4px; }
.nav-eintrag { display: flex; align-items: center; gap: 12px; width: 216px; height: 40px; padding: 0 12px; border-radius: 8px; border: 0;
  background: transparent; color: var(--auf-rahmen-2); font: 600 15px/20px "Manrope", sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .12s ease-out, color .12s ease-out; }
.nav-eintrag:hover { background: var(--rahmen-hover); color: var(--auf-rahmen); }
.nav-eintrag[aria-current="page"] { background: var(--rahmen-aktiv); color: var(--auf-rahmen); }
.nav-eintrag .zaehler { margin-left: auto; }
.rahmen-fuss { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 12px 24px; border-top: 1px solid var(--rahmen-linie);
  display: flex; flex-direction: column; gap: 4px; }
.rahmen-konto { font: 500 13px/16px "Manrope", sans-serif; color: var(--auf-rahmen-2); padding: 0 12px; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rahmen-fuss form { margin: 0; }
.zaehler { display: inline-flex; align-items: center; justify-content: center; height: 20px; min-width: 20px; padding: 0 4px; border-radius: 10px;
  background: var(--akzent); color: var(--auf-akzent); font: 700 12px/16px "Manrope", sans-serif; font-variant-numeric: tabular-nums; }
.kopf-handy, .leiste { display: none; }

/* ------------------------------------------------------------------ 3.7 Seitenkopf */
.seitenkopf { margin-bottom: 32px; }
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; flex-wrap: wrap; }
.kopf-zeile h1 { flex: 0 1 auto; min-width: 0; }
.werkzeuge { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.unterzeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font: 500 14px/20px "Manrope", sans-serif; }
.unterzeile .u-text { color: var(--ink); }
.unterzeile .u-leise { color: var(--ink-2); }
.unterzeile-detail { margin-top: 8px; font: 500 15px/24px "Manrope", sans-serif; color: var(--ink-2); }
.sy-ok { color: var(--ok); display: inline-flex; }
.punkt-akzent { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); }
.knopf.zurueck { height: 32px; padding: 0 8px 0 4px; margin-left: -4px; margin-bottom: 8px; gap: 4px; font-size: 14px; }
.textlink { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.textlink:hover { text-decoration-thickness: 2px; }
.textlink.stark { color: var(--ink); font-weight: 600; }
.seitenkopf + .meldung { margin: -8px 0 24px; }

/* ------------------------------------------------------------------ 3.8 Karte */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 24px; min-width: 0; }
.karte > h2, .karte-kopf { margin-bottom: 16px; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 24px; flex-wrap: wrap; }
.kopf-summe { font: 600 15px/24px "Manrope", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.karte-fuss { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.abschnitt { border-top: 1px solid var(--linie); margin-top: 24px; padding-top: 24px; }
.karte > .abschnitt:first-child, .seitenspalte .karte > .abschnitt:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.abschnitt > h3 { margin-bottom: 8px; }
.hinweis-text, .text-zweit, .knopf-unter, .seiten-hinweis, .unter-tabelle { font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.text-zweit { font-size: 15px; line-height: 24px; max-width: 72ch; }
.seiten-hinweis { margin-top: 24px; }
.unter-tabelle { margin-top: 16px; }
.knopf-unter { margin-top: 8px; }
.t9-titel { font: 600 14px/20px "Manrope", sans-serif; margin: 16px 0 8px; }
.spalten { font: 500 14px/20px "Manrope", sans-serif; }
.liste-karte { padding-top: 0; padding-bottom: 0; overflow: hidden; }
.liste-karte > .karte-kopf-innen { margin: 0; padding: 24px 0 16px; }

/* ------------------------------------------------------------------ 3.9 Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 8px;
  white-space: nowrap; cursor: pointer; text-decoration: none; font: 600 15px/20px "Manrope", sans-serif; background: transparent; color: var(--ink);
  transition: background-color .12s ease-out, color .12s ease-out; }
.knopf.haupt { background: var(--haupt); color: var(--auf-haupt); font-weight: 700; }
.knopf.haupt:hover { background: var(--haupt-hover); }
.knopf.haupt:active { background: var(--haupt-druck); }
.knopf.neben { background: var(--neben); color: var(--ink); }
.knopf.neben:hover { background: var(--neben-hover); }
.knopf.neben:active { background: var(--neben-druck); }
.knopf.leise { padding: 0 12px; }
.knopf.leise:hover { background: var(--leise-hover); }
.knopf.leise:active { background: var(--leise-druck); }
.knopf.klein { height: 32px; font-size: 14px; }
.knopf.gefahr { color: var(--fehler); }
.knopf:disabled, .knopf[aria-disabled="true"] { cursor: not-allowed; color: var(--ink-3); }
.knopf.haupt:disabled, .knopf.haupt[aria-disabled="true"] { background: var(--mulde-2); color: var(--ink-3); }
.knopf.neben:disabled, .knopf.neben[aria-disabled="true"] { background: transparent; }
.knopf.symbol-knopf { width: 40px; padding: 0; }
.knopf-gross { height: 48px; }
.voll { width: 100%; }
.knopf-paar { display: flex; gap: 8px; }
.knopfzeile { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.knopfzeile.links { justify-content: flex-start; }
.k-text { display: inline-grid; }
.k-text > span { grid-area: 1 / 1; }
.k-text > span + span { visibility: hidden; }
.knopf[aria-busy="true"] { cursor: progress; }
.knopf[aria-busy="true"] .k-text > span:first-child { visibility: hidden; }
.knopf[aria-busy="true"] .k-text > span + span { visibility: visible; }
.knopf[aria-busy="true"] > .sy { display: none; }
.knopf[aria-busy="true"]::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--linie-2);
  border-top-color: currentColor; animation: drehen .8s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ 3.10 Felder */
input[type=email], input[type=text], input[type=search], input[type=date], input:not([type]), select, textarea {
  height: 40px; padding: 0 12px; border: 1px solid var(--feld); border-radius: 8px; background-color: var(--flaeche); color: var(--ink);
  font: 500 15px/20px "Manrope", sans-serif; font-variant-numeric: tabular-nums; box-shadow: none; min-width: 0; max-width: 100%;
  transition: border-color .12s ease-out; -webkit-appearance: none; appearance: none; }
textarea { display: block; width: 100%; height: auto; min-height: 112px; padding: 8px 12px; line-height: 24px; resize: vertical; }
::placeholder { color: var(--ink-3); opacity: 1; font-weight: 500; }
input:hover, select:hover, textarea:hover { border-color: var(--feld-hover); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink); outline: 3px solid var(--fokus); outline-offset: 2px; }
[aria-invalid="true"] { border: 2px solid var(--fehler) !important; padding-left: 11px; }
select { padding-right: 40px; background-image: var(--pfeil); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; cursor: pointer; }
input[type=search] { padding-left: 40px; background-image: var(--lupe); background-repeat: no-repeat; background-position: left 12px center; background-size: 20px; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.suche { width: 320px; }
.feldbeschriftung { display: block; font: 600 14px/20px "Manrope", sans-serif; color: var(--ink); margin: 16px 0 8px; }
.feldbeschriftung:first-child, form > input[type=hidden] + .feldbeschriftung { margin-top: 0; }
.feld-hinweis { margin-top: 8px; font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.feld-fehler { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 500 14px/20px "Manrope", sans-serif; color: var(--fehler); }
.feld-gross { height: 48px !important; width: 100%; }
.stapel input, .stapel select, .antwort-form input[type=text] { width: 100%; }
.reihe { display: flex; gap: 8px; margin-top: 16px; }
.reihe input { flex: 1 1 auto; }
.kat-form { display: flex; align-items: center; gap: 12px; margin: 0; flex-wrap: wrap; }
.kat-form select { width: 240px; }
.fall-steuerung .kat-form select { width: 280px; }

/* ------------------------------------------------------------------ 3.11 Zeitraum, Segmente */
.zeitwahl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.segmente { display: inline-flex; align-items: center; height: 40px; padding: 4px; border-radius: 8px; background: var(--mulde); margin: 0; }
.segment { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 72px; height: 32px; border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: var(--ink-2); font: 600 14px/20px "Manrope", sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .12s ease-out, color .12s ease-out; }
.segment:hover { color: var(--ink); }
.segment[aria-current="true"], .segment[aria-pressed="true"] { background: var(--flaeche); border-color: var(--linie); color: var(--ink); }
.segmente-inhalt .segment { width: auto; padding: 0 12px; }
.seg-zahl { font: 600 13px/16px "Manrope", sans-serif; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.segment[aria-current="true"] .seg-zahl { color: var(--ink); }
.schritte { display: flex; align-items: center; gap: 4px; }
.schritte-text { width: 160px; text-align: center; font: 600 15px/24px "Manrope", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ Postfach-Steuerung, 3.12 Chips */
.steuerzeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: -0px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; row-gap: 8px; margin: 16px 0 24px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--linie-2);
  color: var(--ink-2); font: 600 14px/20px "Manrope", sans-serif; text-decoration: none; transition: border-color .12s ease-out, color .12s ease-out; }
.chip:hover { border-color: var(--feld); color: var(--ink); }
.chip[aria-current="true"] { background: var(--haupt); border-color: var(--haupt); color: var(--auf-haupt); }
.chip-zahl { font: 600 13px/16px "Manrope", sans-serif; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip[aria-current="true"] .chip-zahl { color: var(--chip-zahl-an); }

/* ------------------------------------------------------------------ 3.13 Plaketten */
.plakette { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; white-space: nowrap;
  font: 600 13px/16px "Manrope", sans-serif; font-variant-numeric: tabular-nums; background: var(--mulde); color: var(--ink-2); }
.plakette.st-neu { background: var(--st-neu); color: var(--auf-st-neu); }
.plakette.st-in_arbeit { background: var(--warn-soft); color: var(--warn); }
.plakette.st-wartet, .plakette.p-ruhig { background: var(--mulde); color: var(--ink-2); }
.plakette.st-erledigt, .plakette.p-ok { background: var(--ok-soft); color: var(--ok); }
.plakette.p-fehler { background: var(--fehler-soft); color: var(--fehler); }
.plakette.kaufmarke { background: transparent; border: 1px solid var(--linie-2); color: var(--ink); }
.kategorie { font: 500 13px/16px "Manrope", sans-serif; color: var(--ink-2); white-space: nowrap; }

/* Status-Segmente im Fall tragen gewählt die Plakettenfarbe */
.status-gruppe .segment[aria-pressed="true"] { border-color: transparent; }
.status-gruppe .seg-st-neu[aria-pressed="true"] { background: var(--st-neu); color: var(--auf-st-neu); }
.status-gruppe .seg-st-in_arbeit[aria-pressed="true"] { background: var(--warn-soft); color: var(--warn); }
.status-gruppe .seg-st-wartet[aria-pressed="true"] { background: var(--flaeche); border-color: var(--linie); color: var(--ink-2); }
.status-gruppe .seg-st-erledigt[aria-pressed="true"] { background: var(--ok-soft); color: var(--ok); }
.status-gruppe .seg-st-neu { min-width: 80px; }

/* ------------------------------------------------------------------ 3.14 Kennzahlen, Hauptzahl */
.kennzahlen { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.kz-2 { --n: 2; } .kz-3 { --n: 3; } .kz-4 { --n: 4; }
.kennzahlen > div { padding: 0 24px; border-left: 1px solid var(--linie); min-width: 0; }
.kennzahlen > div:first-child { padding-left: 0; border-left: 0; }
.kennzahlen > div:last-child { padding-right: 0; }
.kennzahlen dt { font: 600 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.kennzahlen dd { margin-top: 4px; }
.kz-wert { font: 600 28px/32px "Bricolage", sans-serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kennzahlen dd.t4 { white-space: nowrap; }
.kz-unter { font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.hz-label { font: 600 15px/24px "Manrope", sans-serif; color: var(--ink-2); }
.hauptzahl { margin-top: 8px; font: 600 64px/64px "Bricolage", sans-serif; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hauptzahl-lang { font-size: 48px; line-height: 52px; }
.hz-unter { margin-top: 16px; font: 500 15px/24px "Manrope", sans-serif; color: var(--ink-2); }

/* Übersicht: Ergebnis */
.ergebnis { display: grid; grid-template-columns: 384px 1px minmax(0, 1fr); column-gap: 32px; }
.netto-zone { display: flex; flex-direction: column; min-width: 0; }
.netto-zone .kennzahlen { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--linie); }
.netto-zone .hz-unter { margin-bottom: 32px; }
.ergebnis-linie { background: var(--linie); }
.ledger { min-width: 0; }
.ledger > h2 { margin-bottom: 16px; }
.hinweis { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.hinweis .sy { margin-top: 2px; }
.ledger .meldung { margin-top: 8px; }

/* ------------------------------------------------------------------ 3.15 Anteilszeilen */
.az { padding: 8px 0; }
.az-text { display: grid; grid-template-columns: minmax(0, 1fr) 112px 64px; column-gap: 16px; align-items: baseline; }
.anteile-3 .az-text, .anteile-3 .az-kopf, .anteile-3 .az-summe { display: grid; grid-template-columns: minmax(0, 1fr) 48px 112px 64px; column-gap: 16px; }
.az-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.az-zahl { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.az-balken { display: block; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--d-spur); overflow: hidden; }
.az-fuell { display: block; height: 8px; border-radius: 4px; background: var(--d-abzug); }
.az-netto { margin-top: 8px; border-top: 1px solid var(--linie-2); }
.az-netto .az-name, .az-netto .az-zahl:first-of-type { font-weight: 700; }
.az-netto .az-fuell { background: var(--d-netto); }
.az-kopf { height: 24px; align-items: center; border-bottom: 1px solid var(--linie-2); font: 600 13px/16px "Manrope", sans-serif; color: var(--ink-2); }
.az-kopf .zahl, .az-summe .zahl { text-align: right; }
.az-summe { padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--linie-2); font-weight: 600; }

/* ------------------------------------------------------------------ 3.22 Diagramm */
.verlauf-raster { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; }
.verlauf-handy { display: none; }
.verlauf-handy .verlauf-raster { grid-template-columns: 40px minmax(0, 1fr); }
.verlauf svg { display: block; overflow: visible; }
.verlauf text { font: 500 13px/16px "Manrope", sans-serif; font-variant-numeric: tabular-nums; fill: var(--ink-2); }
.verlauf text.zukunft { fill: var(--ink-3); }
.verlauf .gitter line { stroke-width: 1; shape-rendering: crispEdges; }
.verlauf .gitter .linie { stroke: var(--d-gitter); }
.verlauf .gitter .null { stroke: var(--d-null); }
.verlauf .netto { fill: var(--d-netto); }
.verlauf .abzug { fill: var(--d-abzug); }
.verlauf .minus { fill: var(--d-minus); }
.verlauf .band { fill: transparent; }
.verlauf .tag:hover .band { fill: var(--d-band); }
.verlauf .leer-text { font-size: 14px; }
.legende { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg-q { width: 12px; height: 12px; border-radius: 2px; }
.lg-netto { background: var(--d-netto); } .lg-abzug { background: var(--d-abzug); }
.werte { margin-top: 16px; }
.werte > summary { list-style: none; margin-left: -12px; }
.werte > summary::-webkit-details-marker { display: none; }
.werte[open] > summary { margin-bottom: 8px; }

/* ------------------------------------------------------------------ 3.16 Tabellen */
.tabelle { font: 500 14px/20px "Manrope", sans-serif; font-variant-numeric: tabular-nums; }
.karte > .tabelle { width: calc(100% + 48px); margin: 0 -24px; }
.tabelle th, .tabelle td { padding: 12px 0; vertical-align: top; border-bottom: 1px solid var(--linie); }
.tabelle th + th, .tabelle td + td, .tabelle th + td, .tabelle td + th { padding-left: 16px; }
.tabelle tr > :first-child { padding-left: 24px; }
.tabelle tr > :last-child { padding-right: 24px; }
.tabelle thead th { height: 40px; padding-top: 0; padding-bottom: 0; vertical-align: middle; font: 600 13px/16px "Manrope", sans-serif; color: var(--ink-2); border-bottom-color: var(--linie-2); }
.tabelle tbody tr:last-child > * { border-bottom: 0; }
.tabelle tfoot th, .tabelle tfoot td { border-top: 1px solid var(--linie-2); border-bottom: 0; font-weight: 600; }
.tabelle .zahl, .tabelle .r { text-align: right; }
.tabelle tbody th { font-weight: 600; }
.td-stark { display: block; font: 600 15px/24px "Manrope", sans-serif; }
.td-text { display: block; color: var(--ink); }
.td-leise { display: block; color: var(--ink-2); }
.td-plakette { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.tabelle td.r .td-plakette { justify-content: flex-end; }
.td-zusatz { color: var(--ink-3); }
.t-kaeufe td:first-child { width: 96px; white-space: nowrap; }
.t-kaeufe td:nth-child(3) { width: 200px; }
.t-kaeufe td:last-child { width: 136px; }
.t-creator td:nth-child(n+2):nth-child(-n+5), .t-creator th:nth-child(n+2):nth-child(-n+5) { width: 112px; }
.t-creator th:nth-child(2), .t-creator td:nth-child(2) { width: 80px; }
.t-creator td:last-child, .t-creator th:last-child { width: 168px; }
.t-creator tr.abgeschaltet td { color: var(--ink-3); }
.t-abgleich th[scope=row] { font-weight: 600; }
.t-abgleich tbody th, .t-abgleich tbody td { height: 48px; vertical-align: middle; padding-top: 0; padding-bottom: 0; }
.t-abgleich tr.abweichend td { font-weight: 700; }
.status-zeile { display: flex; align-items: center; gap: 12px; font-weight: 600; margin-bottom: 16px; }
.s-ok > .sy { color: var(--ok); } .s-fehler > .sy { color: var(--fehler); }
.pruefpunkte { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.pruefpunkte li { display: flex; gap: 8px; align-items: flex-start; }
.pruefpunkte .sy { margin-top: 2px; }
.liste-2 { margin: 0 -24px; }
.liste-2 > li { padding: 12px 24px; border-bottom: 1px solid var(--linie); }
.liste-2 > li:last-child { border-bottom: 0; }
.z2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 0; align-items: center; }
.z2-a { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z2-b { font-weight: 600; text-align: right; }
.z2-c { font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.z2-d { display: flex; justify-content: flex-end; }
.z1 { display: flex; justify-content: space-between; gap: 16px; font: 500 14px/20px "Manrope", sans-serif; }
.z1 .zahl { font-weight: 600; }
.liste-2.kompakt > li { padding-top: 8px; padding-bottom: 8px; }
.abweichungen { margin-top: 16px; border-top: 1px solid var(--linie); }

/* Gruppenkopf und Listen */
.gruppenkopf { display: flex; align-items: center; justify-content: space-between; height: 40px; margin: 0 -24px; padding: 0 24px;
  background: var(--mulde); border-bottom: 1px solid var(--linie); font: 600 13px/16px "Manrope", sans-serif; color: var(--ink-2); }
.gruppen-hinweis { margin: 0 -24px; padding: 12px 24px; border-bottom: 1px solid var(--linie); font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.fallliste, .kundenliste, .weitere { margin: 0 -24px; }
.fallliste > li, .kundenliste > li { border-bottom: 1px solid var(--linie); }
.liste-karte .fallliste:last-child > li:last-child, .kundenliste > li:last-child { border-bottom: 0; }
.fallliste > li.mehr { display: flex; align-items: center; height: 48px; padding: 0 12px; }

/* ------------------------------------------------------------------ 3.17 Fallzeile */
.fz-link { display: grid; grid-template-columns: 8px minmax(0, max-content) minmax(0, 1fr) auto; grid-template-areas: "punkt name betreff alter" ". auszug auszug marken";
  column-gap: 16px; align-items: center; min-height: 72px; padding: 12px 24px; text-decoration: none; color: var(--ink);
  transition: background-color .12s ease-out; }
.fz-link:hover { background: var(--grund); }
.fz-link:focus-visible { outline-offset: -3px; }
.fz-punkt { grid-area: punkt; display: flex; align-items: center; height: 24px; }
.fz-name { grid-area: name; max-width: 240px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 24px; }
.fz-betreff { grid-area: betreff; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 24px; margin-left: -4px; }
.fz-betreff-als-name { max-width: none; }
.fz-alter { grid-area: alter; width: 96px; text-align: right; font: 500 14px/24px "Manrope", sans-serif; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fz-auszug { grid-area: auszug; min-width: 0; font: 500 14px/24px "Manrope", sans-serif; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-marken { grid-area: marken; display: flex; gap: 8px; align-items: center; justify-content: flex-end; min-height: 24px; }
.fz-neu .fz-name { font-weight: 700; }
.fz-neu .fz-betreff { font-weight: 600; }
.fz-betreff-als-name + .fz-betreff { display: none; }
.fz-link:has(.fz-betreff-als-name) { grid-template-areas: "punkt name name alter" ". auszug auszug marken"; }

/* Kundinnenliste */
.kl-kopf, .kzeile { display: grid; grid-template-columns: minmax(0, 1fr) 200px 112px 64px 64px 112px; column-gap: 16px; padding: 0 24px; }
.kl-kopf { height: 40px; align-items: center; margin: 0 -24px; border-bottom: 1px solid var(--linie-2); font: 600 13px/16px "Manrope", sans-serif; color: var(--ink-2); }
.kl-kopf .r { text-align: right; }
.kzeile { align-items: start; min-height: 64px; padding-top: 12px; padding-bottom: 12px; text-decoration: none; color: var(--ink); transition: background-color .12s ease-out; }
.kzeile:hover { background: var(--grund); }
.kzeile:focus-visible { outline-offset: -3px; }
.kz-name { min-width: 0; display: flex; flex-direction: column; }
.kz-haupt { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kz-adresse { font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kz-marken { display: flex; gap: 8px; flex-wrap: wrap; }
.kz-zuletzt, .kz-faelle { font: 500 14px/24px "Manrope", sans-serif; font-variant-numeric: tabular-nums; }
.kz-offen { font-weight: 600; font-variant-numeric: tabular-nums; }
.kz-offen.null { color: var(--ink-3); font-weight: 500; }
.kz-summe { font-weight: 600; }
.kzeile .r { text-align: right; }

/* ------------------------------------------------------------------ 3.18 Seitenfuß */
.seitenfuss { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 64px; padding-top: 16px; border-top: 1px solid var(--linie);
  font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.seitenfuss form { margin: 0; }
.seitenfuss .knopf { color: var(--ink); }

/* ------------------------------------------------------------------ 3.19 Meldungen */
.meldung { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 12px 16px; border-radius: 8px; background: var(--mulde); color: var(--ink); }
.meldung > .sy { width: 24px; height: 24px; padding: 2px; color: var(--ink-2); }
.meldung p { max-width: 72ch; }
.m-ok { background: var(--ok-soft); } .m-ok > .sy { color: var(--ok); }
.m-fehler { background: var(--fehler-soft); } .m-fehler > .sy { color: var(--fehler); }
.antwort-form .meldung { margin-top: 16px; }

/* ------------------------------------------------------------------ 3.20 Lade-Kreis */
.lade-kreis { display: inline-block; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--linie-2); border-top-color: var(--ink);
  animation: drehen .8s linear infinite; }

/* ------------------------------------------------------------------ 3.21 Leer */
.leer { max-width: 360px; margin: 0 auto; padding: 40px 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.leer > .sy { color: var(--ink-2); margin-bottom: 12px; }
.leer-satz { font-weight: 600; }
.leer-zweit { margin-top: 4px; font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.leer > .knopf, .leer > form { margin-top: 16px; }
.leer-klein { padding: 24px 0; }

/* ------------------------------------------------------------------ 4.5 Fall */
.fall-steuerung { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.fall-steuerung .hinweis-text { white-space: nowrap; }
.verlauf-mails { display: flex; flex-direction: column; gap: 16px; }
.trenner { display: flex; align-items: center; gap: 16px; margin: 8px 0; font: 600 13px/16px "Manrope", sans-serif; color: var(--ink-2); }
.trenner.erster { margin-top: 0; }
.trenner::before, .trenner::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--linie); }
.mail { padding: 16px 24px; border-radius: 12px; border: 1px solid var(--linie); background: var(--flaeche); min-width: 0; }
.mail-ein { margin-right: 64px; }
.mail-aus { margin-left: 64px; background: var(--aus); border-color: var(--aus-linie); }
.mail-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 24px; }
.mail-wer { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.mail-an, .mail-zeit { font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mail-zeit { white-space: nowrap; }
.mail-betreff { margin-top: 8px; font: 600 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.mail-text { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 72ch; }
.mail-text a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.zitat { margin-top: 8px; }
.zitat > summary { list-style: none; margin-left: -12px; }
.zitat > summary::-webkit-details-marker { display: none; }
.zitat-text { margin-top: 8px; padding-left: 12px; border-left: 1px solid var(--linie-2); white-space: pre-wrap; overflow-wrap: anywhere;
  font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); max-width: 72ch; }
.anhaenge { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.anhang { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--linie);
  background: var(--flaeche); text-decoration: none; color: var(--ink); max-width: 100%; transition: border-color .12s ease-out; }
.anhang:hover { border-color: var(--feld); }
.anhang > .sy { color: var(--ink-2); }
.an-name { font: 600 14px/20px "Manrope", sans-serif; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-groesse { font: 500 13px/16px "Manrope", sans-serif; color: var(--ink-2); white-space: nowrap; }
.mail-feedback { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--linie); }
.mf-titel { font: 600 14px/20px "Manrope", sans-serif; color: var(--ink-2); margin-bottom: 8px; }
.mail-feedback dl, .paare { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 16px; font: 500 14px/20px "Manrope", sans-serif; }
.mail-feedback dt, .paare dt { color: var(--ink-2); }
.mail-feedback dd, .paare dd { overflow-wrap: anywhere; }
.verlauf-mails + .meldung { margin-top: 16px; }
.antwort { margin-top: 0; }
.hauptspalte > .antwort { margin-top: 0; }
.an-zeile { display: flex; gap: 0; align-items: baseline; margin-bottom: 16px; }
.an-label { width: 64px; flex: none; font: 600 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.an-adresse { overflow-wrap: anywhere; }
.antwort-form .feldbeschriftung { margin-top: 16px; }
.bestaetigung { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 16px; border-radius: 8px; background: var(--mulde); flex-wrap: wrap; }
.b-frage { font-weight: 600; overflow-wrap: anywhere; }
.b-info { font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.b-knoepfe { display: flex; gap: 8px; }
.kauf-liste > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 8px 0; }
.kl-produkt { font: 600 14px/20px "Manrope", sans-serif; }
.kl-betrag { font-weight: 600; text-align: right; }
.kl-info { font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.kl-plakette { grid-column: 2; grid-row: 2; justify-self: end; }
.summe-zeile { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--linie-2); margin-top: 8px; font-weight: 600; }
.notiz-form .knopfzeile { margin-top: 8px; }
.weitere { margin: 0 -24px; }
.weitere a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; text-decoration: none; color: var(--ink); transition: background-color .12s ease-out; }
.weitere a:hover { background: var(--grund); }
.w-betreff { flex: 1 1 auto; min-width: 0; font: 500 14px/20px "Manrope", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-datum { font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.verwalten { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.verwalten .knopf { margin-left: -12px; }
.protokoll > summary { list-style: none; margin-left: -12px; display: inline-flex; }
.protokoll > summary::-webkit-details-marker { display: none; }
.protokoll ul { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; font: 500 13px/16px "Manrope", sans-serif; }
.p-zeit, .p-wer { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Kundin */
.adressen > li { display: flex; align-items: center; gap: 8px; min-height: 48px; border-bottom: 1px solid var(--linie); }
.adressen > li:last-child { border-bottom: 0; }
.ad-adresse { flex: 0 1 auto; min-width: 0; font: 500 14px/20px "Manrope", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-quelle { flex: 1 0 auto; font: 500 13px/16px "Manrope", sans-serif; color: var(--ink-2); }
.ad-trennen { margin: 0 -12px 0 0; }

/* ------------------------------------------------------------------ 4.1 Anmeldung */
.ohne-rahmen .inhalt { padding-top: 120px; }
.anmelde-spalte { width: 400px; max-width: 100%; margin: 0 auto; }
.anmelde-marke { display: flex; align-items: baseline; gap: 8px; margin-bottom: 24px; }
.am-wort { font: 600 24px/32px "Bricolage", sans-serif; letter-spacing: -0.01em; }
.am-zusatz { font: 600 15px/24px "Manrope", sans-serif; color: var(--ink-2); }
.anmelde-karte { padding: 32px; }
.am-text-2 { margin-top: 8px; color: var(--ink-2); }
.am-text { margin-top: 8px; }
.am-zweit { margin-top: 16px; font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
.am-form { margin-top: 24px; }
.am-form .knopf { margin-top: 24px; }
.am-knopf { margin-top: 24px; }
.am-zurueck { margin: 24px 0 0 -12px; }
.am-lade { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.kreis { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 24px; }
.kreis-ok { background: var(--ok-soft); color: var(--ok); }
.kreis-fehler { background: var(--fehler-soft); color: var(--fehler); }

/* ------------------------------------------------------------------ 4.8 Druckvorschau */
.blatt-rahmen { overflow-x: auto; }
.blatt { width: 794px; min-height: 1123px; margin: 0 auto; padding: 68px 60px 76px; background: var(--blatt); color: #16231B;
  box-shadow: 0 1px 2px rgba(15, 24, 19, .08), 0 16px 32px -16px rgba(15, 24, 19, .22); font: 500 12.7px/17.3px "Manrope", sans-serif; font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) { .blatt { box-shadow: none; } }
.b-kopf { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.b-marke { font: 600 18.7px/24px "Bricolage", sans-serif; }
.b-klein, .b-fuss { font: 500 10.7px/14.7px "Manrope", sans-serif; color: #435243; }
.b-rechts { text-align: right; }
.b-zeitraum { font: 700 14.7px/18.7px "Manrope", sans-serif; }
.b-titel { font: 600 26.7px/32px "Bricolage", sans-serif; letter-spacing: -0.015em; margin-bottom: 23px; }
.b-ergebnis { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 38px; align-items: start; }
.b-label { font: 500 12px/16px "Manrope", sans-serif; color: #435243; }
.b-zahl { font: 600 37.3px/42.7px "Bricolage", sans-serif; }
.b-fuss { margin-top: 8px; }
.b-block { margin-top: 30px; }
.b-abschnitt { font: 700 14.7px/18.7px "Manrope", sans-serif; margin-bottom: 8px; }
.b-zwei { display: grid; grid-template-columns: 1fr 1fr; column-gap: 15px; margin-top: 30px; }
.b-tabelle { font: 500 12px/16px "Manrope", sans-serif; font-variant-numeric: tabular-nums; }
.b-tabelle th, .b-tabelle td { padding: 4px 0; border-bottom: 0.5pt solid #CFC4A6; vertical-align: top; }
.b-tabelle th + th, .b-tabelle td + td, .b-tabelle th + td { padding-left: 8px; }
.b-tabelle thead th { font-weight: 600; color: #435243; border-bottom: 0.75pt solid #8C8568; }
.b-tabelle tfoot th, .b-tabelle tfoot td { font-weight: 700; border-top: 0.75pt solid #8C8568; border-bottom: 0; }
.b-tabelle .r { text-align: right; white-space: nowrap; }
.b-text { margin-top: 6px; }
.b-liste { margin-top: 4px; padding-left: 16px; list-style: disc; }
.blatt .verlauf { width: 642px; }
.blatt .verlauf-handy { display: none !important; }
.blatt .verlauf-desktop { display: block !important; }
.blatt .verlauf text { fill: #435243; font-size: 9.3px; }
.blatt .verlauf .netto { fill: #1E3325; } .blatt .verlauf .abzug { fill: #B3A888; } .blatt .verlauf .minus { fill: #9C3F1F; }
.blatt .verlauf .gitter .linie { stroke: #E2D8BF; } .blatt .verlauf .gitter .null { stroke: #8C8568; }
.blatt .verlauf .tag:hover .band { fill: transparent; }
.b-monate { break-before: auto; }

/* ------------------------------------------------------------------ Breiten */
@media (max-width: 1359px) { .inhalt { padding: 40px 32px 64px; } }
@media (max-width: 1279px) {
  .raster { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .s12, .s8, .s6, .s4 { grid-column: span 1; }
  .hauptspalte, .seitenspalte { gap: 24px; }
  .ergebnis { grid-template-columns: minmax(0, 1fr); }
  .ergebnis-linie { height: 1px; margin: 24px 0; }
  .netto-zone .kennzahlen { margin-top: 0; }
}
@media (max-width: 1023px) {
  body { font-size: 16px; line-height: 24px; }
  .rahmen { display: none; }
  .kopf-handy { display: flex; position: sticky; top: 0; z-index: 10; height: 56px; padding: 0 16px; align-items: center; justify-content: space-between; background: var(--rahmen); }
  .kopf-handy :focus-visible { outline-color: var(--fokus-rahmen); }
  .kopf-handy .wm-wort { font-size: 18px; }
  .kopf-handy .wm-zusatz { font: 600 13px/16px "Manrope", sans-serif; }
  .kopf-handy form { margin: 0; }
  .kopf-abmelden { height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--auf-rahmen-2); font: 600 14px/20px "Manrope", sans-serif; cursor: pointer; }
  .kopf-abmelden:hover { background: var(--rahmen-hover); }
  .leiste { display: block; position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--rahmen); border-top: 1px solid var(--rahmen-linie); }
  .leiste ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 64px; }
  .leiste-ziel { display: flex; flex-direction: column; align-items: center; padding-top: 8px; height: 64px; text-decoration: none; color: var(--auf-rahmen-2); }
  .leiste-ziel:focus-visible { outline-color: var(--fokus-rahmen); outline-offset: -3px; }
  .kapsel { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 32px; border-radius: 16px; transition: background-color .12s ease-out; }
  .kapsel .zaehler { position: absolute; top: -4px; right: -4px; }
  .leiste-wort { margin-top: 4px; font: 700 12px/16px "Manrope", sans-serif; }
  .leiste-ziel[aria-current="page"] { color: var(--auf-rahmen); }
  .leiste-ziel[aria-current="page"] .kapsel { background: var(--rahmen-aktiv); }
  .inhalt { margin-left: 0; padding: 24px 24px calc(64px + 24px + env(safe-area-inset-bottom)); }
  .ohne-rahmen .inhalt { padding: 48px 16px 24px; }
  .inhalt > .seite { max-width: 720px; }
  .raster { gap: 16px; }
  .hauptspalte, .seitenspalte { gap: 16px; }
  .nur-desktop, .nur-desktop-inline { display: none !important; }
  .nur-handy { display: flex !important; }
  .nur-handy-inline { display: inline !important; }
  .t2 { font-size: 26px; line-height: 32px; }
  .t3 { font-size: 22px; line-height: 28px; }
  .t4, .kz-wert { font-size: 24px; line-height: 32px; }
  .hauptzahl { font-size: 48px; line-height: 52px; }
  h3 { font-size: 16px; }
  .knopf { height: 48px; font-size: 16px; line-height: 24px; }
  .knopf.klein { height: 44px; font-size: 15px; }
  .knopf.zurueck { height: 44px; }
  .knopf.symbol-knopf { width: 48px; }
  input[type=email], input[type=text], input[type=search], input[type=date], input:not([type]), select { height: 48px; font-size: 16px; line-height: 24px; }
  textarea { font-size: 16px; }
  .seitenkopf { margin-bottom: 24px; }
  .kopf-zeile { flex-direction: column; align-items: stretch; gap: 16px; }
  .werkzeuge { justify-content: stretch; width: 100%; }
  .werkzeuge > *, .suche { width: 100%; }
  .zeitwahl { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
  .zeitwahl .segmente { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .zeitwahl .segment { width: auto; }
  .schritte-text { flex: 1 1 auto; width: auto; }
  .karte { padding: 16px; }
  .liste-karte { padding-top: 0; padding-bottom: 0; }
  .abschnitt { margin-top: 16px; padding-top: 16px; }
  .karte > .tabelle { width: calc(100% + 32px); margin: 0 -16px; }
  .liste-2, .gruppenkopf, .gruppen-hinweis, .fallliste, .kundenliste, .weitere, .kl-kopf { margin-left: -16px; margin-right: -16px; }
  .liste-2 > li, .gruppenkopf, .gruppen-hinweis, .weitere a { padding-left: 16px; padding-right: 16px; }
  .seitenfuss { margin-top: 40px; }
  .handy-export { margin-top: 16px; }
  .handy-export .knopf { flex: 1 1 0; }
  .knopf-paar.nur-handy { display: flex !important; }
  .seitenfuss .nur-handy { display: inline-flex !important; }
  .kennzahlen-karte .kennzahlen, .kz-4, .kz-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kennzahlen > div { padding: 16px; border-left: 0; }
  .kz-4 > div:nth-child(odd), .kz-3 > div:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--linie); }
  .kz-4 > div:nth-child(even), .kz-3 > div:nth-child(even) { padding-right: 0; }
  .kz-4 > div:nth-child(n+3), .kz-3 > div:nth-child(n+3) { border-top: 1px solid var(--linie); }
  .kz-4 > div:nth-child(-n+2), .kz-3 > div:nth-child(-n+2) { padding-top: 0; }
  .kz-4 > div:nth-child(n+3), .kz-3 > div:nth-child(3) { padding-bottom: 0; }
  .kz-2 > div { padding: 0 16px; } .kz-2 > div:first-child { padding-left: 0; } .kz-2 > div + div { border-left: 1px solid var(--linie); }
  .ergebnis-linie { margin: 16px 0; }
  .az-text { grid-template-columns: minmax(0, 1fr) 96px 56px; }
  .anteile-3 .az-text, .anteile-3 .az-kopf, .anteile-3 .az-summe { grid-template-columns: minmax(0, 1fr) 40px 96px 56px; }
  .karte-kopf .legende { width: 100%; gap: 16px; }
  .verlauf-desktop { display: none; }
  .verlauf-handy { display: block; }
  /* Postfach */
  .steuerzeile { flex-direction: column; align-items: stretch; gap: 8px; }
  .steuerzeile .segmente { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .steuerzeile .segment { padding: 0 4px; }
  .kat-form, .kat-form select, .fall-steuerung .kat-form select { width: 100%; }
  .chips { margin: 16px 0; }
  .chip { height: 40px; }
  .fz-link { grid-template-columns: 8px minmax(0, 1fr) auto; grid-template-areas: "punkt name alter" ". betreff betreff" ". auszug auszug" ". marken marken";
    column-gap: 12px; padding: 12px 16px; min-height: 124px; align-items: start; }
  .fz-punkt { height: 24px; }
  .fz-name { max-width: none; }
  .fz-betreff { margin-left: 0; }
  .fz-alter { width: auto; }
  .fz-marken { justify-content: flex-start; flex-wrap: wrap; margin-top: 8px; }
  .fz-link:has(.fz-betreff-als-name) { grid-template-areas: "punkt name alter" ". auszug auszug" ". marken marken"; min-height: 0; }
  .kl-kopf { display: none; }
  .kzeile { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name summe" "marken offen" "marken faelle"; row-gap: 4px; padding: 12px 16px; }
  .kz-name { grid-area: name; } .kz-summe { grid-area: summe; } .kz-marken { grid-area: marken; margin-top: 8px; }
  .kz-zuletzt { display: none; }
  .kz-offen { grid-area: offen; font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); margin-top: 8px; }
  .kz-faelle { grid-area: faelle; font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
  .kz-offen.null { color: var(--ink-3); }
  /* Tabellen als Datenkarten (nicht im A4-Blatt) */
  .tabelle thead { display: none; }
  .tabelle, .tabelle tbody, .tabelle tfoot, .tabelle tr { display: block; width: 100%; }
  .karte > .tabelle { width: calc(100% + 32px); }
  .tabelle tr { padding: 12px 16px; border-bottom: 1px solid var(--linie); }
  .tabelle tbody tr:last-child { border-bottom: 0; }
  .tabelle th, .tabelle td { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; padding: 4px 0 !important; border: 0 !important; width: auto !important; text-align: left !important; height: auto !important; }
  .tabelle td::before { content: attr(data-label); font: 500 14px/20px "Manrope", sans-serif; color: var(--ink-2); }
  .tabelle tr > :first-child { display: block; font: 600 16px/24px "Manrope", sans-serif; }
  .tabelle tr > :first-child::before { content: none; }
  .tabelle td > * { grid-column: 2; }
  .tabelle tfoot tr { border-top: 1px solid var(--linie-2); }
  .tabelle .leer-zelle { display: none; }
  .tabelle td.r .td-plakette { justify-content: flex-start; }
  /* Fall */
  .fall-steuerung { flex-direction: column; align-items: stretch; gap: 8px; }
  .status-gruppe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: auto; padding: 0; background: transparent; }
  .status-gruppe .segment { width: auto; height: 44px; background: var(--mulde); }
  .mail { padding: 16px; }
  .mail-ein { margin-right: 24px; }
  .mail-aus { margin-left: 24px; }
  .bestaetigung { flex-direction: column; align-items: stretch; }
  .b-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .liste-karte > .karte-kopf-innen { padding: 16px 0; }
  .reihe { flex-wrap: nowrap; }
}
@media (max-width: 599px) { .inhalt { padding-left: 16px; padding-right: 16px; } .anmelde-karte { padding: 24px; } }
@media (max-width: 359px) { .inhalt { padding-left: 12px; padding-right: 12px; } }

/* ------------------------------------------------------------------ 3.25 Bewegung */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------------ Druck */
@page { size: A4; margin: 18mm 16mm 20mm;
  @bottom-left { content: "Madegrain · Auswertung"; font: 500 8pt/11pt Manrope; color: #435243; }
  @bottom-right { content: "Seite " counter(page) " von " counter(pages); font: 500 8pt/11pt Manrope; color: #435243; } }
@media print {
  html, body { background: #FFFFFF; color: #16231B; }
  .rahmen, .kopf-handy, .leiste, .seitenkopf, .seitenfuss, .knopf, form, .zeitwahl, .sprung { display: none !important; }
  .inhalt { margin: 0; padding: 0; }
  .inhalt > .seite { max-width: none; }
  .blatt-rahmen { overflow: visible; }
  .blatt { width: auto; min-height: 0; padding: 0; box-shadow: none; aspect-ratio: auto; background: #FFFFFF; font: 500 9.5pt/13pt "Manrope", sans-serif; }
  .b-titel { font-size: 20pt; line-height: 24pt; }
  .b-zahl { font-size: 28pt; line-height: 32pt; }
  .b-abschnitt { font-size: 11pt; line-height: 14pt; }
  .b-tabelle { font-size: 9pt; line-height: 12pt; }
  .b-klein, .b-fuss { font-size: 8pt; line-height: 11pt; }
  .b-marke { font-size: 14pt; }
  .b-zeitraum { font-size: 11pt; }
  .blatt .verlauf { width: 170mm; }
  .blatt .verlauf text { font-size: 7pt; }
  .blatt .verlauf svg { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  table { page-break-inside: auto; } tr, .druck-block { break-inside: avoid; } thead { display: table-header-group; }
  .plakette { background: none !important; border: 0 !important; padding: 0; color: inherit !important; }
  .karte { border: 0; padding: 0; }
}

/* ------------------------------------------------------------------ 3.15 Balkenbreiten w-0 bis w-100 */
.w-0 { width: 0%; } .w-1 { width: 1%; } .w-2 { width: 2%; } .w-3 { width: 3%; } .w-4 { width: 4%; } .w-5 { width: 5%; } .w-6 { width: 6%; } .w-7 { width: 7%; } .w-8 { width: 8%; } .w-9 { width: 9%; } .w-10 { width: 10%; } .w-11 { width: 11%; } .w-12 { width: 12%; } .w-13 { width: 13%; } .w-14 { width: 14%; } .w-15 { width: 15%; } .w-16 { width: 16%; } .w-17 { width: 17%; } .w-18 { width: 18%; } .w-19 { width: 19%; } .w-20 { width: 20%; } .w-21 { width: 21%; } .w-22 { width: 22%; } .w-23 { width: 23%; } .w-24 { width: 24%; } .w-25 { width: 25%; } .w-26 { width: 26%; } .w-27 { width: 27%; } .w-28 { width: 28%; } .w-29 { width: 29%; } .w-30 { width: 30%; } .w-31 { width: 31%; } .w-32 { width: 32%; } .w-33 { width: 33%; } .w-34 { width: 34%; } .w-35 { width: 35%; } .w-36 { width: 36%; } .w-37 { width: 37%; } .w-38 { width: 38%; } .w-39 { width: 39%; } .w-40 { width: 40%; } .w-41 { width: 41%; } .w-42 { width: 42%; } .w-43 { width: 43%; } .w-44 { width: 44%; } .w-45 { width: 45%; } .w-46 { width: 46%; } .w-47 { width: 47%; } .w-48 { width: 48%; } .w-49 { width: 49%; } .w-50 { width: 50%; } .w-51 { width: 51%; } .w-52 { width: 52%; } .w-53 { width: 53%; } .w-54 { width: 54%; } .w-55 { width: 55%; } .w-56 { width: 56%; } .w-57 { width: 57%; } .w-58 { width: 58%; } .w-59 { width: 59%; } .w-60 { width: 60%; } .w-61 { width: 61%; } .w-62 { width: 62%; } .w-63 { width: 63%; } .w-64 { width: 64%; } .w-65 { width: 65%; } .w-66 { width: 66%; } .w-67 { width: 67%; } .w-68 { width: 68%; } .w-69 { width: 69%; } .w-70 { width: 70%; } .w-71 { width: 71%; } .w-72 { width: 72%; } .w-73 { width: 73%; } .w-74 { width: 74%; } .w-75 { width: 75%; } .w-76 { width: 76%; } .w-77 { width: 77%; } .w-78 { width: 78%; } .w-79 { width: 79%; } .w-80 { width: 80%; } .w-81 { width: 81%; } .w-82 { width: 82%; } .w-83 { width: 83%; } .w-84 { width: 84%; } .w-85 { width: 85%; } .w-86 { width: 86%; } .w-87 { width: 87%; } .w-88 { width: 88%; } .w-89 { width: 89%; } .w-90 { width: 90%; } .w-91 { width: 91%; } .w-92 { width: 92%; } .w-93 { width: 93%; } .w-94 { width: 94%; } .w-95 { width: 95%; } .w-96 { width: 96%; } .w-97 { width: 97%; } .w-98 { width: 98%; } .w-99 { width: 99%; } .w-100 { width: 100%; }
