/* Abrechnungshelfer · Stylesheet
   Gleiche Farbwelt wie der Pflegereform-Check. Keine externen Schriften, kein Tracking. */

:root {
  --bg: #F6F3EC; --bg-2: #EFE9DD; --surface: #FFFFFF; --surface-2: #FBF9F4;
  --ink: #15212B; --ink-2: #33424D; --muted: #5F6C76;
  --line: rgba(21, 33, 43, .10); --line-2: rgba(21, 33, 43, .18);
  --brand: #0D6B65; --brand-2: #0A524D; --brand-hi: #14857D; --brand-soft: #DDEFEB; --on-brand: #FFFFFF;
  --accent: #D9822B; --accent-soft: #FBEAD6;
  --plus: #0F7556; --plus-soft: #DCF2E8; --minus: #B1402A; --minus-soft: #FBE3DC;
  --warn: #8F5D00; --warn-soft: #FBEFD3; --neutral: #55636E; --neutral-soft: #E7EBEE;
  --shadow: 0 1px 2px rgba(21, 33, 43, .05), 0 10px 30px rgba(21, 33, 43, .07);
  --shadow-lg: 0 2px 6px rgba(21, 33, 43, .05), 0 30px 70px rgba(21, 33, 43, .13);
  --ring: 0 0 0 4px rgba(13, 107, 101, .25);
  --r-lg: 26px; --r: 18px; --r-sm: 12px;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --side: 252px;
  --hero-a: #0D6B65; --hero-b: #0A524D; --hero-c: #083F3B;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1215; --bg-2: #0F191D; --surface: #121D22; --surface-2: #15222A;
    --ink: #EAF0F2; --ink-2: #C7D2D7; --muted: #97A7AE;
    --line: rgba(234, 240, 242, .09); --line-2: rgba(234, 240, 242, .18);
    --brand: #4CC2B5; --brand-2: #7DD8CD; --brand-hi: #5FD0C3; --brand-soft: rgba(76, 194, 181, .13); --on-brand: #04211E;
    --accent: #F0A44E; --accent-soft: rgba(240, 164, 78, .14);
    --plus: #5ED4A7; --plus-soft: rgba(94, 212, 167, .13); --minus: #F38F72; --minus-soft: rgba(243, 143, 114, .13);
    --warn: #F2C266; --warn-soft: rgba(242, 194, 102, .13); --neutral: #AAB7BD; --neutral-soft: rgba(170, 183, 189, .13);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 30px 70px rgba(0, 0, 0, .45);
    --ring: 0 0 0 4px rgba(76, 194, 181, .3);
    --hero-a: #0E4541; --hero-b: #0E3936; --hero-c: #0A2A28;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 10px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.muted { color: var(--muted); }
.klein { font-size: .84rem; }
.plus { color: var(--plus); } .minus { color: var(--minus); }
.noscript { padding: 40px; text-align: center; }
[hidden] { display: none !important; }

/* ---------- Marke ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand small { font-weight: 500; color: var(--muted); font-size: .74rem; letter-spacing: 0; }
.logo { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 14px rgba(13, 107, 101, .28); }
.brand--gross .logo { width: 46px; height: 46px; border-radius: 13px; }
.brand--gross { font-size: 1.15rem; }
.schutz { display: inline-flex; align-items: center; gap: 8px; color: var(--plus); font-size: .84rem; font-weight: 600; }
.schutz .ic { width: 18px; height: 18px; }

/* ---------- Hülle ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; padding: 22px 14px 18px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.side .brand { padding: 4px 10px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav__i { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 550; transition: background .2s, color .2s; }
.nav__i:hover { background: var(--line); color: var(--ink); }
.nav__i.is-on { background: var(--brand-soft); color: var(--brand-2); font-weight: 650; }
.nav__i:last-child { margin-top: 10px; }
.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 14px 10px 0; border-top: 1px solid var(--line); }
.side__betrieb { font-size: .82rem; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: none; }
.view { width: 100%; max-width: 1200px; margin: 0 auto; padding: 30px clamp(16px, 3.4vw, 44px) 80px; outline: none; }
.tabs { display: none; }

/* ---------- Hinweisleiste Beispieldaten ---------- */
.banner { background: linear-gradient(90deg, #15212B, #1D2E3A); color: #EAF0F2; }
.banner__in { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px clamp(16px, 3.4vw, 44px); font-size: .88rem; }
.banner__tag { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #2B1600; font-weight: 700; font-size: .76rem; letter-spacing: .03em; text-transform: uppercase; }
.banner__txt { flex: 1 1 280px; opacity: .88; }
.banner__act { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 620; font-size: .94rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 18px; height: 18px; }
.btn--pri { background: var(--brand); border-color: transparent; color: var(--on-brand); box-shadow: 0 6px 18px rgba(13, 107, 101, .25); }
.btn--pri:hover { background: var(--brand-hi); }
.btn--ghost { background: transparent; }
.btn--light { background: #fff; color: #0A524D; border-color: transparent; }
.btn--ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .32); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); }
.btn--danger { background: transparent; color: var(--minus); border-color: color-mix(in srgb, var(--minus) 35%, transparent); }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: .86rem; border-radius: 10px; }
.btn--gross { width: 100%; min-height: 52px; font-size: 1rem; margin-top: 14px; }
.btn[disabled] { opacity: .42; pointer-events: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row--rechts { justify-content: flex-end; margin-top: 16px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--line); color: var(--ink); }
.icon-btn--gross { width: 44px; height: 44px; }
.link { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Kopf ---------- */
.kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.kopf h1 { font-size: clamp(1.75rem, 3.1vw, 2.45rem); margin-top: 6px; }
.kopf__txt { color: var(--muted); max-width: 62ch; margin-top: 8px; }
.kopf__act { display: flex; flex-wrap: wrap; gap: 10px; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.zurueck { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.zurueck .ic { width: 18px; height: 18px; }
.zurueck:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; padding: clamp(22px, 3.4vw, 36px); border-radius: var(--r-lg); color: #fff; background: linear-gradient(140deg, var(--hero-a), var(--hero-b) 55%, var(--hero-c)); box-shadow: var(--shadow-lg); margin-bottom: 20px; isolation: isolate; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 164, 78, .32), transparent 62%); z-index: -1; }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; left: -160px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(95, 208, 195, .28), transparent 65%); z-index: -1; }
.hero__kick { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .82; }
.hero h2 { font-size: clamp(1.55rem, 2.9vw, 2.25rem); margin: 10px 0 12px; }
.hero__zahl { color: #FFD7A6; white-space: nowrap; }
.hero__txt > p:not(.hero__kick) { opacity: .9; max-width: 56ch; }
.hero__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero__zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.kz { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 2px; backdrop-filter: blur(6px); }
.kz:first-child { grid-column: 1 / -1; }
.kz > span { font-size: .8rem; opacity: .8; font-weight: 600; }
.kz strong { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.kz small { font-size: .78rem; opacity: .72; }
.kz--minus strong { color: #FFB9A6; } .kz--plus strong { color: #A3F0D2; } .kz--warn strong { color: #FFE0A0; }
.fluss { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: rgba(255, 185, 166, .55); overflow: hidden; }
.fluss__a { display: block; height: 100%; width: 0; background: #A3F0D2; border-radius: 99px; transition: width 1.1s var(--ease) .2s; }

/* ---------- Kacheln und Karten ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 20px; }
.tiles--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tiles--innen { margin: 6px 0 4px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.tiles--innen .tile { box-shadow: none; background: var(--surface-2); }
.tile strong { font-family: var(--serif); font-size: clamp(1.4rem, 2.3vw, 1.8rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.tile > span:last-child { color: var(--muted); font-size: .9rem; }
.tile__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--neutral-soft); color: var(--neutral); margin-bottom: 4px; }
.tile__ic--plus { background: var(--plus-soft); color: var(--plus); }
.tile__ic--minus { background: var(--minus-soft); color: var(--minus); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.2vw, 24px); box-shadow: var(--shadow); margin-bottom: 18px; min-width: 0; }
.card--flach { padding: 0; overflow: hidden; }
.card__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card__kopf h2 { font-size: 1.22rem; }
.card__kopf--pad { padding: 18px 20px 4px; }
.card__fuss { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.card__fuss--weit { justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
.card--hinweis { border-color: color-mix(in srgb, var(--minus) 28%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--minus-soft) 55%, var(--surface)), var(--surface) 70%); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.grid2 > .card { margin-bottom: 0; }
.grid2--budget { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.grid2--abr { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.grid2--import { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--neutral-soft); color: var(--neutral); font-size: .78rem; font-weight: 650; white-space: nowrap; border: 0; }
.pill .ic { width: 14px; height: 14px; }
.pill--plus { background: var(--plus-soft); color: var(--plus); }
.pill--minus { background: var(--minus-soft); color: var(--minus); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--btn { cursor: pointer; font: inherit; font-size: .78rem; font-weight: 650; }
.pg { display: inline-grid; place-items: center; min-width: 46px; height: 26px; padding: 0 8px; border-radius: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; font-family: var(--sans); flex-shrink: 0; }
.pg--1 { background: var(--neutral-soft); color: var(--neutral); }
.pg--2 { background: var(--brand-soft); color: var(--brand-2); }
.pg--3 { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.pg--4 { background: var(--minus-soft); color: var(--minus); }
.pg--5 { background: color-mix(in srgb, var(--minus) 22%, var(--surface)); color: color-mix(in srgb, var(--minus) 78%, var(--ink)); }
.quelle { color: var(--muted); font-size: .8rem; margin-top: 14px; max-width: 95ch; }

/* ---------- Listen ---------- */
.zeilen { list-style: none; margin: 6px 0 0; padding: 0; }
.zeilen li { border-bottom: 1px solid var(--line); }
.zeilen li:last-child { border-bottom: 0; }
.zeilen a { display: flex; align-items: center; gap: 12px; padding: 11px 2px; text-decoration: none; color: var(--ink); }
.zeilen a:hover .zeilen__n { color: var(--brand); }
.zeilen__n { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeilen__w { font-weight: 700; font-variant-numeric: tabular-nums; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); }
.todo__ic--warn { background: var(--warn-soft); color: var(--warn); }
.todo__ic--minus { background: var(--minus-soft); color: var(--minus); }
.fakten { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: f; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.fakten li { counter-increment: f; position: relative; padding: 10px 0 10px 40px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.fakten li::before { content: counter(f); position: absolute; left: 0; top: 10px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); font-weight: 800; font-size: .8rem; }
.fakten strong { color: var(--ink); }
.fakten em { display: block; font-style: normal; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.fort { margin-top: 14px; }
.fort__z { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; }
.fort__b { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.fort__b span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-hi)); border-radius: 99px; transition: width 1s var(--ease) .15s; }

/* ---------- Werkzeugleiste, Filter ---------- */
.werkzeug { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.suche { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); }
.suche:focus-within { box-shadow: var(--ring); border-color: var(--brand); }
.suche input { flex: 1; min-width: 0; border: 0; background: transparent; height: 100%; outline: none; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .86rem; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.leer-zeile { padding: 24px; }

/* ---------- Klientenliste ---------- */
.kz-zeile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto 20px; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .15s; }
.kz-zeile:last-child { border-bottom: 0; }
.kz-zeile:hover { background: var(--surface-2); }
.kz-zeile__n { display: flex; flex-direction: column; min-width: 0; }
.kz-zeile__n strong { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kz-zeile__n small { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kz-zeile__pfeil { color: var(--muted); width: 18px; height: 18px; }
.punkte { display: inline-flex; gap: 4px; }
.punkte i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.punkte i.is-on { background: var(--brand); }

/* ---------- Reiter ---------- */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.seg__b { border: 0; background: transparent; padding: 9px 16px; border-radius: 10px; font-weight: 620; font-size: .92rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.seg__b.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Formulare ---------- */
.formular { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld > span { font-size: .82rem; font-weight: 650; color: var(--ink-2); }
.feld small { color: var(--muted); font-size: .76rem; }
.feld--2 { grid-column: span 2; }
.feld--voll { grid-column: 1 / -1; }
.feld--check { flex-direction: row; align-items: center; gap: 10px; }
.feld--check > span { font-weight: 550; }
.feld--inline { flex-direction: row; align-items: center; gap: 10px; }
input:not([type="checkbox"]):not([type="range"]):not([type="file"]), select, textarea {
  width: 100%; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[disabled] { opacity: .55; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); flex-shrink: 0; }
input[type="number"] { font-variant-numeric: tabular-nums; }
.schalter { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); cursor: pointer; }

/* ---------- Budget ---------- */
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan__z { display: grid; grid-template-columns: auto auto minmax(0, 1fr) 36px; gap: 8px 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.plan__z select { grid-column: 1 / -1; }
.mini input { width: 64px !important; }
.mini { display: flex; align-items: center; gap: 6px; }
.mini input { padding: 0 8px !important; text-align: center; }
.mini span { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.mini--leer { display: block; }
.plan__b { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan__summe { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.plan__summe strong { font-family: var(--serif); font-size: 1.45rem; }
.plan__summe--klein { border: 0; padding-top: 2px; margin-top: 0; }
.plan__summe--klein strong { font-size: 1.05rem; }
.regler label { font-weight: 650; font-size: .92rem; }
.regler label small { font-weight: 500; color: var(--muted); }
.regler__z { display: flex; gap: 12px; align-items: center; margin: 12px 0 8px; }
.regler__z input[type="range"] { flex: 1; accent-color: var(--brand); height: 28px; }
.regler__n { width: 120px !important; text-align: right; font-weight: 700; }
.vgl-balken { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.vgl-balken > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; }
.vgl-balken__l { font-weight: 700; font-size: .84rem; color: var(--muted); }
.balken { display: flex; height: 16px; border-radius: 8px; background: var(--line); overflow: hidden; }
.balken__s { display: block; height: 100%; width: 0; transition: width .7s var(--ease); }
.balken__s--kasse { background: linear-gradient(90deg, var(--brand), var(--brand-hi)); }
.balken__s--eigen { background: var(--minus); }
.balken__s--frei { background: repeating-linear-gradient(135deg, var(--brand-soft) 0 6px, transparent 6px 11px); }
.legende { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--muted); align-items: center; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg--kasse { background: var(--brand); } .lg--eigen { background: var(--minus); } .lg--frei { background: var(--brand-soft); outline: 1px solid var(--line-2); }
.vgl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.vgl th, .vgl td { padding: 9px 4px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.vgl th[scope="row"], .vgl thead th:first-child { text-align: left; font-weight: 550; color: var(--ink-2); }
.vgl thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.vgl tr.stark th, .vgl tr.stark td { font-weight: 750; color: var(--ink); font-size: 1.02rem; }
.vgl tr.warn td:last-child { color: var(--warn); font-size: .86rem; }
.vgl tr.leise { opacity: .6; }
.diff { display: inline-block; margin-left: 6px; font-size: .76rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--neutral-soft); color: var(--neutral); }
.diff--plus { background: var(--plus-soft); color: var(--plus); }
.diff--minus { background: var(--minus-soft); color: var(--minus); }
.weg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 12px; }
.weg3 > div { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.weg3 span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.weg3 strong { font-family: var(--serif); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.weg3 small { color: var(--muted); font-size: .78rem; }
.haken { list-style: none; margin: 0; padding: 0; }
.haken li { border-bottom: 1px solid var(--line); }
.haken li:last-child { border-bottom: 0; }
.haken label { display: flex; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; }
.haken input { width: 22px; height: 22px; }
.haken input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }

/* ---------- Abrechnung ---------- */
.abr-kopf { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.monat { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.monat strong { min-width: 150px; text-align: center; font-family: var(--serif); font-size: 1.04rem; font-weight: 600; }
.monat__b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); }
.monat__b:hover { background: var(--line); }
.einsatzliste { list-style: none; margin: 0 0 16px; padding: 0; }
.einsatzliste li { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto 36px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.el__d, .el__l { display: flex; flex-direction: column; min-width: 0; }
.el__d small, .el__l small { color: var(--muted); font-size: .8rem; }
.el__d small { white-space: nowrap; }
.el__l { font-weight: 600; }
.el__l a { color: var(--ink); text-decoration: none; }
.el__l a:hover { color: var(--brand); }
.el__b { font-weight: 700; font-variant-numeric: tabular-nums; }
.einsatzliste--karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 2px 18px; box-shadow: var(--shadow); }
.einsatzliste--karte li:last-child { border-bottom: 0; }
.tag h3 { font-family: var(--sans); font-size: .84rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 22px 0 8px; }
.abr { margin: 0; display: flex; flex-direction: column; }
.abr > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.abr dt { color: var(--ink-2); } .abr dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.abr__stark dt { font-weight: 700; color: var(--ink); }
.abr__stark dd { font-family: var(--serif); font-size: 1.5rem; color: var(--brand); }
.abr__frei dd { color: var(--plus); }
.betrag-in { width: 120px !important; height: 38px !important; text-align: right; font-weight: 650; }
.sig { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--muted); font-size: .88rem; min-height: 64px; }
.sig img { max-height: 64px; max-width: 100%; background: #fff; border-radius: 8px; padding: 4px 10px; }
.hinweis { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; margin-bottom: 14px; font-size: .92rem; font-weight: 550; }
.hinweis--warn { background: var(--warn-soft); color: var(--warn); }
.hinweis--minus { background: var(--minus-soft); color: var(--minus); }
.hinweis--info { background: var(--brand-soft); color: var(--brand-2); }
.hinweis .ic { margin-top: 1px; }
.abr dt small { display: block; font-size: .76rem; color: var(--muted); font-weight: 500; }
.abr dd.ks { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.abr dd.ks input[type="date"] { width: 150px !important; height: 34px !important; font-size: .85rem; }
.sig--warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); color: var(--warn); background: var(--warn-soft); }
.sig span { min-width: 0; }
.p-liste { margin: 0 0 14px; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: 6px; }
.banner--warn { background: #7A3A00; }
.banner__txt--immer { display: block !important; flex: 1 1 auto; }
.ef { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; align-items: end; }
.ef .feld--2 { grid-column: span 2; }
.ef .feld--check { grid-column: span 2; height: 44px; }
.ef .btn { grid-column: span 2; min-height: 44px; }
.ef--kompakt { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 14px; border-top: 1px solid var(--line); }
@media (min-width: 1021px) {
  .ef:not(.ef--kompakt) { grid-template-columns: minmax(0, 2fr) minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1.2fr); }
  .ef:not(.ef--kompakt) .feld--2 { grid-column: auto; }
}
.ef--kompakt .feld--2, .ef--kompakt .feld--check, .ef--kompakt .btn { grid-column: span 2; }
.tabelle-wrap { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabelle th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--surface-2); }
.tabelle td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tbody tr:hover { background: var(--surface-2); }
.tabelle a { color: var(--ink); text-decoration: none; font-weight: 620; display: inline-flex; align-items: center; gap: 10px; }
.tabelle a:hover { color: var(--brand); }
.tabelle .num { text-align: right; }
.tabelle .aktion { text-align: right; width: 1%; }
.tabelle--klein td, .tabelle--klein th { padding: 8px 10px; font-size: .86rem; }

/* ---------- Einstellungen ---------- */
.liste-edit { display: flex; flex-direction: column; gap: 8px; }
.le { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr) 120px 36px; gap: 8px; align-items: center; }
.le--kasse { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 36px; }
.le--ma { grid-template-columns: minmax(0, 1fr) 36px; }
.preis { position: relative; }
.preis input { padding-right: 28px !important; text-align: right; }
.preis span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .88rem; }

/* ---------- Start ---------- */
.ist-start { background: radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), radial-gradient(900px 600px at -10% 110%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%), var(--bg); }
.start { min-height: 100vh; display: grid; place-items: center; padding: 48px 20px; }
.start__in { width: min(1040px, 100%); display: flex; flex-direction: column; gap: 18px; animation: hoch .7s var(--ease) both; }
.start h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 20ch; margin-top: 6px; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 14px 0 6px; }
.wahl__k { text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 24px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.wahl__k:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.wahl__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.wahl__ic .ic { width: 26px; height: 26px; }
.wahl__k strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.wahl__k > span:not(.wahl__ic) { color: var(--muted); }
.wahl__k em { margin-top: auto; padding-top: 8px; font-style: normal; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.wahl__k em .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.wahl__k:hover em .ic { transform: translateX(4px); }
.start__leer { color: var(--muted); }
.schutz--start { margin-top: 4px; }
.leer { text-align: center; padding: clamp(28px, 5vw, 48px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.leer p { max-width: 52ch; color: var(--muted); }
.leer--klein { padding: 30px 10px; }
.leer__ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); }
.leer__ic .ic { width: 28px; height: 28px; }

/* ---------- Dokument-Ansicht, Dialog, Toast ---------- */
.dok { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--bg-2); animation: rein .25s var(--ease) both; }
.dok__leiste { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(12px, 3vw, 28px); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.dok__leiste strong { font-family: var(--serif); font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok__act { display: flex; align-items: center; gap: 8px; }
.dok__flaeche { flex: 1; overflow: auto; padding: 28px 16px 60px; }
.dok-offen { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(8, 14, 18, .55); backdrop-filter: blur(6px); animation: rein .2s ease both; }
.modal__box { width: min(560px, 100%); background: var(--surface); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); animation: hoch .3s var(--ease) both; }
.modal__box--sig { width: min(780px, 100%); }
.modal__txt { font-size: 1.02rem; }
.sig__flaeche { display: block; width: 100%; max-height: 42vh; aspect-ratio: 3 / 1; margin-top: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); touch-action: none; cursor: crosshair; background-image: linear-gradient(transparent calc(78% - 1px), #c9d0d5 calc(78% - 1px), #c9d0d5 78%, transparent 78%); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { color: var(--plus); }
.toast--warn .ic { color: var(--warn); }

@keyframes hoch { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rein { from { opacity: 0; } to { opacity: 1; } }
.rein { animation: hoch .5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Dokumente (A4) ---------- */
.d { position: relative; width: 210mm; min-height: 297mm; margin: 0 auto 26px; padding: 14mm 18mm 16mm 22mm; background: #fff; color: #16202A; font: 9.4pt/1.48 var(--sans); box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 24px 60px rgba(0, 0, 0, .16); display: flex; flex-direction: column; overflow: hidden; }
.d-muster { position: absolute; inset: 0; display: grid; place-items: center; font: 800 86pt/1 var(--sans); color: rgba(13, 107, 101, .055); transform: rotate(-24deg); pointer-events: none; letter-spacing: .12em; text-transform: uppercase; }
.d-bk { display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding-bottom: 4mm; border-bottom: 1.2pt solid #0D6B65; margin-bottom: 6mm; }
.d-bk strong { font: 600 15pt/1.2 var(--serif); color: #0A524D; }
.d-bk span { font-size: 8pt; color: #5F6C76; margin-top: 1mm; }
.d-adr { display: grid; grid-template-columns: 85mm 1fr; gap: 10mm; margin-bottom: 8mm; min-height: 38mm; }
.d-an p { margin: 0; font-size: 10pt; overflow-wrap: anywhere; }
.d-person td, .d-tab td, .d-felder td { overflow-wrap: anywhere; }
.d-person td:last-child { white-space: nowrap; overflow-wrap: normal; }
.d-an .d-an__abs { font-size: 6.8pt; color: #6A7680; border-bottom: .4pt solid #C9D0D5; padding-bottom: .8mm; margin-bottom: 2.5mm; }
.d-info { display: flex; flex-direction: column; gap: 1mm; align-items: stretch; justify-self: end; min-width: 62mm; }
.d-info p, .d-titel p { display: flex; justify-content: space-between; gap: 6mm; font-size: 8.6pt; margin: 0; }
.d-info span, .d-titel span { color: #6A7680; }
.d-kopf { display: flex; justify-content: space-between; gap: 12mm; padding-bottom: 5mm; border-bottom: 1.2pt solid #0D6B65; margin-bottom: 6mm; }
.d-firma { display: flex; flex-direction: column; font-size: 8.4pt; color: #45525C; }
.d-firma strong { font: 600 13pt/1.25 var(--serif); color: #0A524D; margin-bottom: 1mm; }
.d-titel { min-width: 70mm; }
.d-titel h1 { font: 600 17pt/1.2 var(--serif); margin: 0 0 2.5mm; text-align: right; color: #16202A; }
.d-betreff { font: 600 14pt/1.3 var(--serif); margin: 0 0 5mm; color: #16202A; }
.d-h2 { font: 600 11pt/1.3 var(--serif); margin: 6mm 0 2.5mm; color: #0A524D; }
.d-text { margin: 0 0 3mm; }
.d-klein { font-size: 8.4pt; color: #5F6C76; margin-top: -3mm; }
.d-klein2 { font-size: 7.4pt; color: #6A7680; margin: -3mm 0 4mm; text-align: right; }
.zeilen__art { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); }
.d-person { width: 100%; border-collapse: collapse; margin-bottom: 5mm; font-size: 8.8pt; background: #F6F8F8; }
.d-person th, .d-person td { text-align: left; padding: 1.6mm 2.4mm; border: .4pt solid #DCE2E5; }
.d-person th { color: #5F6C76; font-weight: 600; width: 22%; }
.d-hinweis { font-size: 8.6pt; color: #45525C; background: #F1F6F5; border-left: 2pt solid #0D6B65; padding: 2mm 3mm; margin: 0 0 4mm; }
.d-hinweis--warn { background: #FDF5E3; border-color: #C58A12; }
.d-tab { width: 100%; border-collapse: collapse; margin-bottom: 4mm; font-variant-numeric: tabular-nums; }
.d-tab th { text-align: left; font-size: 7.6pt; text-transform: uppercase; letter-spacing: .04em; color: #5F6C76; border-bottom: .8pt solid #16202A; padding: 1.6mm 2mm; }
.d-tab td { padding: 1.5mm 2mm; border-bottom: .4pt solid #DCE2E5; vertical-align: top; }
.d-tab tfoot td { font-weight: 700; border-top: .8pt solid #16202A; border-bottom: 0; }
.d-tab .r { text-align: right; white-space: nowrap; }
.d-tab .c { text-align: center; }
.d-tab--vgl th:first-child { width: 50%; }
.d-tab--vgl tbody th { text-transform: none; letter-spacing: 0; font-size: 9.2pt; color: #16202A; font-weight: 500; border-bottom: .4pt solid #DCE2E5; }
.d-tab--vgl .d-stark th, .d-tab--vgl .d-stark td { font-weight: 700; }
.d-tab--brief tbody th { text-transform: none; letter-spacing: 0; font-size: 9pt; color: #16202A; font-weight: 600; width: 32%; border-bottom: .4pt solid #DCE2E5; }
.d-tab--brief td:last-child { font-weight: 600; color: #0A524D; }
.d-tab--klein td, .d-tab--klein th { font-size: 8pt; padding: 1.2mm 1.6mm; }
.d-tab--klein td:first-child, .d-zeit { white-space: nowrap; }
.d--abtretung .d-h2 { margin: 4mm 0 1.5mm; }
.d--abtretung .d-adr { min-height: 30mm; margin-bottom: 5mm; }
.d--abtretung .d-unter { margin-top: 6mm; }
.d-summe { margin: 0 0 5mm auto; border-collapse: collapse; min-width: 95mm; font-variant-numeric: tabular-nums; }
.d-summe th { text-align: left; font-weight: 500; padding: 1.2mm 6mm 1.2mm 0; color: #45525C; }
.d-summe td { text-align: right; padding: 1.2mm 0; white-space: nowrap; }
.d-summe__end th, .d-summe__end td { font-weight: 700; font-size: 10.6pt; color: #16202A; border-top: .8pt solid #16202A; padding-top: 2mm; }
.d-liste { margin: 2mm 0 4mm; padding-left: 4.5mm; font-size: 8.6pt; color: #45525C; }
.d-liste li { margin-bottom: 1.2mm; }
.d-felder { width: 100%; border-collapse: collapse; margin-bottom: 2mm; }
.d-felder th { text-align: left; width: 38%; font-weight: 600; color: #45525C; padding: 1.2mm 3mm 1.2mm 0; border-bottom: .4pt solid #C9D0D5; vertical-align: top; }
.d-felder td { padding: 1.2mm 0; border-bottom: .4pt solid #C9D0D5; }
.d-unter { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 8mm; margin-top: 10mm; }
.d-unter--2 { grid-template-columns: 1fr 1.6fr; }
.d-unter > div { display: flex; flex-direction: column; gap: 1mm; }
.d-linie { display: flex; align-items: flex-end; min-height: 14mm; border-bottom: .6pt solid #16202A; font-size: 9pt; padding-bottom: 1mm; }
.d-linie img { max-height: 18mm; max-width: 100%; }
.d-unter small { font-size: 7.4pt; color: #5F6C76; }
.d-fuss { margin-top: auto; padding-top: 6mm; font-size: 7.4pt; color: #6A7680; border-top: .4pt solid #DCE2E5; display: flex; flex-direction: column; gap: 1mm; }
.d-fuss p { margin: 0; }

/* ---------- Tablet und Handy ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .fakten { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .top { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
  .brand--top .logo { width: 30px; height: 30px; }
  .top__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink-2); }
  .tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--line); padding: 6px 4px max(6px, env(safe-area-inset-bottom)); }
  .tabs__i { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 650; }
  .tabs__i .ic { width: 22px; height: 22px; }
  .tabs__i.is-on { color: var(--brand); }
  .tabs__i.is-on .ic { stroke-width: 2.2; }
  .view { padding-bottom: 120px; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .grid2, .grid2--budget, .grid2--abr, .grid2--import { grid-template-columns: minmax(0, 1fr); }
  .formular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ef { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  input:not([type="checkbox"]):not([type="range"]), select, textarea { font-size: 16px; }
  .view { padding: 20px 14px 120px; }
  .kopf { align-items: flex-start; }
  .kopf__act { width: 100%; }
  .kopf__act .btn { flex: 1 1 auto; }
  .hero { padding: 22px 18px; border-radius: 22px; }
  .hero__zahlen { grid-template-columns: 1fr 1fr; }
  .wahl { grid-template-columns: minmax(0, 1fr); }
  .start { padding: 28px 16px; place-items: start center; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 14px 16px; }
  .formular { grid-template-columns: minmax(0, 1fr); }
  .feld--2, .feld--voll { grid-column: auto; }
  .ef, .ef--kompakt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ef .feld--2, .ef .feld--check, .ef .btn { grid-column: 1 / -1; }
  .kz-zeile { grid-template-columns: auto minmax(0, 1fr) auto; padding: 12px 14px; gap: 10px; }
  .kz-zeile .punkte, .kz-zeile__pfeil { display: none; }
  .weg3 { grid-template-columns: minmax(0, 1fr); }
  .vgl { table-layout: fixed; font-size: .86rem; }
  .vgl th[scope="row"], .vgl thead th:first-child { width: 38%; }
  .vgl td { overflow-wrap: anywhere; }
  .vgl tr.stark th, .vgl tr.stark td { font-size: .92rem; }
  .diff { display: block; width: max-content; margin: 3px 0 0 auto; }
  .le { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; }
  .le > input:first-child { grid-column: 1 / -1; }
  .le--kasse { grid-template-columns: minmax(0, 1fr) 36px; }
  .le--kasse input { grid-column: 1; }
  .einsatzliste li { grid-template-columns: 62px minmax(0, 1fr) auto 32px; gap: 8px; }
  .monat strong { min-width: 124px; font-size: .96rem; }
  .abr-kopf .btn-row { width: 100%; }
  .abr-kopf .btn-row .btn { flex: 1 1 auto; }
  .banner__txt, .nur-gross { display: none; }
  .banner__in { flex-wrap: nowrap; gap: 8px; padding: 8px 14px; }
  .banner__act { margin-left: auto; flex-wrap: nowrap; gap: 6px; }
  .banner .btn--sm { min-height: 32px; padding: 0 10px; font-size: .8rem; }
  .d { width: 100%; min-height: 0; padding: 7vw 6vw; font-size: 8.4pt; }
  .d-adr { grid-template-columns: 1fr; gap: 4mm; min-height: 0; }
  .d-info { justify-self: stretch; }
  .d-kopf { flex-direction: column; gap: 4mm; }
  .d-titel h1 { text-align: left; }
  .d-unter { grid-template-columns: 1fr; }
  .dok__leiste .btn { padding: 0 12px; }
  .dok__flaeche { padding: 14px 10px 40px; }
}

@media (max-width: 420px) {
  .banner__tag { font-size: .66rem; padding: 2px 8px; }
  .banner .btn--sm { padding: 0 9px; }
  .banner .btn--sm .ic { display: none; }
  .tiles--4 { grid-template-columns: minmax(0, 1fr); }
  .hero__zahlen { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Druck ---------- */
@page { size: A4; margin: 12mm 0 12mm; }
@media print {
  html, body { background: #fff !important; }
  body.dok-offen > *:not(#dok) { display: none !important; }
  body:not(.dok-offen) .side, body:not(.dok-offen) .tabs, body:not(.dok-offen) .top, body:not(.dok-offen) .banner { display: none !important; }
  body:not(.dok-offen) .shell { display: block; }
  #dok { position: static; display: block !important; background: none; animation: none; }
  .dok__leiste { display: none !important; }
  .dok__flaeche { padding: 0; overflow: visible; }
  /* Lange Dokumente laufen über mehrere Seiten weiter, statt abgeschnitten zu werden */
  .d { width: 210mm; min-height: 273mm; height: auto; overflow: visible; margin: 0; box-shadow: none; padding: 2mm 18mm 2mm 22mm; font-size: 9.4pt; page-break-after: always; break-after: page; }
  .d-tab thead { display: table-header-group; }
  .d-tab tfoot { display: table-row-group; }
  .d-tab tr, .d-summe, .d-unter, .d-person, .d-felder tr { break-inside: avoid; page-break-inside: avoid; }
  .d-h2, .d-betreff { break-after: avoid; page-break-after: avoid; }
  .d:last-child { page-break-after: auto; break-after: auto; }
  .d-adr { grid-template-columns: 85mm 1fr; }
  .d-kopf { flex-direction: row; }
  .d-unter { grid-template-columns: 1fr 1.4fr 1.4fr; }
  .d-unter--2 { grid-template-columns: 1fr 1.6fr; }
}

/* ---------- Testversion: was sie kann ---------- */
.info-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
.info-k { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.info-k h3 { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; margin-bottom: 8px; }
.info-k h3 .ic { color: var(--brand); }
.info-k ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-2); font-size: .92rem; }
.start .info-raster { margin-top: 10px; }
.side__info { font-size: .84rem; font-weight: 600; color: var(--brand); text-decoration: none; }
.side__info:hover { text-decoration: underline; }
.hero__klein { font-size: .82rem; opacity: .78; margin-top: 8px; }
@media (max-width: 640px) { .info-raster { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Prüfung 27.11.2026: Bedienung am Handy, Tabellen, Druckvorschau ---------- */
.tabelle th:first-child, .tabelle td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.tabelle thead th:first-child { background: var(--surface-2); }
.tabelle tbody tr:hover td:first-child { background: var(--surface-2); }
/* Rahmen schneidet das gedrehte Wasserzeichen am Blattrand ab, damit es keine Breite erzeugt */
.d-muster-rahmen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.d-kopfzeile th { font-size: 7pt !important; text-transform: none !important; letter-spacing: 0 !important; color: #8A949C !important; border-bottom: 0 !important; padding-bottom: 0 !important; font-weight: 500 !important; }
@media screen { .d-kopfzeile { display: none; } }
@media (max-width: 640px) {
  .seg { width: 100%; flex-wrap: wrap; overflow: visible; }
  .seg__b { flex: 1 1 auto; padding: 9px 10px; }
  .le { grid-template-columns: minmax(0, 1fr) 118px 36px; }
  .le > input:first-child, .le > select:nth-child(2) { grid-column: 1 / -1; }
  .einsatzliste li { grid-template-columns: 74px minmax(0, 1fr) auto 32px; }
  .el__d small { font-size: .72rem; }
  .dok__flaeche .d { overflow-x: auto; }
  .plan__z { grid-template-columns: auto auto minmax(0, 1fr) 36px; }
}
/* Personenblock in der Dokumentvorschau am Handy: Paare untereinander statt vier schmaler Spalten (Druck unverändert) */
@media screen and (max-width: 640px) {
  .d-person, .d-person tbody { display: block; width: 100%; }
  .d-person tr { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 60%); }
  .d-person th, .d-person td { display: block; width: auto !important; white-space: normal !important; overflow-wrap: anywhere; }
}
@media screen and (max-width: 640px) {
  .d-summe { min-width: 0; width: 100%; }
  .d-summe th { padding-right: 3mm; }
}
.el__l, .el__l small { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
/* Kontrast nach Prüfung 27.11.2026: Kleintext im Hero und Pflegegrad-3-Kennzeichen über 4,5 : 1 */
.kz > span { opacity: .95; }
.kz small { opacity: .9; }
.hero__kick { opacity: .95; }
.pg--3 { color: color-mix(in srgb, var(--accent) 60%, var(--ink)); }
