/* Gemeinsame Design-Tokens für Händler-Portal und Team-Dashboard.
   Sprache: Papier und Etikett. Warmes Papier, Tinte, eine Signalfarbe (Tannengrün) für Kaufaktionen, Zahlen und Codes in Mono.
   Formregel: Boxen 16px, alles Klickbare und Felder 10px, kleine Etiketten 6px. Keine Pillen. Linien statt Schatten;
   Schatten nur auf Flächen, die über dem Inhalt schweben (feste Warenkorb-Leiste). */
:root {
  color-scheme: light dark;
  --bg: #f1f0ea; --surface: #fbfaf6; --raised: #eae8df; --line: #dedbd0; --line-strong: #8c8979;
  --ink: #17160f; --muted: #5d5a4e; --hover: #efede5;
  --accent: #1f6b4f; --accent-hover: #185a42; --accent-soft: #e0efe8; --accent-ink: #1f6b4f; --on-accent: #ffffff;
  --dot: #5bc49a;  /* Akzent auf den dunklen Leisten (Punkt der Wortmarke, Fokus, aktiver Menüpunkt): das helle Tannengrün */
  --top-bg: #11120d; --top-ink: #f3f3ec; --top-muted: #a6a89b; --top-line: #2e3027; --top-field: #1c1e17; --top-hover: rgba(255, 255, 255, 0.07);
  --focus: #17160f;
  --ok: #0b7658; --ok-soft: #e1f2eb; --ok-line: #b3dac9;
  --low: #8f5200; --out: #6b6859;
  --bad: #b3261e; --bad-soft: #fbe9e7; --bad-line: #eec0ba;
  --warn-ink: #7a4700; --warn-soft: #fbeed2; --warn-line: #ebd2a0;
  --shadow: 0 -10px 30px rgba(23, 22, 15, 0.1);
  --r-box: 16px; --r-field: 10px; --r-tag: 6px;
  --font: "Funnel Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --disp: "Funnel Display Variable", "Funnel Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono Variable", ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* Kachel-Farben je Sprache (Platzhalter, wenn ein Artikel kein Bild hat); weißer Text darauf, in beiden Modi gleich */
  --t-JP: #8c3b45; --t-CN: #8a5130; --t-KR: #3f5a8c; --t-EN: #3f7059; --t-DE: #5b5f6b; --t--: #5b5f6b;
  /* Nur Bot-Vorschau im Dashboard: bildet die WhatsApp-Oberfläche nach, daher deren Farben */
  --wa-bg: #efeae2; --wa-in: #ffffff; --wa-out: #d9fdd3; --wa-ink: #111b21; --wa-muted: #54656f; --wa-link: #027eb5;
  --wa-line: #e9edef; --wa-hover: #f5f6f6; --wa-shadow: rgba(11, 20, 26, .13); --wa-head: #008069; --wa-head-ink: #ffffff; --wa-head-soft: #f0f2f5;
}

/* Dunkel: folgt dem Gerät, solange nichts gewählt ist; der Schalter setzt data-design="light" oder "dark" (static/design.js) */
@media (prefers-color-scheme: dark) {
  :root:not([data-design="light"]) {
    --bg: #0c0d09; --surface: #141610; --raised: #1c1f17; --line: #2a2d22; --line-strong: #70745f;
    --ink: #edeee5; --muted: #9fa293; --hover: #1a1c15;
    --accent: #5bc49a; --accent-hover: #7ad5b2; --accent-soft: #10261d; --accent-ink: #5bc49a; --on-accent: #06231a; --dot: #5bc49a;
    --top-bg: #090a07; --top-ink: #f1f2ea; --top-muted: #9c9f90; --top-line: #2a2d22; --top-field: #151710;
    --focus: #5bc49a;
    --ok: #5fd3b0; --ok-soft: #10241e; --ok-line: #1f4a3c;
    --low: #f2c14e; --out: #8e9182;
    --bad: #ff8a80; --bad-soft: #2c1513; --bad-line: #5a2723;
    --warn-ink: #f2c14e; --warn-soft: #2a2110; --warn-line: #574319;
    --shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    --wa-bg: #0b141a; --wa-in: #202c33; --wa-out: #005c4b; --wa-ink: #e9edef; --wa-muted: #8696a0; --wa-link: #53bdeb;
    --wa-line: #2a3942; --wa-hover: #2a3942; --wa-shadow: rgba(0, 0, 0, .3); --wa-head: #202c33; --wa-head-ink: #e9edef; --wa-head-soft: #1f2c34;
  }
}
:root[data-design="dark"] {
  --bg: #0c0d09; --surface: #141610; --raised: #1c1f17; --line: #2a2d22; --line-strong: #70745f;
  --ink: #edeee5; --muted: #9fa293; --hover: #1a1c15;
  --accent: #5bc49a; --accent-hover: #7ad5b2; --accent-soft: #10261d; --accent-ink: #5bc49a; --on-accent: #06231a; --dot: #5bc49a;
  --top-bg: #090a07; --top-ink: #f1f2ea; --top-muted: #9c9f90; --top-line: #2a2d22; --top-field: #151710;
  --focus: #5bc49a;
  --ok: #5fd3b0; --ok-soft: #10241e; --ok-line: #1f4a3c;
  --low: #f2c14e; --out: #8e9182;
  --bad: #ff8a80; --bad-soft: #2c1513; --bad-line: #5a2723;
  --warn-ink: #f2c14e; --warn-soft: #2a2110; --warn-line: #574319;
  --shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  --wa-bg: #0b141a; --wa-in: #202c33; --wa-out: #005c4b; --wa-ink: #e9edef; --wa-muted: #8696a0; --wa-link: #53bdeb;
  --wa-line: #2a3942; --wa-hover: #2a3942; --wa-shadow: rgba(0, 0, 0, .3); --wa-head: #202c33; --wa-head-ink: #e9edef; --wa-head-soft: #1f2c34;
}
:root[data-design="light"] { color-scheme: light; }
:root[data-design="dark"] { color-scheme: dark; }
