[hidden] { display: none !important; }
/* ===== Einsatzdatenerfassung – Gestaltung (hell / dunkel) ===== */
:root {
  color-scheme: light;
  --bg: #f3f5f7;
  --flaeche: #ffffff;
  --flaeche-2: #f7f9fa;
  --flaeche-3: #eef2f5;
  --text: #1d2329;
  --text-leise: #5b6670;
  --linie: #e1e6ea;
  --linie-stark: #c9d1d8;
  --eingabe: #ffffff;
  --akzent: #8a1c1c;
  --akzent-text: #ffffff;
  --akzent-hell: #fbf1f1;
  --daten: #2f5d8a;
  --daten-rgb: 47, 93, 138;
  --ok: #1d7a46;
  --ok-bg: #edf7f1;
  --warn: #8a5a00;
  --warn-bg: #fdf6e8;
  --fehler: #a32020;
  --fehler-bg: #fbeeee;
  --kopf: #1d2329;
  --schatten: 0 1px 2px rgba(16, 24, 32, .05);
  --radius: 8px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1316;
  --flaeche: #171c21;
  --flaeche-2: #1d2329;
  --flaeche-3: #232a31;
  --text: #e5e9ed;
  --text-leise: #9aa6b2;
  --linie: #2a323a;
  --linie-stark: #3a444e;
  --eingabe: #11161a;
  --akzent: #c24848;
  --akzent-hell: #2a1a1a;
  --daten: #5b95d0;
  --daten-rgb: 91, 149, 208;
  --ok: #5cc28a;
  --ok-bg: #12261b;
  --warn: #e0b057;
  --warn-bg: #2a2212;
  --fehler: #ef7b7b;
  --fehler-bg: #2b1616;
  --kopf: #0a0d10;
  --schatten: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1316;
    --flaeche: #171c21;
    --flaeche-2: #1d2329;
    --flaeche-3: #232a31;
    --text: #e5e9ed;
    --text-leise: #9aa6b2;
    --linie: #2a323a;
    --linie-stark: #3a444e;
    --eingabe: #11161a;
    --akzent: #c24848;
    --akzent-hell: #2a1a1a;
    --daten: #5b95d0;
    --daten-rgb: 91, 149, 208;
    --ok: #5cc28a;
    --ok-bg: #12261b;
    --warn: #e0b057;
    --warn-bg: #2a2212;
    --fehler: #ef7b7b;
    --fehler-bg: #2b1616;
    --kopf: #0a0d10;
    --schatten: none;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--daten); }
h1 { font-size: 1.45rem; margin: 0; line-height: 1.25; }
h2 { font-size: 1.1rem; margin: 0 0 .8rem; }
h3 { font-size: .95rem; margin: 0 0 .6rem; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Kopf */
.kopf { background: var(--kopf); color: #fff; position: sticky; top: 0; z-index: 20; }
.kopf-innen { max-width: 1400px; margin: 0 auto; padding: .5rem 16px; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; order: 1; }
.marke-zeichen { background: #8a1c1c; width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.marke strong { display: block; font-size: .95rem; }
.marke small { display: block; color: #b9c2ca; font-size: .75rem; }
.nav { display: flex; gap: .15rem; flex-wrap: wrap; flex: 1; order: 2; }
.nav a { color: #d7dde2; text-decoration: none; padding: .4rem .65rem; border-radius: 6px; font-size: .9rem; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.aktiv { background: rgba(255,255,255,.15); color: #fff; }
.nav-menue { position: relative; }
.nav-menue summary { list-style: none; cursor: pointer; color: #d7dde2; padding: .4rem .65rem; border-radius: 6px; font-size: .9rem; }
.nav-menue summary::-webkit-details-marker { display: none; }
.nav-menue summary::after { content: " ▾"; font-size: .75rem; }
.nav-menue summary:hover, .nav-menue[open] summary { background: rgba(255,255,255,.08); color: #fff; }
.nav-menue summary.aktiv { background: rgba(255,255,255,.15); color: #fff; }
.nav-menue-liste { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; min-width: 220px; display: flex; flex-direction: column; padding: .3rem; background: var(--kopf); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.nav-menue-liste a { display: block; }
.theme-knopf { order: 3; margin-left: auto; background: rgba(255,255,255,.08); color: #d7dde2; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: .2rem .65rem; font: inherit; font-size: .78rem; cursor: pointer; }
.theme-knopf:hover { background: rgba(255,255,255,.15); color: #fff; }
.nutzer { order: 4; display: flex; align-items: center; gap: .6rem; font-size: .85rem; }
.nutzer a { color: #fff; }
.rolle { background: rgba(255,255,255,.12); padding: .1rem .5rem; border-radius: 10px; font-size: .75rem; color: #d7dde2; }
.link-knopf { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; color: var(--daten); }
.abmelden { color: #f3b5b5 !important; }
.inline { display: inline; margin: 0; }

.inhalt { max-width: 1400px; margin: 0 auto; padding: 1.2rem 16px 2rem; }
.fuss { text-align: center; color: var(--text-leise); font-size: .78rem; padding: 1rem 16px 2rem; }

/* Grundelemente */
.card { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; box-shadow: var(--schatten); }
.seitenkopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.unterzeile { font-size: 1rem; font-weight: 500; margin-left: .4rem; }
.aktionen { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; background: var(--akzent); color: var(--akzent-text); border: 1px solid var(--akzent); border-radius: 6px; padding: .45rem .9rem; font: inherit; font-size: .9rem; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-leise { background: var(--flaeche); color: var(--text); border-color: var(--linie-stark); }
.btn-gefahr { background: var(--fehler); border-color: var(--fehler); color: #fff; }
.btn-voll { width: 100%; margin-top: .6rem; }

label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--text-leise); font-weight: 600; }
input, select, textarea { font: inherit; font-size: .95rem; color: var(--text); background: var(--eingabe); border: 1px solid var(--linie-stark); border-radius: 6px; padding: .45rem .55rem; min-width: 0; width: 100%; }
input[readonly], textarea[readonly] { background: var(--flaeche-2); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(var(--daten-rgb), .35); border-color: var(--daten); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--akzent); }
label.chk { flex-direction: row; align-items: center; gap: .25rem; font-weight: 500; color: var(--text); }
.kaestchen { width: auto; }
.schmal { max-width: 7rem; }
.leise { color: var(--text-leise); }
.klein { font-size: .8rem; }
.umbruch { white-space: normal !important; }
.umbruch-alle td, .tabelle.umbruch-alle td { white-space: normal; }
.abstand-oben { margin-top: 1rem; }
.hinweis { margin: .2rem 0 .7rem; font-size: .82rem; color: var(--text-leise); }
.leer-wert { color: var(--text-leise); opacity: .6; }
.stapel { display: flex; flex-direction: column; gap: .7rem; }

/* Meldungen */
.meldung { padding: .6rem .9rem; border-radius: 6px; margin-bottom: .8rem; font-size: .9rem; border: 1px solid; }
.meldung-ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok); }
.meldung-fehler { background: var(--fehler-bg); border-color: color-mix(in srgb, var(--fehler) 35%, transparent); color: var(--fehler); }
.meldung-hinweis { background: color-mix(in srgb, var(--daten) 9%, var(--flaeche)); border-color: color-mix(in srgb, var(--daten) 35%, transparent); color: var(--text); }
.meldung ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.meldung-warnung { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: var(--warn); }

/* Zeitraum */
.zeitraum-karte { padding: .8rem 1rem; }
.zeitraum { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem 1.2rem; }
.segment { display: inline-flex; background: var(--flaeche-3); border-radius: 8px; padding: 3px; }
.segment-teil { flex-direction: row; cursor: pointer; }
.segment-teil input { position: absolute; opacity: 0; pointer-events: none; }
.segment-teil span { display: block; padding: .4rem .85rem; border-radius: 6px; font-size: .88rem; color: var(--text-leise); font-weight: 600; }
.segment-teil input:checked + span { background: var(--flaeche); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.segment-teil input:focus-visible + span { outline: 2px solid var(--daten); }
.zeitraum-werte { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.zeitraum-werte label { min-width: 9rem; }
.blaettern { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.blaettern strong { min-width: 8rem; text-align: center; }
.blaettern .btn { padding: .35rem .7rem; font-size: 1.05rem; }

/* Filter */
.filterbox summary { cursor: pointer; font-weight: 600; }
.filter { margin-top: .8rem; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.filter-wt { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .8rem; font-size: .88rem; }
.presets { margin-left: auto; color: var(--text-leise); font-size: .85rem; }
.filter-aktionen { margin-top: .9rem; display: flex; gap: .5rem; }
.treffer { color: var(--text-leise); font-size: .88rem; margin: -.3rem 0 1rem; }

/* Kennzahlen und Diagramme */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.kpi { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: .75rem .9rem; }
.kpi span { display: block; color: var(--text-leise); font-size: .78rem; }
.kpi strong { display: block; white-space: nowrap; font-size: 1.25rem; font-variant-numeric: tabular-nums; margin-top: .15rem; }
.kpi small { display: block; font-size: .75rem; color: var(--text-leise); margin-top: .1rem; }
.kpi small.plus { color: var(--ok); }
.kpi small.minus { color: var(--fehler); }
.kpi-haupt { border-left: 3px solid var(--akzent); }
.raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.raster .card { margin: 0; }
.raster.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1rem; }
.breit2 { grid-column: span 2; }
.chart { position: relative; height: 240px; }
.chart.hoch { height: 320px; }
.leer-karte { text-align: center; color: var(--text-leise); padding: 2rem; }

.heat-rahmen { overflow-x: auto; }
.heat { border-collapse: separate; border-spacing: 2px; font-size: .72rem; width: 100%; }
.heat th { color: var(--text-leise); font-weight: 600; padding: 0 2px; }
.heat td { text-align: center; height: 26px; min-width: 22px; border-radius: 3px; color: var(--text); font-variant-numeric: tabular-nums; }
.heat td.h0 { background: rgba(var(--daten-rgb), .06); }
.heat td.h1 { background: rgba(var(--daten-rgb), .15); }
.heat td.h2 { background: rgba(var(--daten-rgb), .24); }
.heat td.h3 { background: rgba(var(--daten-rgb), .33); }
.heat td.h4 { background: rgba(var(--daten-rgb), .42); }
.heat td.h5 { background: rgba(var(--daten-rgb), .52); }
.heat td.h6 { background: rgba(var(--daten-rgb), .62); color: #fff; }
.heat td.h7 { background: rgba(var(--daten-rgb), .72); color: #fff; }
.heat td.h8 { background: rgba(var(--daten-rgb), .82); color: #fff; }
.heat td.h9 { background: rgba(var(--daten-rgb), .91); color: #fff; }
.heat td.h10 { background: rgba(var(--daten-rgb), 1); color: #fff; }

/* Tabellen */
.tabelle-rahmen { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
.tabelle-rahmen.flach { border: 0; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tabelle th, .tabelle td { padding: .45rem .6rem; border-bottom: 1px solid var(--linie); text-align: left; white-space: nowrap; }
.tabelle th { background: var(--flaeche-2); font-weight: 600; font-size: .8rem; color: var(--text-leise); position: sticky; top: 0; }
.tabelle th a { color: inherit; text-decoration: none; }
.tabelle .r { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle.klickbar tbody tr { cursor: pointer; }
.tabelle.klickbar tbody tr:hover { background: var(--flaeche-2); }
.tabelle.kompakt td, .tabelle.kompakt th { padding: .3rem .45rem; }
.tabelle td.ok { color: var(--ok); font-weight: 600; }
.tabelle td.nok { color: var(--fehler); font-weight: 600; }
.leer { text-align: center !important; color: var(--text-leise); padding: 2rem !important; }
.seiten { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-top: 1rem; }

/* Einsatzanzeige */
.einsatz-kopf { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; border-left: 4px solid var(--akzent); }
.einsatz-kopf h1 { font-size: 1.6rem; margin: .2rem 0; }
.einsatz-ort { font-size: 1rem; }
.anzeige-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.anzeige-raster .card { margin: 0; }
.breit-ganz { grid-column: 1 / -1; }
.werte { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: .35rem .9rem; margin: 0; font-size: .92rem; }
.werte dt { color: var(--text-leise); font-size: .82rem; padding-top: .1rem; }
.werte dd { margin: 0; word-break: break-word; }
.zeitstrahl { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; padding: 0; margin: 0 0 1rem; counter-reset: s; }
.zeitstrahl li { position: relative; text-align: center; padding-top: 14px; font-size: .78rem; }
.zeitstrahl li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 2px; background: var(--linie); }
.zeitstrahl li::after { content: ""; position: absolute; top: 0; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--linie-stark); }
.zeitstrahl li.gesetzt::after { background: var(--daten); }
.zeitstrahl span { display: block; color: var(--text-leise); }
.zeitstrahl strong { display: block; font-variant-numeric: tabular-nums; }
.loeschen { margin-top: 1.5rem; text-align: right; }

/* Erfassung */
.erfassung-kopf { position: sticky; top: 52px; z-index: 10; background: var(--bg); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-end; padding: .6rem 0 .8rem; margin-bottom: .4rem; border-bottom: 1px solid var(--linie); }
.sprungmarken { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.sprungmarken a { font-size: .8rem; text-decoration: none; padding: .15rem .55rem; border-radius: 12px; background: var(--flaeche-3); color: var(--text-leise); }
.sprungmarken a:hover { color: var(--text); }
.abschnitt { scroll-margin-top: 140px; }
.abschnitt h2 { display: flex; align-items: center; gap: .5rem; }
.abschnitt summary { cursor: pointer; list-style: none; }
.abschnitt summary::-webkit-details-marker { display: none; }
.abschnitt summary h2 { margin: 0; }
.abschnitt summary h2::after { content: "▸"; color: var(--text-leise); font-size: .9rem; margin-left: .3rem; }
.abschnitt[open] summary h2::after { content: "▾"; }
.abschnitt[open] summary { margin-bottom: .8rem; }
.nr { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--akzent); color: #fff; font-size: .8rem; }
.feld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.feld-grid .breit { grid-column: 1 / -1; }
.feld > span { font-size: .8rem; }
.feld-mit-knopf { display: flex; gap: .4rem; align-items: flex-end; }
.feld-mit-knopf .feld { flex: 1; }
.jetzt { padding: .45rem .6rem; font-size: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .8rem; }
.chip { background: var(--flaeche-3); color: var(--text); border: 1px solid var(--linie); border-radius: 14px; padding: .2rem .65rem; font: inherit; font-size: .82rem; cursor: pointer; }
.chip:hover, .chip.aktiv { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.zeile { border: 1px solid var(--linie); border-radius: 8px; padding: .7rem .8rem; margin-bottom: .7rem; background: var(--flaeche-2); }
.zeile-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; font-size: .9rem; }
.entfernen { color: var(--fehler); }
.team-zeile { padding: .5rem .8rem; }
.team-grid { grid-template-columns: 2fr 1.2fr 1.2fr auto; align-items: end; }
.team-entfernen { font-size: 1rem; text-decoration: none; padding: .45rem .3rem; }
.zeiten-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.berechnet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: .9rem 0; }
.berechnet div { background: var(--flaeche-3); border-radius: 8px; padding: .55rem .7rem; }
.berechnet span { display: block; font-size: .75rem; color: var(--text-leise); }
.berechnet strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.form-aktionen { display: flex; gap: .6rem; padding: .8rem 0; }
.neu-zeile { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; margin-top: .8rem; }

/* Anmeldung */
.login-box { max-width: 420px; margin: 3rem auto; }
.login-box.breit { max-width: 560px; }
.login-box form { display: flex; flex-direction: column; gap: .7rem; }
.qr { display: flex; justify-content: center; margin: 1rem 0 .5rem; }
.qr img { image-rendering: pixelated; border: 1px solid var(--linie); border-radius: 6px; background: #fff; }
.schluessel { text-align: center; font-size: .85rem; }
.schluessel code { background: var(--flaeche-3); padding: .2rem .4rem; border-radius: 4px; letter-spacing: .05em; }
.codes { columns: 2; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; padding-left: 1.2rem; }
.codes li { margin-bottom: .3rem; }

@media (max-width: 1100px) {
  .raster, .anzeige-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .raster, .raster.zwei, .anzeige-raster { grid-template-columns: minmax(0, 1fr); }
  .breit2 { grid-column: auto; }
  .presets, .blaettern { margin-left: 0; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .berechnet { grid-template-columns: 1fr; }
  .erfassung-kopf { position: static; }
  .zeitstrahl { grid-template-columns: repeat(3, 1fr); row-gap: .6rem; }
  .kopf { position: static; }
}
/* ===== Fahrzeugauswahl ===== */
.fz-wahl { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .3rem; }
.fz-wahl-titel { font-size: .8rem; font-weight: 600; color: var(--text-leise); margin-right: .3rem; }
.fz-chip { position: relative; cursor: pointer; }
.fz-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fz-chip span { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--linie-stark); border-radius: 16px; background: var(--flaeche); font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.fz-chip input:checked + span { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.fz-chip input:checked + span::before { content: "✓ "; }
.fz-chip input:focus-visible + span { outline: 2px solid var(--daten); outline-offset: 2px; }
.fz-liste { margin: 0; padding-left: 1.1rem; font-size: .92rem; }
.fz-liste li { margin: .15rem 0; }
.zeitwarnung { grid-column: 1 / -1; margin: 0; padding: .35rem .6rem; border-radius: 5px; background: var(--warn-bg); color: var(--warn); font-size: .85rem; font-weight: 600; }

/* ===== Abrechnung, Datenqualität, Sicherung ===== */
.reiter { display: inline-flex; gap: .2rem; background: var(--flaeche-3); padding: .2rem; border-radius: 8px; }
.reiter a { padding: .4rem .9rem; border-radius: 6px; text-decoration: none; color: var(--text-leise); font-weight: 600; font-size: .9rem; }
.reiter a.aktiv { background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); }
.reiter.klein a { font-size: .82rem; padding: .3rem .7rem; }
.unterkopf { margin-top: -.3rem; }
.aktionsleiste { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .8rem; }
.btn-klein { padding: .2rem .55rem; font-size: .8rem; }
.status-text.warn { color: var(--warn); font-weight: 600; }
.tabelle td.r.nok { color: var(--fehler); font-weight: 600; }
.qualitaet td { vertical-align: middle; }
.balken-zelle { width: 110px; }
.q-balken { display: block; width: 100px; height: 8px; border-radius: 4px; background: var(--flaeche-3); overflow: hidden; }
.q-balken i { display: block; height: 100%; width: 0; background: var(--warn); }
.q-1 { width: 10% !important; } .q-2 { width: 20% !important; } .q-3 { width: 30% !important; } .q-4 { width: 40% !important; } .q-5 { width: 50% !important; }
.q-6 { width: 60% !important; } .q-7 { width: 70% !important; } .q-8 { width: 80% !important; } .q-9 { width: 90% !important; } .q-10 { width: 100% !important; }
.sicherung-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; align-items: end; margin: .6rem 0; }

/* ===== PDF-Import ===== */
.import-form { display: flex; gap: 1rem; align-items: stretch; flex-wrap: wrap; }
.ablage { flex: 1 1 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 110px; padding: 1rem; border: 2px dashed var(--linie-stark); border-radius: var(--radius); background: var(--flaeche-2); cursor: pointer; text-align: center; }
.ablage:hover, .ablage.ueber { border-color: var(--akzent); background: var(--akzent-hell); }
.ablage.gefuellt { border-style: solid; border-color: var(--ok); }
.ablage input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.import-form .btn { align-self: center; }
.import-eintrag { border-left: 4px solid var(--daten); }
.import-eintrag.status-vorhanden { border-left-color: var(--warn); }
.import-eintrag.status-erledigt { border-left-color: var(--ok); opacity: .75; }
.import-kopf { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.import-kopf h3 { margin: .15rem 0 .2rem; font-size: 1.05rem; }
.status-marke { font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 12px; background: color-mix(in srgb, var(--daten) 14%, var(--flaeche)); color: var(--daten); white-space: nowrap; }
.status-vorhanden .status-marke { background: var(--warn-bg); color: var(--warn); }
.status-erledigt .status-marke { background: var(--ok-bg); color: var(--ok); }
.import-werte { margin: .7rem 0; grid-template-columns: max-content 1fr; }
.import-hinweise { margin: .3rem 0 .7rem; padding-left: 1.2rem; font-size: .85rem; color: var(--warn); }
.abweichungen { margin: .3rem 0 .8rem; }
.import-aktionen { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.feld-pdf { display: flex; flex-direction: column; gap: .25rem; }
.feld-pdf.breit { grid-column: 1 / -1; }
.pdf-wert { font-size: .78rem; color: var(--warn); background: var(--warn-bg); border-radius: 5px; padding: .2rem .45rem; }
.pdf-wert strong { white-space: pre-wrap; word-break: break-word; }
.pdf-wert.uebernommen { color: var(--ok); background: var(--ok-bg); }

@media print {
  :root { --bg: #fff; --flaeche: #fff; }
  .kopf, .filterbox, .aktionen, .fuss, .loeschen, .zeitraum-karte { display: none !important; }
  body { background: #fff; color: #000; }
  .card { break-inside: avoid; box-shadow: none; }
  .anzeige-raster { grid-template-columns: repeat(2, 1fr); }
}
