/* ==========================================================================
   M-JET Powersports — Design Tokens
   Eine Quelle der Wahrheit für Farben, Radien, Abstände, Schatten, Typografie.
   Dark-first (Marke ist dunkel), mit automatischem Light-Override.
   Einbinden: <link rel="stylesheet" href=".../tokens/tokens.css">
   ========================================================================== */
:root {
  /* ---- Marke (konstant, flippen NICHT) ---------------------------------- */
  --mjet-graphite:      #58595B;   /* offizielle Logofarbe (Schwarz-Variante) */
  --mjet-white:         #ffffff;
  --mjet-orange:        #e8913c;   /* Primär-Akzent */
  --mjet-orange-bright: #f0a04b;
  --mjet-orange-deep:   #d97e26;
  --mjet-cyan:          #5ac8fa;   /* Sekundär-Akzent · Live · Links */
  --mjet-cyan-soft:     #9ee6ff;   /* heller Logo-Verlauf (App-Splash) */

  --brand-gradient:   linear-gradient(135deg, var(--mjet-orange-bright), var(--mjet-orange-deep));
  --brand-gradient-cyan: linear-gradient(180deg, var(--mjet-white), var(--mjet-cyan-soft));

  /* ---- Semantik (konstant) ---------------------------------------------- */
  --color-success: #34c759;
  --color-warning: #ffd60a;
  --color-danger:  #e5484d;
  --color-info:    #5ac8fa;
  --color-purple:  #a78bfa;

  /* ---- Radien ----------------------------------------------------------- */
  --radius-xs: 6px;  --radius-sm: 10px; --radius-md: 14px;
  --radius-lg: 20px; --radius-xl: 28px; --radius-pill: 999px;

  /* ---- Abstände (4px-Raster) -------------------------------------------- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px;

  /* ---- Typografie ------------------------------------------------------- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 15px; --fs-lg: 18px;
  --fs-xl: 24px; --fs-2xl: 32px; --fs-3xl: 44px;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --lh-tight: 1.2; --lh-normal: 1.5;

  /* ---- Dark-Theme (Default) --------------------------------------------- */
  --bg:         #0b0e14;
  --surface:    #141922;
  --surface-2:  #1b212b;
  --surface-3:  #232b37;
  --border:     #2a313c;
  --text:       #e6e9ee;
  --text-muted: #8a93a0;
  --text-faint: #6e7681;

  --accent:          var(--mjet-orange);
  --accent-bright:   var(--mjet-orange-bright);
  --accent-contrast: #1a1205;   /* Text auf Orange */
  --link:            var(--mjet-cyan);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.55);
  --ring: 0 0 0 3px rgba(232,145,60,.35);   /* Fokus-Ring (Orange) */
}

/* ---- Light-Override (automatisch + manuell via [data-theme="light"]) ---- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f0f2f5; --surface-3: #e7eaef;
    --border: #d7dce3; --text: #141922; --text-muted: #5a6572; --text-faint: #8a93a0;
    --accent-contrast: #ffffff;
    --link: #1f8fd6;
    --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
    --shadow-md: 0 8px 24px rgba(16,24,40,.08);
    --shadow-lg: 0 20px 60px rgba(16,24,40,.12);
  }
}
:root[data-theme="light"] {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f0f2f5; --surface-3: #e7eaef;
  --border: #d7dce3; --text: #141922; --text-muted: #5a6572; --text-faint: #8a93a0;
  --accent-contrast: #ffffff; --link: #1f8fd6;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --shadow-md: 0 8px 24px rgba(16,24,40,.08);
  --shadow-lg: 0 20px 60px rgba(16,24,40,.12);
}
