/* Fahrzeugkosten-Cockpit – Design-Tokens „APEX · Atelier & Instrument“
   Leitidee: Das Fahrzeug steht im Fotostudio. Die Oberfläche ist die Studiowand –
   warmes Off-White bzw. tiefes Anthrazit, exakt auf die Fotohintergründe abgestimmt.
   Zahlen sind Instrumente: große, leichte Ziffern, tabellarisch, präzise. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+20A0-20AB, U+20AD-20CF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Fläche: warmes Off-White, Studioboden der Fotografie */
  --bg: #F3F1ED;
  --bg-2: #EAE6E0;
  --surface: #FAF9F6;
  --surface-2: #F5F3EF;
  --stage: #E8E2DB;          /* exakt: Studioboden BMW_1/BMW_3 */
  --line: #E1DCD4;
  --line-2: #CFC9BF;
  /* Tinte: Anthrazit statt Schwarz */
  --ink: #17191C;
  --ink-2: #5C5F65;
  --ink-3: #8C8E93;
  --alu: #A9ADB2;            /* Aluminium – Materialbezug für Sekundärgrafik */
  --alu-soft: #D9DADB;
  /* Ein einziger Akzent: Performance-Blau, nur für Interaktion und €/km */
  --accent: #1F5FBF;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6EDF8;
  --accent-line: #B7CBEA;
  /* Semantik – ausschließlich für Status */
  --good: #2E7D57;
  --good-soft: #E3F0E8;
  --warn: #B26B00;
  --warn-soft: #F7EBD8;
  --bad: #B83A30;
  --bad-soft: #F6E2DF;
  --plate-blue: #1C3F94;
  /* Kostenarten (Zusammensetzung) */
  --c-fixed: #17191C;
  --c-variable: #1F5FBF;
  --c-dep: #A9ADB2;

  --r-card: 6px;
  --r-field: 6px;
  --r-chip: 999px;
  --shadow-float: 0 18px 50px rgba(23, 25, 28, .14), 0 2px 8px rgba(23, 25, 28, .06);
  --shadow-sheet: 0 -10px 40px rgba(23, 25, 28, .16);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;

  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --fs: 14px;
  --fs-sm: 12.5px;
  --fs-xs: 11.5px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: 200ms;
  --gutter: clamp(16px, 3.2vw, 48px);
  --maxw: 1520px;
  --top-h: 64px;
  --tab-h: 62px;
  color-scheme: light;
}

@media (max-width: 1023px) {
  :root { --gutter: 20px; }
}
@media (max-width: 760px) {
  :root { --fs: 15px; --fs-sm: 13px; --top-h: 52px; --gutter: 16px; }
}

/* Dunkel: eigenständig abgestimmt auf die Nachtaufnahme (Hintergrund #161616) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111213; --bg-2: #1A1B1D; --surface: #18191B; --surface-2: #1D1E21; --stage: #161616;
    --line: #26272A; --line-2: #36383C;
    --ink: #EDECE8; --ink-2: #A4A49F; --ink-3: #74756F; --alu: #7E8287; --alu-soft: #3A3C40;
    --accent: #6A9EEA; --accent-ink: #0E1013; --accent-soft: #18233A; --accent-line: #2B4166;
    --good: #5DB98A; --good-soft: #142219; --warn: #E0A040; --warn-soft: #2A2112; --bad: #E2766B; --bad-soft: #2E1816; --plate-blue: #2A4FA8;
    --c-fixed: #EDECE8; --c-variable: #6A9EEA; --c-dep: #5E6267;
    --shadow-float: 0 18px 50px rgba(0, 0, 0, .55); --shadow-sheet: 0 -10px 40px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111213; --bg-2: #1A1B1D; --surface: #18191B; --surface-2: #1D1E21; --stage: #161616;
  --line: #26272A; --line-2: #36383C;
  --ink: #EDECE8; --ink-2: #A4A49F; --ink-3: #74756F; --alu: #7E8287; --alu-soft: #3A3C40;
  --accent: #6A9EEA; --accent-ink: #0E1013; --accent-soft: #18233A; --accent-line: #2B4166;
  --good: #5DB98A; --good-soft: #142219; --warn: #E0A040; --warn-soft: #2A2112; --bad: #E2766B; --bad-soft: #2E1816; --plate-blue: #2A4FA8;
  --c-fixed: #EDECE8; --c-variable: #6A9EEA; --c-dep: #5E6267;
  --shadow-float: 0 18px 50px rgba(0, 0, 0, .55); --shadow-sheet: 0 -10px 40px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
