/* NordCargo Spedition: Design wie die Website (dunkel, rote Akzente, runde Pill-Buttons). */
:root {
  --bg: #080b12; --bg2: #0d111b; --panel: #111722; --panel2: #151c28;
  --text: #f5f6f8; --muted: #8f98aa; --line: #242d3c;
  --red: #e2534d; --red2: #b92f34; --red-soft: rgba(226, 83, 77, .12);
  --green: #5dc17a; --green-soft: rgba(93, 193, 122, .12);
  --amber: #e6b04b; --amber-soft: rgba(230, 176, 75, .12);
  --radius: 24px; --shadow: 0 30px 80px rgba(0, 0, 0, .36);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* sonst überschreiben Regeln wie .form { display: flex } das Attribut */
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.05em; line-height: 1.05; }
h2 { font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -.03em; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Anmeldung und Einrichtung */
.gate { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.gate-brand { padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; background: radial-gradient(90% 80% at 0% 0%, var(--red-soft), transparent 60%), var(--bg2); border-right: 1px solid var(--line); }
.gate-brand h1 { font-size: clamp(34px, 5vw, 60px); max-width: 12ch; }
.gate-brand p { color: var(--muted); max-width: 44ch; }
.gate-form { padding: 56px; display: flex; align-items: center; justify-content: center; }
.gate-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; flex: none; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.gate-brand .brand-logo { width: 64px; height: 64px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.brand small { font-size: 10px; font-weight: 800; letter-spacing: .28em; color: var(--red); margin-top: 3px; }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.in { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; width: 100%; font-size: 15px; }
.in:focus { border-color: #3b4860; }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.seg { display: flex; gap: 6px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 9px 12px; font-weight: 800; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--red); color: #fff; }
.err { color: #f4a8a5; background: var(--red-soft); border: 1px solid rgba(226, 83, 77, .3); border-radius: 14px; padding: 10px 14px; font-size: 13px; }

/* Buttons */
.btn { border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); border-radius: 999px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 14px; cursor: pointer; white-space: normal; max-width: 100%; text-align: center; text-decoration: none; transition: transform .2s, border-color .2s, background .2s; }
.btn:hover:not(:disabled) { border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 12px 36px rgba(226, 83, 77, .22); }
.btn.small { padding: 7px 14px; font-size: 12px; }
.btn.text { border-color: transparent; background: none; color: var(--muted); padding-inline: 10px; }
.btn.text:hover:not(:disabled) { color: var(--red); transform: none; border-color: transparent; }
.btn.warn-btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); }

/* Rahmen: Kopf, Seitenleiste, Inhalt */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; background: rgba(8, 11, 18, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.kassenstand { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.kassenstand span { font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.kassenstand b { font-size: 17px; letter-spacing: -.03em; color: var(--green); font-variant-numeric: tabular-nums; }
.userchip { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.userchip b { font-size: 14px; }
.userchip span { font-size: 11px; color: var(--muted); }
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0; width: min(1360px, 100%); margin-inline: auto; }
.side { position: sticky; top: 61px; align-self: start; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px;
  /* Ist das Fenster niedriger als das Menü, scrollt das Menü für sich und nicht die ganze Seite mit */
  max-height: calc(100vh - 61px); max-height: calc(100dvh - 61px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.side::-webkit-scrollbar { width: 8px; }
.side::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.side::-webkit-scrollbar-track { background: transparent; }
.side > a, .side > hr { flex-shrink: 0; }
.side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--muted); border: 1px solid transparent; }
.side a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.side a[aria-current="page"] { color: #fff; background: var(--red-soft); border-color: rgba(226, 83, 77, .35); }
.side a.off { opacity: .5; pointer-events: none; }
.side .soon { font-size: 10px; font-weight: 800; letter-spacing: .08em; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 10px 8px; width: calc(100% - 16px); }
.main { padding: 28px 24px 80px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 62ch; }

/* Bausteine */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.glow { background: radial-gradient(120% 120% at 100% 0%, var(--red-soft), transparent 55%), var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tile { background: linear-gradient(145deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile b { font-size: 28px; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile span { font-size: 12px; color: var(--muted); }
.tile.big b { color: var(--green); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--amber-soft); border: 1px solid rgba(230, 176, 75, .3); border-radius: 18px; padding: 14px 18px; color: #f2d79b; }
.empty { border: 1px dashed var(--line); border-radius: 18px; padding: 28px; color: var(--muted); text-align: center; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 800; letter-spacing: .04em; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.red { background: var(--red-soft); color: var(--red); border-color: rgba(226, 83, 77, .32); }
.pill.ok { background: var(--green-soft); color: var(--green); border-color: rgba(93, 193, 122, .32); }
.pill.warn { background: var(--amber-soft); color: var(--amber); border-color: rgba(230, 176, 75, .32); }
.plate { display: inline-flex; align-items: stretch; border: 1.5px solid #101010; border-radius: 5px; background: #fff; color: #101010; font: 600 13px var(--mono); overflow: hidden; vertical-align: middle; }
.plate::before { content: "D"; background: #0b3d91; color: #fff; font-size: 9px; font-weight: 700; padding: 2px 4px; display: flex; align-items: flex-end; }
.plate span { padding: 3px 8px; letter-spacing: .06em; white-space: nowrap; }
.plate.large { font-size: 22px; border-width: 2px; border-radius: 7px; }
.plate.large::before { font-size: 12px; padding: 3px 6px; }
.plate.large span { padding: 4px 12px; }
.meter-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.meter.warn i { background: var(--amber); }
.meter.over i { background: var(--red); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; }
.fact > span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.fact b { font-size: 16px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Telemetrie: Live-Anzeige, Statuskästen, Anleitung */
.live { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 800; border: 1px solid var(--line); color: var(--muted); text-decoration: none; white-space: nowrap; max-width: 100%; }
.live > span { overflow: hidden; text-overflow: ellipsis; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
a.live:hover { border-color: rgba(255, 255, 255, .3); }
.live.ok { color: var(--green); background: var(--green-soft); border-color: rgba(93, 193, 122, .32); }
.live.ok i { background: var(--green); box-shadow: 0 0 0 4px rgba(93, 193, 122, .18); }
.live.idle { color: var(--text); }
.live.idle i { background: var(--amber); }
.live.red { color: var(--red); background: var(--red-soft); border-color: rgba(226, 83, 77, .32); }
.live.red i { background: var(--red); box-shadow: 0 0 0 4px rgba(226, 83, 77, .18); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.statusbox { border-left: 3px solid var(--line); background: rgba(255, 255, 255, .04); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.statusbox.ok { border-color: var(--green); background: var(--green-soft); }
.statusbox.warn { border-color: var(--amber); background: var(--amber-soft); }
.statusbox.red { border-color: var(--red); background: var(--red-soft); }
details.guide { display: block; }
details.guide summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
details.guide summary::-webkit-details-marker { display: none; }
details.guide[open] summary { margin-bottom: 12px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--red-soft); border: 1px solid rgba(226, 83, 77, .35); color: var(--red); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps span { color: var(--muted); font-size: 14px; }
.steps a { color: var(--red); overflow-wrap: anywhere; }
pre.diag { margin: 0; max-height: 50vh; overflow: auto; background: #0a0e16; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; }

/* Tabellen */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
.pos { color: var(--green); }
.neg { color: #f4a8a5; }
.code { font-family: var(--mono); font-weight: 600; letter-spacing: .06em; font-size: 15px; }
.in.inline { width: 96px; padding: 8px 10px; border-radius: 12px; }
select.in.inline { width: auto; min-width: 190px; }

/* Dialog */
dialog { background: var(--panel); color: var(--text); border: 1px solid #34405a; border-radius: var(--radius); padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(4, 6, 10, .72); backdrop-filter: blur(3px); }
.dlg-form { display: flex; flex-direction: column; gap: 16px; padding: 26px; }
.dlg-body { display: flex; flex-direction: column; gap: 14px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.sum { background: rgba(255, 255, 255, .04); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sum div span:first-child { color: var(--muted); }
.sum .total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.opt small { display: block; color: var(--muted); font-size: 12px; }
.opt input { accent-color: var(--red); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--panel2); border: 1px solid #34405a; border-radius: 999px; padding: 11px 22px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: var(--red); color: #f4a8a5; }

@media (max-width: 980px) {
  .gate { grid-template-columns: minmax(0, 1fr); }
  .gate-brand { padding: 32px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .gate-form { padding: 32px 24px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; flex-direction: row; overflow-x: auto; overflow-y: visible; max-height: none; padding: 12px 16px 0; gap: 8px; }
  .side a { white-space: nowrap; border-color: var(--line); }
  .side hr { display: none; }
  .main { padding: 20px 16px 80px; }
  .top { padding: 10px 16px; }
}
@media (max-width: 560px) {
  .top { flex-wrap: wrap; row-gap: 8px; }
  .top-r { gap: 8px; min-width: 0; max-width: 100%; }
  .meter-row { grid-template-columns: 90px minmax(0, 1fr) auto; }
  .userchip { display: none; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Etappe 4: Touren, Cashflow, Rechte, Finanzen */
a.kassenstand { text-decoration: none; color: inherit; }
a.kassenstand:hover b { text-decoration: underline; }
.field.inl { flex-direction: row; align-items: center; gap: 8px; }
.field.inl > span { white-space: nowrap; }
.field.inl .in { width: auto; min-width: 150px; padding: 8px 36px 8px 12px; }
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.filterbar .seg { flex: none; max-width: 100%; overflow-x: auto; }
.filterbar .seg button { flex: none; white-space: nowrap; padding: 9px 16px; }
.nowrap { white-space: nowrap; }
.card-head .seg { padding: 3px; }
.card-head .seg button { padding: 6px 12px; font-size: 12px; }
.grid2.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.tourkarte .facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cf { display: flex; flex-direction: column; gap: 9px; }
.cf-row { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) 112px; gap: 12px; align-items: center; font-size: 14px; }
.cf-row > span:first-child { color: var(--muted); }
.cf-row > span:last-child { text-align: right; white-space: nowrap; }
.cf-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.cf-bar i { display: block; height: 100%; border-radius: 999px; min-width: 2px; }
.cf-bar i.plus { background: var(--green); }
.cf-bar i.minus { background: var(--red); }
.cf-row.total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; }
.cf-row.total > span:first-child { color: var(--text); }
.chart { width: 100%; height: auto; display: block; }
.chart-l { stroke: var(--line); stroke-width: 1; }
.chart-t { fill: var(--muted); font-size: 14px; font-family: var(--font); }
.bar-pos { fill: var(--green); }
.bar-neg { fill: var(--red); }
.guv-gruppe { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.guv-kopf { display: flex; justify-content: space-between; gap: 12px; }
.guv-kopf.total { font-size: 16px; padding-top: 4px; }
.guv-zeile { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-left: 12px; }
.guv-zeile > span:first-child { color: var(--muted); }
.rg { display: flex; flex-direction: column; font-size: 13px; }
.rg b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
fieldset.rechtgruppe { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rechtgruppe legend { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); padding: 0; margin-bottom: 8px; }
.opt.gesperrt { opacity: .5; cursor: not-allowed; }
dialog { max-height: calc(100vh - 32px); overflow: hidden; }
.dlg-form { max-height: calc(100vh - 34px); }
.dlg-form > h2, .dlg-form > .dlg-actions, .dlg-form > .err { flex: none; }
.dlg-body { overflow-y: auto; min-height: 0; padding-right: 4px; }
dialog.breit { width: min(780px, calc(100vw - 32px)); }
@media (max-width: 560px) {
  .cf-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cf-bar { display: none; }
  .field.inl { flex-direction: column; align-items: stretch; }
  .filterbar { gap: 10px; }
  .filterbar .seg button { padding: 8px 11px; font-size: 12px; }
  .filterbar > .field { flex: 1 1 140px; }
  .tourkarte .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px 14px; }
  .tile b { font-size: 21px; }
  .page-head .btn-row, .page-head > .btn { width: 100%; }
}
#mein-tele, #ueb-dienst, #tele-live { display: flex; flex-direction: column; gap: 16px; }
#mein-tele:empty, #ueb-dienst:empty { display: none; }

/* Gekoppelte PCs (Fahrerprogramm) */
.geraete { display: flex; flex-direction: column; }
.geraet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.geraete > .eyebrow { margin-bottom: 8px; }
.geraet-name { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.geraet-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* Mein Leben: Kassenbon, Post, Abrechnungen */
.bon { align-self: flex-start; width: min(360px, 100%); background: #f4f1e8; color: #1c1b17; border-radius: 4px; padding: 18px 18px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 2px; }
.bon-kopf { text-align: center; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px dashed #8a8677; margin-bottom: 6px; }
.bon-z { display: flex; justify-content: space-between; gap: 12px; }
.bon-z > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.bon-z > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bon-sum { border-top: 1px dashed #8a8677; margin-top: 6px; padding-top: 6px; font-weight: 700; font-size: 14px; }
.bon-fuss { text-align: center; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #8a8677; color: #5e5b4f; }
details.abr > summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font-size: 15px; }
details.abr > summary::-webkit-details-marker { display: none; }
details.abr[open] > summary { margin-bottom: 12px; }
details.abr .sum { margin-bottom: 14px; }
.brief { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.brief-k { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; }
.brief-k .muted { font-size: 12px; }
.brief p { font-size: 14px; max-width: 70ch; }

/* Live-Karte und Tour-Replay */
.karte-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.karte-box, .rp-box { position: relative; height: clamp(420px, 68vh, 780px); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #0a0e16; min-width: 0; }
.rp-box { height: clamp(360px, 56vh, 640px); }
.karte-box canvas, .rp-box canvas { position: absolute; inset: 0; display: block; cursor: grab; touch-action: none; }
.karte-tools { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.karte-tools .btn { width: 40px; height: 40px; padding: 0; font-size: 18px; line-height: 1; background: rgba(13, 17, 27, .88); }
.karte-quelle { font-size: 12px; max-width: 78ch; margin: 12px 2px 0; }
.karte-oben { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; flex-direction: column; gap: 8px; width: min(270px, calc(100% - 76px)); }
.karte-suche { position: relative; }
.karte-suche input { width: 100%; height: 40px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(13, 17, 27, .92); color: inherit; font: inherit; font-size: 14px; }
.karte-suche input:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
#karte-treffer, #dispo-treffer { position: absolute; left: 0; right: 0; top: 46px; margin: 0; padding: 4px; list-style: none; background: rgba(13, 17, 27, .98); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
#karte-treffer[hidden], #dispo-treffer[hidden] { display: none; }
#karte-treffer button, #dispo-treffer button { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 10px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; text-align: left; border-radius: 10px; cursor: pointer; }
#karte-treffer button:hover, #karte-treffer button:focus-visible, #dispo-treffer button:hover, #dispo-treffer button:focus-visible { background: rgba(255, 255, 255, .07); }
#karte-treffer button span, #dispo-treffer button span { color: var(--muted); font-size: 12px; }
#karte-treffer .leer, #dispo-treffer .leer { padding: 9px 10px; color: var(--muted); font-size: 13px; }
.karte-ebenen { align-self: flex-start; background: rgba(13, 17, 27, .92); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; max-width: 100%; }
.karte-ebenen summary { cursor: pointer; padding: 9px 14px; list-style: none; color: var(--muted); user-select: none; }
.karte-ebenen summary::-webkit-details-marker { display: none; }
.karte-ebenen[open] summary { color: inherit; }
.kb-liste { display: flex; flex-direction: column; gap: 2px; padding: 0 12px 12px; }
.kb-liste .muted { font-size: 11.5px; margin: 6px 0 0; line-height: 1.4; }
.kb-eb { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
.kb-eb input { width: 16px; height: 16px; margin: 0; accent-color: var(--red); }
.kb-eb i { width: 12px; height: 4px; border-radius: 2px; flex: none; }
.kb-lkw { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kb-lkw li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.karte-leer { position: absolute; left: 16px; right: 64px; bottom: 44px; z-index: 2; background: rgba(13, 17, 27, .92); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.karte-seite { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.karte-fl { display: flex; flex-direction: column; gap: 8px; }
.kfahrer { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 10px 14px; cursor: pointer; color: inherit; font: inherit; }
.kfahrer:hover { border-color: #3b4860; }
.kfahrer[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); }
.kf-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kf-zeile { font-size: 12.5px; overflow-wrap: anywhere; }
.karte-karte { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.rp-steuer { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.rp-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.rp-zeile .seg { flex: none; max-width: 100%; overflow-x: auto; }
.rp-zeile .seg button { flex: none; padding: 8px 14px; }
.rp-profil { position: relative; height: 64px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); overflow: hidden; cursor: pointer; touch-action: none; }
.rp-profil canvas { position: absolute; inset: 0; display: block; }
.rp-profil i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); box-shadow: 0 0 8px rgba(255, 255, 255, .5); pointer-events: none; }
.rp-regler { width: 100%; accent-color: var(--red); }
.rp-werte { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.rp-legende { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
.rp-legende i { flex: 0 1 180px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, hsl(0, 78%, 55%), hsl(60, 78%, 55%), hsl(125, 78%, 55%)); }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; color: inherit; font: inherit; font-size: 13px; max-width: 100%; }
.rp-chip:hover { border-color: var(--c); }
.rp-chip i { font-style: normal; font-weight: 800; font-size: 12px; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c); color: #0a0e16; flex: none; }
.rp-chip span { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.rp-chip small { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .karte-wrap { grid-template-columns: minmax(0, 1fr); }
  .karte-box { height: 58vh; min-height: 340px; }
}
.rp-regler { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red) var(--p, 0%), var(--line) var(--p, 0%)); margin: 8px 0; cursor: pointer; }
.rp-regler::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--red); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.rp-regler::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.rp-regler::-moz-range-track { height: 6px; border-radius: 3px; background: transparent; }
.bons { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }


/* Impressum, Datenschutz und Teilnahmebedingungen */
.rechtlinks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; }
.rechtlinks a, .foot a { color: var(--muted); text-underline-offset: 3px; }
.rechtlinks a:hover, .foot a:hover { color: var(--text); }
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 18px 16px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 12px; border-top: 1px solid var(--line); margin-top: 8px; }
.recht { width: min(820px, 100%); margin: 0 auto; padding: 28px 20px 80px; display: flex; flex-direction: column; gap: 22px; }
.recht-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.recht-nav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 13px; color: var(--muted); }
.recht-nav a:hover { color: var(--text); }
.recht-nav a[aria-current="page"] { color: #fff; background: var(--red-soft); border-color: rgba(226, 83, 77, .35); }
.recht-text { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 4vw, 36px); display: flex; flex-direction: column; gap: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.recht-text h1 { font-size: clamp(26px, 4vw, 34px); }
.recht-text h2 { font-size: 18px; margin-top: 14px; }
.recht-text h3 { margin-top: 8px; }
.recht-text p, .recht-text li { color: #d9dde6; }
.recht-text ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.recht-text a { color: #f4a8a5; text-underline-offset: 3px; }
.recht-stand { font-size: 12px; margin-top: 10px; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; color: var(--muted); cursor: pointer; line-height: 1.45; }
.check input { accent-color: var(--red); margin-top: 2px; width: 17px; height: 17px; }
.check a { color: var(--text); text-underline-offset: 3px; }
.btn.danger { border-color: rgba(226, 83, 77, .5); color: #f4a8a5; }
.btn.danger:hover:not(:disabled) { background: var(--red-soft); border-color: var(--red); }
textarea.in { font-family: var(--mono); font-size: 13px; line-height: 1.5; resize: vertical; min-height: 220px; }
details.guide-d { border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; background: rgba(255, 255, 255, .02); }
details.guide-d > summary { cursor: pointer; }

/* Update des Fahrerprogramms (webquellen/07b-fahrerupdate.js) */
.upd { position: fixed; inset: 0; z-index: 900; display: flex; padding: 24px; overflow-y: auto; background: radial-gradient(80% 55% at 50% 0%, var(--red-soft), transparent 70%), var(--bg); }
.upd-card { width: min(720px, 100%); margin: auto; display: flex; flex-direction: column; gap: 18px; }
.upd-brand b { display: block; font-size: 24px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.upd-brand span { display: block; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .28em; }
.upd h1 { font-size: clamp(24px, 4vw, 32px); margin: 4px 0; }
.upd .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.upd-schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.upd-schritte li { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .02); color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.3; }
.upd-schritte i { font-style: normal; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 13px; font-weight: 800; }
.upd-schritte li.aktiv { color: var(--text); border-color: rgba(226, 83, 77, .55); background: var(--red-soft); }
.upd-schritte li.aktiv i { background: var(--red); border-color: var(--red); color: #fff; }
.upd-schritte li.fertig { color: var(--text); }
.upd-schritte li.fertig i { background: var(--green-soft); border-color: rgba(93, 193, 122, .5); color: var(--green); }
.upd-hinweis { background: var(--amber-soft); border: 1px solid rgba(230, 176, 75, .35); border-radius: 18px; padding: 14px 18px; color: #f2d79b; line-height: 1.5; }
.upd-hinweis.info { background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--text); }
.upd-hinweis.fehler { background: var(--red-soft); border-color: rgba(226, 83, 77, .45); color: #f4a8a5; }
.upd-fort { display: flex; flex-direction: column; gap: 8px; }
.upd-bar { height: 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; border: 1px solid var(--line); }
.upd-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--red2), var(--red)); transition: width .15s linear; }
.upd-bar.voll i { background: var(--green); }
.upd-bar.wartet i { width: 30%; background: linear-gradient(90deg, transparent, var(--amber), transparent); animation: upd-wandern 1.8s ease-in-out infinite alternate; transition: none; }
@keyframes upd-wandern { from { transform: translateX(-10%); } to { transform: translateX(240%); } }
.upd-zeile { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.upd-zeile .num { color: var(--text); font-weight: 800; }
.upd-aktionen { display: flex; gap: 10px; }
.upd-log { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.upd-log h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.upd-log section { display: flex; flex-direction: column; gap: 4px; }
.upd-log h4 { margin: 0; font-size: 15px; }
.upd-log h4 span { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
.upd-log ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: #d9dde6; }
.upd-banner { position: fixed; right: 16px; bottom: 16px; z-index: 880; max-width: min(460px, calc(100vw - 32px)); text-align: left; cursor: pointer; font: inherit; font-size: 14px; line-height: 1.4; color: #f2d79b; background: #2b2412; border: 1px solid rgba(230, 176, 75, .5); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); }
.upd-banner u { text-underline-offset: 3px; font-weight: 700; }
@media (max-width: 640px) { .upd { padding: 16px; } .upd-schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .upd-bar.wartet i { animation: none; transform: translateX(120%); } }

/* Tempo gegen Tempolimit (Diagramm in Replay und Tour-Abrechnung) */
.td-karte { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.td-abschnitt { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.td-facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.td-box { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); padding: 6px 4px 0; }
.td-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.td-grid { stroke: var(--line); stroke-width: 1; }
.td-txt { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.td-einheit { opacity: .7; }
.td-flaeche { fill: var(--amber-soft); stroke: none; }
.td-limit { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linejoin: miter; }
.td-tempo { fill: none; stroke: #cfd6e6; stroke-width: 1.6; stroke-linejoin: round; }
.td-rot { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.td-cursor { stroke: var(--text); stroke-width: 1.2; opacity: .8; pointer-events: none; }
.td-punkt { fill: var(--text); stroke: var(--bg); stroke-width: 1.5; pointer-events: none; }
.td-tip { position: absolute; top: 8px; z-index: 2; pointer-events: none; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 12px; line-height: 1.45; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); font-variant-numeric: tabular-nums; }
.td-ueber { color: #f4a8a5; font-weight: 700; }
.td-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); }
.td-legende span { display: inline-flex; align-items: center; gap: 7px; }
.td-legende i { display: inline-block; width: 22px; height: 0; border-top: 3px solid; border-radius: 2px; }
.td-legende .l-tempo { border-color: #cfd6e6; }
.td-legende .l-limit { border-color: var(--amber); }
.td-legende .l-rot { border-color: var(--red); }
.td-hinweis, .td-leer { font-size: 12.5px; }

/* Bank-Auswahl in "Mein Leben" */
.bank-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.bank-jahr { display: flex; flex-direction: column; gap: 4px; }
.bank-jahr .sum { margin-top: 0; }
.filterbar .seg.lb-tabs { flex-wrap: wrap; overflow-x: visible; border-radius: 24px; }

/* Lkw-Parkplätze: jeder Lkw mit Foto und Standort im Spiel */
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pp-karte { overflow: hidden; }
.pp-karte[hidden] { display: none; }
.pp-bildrahmen { position: relative; margin: -20px -20px 0; aspect-ratio: 16 / 9; background: var(--bg2); border-bottom: 1px solid var(--line); }
.pp-bild { display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-bild.leer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; }
.pp-meiner { position: absolute; top: 12px; left: 12px; }
.pp-ort { display: flex; flex-direction: column; gap: 1px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.pp-ort > span { font-size: 11px; font-weight: 600; }
.pp-ort b { font-size: 18px; letter-spacing: -.02em; }
.pp-ort b small { font-size: 13px; font-weight: 500; color: var(--muted); }
.pp-ort > small { font-size: 12px; }
.pp-verlauf { font-size: 12px; color: var(--muted); }
.pp-verlauf summary { cursor: pointer; }
.pp-verlauf ul { margin: 6px 0 0; padding-left: 18px; }
.callout.ok { background: var(--green-soft); border-color: rgba(93, 193, 122, .32); color: var(--green); }

/* Auswahl einer Stadt im Spiel (Land, Suche, Liste) */
.stadtwahl { display: flex; flex-direction: column; gap: 12px; }
.stadtwahl .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stadtliste { padding: 6px; height: 196px; border-radius: 14px; background-image: none; appearance: none; -webkit-appearance: none; overflow-y: auto; }
.stadtliste option { padding: 6px 10px; border-radius: 8px; }
.stadtliste option:checked { background: var(--red-soft) linear-gradient(0deg, var(--red-soft), var(--red-soft)); box-shadow: 0 0 0 100px rgba(226, 83, 77, .28) inset; color: var(--text); }
.stadtliste option:disabled { color: var(--muted); }
.sw-zahl { font-style: normal; font-weight: 500; color: var(--muted); }

/* Mein Bereich: Standort des Lkw */
.mb-bild { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.mb-wechsel { font-size: 13px; }

/* Hilfe zum Überwachten Ordnerzugriff (Telemetrie-Seite) */
.hilfe summary { cursor: pointer; list-style-position: outside; }
.hilfe[open] summary { margin-bottom: 10px; }
.hilfe > p, .hilfe > ol { margin-top: 10px; }

/* Eingabefeld mit Knopf daneben (zum Beispiel Spielordner mit „Ordner auswählen“) */
.feld-mit-knopf { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.feld-mit-knopf > .field { flex: 1 1 320px; }
@media (max-width: 560px) { .feld-mit-knopf > .btn { width: 100%; } }

/* Personal: Mitarbeiter nach Rolle gestaffelt, alle Spalten ohne seitliches Scrollen */
.pgruppen { display: flex; flex-direction: column; gap: 16px; }
.pg { container-type: inline-size; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pg-chef { background: radial-gradient(60% 140% at 0% 0%, var(--red-soft), transparent 70%), var(--panel); }
.pg-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 14px 12px; }
.pg-kopf h2 { font-size: 18px; }
.pg-text { font-size: 13px; flex: 1 1 240px; min-width: 0; }
.pg-stand { font-size: 14px; }
.pg-stand b { color: var(--text); }
.pg-stand a { color: var(--text); }
.pz { display: grid; grid-template-columns: minmax(150px, 1fr) 160px 120px 70px 144px 84px 96px 96px; gap: 8px 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.pz-th { padding-block: 7px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .025); }
.pz .r { text-align: right; }
.pz > * { min-width: 0; }
.pz-titel { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.pz-sub { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-klein { font-size: 12px; line-height: 1.7; }
.pz-rolle select.in.inline { width: 100%; min-width: 0; font-size: 13px; padding: 7px 26px 7px 10px; }
.pz-link { background: none; border: 0; padding: 0 3px; margin: 0; font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pz-link:hover { color: var(--red); }
.pz-links { display: flex; gap: 10px; justify-content: flex-end; }
.pz-offen .pill { margin-top: 2px; }
.pz-akt { display: flex; flex-direction: column; gap: 6px; }
.pz-akt .btn { width: 100%; padding-inline: 8px; }
.pz-name { grid-area: name; } .pz-rolle { grid-area: rolle; } .pz-lkw { grid-area: lkw; } .pz-km { grid-area: km; }
.pz-lohn { grid-area: lohn; } .pz-offen { grid-area: offen; } .pz-konto { grid-area: konto; } .pz-akt { grid-area: akt; }
.pz:not(.pz-th) { grid-template-areas: "name rolle lkw km lohn offen konto akt"; }
@container (max-width: 1031px) {
  .pz:not(.pz-th) { grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(0, 1fr)); grid-template-areas: "name rolle lkw km" "lohn offen konto akt"; align-items: start; row-gap: 12px; }
  .pz-th { display: none; }
  .pz > [data-l]::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
  .pz .r { text-align: left; }
  .pz-links { justify-content: flex-start; }
  .pz-akt { flex-direction: row; flex-wrap: wrap; align-self: end; }
  .pz-akt .btn { width: auto; padding-inline: 14px; }
}
@container (max-width: 640px) {
  .pz:not(.pz-th) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "name name" "rolle lkw" "km lohn" "offen konto" "akt akt"; }
  .pz-akt { align-self: start; }
}

/* Rollen und Rechte: Platz in der Reihenfolge */
.rang-zeile { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.rang-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }

/* Personal: abwesend und zuletzt gefahren */
.pill.abw { background: rgba(94, 155, 230, .14); color: #8db8ee; border-color: rgba(94, 155, 230, .34); }
.pz-status { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin-top: 3px; font-size: 12px; min-width: 0; }
.pz-hinweis { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Protokoll */
.prot-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.prot-filter .field { min-width: 180px; }
.prot-filter .prot-suche { flex: 1 1 240px; }
.prot-liste { display: flex; flex-direction: column; gap: 8px; }
.prot-tag { margin: 14px 0 2px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prot-tag:first-child { margin-top: 0; }
.prot-eintrag { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 4px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.prot-zeit { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; padding-top: 1px; }
.prot-inhalt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prot-titel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.prot-gruppe { opacity: .8; }
.prot-text { margin: 0; overflow-wrap: anywhere; }
.prot-wer { margin: 0; font-size: 13px; }
.prot-fuss { font-size: 13px; }
@media (max-width: 520px) { .prot-eintrag { grid-template-columns: minmax(0, 1fr); } .prot-zeit { padding: 0; } .prot-filter .field { min-width: 0; flex: 1 1 100%; } }

/* Hilfe */
.hilfe-video video { width: 100%; max-height: 70vh; border-radius: 14px; background: #05070c; display: block; aspect-ratio: 16 / 9; }
.hilfe-antwort { margin-top: 10px; }
.hilfe-antwort p { margin: 0; }
.hilfe-hinweis { margin-bottom: 0; }

/* ---------- Zweiter Faktor (Version 0.23) ---------- */
.zf-karte { max-width: 760px; }
.zf-scan { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.zf-qr { flex: 0 0 auto; background: #fff; border-radius: 14px; padding: 6px; line-height: 0; }
.zf-qr img { width: 220px; height: 220px; max-width: 100%; display: block; image-rendering: pixelated; }
.zf-liste { flex: 1 1 240px; margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; min-width: 0; }
.zf-liste a { color: var(--text); text-decoration: underline; }
.zf-schluessel { display: inline-block; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-family: var(--mono); font-size: 14px; letter-spacing: .08em; word-break: break-all; user-select: all; }
.zf-code { font-size: 22px; letter-spacing: .2em; text-align: center; max-width: 220px; }
.zf-codes { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; counter-reset: zf; }
.zf-codes li { counter-increment: zf; font-size: 15px; }
.zf-codes li::before { content: counter(zf) ". "; color: var(--muted); font-weight: 400; }
@media (max-width: 520px) { .zf-scan { justify-content: center; } .zf-codes { grid-template-columns: minmax(0, 1fr); } .zf-code { max-width: none; } }
#zf-host, #zf-codes-host { display: flex; flex-direction: column; gap: 16px; }
#zf-host h3, #zf-codes-host h3 { margin: 0; }
#zf-host > p, #zf-codes-host > p { margin: 0; }

/* ---------- Mein Leben viel vielfältiger (Version 0.24) ---------- */
.lb-filter { display: flex; flex-direction: column; gap: 12px; }
.lb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.chip span { font-size: 11px; font-weight: 800; color: var(--muted); opacity: .8; }
.chip:hover { color: var(--text); border-color: #36425a; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.chip[aria-pressed="true"] span { color: #fff; }
.lb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-beispiele { font-size: 13px; margin: 0; }
.lb-bereiche { display: flex; flex-direction: column; gap: 8px; }
.lb-bereiche .meter-row { grid-template-columns: 150px minmax(0, 1fr) 40px; }
.lb-unter { margin: 4px 0 0; font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.lb-umstaende { display: flex; flex-direction: column; gap: 8px; }
.lb-umstand { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.lb-umstand:first-child { border-top: 0; }
.lb-az-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lb-az { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; min-width: 0; }
.lb-az.erreicht { background: radial-gradient(120% 120% at 100% 0%, var(--green-soft), transparent 60%), var(--panel); border-color: rgba(93, 193, 122, .32); }
.lb-az-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.lb-az p { margin: 0; font-size: 12px; }
.lb-az .meter-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
.lb-az .meter-row > span:first-child:empty { display: none; }
.lb-az .meter-row .meter { grid-column: 1 / -1; order: 3; }
.lb-spark { width: 150px; height: 46px; flex: none; }
.lb-spark.hoch { color: var(--green); }
.lb-spark.tief { color: #f4a8a5; }
.lb-anl .card-head > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
@media (max-width: 520px) {
  .lb-bereiche .meter-row { grid-template-columns: 110px minmax(0, 1fr) 36px; }
  .lb-az-liste { grid-template-columns: minmax(0, 1fr); }
  .lb-spark { width: 110px; }
}
.lb-sek { display: block; }
.lb-sek > summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; list-style: none; }
.lb-sek > summary::-webkit-details-marker { display: none; }
.lb-sek > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; flex: none; }
.lb-sek[open] > summary::before { transform: rotate(90deg); }
.lb-sek > summary:hover { border-color: #36425a; }
.lb-sek-name { font-size: 16px; font-weight: 700; letter-spacing: -.03em; flex: none; }
.lb-sek-text { font-size: 13px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-sek-n { flex: none; margin-left: auto; }
.lb-sek > .grid2 { margin-top: 12px; }
.lb-sek + .lb-sek { margin-top: 10px; }
.lb-anl .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .lb-sek-text { display: none; } }

/* Discord: Änderungen aus dem Protokoll im Chef-Kanal, je Bereich aufklappbar */
.pk-gruppe { border: 1px solid var(--line); border-radius: 16px; padding: 4px 14px; margin-top: 8px; background: rgba(255, 255, 255, .02); }
.pk-gruppe > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; padding: 10px 0; font-weight: 600; }
.pk-gruppe > summary::-webkit-details-marker { display: none; }
.pk-gruppe > summary::after { content: "▸"; color: var(--muted); margin-left: auto; }
.pk-gruppe[open] > summary::after { content: "▾"; }
.pk-gruppe > summary small { font-weight: 400; }
.pk-gruppe[open] > summary { padding-bottom: 8px; }
.pk-alle { margin-bottom: 8px; }
.pk-akt { display: grid; gap: 6px; padding-bottom: 12px; }
.opt.klein { padding: 8px 12px; border-radius: 12px; grid-template-columns: auto minmax(0, 1fr); }
.opt.klein b { font-weight: 500; font-size: 14px; }
.opt input:disabled + div { opacity: .5; }

/* Handy: Nichts darf die Seite breiter machen als den Bildschirm. Was doch zu breit wäre, wird abgeschnitten, statt dass
   sich die ganze Seite seitlich verschieben lässt. Waagerecht scrollbare Bereiche (Tabellen, Menüleiste) haben ihr eigenes Scrollen. */
html, body { overflow-x: clip; max-width: 100%; }
select.in { max-width: 100%; text-overflow: ellipsis; }
/* Auf dem Handy zoomt Safari beim Antippen eines Feldes hinein, wenn die Schrift kleiner als 16 Pixel ist, und die Seite bleibt danach verschoben. */
@media (pointer: coarse) { input, select, textarea, .in { font-size: 16px; } }

/* ---------- Disposition ---------- */
.dp-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.dp-legende li { display: flex; align-items: center; gap: 8px; }
.dp-legende i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dp-dlc { display: flex; flex-direction: column; gap: 2px; }
.dp-firmen { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; }
.dp-firma { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; }
.dp-firma summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.dp-zeile { margin: 6px 0 0; font-size: 12.5px; overflow-wrap: anywhere; }
.dp-sort { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.dp-angebot .kf-kopf b { overflow-wrap: anywhere; min-width: 0; }

/* ---------- Disposition: Planung ---------- */
.pl-beine { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: etappe; }
.pl-bein { position: relative; padding: 8px 0 10px 34px; border-left: 2px solid var(--line); margin-left: 11px; counter-increment: etappe; overflow-wrap: anywhere; font-size: 13.5px; }
.pl-bein:last-child { border-left-color: transparent; padding-bottom: 2px; }
.pl-bein::before { content: counter(etappe); position: absolute; left: -12px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.pl-bein-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.pl-bein .muted { font-size: 12.5px; margin-top: 2px; }
.pl-fahrer { max-width: 420px; margin-top: 12px; }
.pl-tour + .pl-tour { margin-top: 12px; }
.pl-meine + .pl-meine { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
/* Fahrtplanung: Anhänger als Bahnen mit Ketten von Etappen */
.pl-klein, .dp-klein { font-size: 12.5px; }
.pl-bahn { display: flex; flex-direction: column; gap: 12px; }
.pl-bahn-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pl-kette { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; align-items: stretch; }
.pl-block { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--panel2); min-width: 0; overflow-wrap: anywhere; font-size: 13.5px; }
.pl-block .muted { font-size: 12.5px; }
.pl-block.leer { border-style: dashed; background: transparent; }
.pl-block.fertig { opacity: .7; }
.pl-block.reihe { border-color: var(--red); box-shadow: 0 0 0 1px var(--red-soft); }
.pl-block-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pl-nr { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.pl-wahl { display: inline-flex; padding: 4px; margin: -4px; cursor: pointer; }
.pl-wahl input { width: 18px; height: 18px; accent-color: var(--red); cursor: pointer; }
.pl-fertig > summary { cursor: pointer; margin-bottom: 8px; font-size: 13px; }
.pl-leiste { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.pl-leiste-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; min-width: 0; }
.pl-leiste .field { flex: 1 1 260px; max-width: 420px; }
.pl-leerinfo { font-size: 13.5px; }
.pl-leerinfo .pill { margin-right: 4px; }
#pl-auftraege .tablewrap td { vertical-align: top; }
#pl-auftraege table { min-width: 880px; }

/* Auftragsangebot: Filter und Liste */
.dp-listekarte { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.dp-filter { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.dp-filter-knopf { display: flex; align-items: flex-end; }
.dp-nahe-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dp-nahe-zeile .field.inl { flex-direction: row; }
.dp-tabelle table { min-width: 860px; }
.dp-tabelle td { vertical-align: top; }
.dp-zeile-t { cursor: pointer; }
.dp-zeile-t:hover td { background: rgba(255, 255, 255, .03); }
.dp-zeile-t.sel td { background: var(--amber-soft); }
.dp-mehr { justify-content: center; margin-top: 4px; }
@media (max-width: 640px) {
  /* Listen werden am Handy zu Karten: jede Zeile steht für sich, die Spaltennamen stehen über den Werten */
  .kartentabelle { overflow: visible; border: 0; background: none; }
  .kartentabelle table, .kartentabelle tbody, .kartentabelle tr, .kartentabelle td { display: block; min-width: 0 !important; }
  .kartentabelle thead { display: none; }
  .kartentabelle tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
  .kartentabelle td { padding: 0; border: 0; text-align: left !important; overflow-wrap: anywhere; }
  .kartentabelle td[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .kartentabelle td.voll { grid-column: 1 / -1; }
  .kartentabelle td.voll .btn { width: 100%; justify-content: center; }
  .dp-zeile-t.sel { border-color: var(--amber); background: var(--amber-soft); }
  .dp-zeile-t.sel td { background: none; }
  .pl-kette { grid-template-columns: minmax(0, 1fr); }
  .dp-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
details.card > summary { cursor: pointer; }
details.card[open] > summary { margin-bottom: 12px; }

/* Touren: gelieferte Touren, die auf die Abrechnung warten */
.abr-abschnitt > div > h2 { margin-bottom: 4px; }
.abr-karte .facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.abr-karte .btn-row { margin-top: 4px; }
.tile.warte { border-color: rgba(230, 176, 75, .4); }
.tile.warte b { color: var(--amber); }
@media (max-width: 720px) { .abr-karte .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .abr-karte .btn-row .btn { flex: 1 1 100%; } }

/* Touren: aufklappbare Bereiche (laufende Touren, Touren, die auf die Abrechnung warten) */
.tour-sek { display: block; }
.tour-sek > summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; list-style: none; }
.tour-sek > summary::-webkit-details-marker { display: none; }
.tour-sek > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; flex: none; }
.tour-sek[open] > summary::before { transform: rotate(90deg); }
.tour-sek > summary:hover { border-color: #36425a; }
.tour-sek-name { font-size: 16px; font-weight: 700; letter-spacing: -.03em; flex: none; }
.tour-sek-text { font-size: 13px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-sek-n { flex: none; margin-left: auto; }
.tour-sek > .tour-sek-inhalt { margin-top: 12px; }

/* Postfach und Lohnabrechnung */
.nav-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.pf-liste { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); }
.pf-zeile { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; text-decoration: none; border-top: 1px solid var(--line); }
.pf-zeile:first-child { border-top: 0; }
.pf-zeile:hover { background: rgba(255, 255, 255, .03); }
.pf-punkt { width: 10px; height: 10px; border-radius: 50%; }
.pf-zeile.neu .pf-punkt { background: var(--red); }
.pf-text { display: flex; flex-direction: column; min-width: 0; }
.pf-text b { font-weight: 600; overflow-wrap: anywhere; }
.pf-zeile.neu .pf-text b { font-weight: 800; }
.pf-text small, .pf-wann { color: var(--muted); font-size: 13px; }
.pf-wann { white-space: nowrap; text-align: right; display: inline-flex; align-items: center; gap: 8px; }
.pf-brieftext { white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 560px) { .pf-zeile { padding: 12px 14px; gap: 10px; } .pf-wann .pill { display: none; } }

/* das weiße Blatt */
.blatt-wrap { padding: 4px 0 24px; }
.blatt { background: #fff; color: #1b1f27; max-width: 794px; margin: 0 auto; padding: clamp(18px, 5vw, 56px); border-radius: 3px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 13px; line-height: 1.45; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 900px) { .blatt { min-height: 1123px; } }
.bl-kopf { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 14px; border-bottom: 2px solid #1b1f27; }
.bl-kopf > div { min-width: 0; overflow-wrap: anywhere; }
.bl-firma { display: block; font-size: 17px; letter-spacing: -.01em; }
.bl-titel { text-align: right; }
.bl-titel h2 { font-size: 20px; letter-spacing: -.02em; color: #1b1f27; }
.bl-titel p { color: #5b6472; font-size: 14px; }
.bl-an { display: flex; flex-direction: column; gap: 2px; }
.bl-an b { font-size: 15px; }
.bl-an span { color: #5b6472; }
.bl-daten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; margin: 0; padding: 12px 14px; background: #f4f6f9; border-radius: 4px; }
.bl-daten dt { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #5b6472; }
.bl-daten dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.bl-breit { grid-column: 1 / -1; }
@media (max-width: 560px) { .bl-daten { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bl-kopf { flex-direction: column; } .bl-titel { text-align: left; } }
.bl-hinweis { padding: 8px 12px; background: #fff7e0; border-left: 3px solid #e6b04b; }
.blatt table { width: 100%; border-collapse: collapse; font-size: 13px; }
.blatt th { color: #5b6472; font-size: 10.5px; letter-spacing: .05em; padding: 6px 0; border-bottom: 1.5px solid #1b1f27; text-align: left; }
.blatt td { padding: 5px 0; border-bottom: 1px solid #e6e8ec; vertical-align: top; }
.blatt tr:last-child td { border-bottom: 0; }
.blatt .bl-satz { text-align: right; color: #5b6472; white-space: nowrap; padding-left: 10px; width: 1%; }
.blatt th.bl-betrag, .blatt td.bl-betrag { text-align: right; white-space: nowrap; padding-left: 10px; }
.blatt td:first-child { overflow-wrap: anywhere; }
.blatt .bl-grp td { padding: 16px 0 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5b6472; border-bottom: 1.5px solid #1b1f27; }
.blatt .bl-sum td { font-weight: 700; border-top: 1px solid #1b1f27; border-bottom: 0; }
.blatt .bl-info td { color: #5b6472; font-style: italic; font-size: 12px; }
.blatt .bl-netto td { font-weight: 800; font-size: 15px; padding-top: 12px; border-top: 2px solid #1b1f27; border-bottom: 0; }
.blatt .bl-aus td { font-weight: 800; font-size: 16px; padding: 9px 8px; background: #eef1f5; border-bottom: 0; }
.blatt .bl-status { color: #5b6472; font-size: 12px; }
.blatt .bl-firmen { margin-top: 4px; }
.blatt .bl-firmen th { font-size: 11px; color: #1b1f27; }
.bl-fuss { margin-top: auto; padding-top: 14px; border-top: 1px solid #e6e8ec; color: #8a93a2; font-size: 11px; }
#druck { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  :root { color-scheme: light; }
  html, body { background: #fff !important; color: #1b1f27; }
  body > :not(#druck) { display: none !important; }
  #druck { display: block; }
  #druck .blatt { max-width: none; margin: 0; padding: 0; box-shadow: none; border-radius: 0; min-height: 0; }
  #druck .blatt { font-size: 11.5px; line-height: 1.35; gap: 10px; }
  #druck .blatt td { padding: 3px 0; }
  #druck .blatt .bl-grp td { padding-top: 10px; }
  #druck .blatt .bl-aus td { padding: 6px 8px; }
  #druck .bl-daten { padding: 8px 12px; gap: 6px 14px; }
  #druck .bl-kopf { padding-bottom: 10px; }
  .blatt tr, .blatt table { break-inside: avoid; }
}
@media (min-width: 700px) { .tile.lang { grid-column: span 2; } }
@media (max-width: 560px) { .klein-weg { display: none; } }

/* Probezeit */
.pz-karte .pz-rest { margin: 0; }
.pz-mein .pz-gross { margin: 2px 0 4px; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.pz-balken { grid-template-columns: 82px minmax(0, 1fr) auto; }

/* Sammelüberweisung: Empfänger zum Anhaken */
.sammel-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; }
.sammel-liste { display: grid; gap: 4px; max-height: 232px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; overscroll-behavior: contain; }
.sammel-kopf, .sammel-liste { flex: none; }
@media (max-width: 560px) { .sammel-liste { max-height: none; overflow: visible; } }
.sammel-liste .check { color: var(--text); font-size: 14px; align-items: center; padding: 6px 0; }
