/* ================================================================ Icons & Hilfsklassen */
svg.i { width: 18px; height: 18px; flex: none; }
.tcat { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; flex: none; }
.tcat svg.i { width: 13px; height: 13px; }
@media (max-width: 1023px) { .desk-only { display: none !important; } }
@media (min-width: 1024px) { .mob-only { display: none !important; } }

/* ================================================================ Shell
   Hybride Navigation: Desktop – schlanke Kopfleiste mit fünf Alltagsbereichen + „Mehr“;
   Smartphone – Tableiste mit zentraler Erfassen-Taste, große Seitentitel wie in nativen Apps. */
.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip;
  /* Fluchtlinie: Inhalt ist auf --maxw zentriert; Leisten richten sich exakt daran aus */
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 6px;
  padding: 0 var(--edge); background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 transparent; transition: box-shadow var(--dur), background var(--dur);
}
.topbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.shell[data-route="home"] .topbar:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.topbar .spacer { flex: 1; }
.wordmark { display: inline-flex; align-items: baseline; gap: 7px; color: var(--ink); text-decoration: none !important; margin-right: 28px; white-space: nowrap; }
.wm-bar { width: 14px; height: 2px; background: var(--accent); align-self: center; }
.wm-name { font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.wm-sub { font-weight: 300; font-size: 14.5px; color: var(--ink-2); }
.topnav { display: flex; align-items: center; gap: 2px; height: 100%; }
.topnav > a, .topnav-more {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500; text-decoration: none !important; transition: color var(--dur);
}
.topnav-more svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.topnav-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.topnav > a:hover, .topnav-more:hover { color: var(--ink); }
.topnav > a.active, .topnav-more.active { color: var(--ink); }
.topnav > a::after, .topnav-more::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 14px; height: 1.5px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-out);
}
.topnav > a.active::after, .topnav-more.active::after { transform: scaleX(1); }
.topnav .count { margin-left: 2px; font-size: 10.5px; font-weight: 600; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: inline-grid; place-items: center; }
.more-wrap { position: relative; height: 100%; display: flex; }
.more-menu {
  position: absolute; top: calc(100% - 6px); left: -12px; width: 340px; max-height: calc(100vh - var(--top-h) - 16px); overflow-y: auto; padding: 14px; display: grid; grid-template-columns: 1fr; gap: 10px;
  background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-float); outline: 1px solid var(--line);
  animation: menuIn 180ms var(--ease-out);
}
.more-menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } }
.mm-group .eyebrow { padding: 2px 10px 8px; }
.more-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 6px; color: var(--ink); text-decoration: none !important; }
.more-menu a:hover { background: var(--bg); }
.more-menu a.active b { color: var(--accent); }
.more-menu a svg { width: 18px; height: 18px; color: var(--ink-3); margin-top: 1px; }
.more-menu a b { display: block; font-weight: 500; font-size: 13.5px; }
.more-menu a small { display: block; font-size: 12px; color: var(--ink-3); }
.mm-foot { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; flex-wrap: wrap; }
.mm-foot a { padding: 7px 10px; }
.mm-foot a b { font-size: 13px; }
.mm-user { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }
.inbox-btn { position: relative; }
.dot-count { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.topbar-title { font-weight: 600; font-size: 15px; opacity: 0; transition: opacity var(--dur); }
.topbar.scrolled .topbar-title { opacity: 1; }
.shell[data-route="home"] .topbar-title { display: none; }

.pagehead { padding: clamp(18px, 3vw, 40px) var(--gutter) clamp(14px, 2vw, 22px); max-width: var(--maxw); width: 100%; margin: 0 auto; }
.pagehead h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.05; }
.shell[data-route="home"] .pagehead { display: none; }
.page { padding: 0 var(--gutter) 88px; max-width: var(--maxw); width: 100%; margin: 0 auto; flex: 1; }
.page.narrow { max-width: 920px; }
.page.enter { animation: pageIn 320ms var(--ease-out); }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }

.vehicle-switch { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 8px; border-radius: 6px; background: var(--surface); font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
.vehicle-switch select { border: 0; background: transparent; padding: 0 2px; font-weight: 500; outline: none; max-width: 180px; }
.vehicle-switch svg { width: 16px; height: 16px; color: var(--ink-3); }

.tabbar { display: none; }
.fab { display: none; }

@media (max-width: 1023px) {
  .shell { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .topbar { padding: env(safe-area-inset-top) 12px 0 16px; height: calc(var(--top-h) + env(safe-area-inset-top)); gap: 2px; }
  .wordmark { margin-right: 10px; }
  .wordmark .wm-sub { display: none; }
  .shell:not([data-route="home"]) .topbar .wordmark { display: none; }
  .topbar-title { position: absolute; left: 50%; transform: translateX(-50%); bottom: 15px; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pagehead { padding: 6px var(--gutter) 14px; }
  .pagehead h1 { font-size: 32px; }
  .page { padding: 0 var(--gutter) 32px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
    box-shadow: 0 -1px 0 var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); font-size: 10.5px; font-weight: 500; text-decoration: none !important; position: relative; transition: color var(--dur); }
  .tabbar a svg { width: 23px; height: 23px; stroke-width: 1.6; }
  .tabbar a.active { color: var(--ink); }
  .tabbar .tab-plus { pointer-events: none; }
  .fab {
    display: grid; place-items: center; position: fixed; z-index: 45; left: 50%; transform: translateX(-50%);
    bottom: calc(7px + env(safe-area-inset-bottom)); width: 54px; height: 48px; border-radius: 14px;
    background: var(--ink); color: var(--bg); box-shadow: 0 8px 22px rgba(23, 25, 28, .22); transition: transform 160ms var(--ease);
  }
  .fab svg { width: 24px; height: 24px; }
  .fab:active { transform: translateX(-50%) scale(.94); }
}

/* ================================================================ Flächen
   Panels sind tonale Flächen ohne Rahmen; auf der Übersicht ersetzen offene „Zonen“
   mit einer einzigen Haarlinie die Kartenoptik. */
.panel { background: var(--surface); border-radius: var(--r-card); }
.panel-h { display: flex; align-items: center; gap: var(--s2); padding: 16px 20px 0; min-height: 46px; flex-wrap: wrap; }
.panel-h h2 { font-size: 15px; font-weight: 500; }
.panel-h .sub { color: var(--ink-3); font-size: 12.5px; }
.panel-h .tools { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.panel-b { padding: 14px 20px 20px; }
.panel-b.flush { padding: 0; }
.panel + .panel, .stack > * + * { margin-top: var(--s4); }
.grid { display: grid; gap: var(--s4); }
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
@media (max-width: 1200px) { .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: minmax(0, 1fr); } .span2 { grid-column: auto; } }

.section-title { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 12px; }
.section-title h2 { font-size: 15px; }
.section-title .label { margin-left: 2px; }

.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 48px; margin-top: 56px; }
.zone { border-top: 1px solid var(--line-2); padding-top: 14px; min-width: 0; }
.zone.z-wide { grid-column: span 2; }
.zone-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; min-height: 30px; }
.zone-h h2 { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.zone-h .sub { color: var(--ink-3); font-size: 12.5px; }
.zone-h .tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.zone .li { padding-left: 0; padding-right: 0; }
.zone .li:hover { background: transparent; }
.zone button.li:hover .main-t, .zone a.li:hover .main-t { color: var(--accent); }
.insights-zone { margin-top: 56px; }
@media (max-width: 1200px) { .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); } .zone.z-wide { grid-column: 1 / -1; } }
@media (max-width: 760px) { .zones { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 40px; } .insights-zone { margin-top: 40px; } }

/* ================================================================ Buttons & Felder */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 6px;
  font-weight: 500; font-size: 13.5px; border: 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background var(--dur), box-shadow var(--dur), color var(--dur), transform 120ms; white-space: nowrap; text-decoration: none !important;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn.ink { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn.ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.danger.solid { background: var(--bad); color: #fff; box-shadow: none; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 50px; padding: 0 22px; font-size: 15px; }
.btn.icon { width: 36px; padding: 0; }
.btn.icon.sm { width: 30px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.field .hint { font-size: 11.5px; color: var(--ink-3); }
.input, .select, textarea.input {
  width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: var(--r-field); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2); outline: none; transition: box-shadow var(--dur), background var(--dur); font-variant-numeric: tabular-nums; min-width: 0;
}
textarea.input { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.select { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238C8E93' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.input:hover, .select:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.input:focus, .select:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }
.input.err { box-shadow: inset 0 0 0 1.5px var(--bad), 0 0 0 4px var(--bad-soft); }
.input.unsure { box-shadow: inset 0 0 0 1.5px var(--warn); background: var(--warn-soft); }
.input[readonly] { background: transparent; }
.input-unit { position: relative; }
.input-unit .input { padding-right: 44px; }
.input-unit em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--ink-3); font-size: 13px; pointer-events: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: minmax(0, 1fr); } .form-grid .half-m { grid-column: auto; } }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; font-size: 13.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--ink-2); user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 34px; height: 20px; border-radius: 20px; background: var(--line-2); position: relative; transition: background var(--dur); flex: none; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform 240ms var(--ease-out); }
.switch input:checked + i { background: var(--ink); }
.switch input:checked + i::after { transform: translateX(14px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Segmente: Text mit gleitender Unterlage statt Pillen */
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 5%, transparent); gap: 0; }
.seg button { height: 28px; padding: 0 12px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color var(--dur), background var(--dur), box-shadow var(--dur); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23,25,28,.08), 0 0 0 .5px var(--line-2); }
.seg.sm button { height: 24px; padding: 0 9px; font-size: 12px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background var(--dur), color var(--dur); }
.chip svg { width: 15px; height: 15px; }
.chip.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip.soft { background: var(--accent-soft); box-shadow: none; color: var(--accent); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }

.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot.good { background: var(--good); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }

.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--bad); } .delta.down { color: var(--good); } .delta.flat { color: var(--ink-3); }
.delta.inv.up { color: var(--good); } .delta.inv.down { color: var(--bad); }

/* ================================================================ Bühne – das Fahrzeug als Produktinszenierung */
.stage {
  position: relative; margin: calc(-1 * var(--top-h)) calc(50% - 50vw) 0; padding: var(--top-h) calc(50vw - 50%) 0;
  background: var(--stage); min-height: min(80vh, 780px, 52vw); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 36%); grid-template-rows: 1fr auto; isolation: isolate; overflow: hidden;
}
.stage-media { position: absolute; inset: 0; z-index: -1; }
.stage-media picture, .stage-media img { width: 100%; height: 100%; }
.stage-media img { object-fit: cover; object-position: 0% 55%; }
.stage-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to bottom, transparent, var(--bg)); }
.stage-copy { grid-column: 2; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; text-align: right; padding: clamp(20px, 4vh, 48px) 0 28px; gap: 32px; }
.stage-id h1 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; letter-spacing: -0.02em; margin-top: 4px; }
.stage-sub { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.stage-kpi { max-width: 560px; }
.kpi-figure { font-size: clamp(76px, 8.6vw, 156px); margin: 10px 0 14px; display: flex; align-items: baseline; justify-content: flex-end; white-space: nowrap; color: var(--ink); }
.kpi-figure .tail { color: var(--ink-3); font-size: .5em; letter-spacing: -0.02em; align-self: flex-start; margin-top: .14em; margin-left: .02em; }
.kpi-figure .unit { font-size: .2em; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); margin-left: .5em; }
.kpi-figure .na { color: var(--ink-3); }
.kpi-note { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.stage-spec { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: space-between; gap: 18px 40px; margin: 0; padding: 18px 0 26px; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); position: relative; }
.stage-spec dt { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 6px; }
.stage-spec dd { margin: 0; font-size: 14.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; min-height: 24px; }
.stage-spec dd a { color: inherit; }
.spec-next { max-width: 340px; min-width: 0; }
.next-link { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: inherit !important; }
.next-link .faint { font-weight: 400; }

@media (max-width: 1023px) {
  .stage { min-height: 0; display: flex; flex-direction: column; }
  .stage-copy { display: contents; }
  .stage-id { order: 0; padding-top: 14px; }
  .stage-media::after { right: 0 !important; }
  .stage-media { order: 1; position: relative; inset: auto; right: auto; z-index: 0; margin: 4px calc(-1 * var(--gutter)) 0; aspect-ratio: 1.7; }
  .stage-media img { object-position: 4% 50%; }
  .stage-media::after { height: 26%; background: linear-gradient(to bottom, transparent, var(--stage)); }
  .stage-kpi { order: 2; margin-top: -6px; position: relative; }
  .stage-spec { order: 3; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .stage-copy, .stage-id, .stage-kpi { text-align: left; }
  .kpi-figure { justify-content: flex-start; font-size: clamp(72px, 22vw, 120px); margin: 6px 0 10px; }
  .spec-next { grid-column: 1 / -1; }
  .stage-id h1 { font-size: 24px; }
}

/* Kennzeichen */
.plate {
  white-space: nowrap; flex: none;
  display: inline-flex; align-items: stretch; height: 30px; border: 1.5px solid #17191C; border-radius: 4px; background: #fff; color: #111;
  font-weight: 600; font-size: 17px; letter-spacing: .06em; overflow: hidden; font-variant-numeric: tabular-nums;
}
.plate .eu { width: 18px; background: var(--plate-blue); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 2px; font-size: 9px; font-weight: 600; letter-spacing: 0; }
.plate .eu svg { width: 12px; height: 12px; margin-bottom: auto; margin-top: 3px; }
.plate .txt { padding: 0 10px 0 8px; display: flex; align-items: center; gap: 6px; }
.plate .seals { display: inline-flex; flex-direction: column; gap: 2px; }
.plate .seals i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #999; display: block; }
.plate.sm { height: 24px; font-size: 13.5px; }
.plate.sm .eu { width: 15px; font-size: 8px; }
.plate.sm .eu svg { width: 10px; height: 10px; }

.odo { display: inline-flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
.odo .digit { width: 17px; height: 26px; overflow: hidden; border-radius: 3px; background: var(--ink); color: var(--bg); position: relative; font-size: 15px; font-weight: 500; }
.odo .digit .strip { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; transition: transform 900ms var(--ease); }
.odo .digit .strip span { height: 26px; line-height: 26px; text-align: center; }
.odo .digit.last { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.odo .sep { width: 4px; }
.odo .unit { margin-left: 6px; color: var(--ink-2); font-size: 12px; }

/* ================================================================ Periodenleiste */
.periodbar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 22px 0 0; padding: 0 0 18px; }
.periodbar .nav-arrows { display: inline-flex; align-items: center; gap: 2px; }
.periodbar .period-label { font-weight: 500; min-width: 150px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.periodbar .toggles { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) {
  .periodbar { margin-top: 10px; }
  .periodbar > .seg { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .periodbar > .seg button { flex: 1; padding: 0 8px; }
  .periodbar .toggles { margin-left: 0; width: 100%; justify-content: space-between; gap: 10px; }
  .periodbar .period-label { min-width: 0; flex: 1; }
  .periodbar .nav-arrows { width: 100%; justify-content: space-between; }
}

/* ================================================================ Kostenbilanz */
.ledger { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 2fr); gap: 32px 64px; padding-top: 30px; border-top: 1px solid var(--line-2); transition: opacity var(--dur); }
.is-loading .ledger, .is-loading .zones { opacity: .55; }
.total-figure { font-size: clamp(44px, 4.6vw, 64px); margin: 12px 0 22px; }
.comp-bar { display: flex; height: 10px; gap: 2px; border-radius: 2px; overflow: hidden; background: var(--bg-2); }
.comp-bar i { flex-grow: 0; flex-basis: 0; min-width: 0; transition: flex-grow 900ms var(--ease-out); }
.comp-legend { margin-top: 14px; display: grid; }
.comp-legend > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 48px; gap: 10px; align-items: center; padding: 7px 0; font-size: 13px; border-top: 1px solid var(--line); }
.comp-legend > div:first-child { border-top: 0; }
.comp-legend .sw { width: 10px; height: 10px; border-radius: 2px; }
.comp-legend .n { color: var(--ink-2); }
.comp-legend .v { font-weight: 500; text-align: right; }
.comp-legend .p { color: var(--ink-3); text-align: right; font-size: 12px; }
.ledger-aside { display: grid; gap: 10px; margin-top: 16px; }
.ledger-aside > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 12px; background: var(--surface); border-radius: 4px; font-size: 12.5px; }
.ledger-aside span { color: var(--ink-2); }
.ledger-aside b { font-weight: 500; text-align: right; }
.ledger-aside small { grid-column: 1 / -1; color: var(--ink-3); font-size: 11.5px; }
.ledger-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.lcol { min-width: 0; }
.lead { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 6px; }
.lead-figure { font-size: clamp(36px, 3.4vw, 50px); }
.lead-unit { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.lead-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); min-height: 26px; margin-bottom: 14px; }
.lead-meta .spark { margin-left: auto; width: 96px; height: 26px; flex: none; }
.spark path.l { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.spark path.a { fill: var(--accent-soft); opacity: .7; }
.lrows { margin: 0; display: grid; }
.lrows > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.lrows dt { color: var(--ink-2); }
.lrows dd { margin: 0; font-weight: 500; white-space: nowrap; }
@media (max-width: 1200px) { .ledger { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ledger { padding-top: 22px; gap: 28px; }
  .ledger-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .total-figure { font-size: 48px; }
  .lead-figure { font-size: 40px; }
}

/* Erklärung der Berechnung */
.explain { display: grid; gap: 22px; }
.explain p { margin: 6px 0 0; color: var(--ink-2); line-height: 1.6; }

/* Erste Schritte */
.onboard { margin-top: 48px; padding: 18px 20px 8px; background: var(--surface); border-radius: var(--r-card); }
.onboard .zone-h { margin-bottom: 4px; }
.onboard .li { padding-left: 0; padding-right: 0; }

/* Fahrtkostenrechner, Inbox-Zeile */
.tripcalc { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 16px; }
.inbox-row { margin-top: 6px; border-top: 1px solid var(--line) !important; }

/* ================================================================ Insights */
.insights { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 40px; }
.insight { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.insight .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg-2); color: var(--ink-2); }
.insight .ic svg { width: 15px; height: 15px; }
.insight.good .ic { background: var(--good-soft); color: var(--good); }
.insight.warn .ic { background: var(--warn-soft); color: var(--warn); }
.insight.bad .ic { background: var(--bad-soft); color: var(--bad); }
.insight .act { margin-top: 8px; }
.insight.good, .insight.warn, .insight.bad { color: var(--ink); }

/* ================================================================ Listen */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line); min-width: 0; color: inherit; text-decoration: none !important; position: relative; background: transparent; }
.li:first-child { border-top: 0; }
button.li, a.li { width: 100%; text-align: left; cursor: pointer; }
button.li:hover, a.li:hover { background: var(--surface-2); }
.li .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.li .ic svg { width: 16px; height: 16px; }
.li .ic.outline { background: var(--bg-2) !important; color: var(--ink-2); }
.li .main-t { font-weight: 500; font-size: 14px; transition: color var(--dur); }
.li .sub-t { font-size: 12px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.li .sub-t svg { width: 13px; height: 13px; }
.li .amt { font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.li .amt small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.li .amt.income { color: var(--good); }
.li.planned { background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 8px, var(--surface-2) 8px, var(--surface-2) 16px); }

/* Zeitstrahl */
.timeline { position: relative; }
.tl-day { position: relative; }
.tl-day-h { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 4px 6px 50px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; position: sticky; top: var(--top-h); background: var(--bg); z-index: 2; }
.tl-day-h b { color: var(--ink); font-weight: 500; }
.tl-items { position: relative; }
.tl-items::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.tl-item { display: flex; align-items: center; gap: 12px; padding: 8px 4px 8px 6px; position: relative; border-radius: 12px; cursor: pointer; }
.tl-item:hover { background: var(--surface); }
.tl-item .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--bg); }
.tl-item .ic svg { width: 17px; height: 17px; }
.tl-item .trip-bracket { position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; }
.swipe-wrap { position: relative; overflow: hidden; border-radius: 12px; }
.swipe-actions { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; visibility: hidden; display: flex; justify-content: space-between; align-items: stretch; }
.swipe-actions div { display: flex; align-items: center; gap: 6px; padding: 0 18px; color: #fff; font-size: 12.5px; font-weight: 500; width: 50%; }
.swipe-actions .sa-left { background: var(--accent); }
.swipe-actions .sa-right { background: var(--bad); justify-content: flex-end; }
.swipe-wrap .tl-item { background: var(--bg); transition: transform 200ms var(--ease); touch-action: pan-y; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: 11.5px; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--surface); z-index: 1; }
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable:hover { color: var(--ink); }
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data tr.sel td { background: var(--accent-soft) !important; }
table.data .r { text-align: right; }
table.data tfoot td { font-weight: 600; border-top: 1px solid var(--line-2); border-bottom: 0; }
table.data tr.sub td:first-child { padding-left: 28px; color: var(--ink-2); }
table.data tr.clickable { cursor: pointer; }

/* ================================================================ Sheets & Dialoge */
.backdrop { position: fixed; inset: 0; background: rgba(17, 18, 19, .38); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); z-index: 100; opacity: 0; transition: opacity 240ms var(--ease); }
.backdrop.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 101; background: var(--bg); display: flex; flex-direction: column;
  right: 0; top: 0; bottom: 0; width: min(580px, 100vw); box-shadow: var(--shadow-float);
  transform: translateX(100%); transition: transform 300ms var(--ease);
}
.sheet.wide { width: min(1060px, 100vw); }
.sheet.open { transform: none; }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 18px 22px 10px; min-height: 64px; }
.sheet-h h2 { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; flex: 1; min-width: 0; }
.sheet-b { flex: 1; overflow-y: auto; padding: 10px 22px 22px; overscroll-behavior: contain; }
.sheet-f { padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); display: flex; gap: 10px; align-items: center; background: var(--bg); }
.sheet-f .spacer { flex: 1; }
.sheet .grab { display: none; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; height: 100%; }
.split .split-media { position: sticky; top: 0; align-self: start; }
@media (max-width: 1023px) {
  .sheet, .sheet.wide { top: auto; left: 0; right: 0; width: 100%; max-height: 94dvh; border-left: 0; border-radius: 14px 14px 0 0; transform: translateY(100%); box-shadow: var(--shadow-sheet); transition: transform 380ms cubic-bezier(.2, .9, .25, 1.06); }
  .sheet.full { height: 94dvh; }
  .sheet .grab { display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 8px auto 0; flex: none; }
  .sheet-h { min-height: 50px; padding: 6px 16px 8px; }
  .sheet-h h2 { font-size: 20px; }
  .sheet-b { padding: 4px 16px 16px; }
  .split { grid-template-columns: 1fr; height: auto; }
  .split .split-media { position: static; }
}
.dialog { position: fixed; z-index: 120; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.98); width: min(420px, calc(100vw - 32px)); background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-float); padding: 20px; opacity: 0; transition: all 200ms var(--ease); }
.dialog.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.dialog h3 { font-size: 16px; margin-bottom: 8px; }
.dialog p { color: var(--ink-2); }
.dialog .row { justify-content: flex-end; margin-top: 16px; }

.toasts { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); bottom: 24px; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(460px, calc(100vw - 24px)); }
@media (max-width: 1023px) { .toasts { bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom)); } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); padding: 12px 12px 12px 16px; border-radius: 8px; font-size: 13.5px; box-shadow: var(--shadow-float); animation: toastIn 260ms var(--ease); width: 100%; }
.toast svg { width: 18px; height: 18px; flex: none; }
.toast .grow { min-width: 0; }
.toast button { color: color-mix(in srgb, var(--bg) 80%, var(--accent)); font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.bad button { color: #fff; }
.toast .prog { position: absolute; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ================================================================ Schnellerfassung */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px; border-radius: 8px; background: var(--surface); text-align: left; min-height: 100px; transition: background var(--dur), transform 140ms var(--ease); }
.quick-tile:active { transform: scale(.97); }
.quick-tile:hover { background: var(--surface-2); }
.quick-tile .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.quick-tile .ic svg { width: 20px; height: 20px; }
.quick-tile b { font-weight: 500; font-size: 14px; }
/* Schnellerfassung bewusst monochrom; nur die meistgenutzte Aktion trägt Tinte + Akzent */
.quick-tile .ic { background: var(--bg) !important; color: var(--ink); }
.quick-tile.primary { background: var(--ink); color: var(--bg); }
.quick-tile.primary b { font-size: 16px; font-weight: 500; }
.quick-tile.primary .ic { background: var(--accent) !important; color: var(--accent-ink); }
.fav-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.fav { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px; border: 0; background: var(--surface); font-size: 13px; font-weight: 500; }
.fav .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.fav .ic svg { width: 15px; height: 15px; }
.fav b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Kategorie-Auswahl */
.catpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.catpick button { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px; border: 1px solid transparent; background: var(--surface); text-align: left; font-size: 12.5px; line-height: 1.25; min-height: 44px; }
.catpick button:hover { background: var(--surface-2); }
.catpick button.on { border-color: var(--accent); background: var(--accent-soft); }
.catpick .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.catpick .ic svg { width: 15px; height: 15px; }
.cat-current { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: var(--r-field); background: var(--surface); width: 100%; text-align: left; min-height: 48px; }
.cat-current .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.cat-current .ic svg { width: 17px; height: 17px; }
.cat-current .t { flex: 1; min-width: 0; }
.cat-current .t b { display: block; font-weight: 500; font-size: 13.5px; }
.cat-current .t span { font-size: 11.5px; color: var(--ink-2); }

/* Tankformular */
.fuel-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fuel-big .field > span { font-size: 12px; }
.fuel-big .input { height: 64px; font-size: 28px; font-weight: 300; padding: 0 12px; letter-spacing: -0.01em; }
.fuel-big .input-unit em { font-size: 13px; }
@media (max-width: 520px) { .fuel-big .input { height: 54px; font-size: 21px; } .fuel-big { gap: 8px; } .fuel-big .input-unit .input { padding-right: 30px; padding-left: 10px; } .fuel-big .input-unit em { right: 8px; } }
.live { margin-top: 16px; background: var(--surface); border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.live > div { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.live > div:nth-child(3n) { border-right: 0; }
.live > div:nth-last-child(-n+3) { border-bottom: 0; }
.live .lv-label { font-size: 11.5px; color: var(--ink-2); }
.live .lv-value { font-size: 24px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; line-height: 1.25; white-space: nowrap; }
.live .lv-value small { font-size: 12px; color: var(--ink-2); margin-left: 2px; }
.live .lv-sub { font-size: 11.5px; min-height: 16px; }
.live .lv-value.pending { color: var(--ink-3); }
.live.flash > div:first-child { animation: flash 600ms var(--ease); }
@keyframes flash { from { background: var(--accent-soft); } }
.notes-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; padding: 9px 12px; border-radius: 6px; background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); }
.note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.info { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }

/* Disclosure */
details.more { border-top: 1px solid var(--line); margin-top: 16px; }
details.more > summary { list-style: none; cursor: pointer; padding: 12px 0; display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary svg { width: 16px; height: 16px; transition: transform var(--dur); }
details.more[open] > summary svg { transform: rotate(90deg); }

/* Belege */
.receipt-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.rthumb { width: 72px; height: 92px; border-radius: 4px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--bg-2) center / cover no-repeat; position: relative; overflow: hidden; display: grid; place-items: center; color: var(--ink-3); flex: none; }
.rthumb svg { width: 22px; height: 22px; }
.rthumb .x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(17,20,24,.65); color: #fff; display: grid; place-items: center; }
.rthumb .x svg { width: 13px; height: 13px; }
.rthumb .pg { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: rgba(17,20,24,.65); color: #fff; padding: 0 5px; border-radius: 4px; }
.rthumb.add { border-style: dashed; background: var(--surface); cursor: pointer; }
.rthumb.add:hover { border-color: var(--accent); color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gcard { border: 0; border-radius: 6px; overflow: hidden; background: var(--surface); text-align: left; display: flex; flex-direction: column; }
.gcard .gimg { aspect-ratio: 3 / 4; background: var(--bg-2) center / cover no-repeat; display: grid; place-items: center; color: var(--ink-3); position: relative; }
.gcard .gimg svg { width: 30px; height: 30px; }
.gcard .gmeta { padding: 8px 10px; font-size: 12px; }
.gcard .gmeta b { display: block; font-weight: 500; font-size: 12.5px; }
.gcard.missing .gimg { background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 8px, var(--bg-2) 8px, var(--bg-2) 16px); }
.viewer { position: relative; background: #0d0f11; border-radius: 12px; overflow: hidden; min-height: 300px; display: grid; place-items: center; touch-action: none; }
.viewer img { max-width: 100%; max-height: 70vh; transform-origin: center; transition: transform 200ms var(--ease); user-select: none; -webkit-user-drag: none; }
.viewer iframe, .viewer object { width: 100%; height: 70vh; border: 0; background: #fff; }
.viewer-tools { position: absolute; right: 8px; top: 8px; display: flex; gap: 6px; z-index: 2; }
.viewer-tools .btn { background: rgba(17,20,24,.6); color: #fff; border-color: transparent; }
.scan-overlay { position: absolute; inset: 0; pointer-events: none; }
.scan-line { position: absolute; left: 0; right: 0; height: 60px; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 35%, transparent), transparent); animation: scan 1.6s var(--ease) infinite; }
@keyframes scan { from { top: -60px; } to { top: 100%; } }

/* Zuschneiden */
.crop { position: relative; user-select: none; touch-action: none; background: #0d0f11; border-radius: 12px; overflow: hidden; }
.crop canvas { width: 100%; height: auto; display: block; }
.crop svg.quad { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.crop .quad polygon { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; animation: dash 1.2s linear infinite; stroke-dasharray: 10 6; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.crop .handle { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.35); touch-action: none; cursor: grab; }

/* KI-Prüfung */
.conf { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--warn); font-weight: 500; }
.conf svg { width: 12px; height: 12px; }
.ocr-items { background: var(--surface); border-radius: 6px; overflow: hidden; }
.ocr-item { display: grid; grid-template-columns: auto minmax(0, 1fr) 150px 90px; gap: 10px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 13px; }
.ocr-item:first-child { border-top: 0; }
.ocr-item.off { opacity: .5; }
@media (max-width: 600px) { .ocr-item { grid-template-columns: auto minmax(0, 1fr) 80px; } .ocr-item .select { grid-column: 2 / -1; } }

/* Positionen */
.items { background: var(--surface); border-radius: 6px; overflow: hidden; }
.item-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr) 104px 34px; gap: 8px; padding: 8px; border-top: 1px solid var(--line); align-items: center; }
.item-row:first-child { border-top: 0; }
.item-row .input, .item-row .select { height: 36px; font-size: 13px; }
.items-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--surface-2); font-size: 12.5px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .item-row { grid-template-columns: minmax(0, 1fr) 96px 34px; } .item-row .select { grid-column: 1 / -1; grid-row: 2; } }

/* Balken / Fortschritt */
.bar { height: 6px; background: var(--bg-2); border-radius: 6px; overflow: hidden; position: relative; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--accent); transition: width 900ms var(--ease); }
.bar.good > i { background: var(--good); } .bar.warn > i { background: var(--warn); } .bar.bad > i { background: var(--bad); }
.bar .mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .55; }
.catbars { display: flex; flex-direction: column; }
.catbar { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); cursor: pointer; }
.catbar:first-child { border-top: 0; }
.catbar .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; grid-row: span 2; }
.catbar .ic svg { width: 15px; height: 15px; }
.catbar .n { font-size: 13.5px; font-weight: 500; transition: color var(--dur); }
.catbar:hover .n { color: var(--accent); }
.catbar .v { font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.catbar .v small { color: var(--ink-3); margin-left: 6px; }
.catbar .bar { grid-column: 2 / -1; height: 3px; border-radius: 0; }
.catbar .bar > i { border-radius: 0; }

/* Diagramme */
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 200px; }
.chart-box.lg { height: 340px; }
.chart-box canvas { position: absolute; inset: 0; }
@media (max-width: 760px) { .chart-box { height: 230px; } .chart-box.lg { height: 260px; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.heatmap { overflow-x: auto; }
.heatmap svg { min-width: 720px; }
.heatmap rect { rx: 2; }

/* Statistik-Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 11px 10px; font-weight: 500; color: var(--ink-2); font-size: 14px; border-bottom: 1.5px solid transparent; transition: color var(--dur), border-color var(--dur); margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }

.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.kv > div { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.kv > div:nth-child(-n+2) { border-top: 0; }
.kv > div:nth-child(2n) { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.kv > div:nth-child(2n+1) { color: var(--ink-2); }

/* Kennzahlenzeile: typografisch, ohne Kasten */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.panel.stat-row { background: transparent; border-radius: 0; border-top: 1px solid var(--line-2); }
.stat { padding: 14px 20px 16px 0; min-width: 0; }
.stat + .stat { padding-left: 20px; box-shadow: inset 1px 0 0 var(--line); }
.stat .s-l { font-size: 12px; color: var(--ink-2); }
.stat .s-v { font-size: 28px; font-weight: 300; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.25; margin-top: 4px; white-space: nowrap; }
.stat .s-v small { font-size: 12px; color: var(--ink-2); margin-left: 4px; letter-spacing: 0; font-weight: 400; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } .stat, .stat + .stat { padding: 12px 12px 12px 0; box-shadow: none; border-bottom: 1px solid var(--line); } .stat .s-v { font-size: 24px; } }

/* Fristen-Ampel */
.due { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); }
.due:first-child { border-top: 0; }
.due .when { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.due .when b { display: block; font-weight: 500; font-size: 13px; }

/* Leere Zustände & Skeleton */
.empty { padding: 34px 20px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg.ill { width: 150px; height: auto; color: var(--ink-3); }
.empty h3 { color: var(--ink); font-weight: 500; }
.empty p { max-width: 380px; margin: 0; font-size: 13px; }
.skel { background: linear-gradient(90deg, var(--bg-2) 0%, var(--surface-2) 50%, var(--bg-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Status-Leiste Offline */
.offline-bar { display: none; align-items: center; gap: 8px; padding: 7px var(--edge); font-size: 12.5px; background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); border-bottom: 1px solid var(--line); }
.offline-bar.show { display: flex; }
.offline-bar svg { width: 15px; height: 15px; }
@media (max-width: 1023px) { .offline-bar { padding: 7px 16px; } }

/* Auth */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); }
.auth-art { background: #161616; color: #EDECE8; padding: 40px 48px 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; isolation: isolate; min-height: 100dvh; }
.auth-photo { position: absolute; inset: 0; z-index: -1; }
.auth-photo picture, .auth-photo img { width: 100%; height: 100%; }
.auth-photo img { object-fit: contain; object-position: 50% 34%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); }
.auth-art .wordmark { color: #EDECE8; }
.auth-art .wm-sub { color: #A4A49F; }
.auth-art h1 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 300; letter-spacing: -0.035em; max-width: 520px; line-height: 1.08; }
.auth-art p { color: #A4A49F; max-width: 440px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.auth-form form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.auth-form h2 { font-size: 20px; }
.auth-form h2 { font-size: 26px; font-weight: 300; letter-spacing: -0.02em; margin-bottom: 6px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { padding: calc(20px + env(safe-area-inset-top)) 22px 22px; min-height: 52vh; } .auth-art h1 { font-size: 28px; } .auth-art .hide-m { display: none; } .auth-photo img { object-fit: contain; object-position: center 40%; } }

/* Jahresrückblick */
.story { position: fixed; inset: 0; z-index: 300; background: #0F1215; color: #F6F5F1; display: flex; flex-direction: column; }
.story-bars { display: flex; gap: 4px; padding: calc(12px + env(safe-area-inset-top)) 14px 0; }
.story-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; position: relative; }
.story-bars i b { position: absolute; inset: 0; width: 0; background: #fff; }
.story-bars i.done b { width: 100%; }
.story-bars i.run b { animation: fillbar 6s linear forwards; }
@keyframes fillbar { to { width: 100%; } }
.story-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 13px; color: #A8AEB6; }
.story-top button { color: #F6F5F1; }
.story-card { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px 28px 60px; max-width: 560px; margin: 0 auto; width: 100%; }
.story-card .k { font-size: 14px; color: #A8AEB6; margin-bottom: 10px; }
.story-card .big { font-size: clamp(54px, 16vw, 104px); font-weight: 300; letter-spacing: -0.04em; line-height: .95; font-variant-numeric: tabular-nums; }
.story-card .big small { font-size: .32em; letter-spacing: 0; color: #A8AEB6; margin-left: 6px; }
.story-card .t { font-size: 19px; margin-top: 16px; line-height: 1.4; color: #E8E9EA; }
.story-card .anim { animation: storyIn 700ms var(--ease) both; }
.story-card .anim.d1 { animation-delay: 120ms; } .story-card .anim.d2 { animation-delay: 260ms; } .story-card .anim.d3 { animation-delay: 400ms; }
@keyframes storyIn { from { opacity: 0; transform: translateY(18px); } }
.story-nav { position: absolute; top: 80px; bottom: 80px; width: 35%; }
.story-nav.prev { left: 0; } .story-nav.next { right: 0; }
.story-actions { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 10px; }
.story-actions .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.story-bars-m { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-top: 22px; }
.story-bars-m div { flex: 1; background: #4D8FE8; border-radius: 3px 3px 0 0; min-height: 2px; animation: grow 900ms var(--ease) both; transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(0); } }

/* Druck (PDF-Bericht, Verkaufsdossier) */
.report { background: #fff; color: #111; max-width: 900px; margin: 0 auto; padding: 32px; }
.report h1 { font-size: 24px; font-weight: 400; }
.report h2 { font-size: 15px; margin: 24px 0 8px; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
.report .rgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid #ddd; border-radius: 8px; }
.report .rgrid div { padding: 10px 12px; border-right: 1px solid #ddd; }
.report .rgrid div:last-child { border-right: 0; }
.report .rgrid b { display: block; font-size: 18px; font-weight: 400; }
.report .rgrid span { font-size: 11px; color: #666; }
.report img.rc { max-width: 100%; max-height: 900px; border: 1px solid #ddd; margin: 8px 0; page-break-inside: avoid; }
.report-actions { display: flex; gap: 8px; justify-content: flex-end; max-width: 900px; margin: 16px auto 0; padding: 0 32px; }
@media print {
  body { background: #fff; }
  .pagehead, .tabbar, .fab, .topbar, .toasts, .report-actions, .offline-bar { display: none !important; }
  .shell { padding: 0 !important; }
  .page { padding: 0 !important; max-width: none !important; }
  .report { padding: 0; max-width: none; }
  .report h2 { page-break-after: avoid; }
  .chart-box { height: 220px !important; }
  table.data th { position: static; }
  .panel { break-inside: avoid; }
}

.swipe-wrap.swiping .swipe-actions { visibility: visible; }
.tl-item .amt { white-space: nowrap; }

/* ================================================================ Fahrzeugprofil */
.vprofile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.2fr); gap: 20px 56px; margin-bottom: 44px; align-items: start; }
.vp-id h2 { font-size: clamp(30px, 3vw, 42px); font-weight: 300; letter-spacing: -0.035em; margin: 6px 0 4px; line-height: 1.05; }
.vp-spec { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.vp-spec > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.vp-spec dt { color: var(--ink-2); }
.vp-spec dd { margin: 0; font-weight: 500; text-align: right; display: flex; align-items: center; gap: 6px; }
@media (max-width: 1023px) { .vprofile { grid-template-columns: minmax(0, 1fr); } .vp-spec { grid-template-columns: 1fr; } }

/* ================================================================ Kennzeichen im Foto */
picture.car-photo { display: block; }
picture[data-plate-photo] { position: relative; }
picture[data-plate-photo] { display: block; }
.plate-overlay { position: absolute; left: 0; top: 0; width: 520px; height: 110px; transform-origin: 0 0; pointer-events: none; visibility: hidden; filter: brightness(.93) saturate(.9); }
.plate-overlay svg { width: 100%; height: 100%; display: block; }
[data-plate-photo^="front-dark"] .plate-overlay { filter: brightness(.5) saturate(.75); }
.plate-overlay.flash svg { animation: plateIn 420ms var(--ease-out); }
@keyframes plateIn { from { opacity: .2; } }

/* Übersicht ohne Fahrzeugfoto (andere Fahrzeuge): rein typografische Bühne */
.stage.no-photo { min-height: 0; background: transparent; grid-template-columns: minmax(0, 1fr); margin-top: 0; padding-top: 12px; }
.stage.no-photo .stage-copy { grid-column: 1; align-items: flex-start; text-align: left; padding-top: 12px; }
.stage.no-photo .kpi-figure { justify-content: flex-start; }
.stage.no-photo .stage-spec { grid-column: 1; }

/* ================================================================ Demo, Registrierung */
.demo-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px var(--edge); background: var(--ink); color: var(--bg); font-size: 12.5px; }
.demo-bar .btn.ink { background: var(--bg); color: var(--ink); }
.demo-tag { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: 3px 7px; border-radius: 3px; background: var(--accent); color: #fff; }

.auth-alt { display: grid; gap: 10px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.auth-alt p { margin: 2px 0 0; text-align: center; }
.auth-cap { color: #74756F; margin-top: 28px; letter-spacing: .12em; text-transform: uppercase; }
.auth-form form.register { padding-block: 24px; }
.plate-input { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 16px; }
.mm-danger { border-top: 1px solid var(--line); padding-top: 8px; }
@media (max-width: 900px) { .auth-form { align-items: flex-start; } }

@media (max-width: 1023px) { .demo-bar { padding-top: calc(8px + env(safe-area-inset-top)); } .demo-bar .grow { display: none; } }

/* ================================================================ Tag und Nacht
   <html data-photo="day|night"> setzt core/media.js nach Sonnenstand (oder Einstellung).
   Tagsüber steht das Fahrzeug im Studio, nach Sonnenuntergang nachts mit eingeschalteten Scheinwerfern –
   auch im hellen Design wird die Bühne dann zur dunklen Nachtszene. */
html:not([data-photo="night"]) .ph-night { display: none !important; }
html[data-photo="night"] .ph-day { display: none !important; }
html.phase-anim .ph-day, html.phase-anim .ph-night { animation: phaseIn 1100ms var(--ease-out); }
@keyframes phaseIn { from { opacity: 0; } }

html[data-photo="night"] .stage,
html[data-photo="night"] .shell[data-route="home"] .topbar:not(.scrolled) {
  --stage: #161616; --bg: #111213; --surface: #18191B; --line: #26272A; --line-2: #36383C;
  --ink: #EDECE8; --ink-2: #A4A49F; --ink-3: #74756F; --accent: #6A9EEA; --good: #5DB98A; --warn: #E0A040; --bad: #E2766B;
  color: var(--ink);
}
html[data-photo="night"] .stage .stage-media::after { display: none; }
html[data-photo="night"] .stage { transition: background 900ms; }
html[data-photo="night"] .stage .stage-spec { padding-bottom: 32px; }

/* Anmeldung: am Tag Studio hell, nachts dunkel */
html:not([data-photo="night"]) .auth-art { background: #E8E2DB; color: #17191C; }
html:not([data-photo="night"]) .auth-art .wordmark { color: #17191C; }
html:not([data-photo="night"]) .auth-art .wm-sub, html:not([data-photo="night"]) .auth-art p { color: #5C5F65; }
html:not([data-photo="night"]) .auth-art .auth-cap { color: #8C8E93; }

/* ================================================================ Fotoband im Seitenkopf
   Statistik: Cockpit · Reisen: Seitenansicht · Fahrzeug: Front mit Kennzeichen · Einstellungen/Mehr: Innenraum */
.pagehead-media { position: relative; overflow: hidden; border-radius: var(--r-card); margin: 0 0 clamp(18px, 2.4vw, 30px); height: clamp(170px, 21vw, 300px); background: #161616; }
.pagehead-media picture, .pagehead-media img { width: 100%; height: 100%; }
.pagehead-media img { object-fit: cover; }
.pagehead-media[data-scene="cockpit"] img { object-position: 50% 30%; }
.pagehead-media[data-scene="interior"] img { object-position: 50% 52%; }
.pagehead-media[data-scene="side"] { background: #E8E2DB; height: clamp(190px, 25vw, 380px); }
.pagehead-media[data-scene="side"] img { object-position: 50% 58%; }
.pagehead-media[data-scene="front"] { background: #E8E2DB; height: clamp(210px, 27vw, 400px); }
html[data-photo="night"] .pagehead-media[data-scene="front"] { background: #161616; }
.pagehead-media[data-scene="front"] img { object-position: 50% 45%; }
.pagehead.has-media { padding-top: clamp(8px, 1.4vw, 18px); }
@media (max-width: 1023px) {
  .pagehead-media { margin: 0 calc(-1 * var(--gutter)) 18px; border-radius: 0; height: auto; aspect-ratio: 1.9; }
  .pagehead-media[data-scene="side"] { height: auto; aspect-ratio: 2.4; }
  .pagehead-media[data-scene="front"] { height: auto; aspect-ratio: 1.75; }
  .pagehead.has-media { padding-top: 0; }
}

/* Anmeldung Desktop: breites Bühnenfoto randlos im oberen Teil, Auslauf in die Fläche */
@media (min-width: 901px) {
  .auth-photo { inset: 0 0 30% 0; }
  .auth-photo img { object-fit: cover; object-position: 0% 62%; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
}

/* ================================================================ Erfassen – die wichtigste Alltagsfunktion */
.capture { margin-top: 20px; }
.cap-row { display: grid; grid-template-columns: minmax(280px, 2.3fr) repeat(7, minmax(0, 1fr)); gap: 8px; }
.cap { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px; min-height: 96px; border-radius: 8px;
  background: var(--surface); color: var(--ink); text-align: left; transition: background var(--dur), transform 160ms var(--ease), box-shadow var(--dur); }
.cap:hover { background: var(--surface-2); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(23, 25, 28, .06); }
.cap:active { transform: scale(.98); }
.cap b { font-size: 13.5px; font-weight: 500; }
.cap-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); flex: none; }
.cap-ic svg { width: 17px; height: 17px; }
.cap-primary { flex-direction: row; align-items: center; justify-content: flex-start; background: var(--ink); color: var(--bg); gap: 14px; }
.cap-primary:hover { background: color-mix(in srgb, var(--ink) 90%, var(--accent)); }
.cap-primary .cap-ic { width: 46px; height: 46px; background: var(--accent); color: #fff; }
.cap-primary .cap-ic svg { width: 22px; height: 22px; }
.cap-primary b { font-size: 15.5px; }
.cap-t small { display: block; opacity: .66; font-size: 12px; margin-top: 3px; line-height: 1.35; }
.cap-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }
.cap-status b { color: var(--ink); font-weight: 500; }
.cap-status a { color: var(--ink-3); }
.cap-status a b { color: var(--accent); }
.cap-status i { font-style: normal; opacity: .5; }
@media (max-width: 1280px) { .cap-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cap-primary { grid-column: 1 / -1; min-height: 76px; } }
@media (max-width: 760px) {
  .cap-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .cap-row::-webkit-scrollbar { display: none; }
  .cap { flex: none; width: 92px; min-height: 92px; scroll-snap-align: start; }
  .cap-primary { width: 240px; min-height: 92px; }
}

/* ================================================================ Diagramme: Tooltip, Legende, Ring */
.chart-box { position: relative; }
.ctip { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; min-width: 190px; max-width: 280px; padding: 10px 12px 9px; border-radius: 8px;
  background: var(--surface); color: var(--ink-2); font-size: 12px; box-shadow: 0 14px 34px rgba(17, 18, 19, .16), 0 0 0 1px var(--line);
  opacity: 0; transition: opacity 120ms, transform 110ms var(--ease); }
.ctip.on { opacity: 1; }
.ctip-t { color: var(--ink); font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.ctip-r { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 2px 0; }
.ctip-r i { width: 8px; height: 8px; border-radius: 2px; }
.ctip-r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctip-r b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.ctip-sum { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ctip-f, .ctip-more { color: var(--ink-3); font-size: 11.5px; margin-top: 4px; }
.legend { gap: 6px; margin-top: 12px; }
.lchip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: opacity var(--dur), background var(--dur); }
.lchip:hover { background: var(--surface); }
.lchip i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.lchip i.ln { width: 14px; height: 2.5px; border-radius: 2px; }
.lchip[aria-pressed="false"] { opacity: .42; text-decoration: line-through; }
.catdonut { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 22px; align-items: center; }
.donut-box { position: relative; height: 172px; }
.donut-box canvas { position: absolute; inset: 0; }
.donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.dc-l { font-size: 11px; color: var(--ink-3); max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-v { font-size: 21px; font-weight: 300; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 2px; }
.dc-s { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.catrank { list-style: none; margin: 0; padding: 0; display: grid; }
.catrank li { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto 40px; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 6px; font-size: 13px; cursor: pointer; transition: background var(--dur); }
.catrank li:hover, .catrank li:focus-visible { background: var(--surface); outline: none; }
.catrank i { width: 9px; height: 9px; border-radius: 3px; }
.catrank .v { font-weight: 500; text-align: right; }
.catrank .p { color: var(--ink-3); text-align: right; font-size: 12px; }
@media (max-width: 1200px) and (min-width: 761px) { .catdonut { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .catdonut { grid-template-columns: 136px minmax(0, 1fr); gap: 14px; } .donut-box { height: 136px; } .dc-v { font-size: 17px; } }
.fuelstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.fuelstats span { display: block; font-size: 11.5px; color: var(--ink-3); }
.fuelstats b { font-size: 18px; font-weight: 300; letter-spacing: -0.01em; white-space: nowrap; }
.fuelstats small { font-size: 11px; color: var(--ink-3); margin-left: 3px; font-weight: 400; }
@media (max-width: 1500px) { .fuelstats { grid-template-columns: 1fr 1fr; } }

/* Sehr breite Bildschirme: nach links verlängertes Bühnenfoto, Fahrzeug nahe der Inhaltskante */
@media (min-width: 1700px) { .stage-media img { object-position: 32% 55%; } }

@media (max-width: 760px) { .periodbar .toggles { flex-wrap: nowrap; gap: 8px; } .periodbar .toggles .seg button { padding: 0 9px; } .periodbar .toggles .switch { font-size: 12px; gap: 6px; } .periodbar .toggles .btn.icon { width: 30px; flex: none; } }
