/* ==========================================================================
   Design Tokens – 1:1 aus der Figma-Datei „CV 2026“
   Collection „Theme“: Modus Farbig (= Light) und Modus Dark.
   Light/Dark über light-dark(); umgeschaltet per prefers-color-scheme
   oder manuell über <html data-theme="light|dark">.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}

:root {
  /* Flächen */
  --color-bg-page: light-dark(#f6f5f1, #111318);
  --color-bg-surface: light-dark(#ffffff, #2a2d36);
  --color-bg-accent: light-dark(#e3eaff, #2a2d36);
  --color-bg-warm: light-dark(#ffe2cf, #2a2d36);
  --color-bg-strong: light-dark(#a9bdff, #45495a);
  --color-bg-kobalt: light-dark(#1a2676, #45495a);
  --color-bg-inverse: light-dark(#111318, #ffffff);
  --color-bg-code: #181818; /* Code-Screenshot-Kachel, in beiden Modi dunkel */

  /* Text */
  --color-text-primary: light-dark(#111318, #ffffff);
  --color-text-secondary: light-dark(#45495a, #dcdbd3);
  --color-text-on-strong: light-dark(#111318, #ffffff);
  --color-text-on-kobalt: #ffffff;
  --color-text-on-inverse: light-dark(#ffffff, #111318);

  /* Linien, Fokus */
  --color-border-rule: light-dark(#dcdbd3, #45495a);
  --color-focus: light-dark(#111318, #ffffff);
  --color-border-control: #6b6f7d;
  --color-error: light-dark(#9b1c14, #ffffff);
  --color-bg-inverse-hover: light-dark(#2a2d36, #dcdbd3);

  /* Radien, Abstände (Figma: Radius, Spacing) */
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;
  --space-tile: 20px; /* Mobile */
  --layout-gap: 12px; /* Mobile */
  --page-pad: 16px;

  /* Typografie – Mobile-Stile */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --type-display-size: 40px;
  --type-display-line: 44px;
  --type-display-track: -1.5px;
  --type-heading-size: 28px;
  --type-heading-line: 34px;
  --type-heading-track: -0.5px;
  --type-lead-size: 20px;
  --type-lead-line: 28px;
  --type-lead-track: -0.3px;
  --type-body-size: 16px;
  --type-body-line: 24px;
  --type-metric-size: 40px;
  --type-metric-line: 40px;
  --type-metric-track: -1.5px;
  --type-label-size: 12px;
  --type-label-line: 16px;

  --shadow-nav: light-dark(0 2px 10px rgb(0 0 0 / 0.08), 0 2px 12px rgb(0 0 0 / 0.5));
}

/* Web-Stile ab Tablet/Desktop (Figma: Web/Display, Lead, Body, Metric, Label) */
@media (min-width: 900px) {
  :root {
    --space-tile: 32px;
    --layout-gap: 16px;
    --page-pad: 64px;
    --type-display-size: 64px;
    --type-display-line: 68px;
    --type-display-track: -2px;
    --type-heading-size: 36px;
    --type-heading-line: 44px;
    --type-heading-track: -1px;
    --type-lead-size: 24px;
    --type-lead-line: 32px;
    --type-lead-track: -0.5px;
    --type-body-size: 18px;
    --type-body-line: 28px;
    --type-metric-size: 56px;
    --type-metric-line: 56px;
    --type-metric-track: -2px;
    --type-label-size: 13px;
    --type-label-line: 18px;
  }
}
