/* ── Design System 2.0 (#662) – Tokens ───────────────────────────────────────
   EINZIGE Quelle für Farben/Tiefe/Schrift. Eingebunden VOR app.css (SPA) und von
   den Standalone-Seiten (login, forgot/reset_password, legal_base). Stempel/Quick/
   Bestellen bleiben bewusst eigenständig dunkel (NFC-Kontext, #423).
   Zwei Themes: Hell (Render-Default, warmes Papier + Gold – Weiterentwicklung von
   „Edel" #423) und Dunkel (Graphit + Gold). data-theme="edel" ist ein Alt-Wert aus
   localStorage und wird wie Hell behandelt (das frühe Theme-Script mappt ihn um).

   Bausteine der Tiefe – bitte über Tokens nutzen, nie Farbwerte hart codieren:
   --card-bg      Karten-Füllung (leichter Vertikalverlauf = Licht von oben)
   --hl           Glanzkante: 1px-Lichtreflex an der Oberkante (inset)
   --shadow-card  Ruhelage · --shadow-lift Hover/aktiv · --shadow-float Modals/Popover
   --grad-gold    Primär-Buttons + aktive Elemente · --sheen Spiegelung auf Flächen
   --c1…--c6      Diagramm-Palette (Reihenfolge = CVD-Sicherheit, NIE umsortieren;
                  geprüft mit dem dataviz-Validator gegen --surface beider Themes)
   ─────────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root, html[data-theme="light"], html[data-theme="edel"] {
  color-scheme: light;
  --bg:        #f4f2ed;
  --bg-mesh:
    radial-gradient(1100px 620px at 6% -12%, color-mix(in srgb, var(--gold-bright) 17%, transparent), transparent 62%),
    radial-gradient(900px 560px at 106% -4%, rgba(118,138,196,.11), transparent 60%),
    radial-gradient(1000px 700px at 55% 118%, color-mix(in srgb, var(--gold-bright) 9%, transparent), transparent 65%);
  --surface:   #ffffff;
  --surface2:  #f7f5f0;
  --surface3:  #ebe7dd;
  --border:    #e6e1d6;
  --border-strong: #d5cebe;
  --gold:      #a07f10;      /* Text-/Linien-Gold – AA-lesbar auf Weiß */
  --gold-dim:  #85690c;
  --gold-bright: #d4af37;    /* Deko-Gold (Glanz, Verläufe) – nicht für Text */
  --gold-glow: rgba(176,140,20,.24);
  --accent-text: #ffffff;
  --accent-hover: #b08c14;
  --text:      #1b1c20;
  --text-dim:  #5d5e66;
  --text-faint:#8f8d86;
  --red:       #cf3c40;
  --green:     #19936a;
  --amber:     #b87410;
  --blue:      #2a6fc9;
  --card-bg:   linear-gradient(180deg, #ffffff 0%, #fdfcf9 100%);
  --glass:     rgba(255,255,255,.74);
  --glass-strong: rgba(255,255,255,.88);
  --glass-border: rgba(255,255,255,.75);
  --hl:        inset 0 1px 0 rgba(255,255,255,.95);
  --shadow-card:
    var(--hl), 0 1px 2px rgba(60,48,16,.05),
    0 6px 16px -6px rgba(60,48,16,.10), 0 18px 40px -18px rgba(60,48,16,.14);
  --shadow-lift:
    var(--hl), 0 2px 4px rgba(60,48,16,.06),
    0 14px 28px -10px rgba(60,48,16,.18), 0 30px 60px -24px rgba(60,48,16,.22);
  --shadow-float: 0 28px 70px -18px rgba(40,30,8,.36), 0 8px 22px -8px rgba(40,30,8,.16);
  --shadow-toast: 0 18px 40px -12px rgba(40,30,8,.30), 0 2px 6px rgba(40,30,8,.08);
  --shadow-inset: inset 0 1px 2px rgba(60,48,16,.07);
  --modal-backdrop: rgba(38,30,10,.34);
  --grad-gold:       linear-gradient(180deg, #c9a42c 0%, #a78510 58%, #917112 100%);
  --grad-gold-hover: linear-gradient(180deg, #d5b23c 0%, #b18f18 58%, #9a7a14 100%);
  --gold-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 1px 2px rgba(120,90,10,.25), 0 8px 18px -8px rgba(160,127,16,.6);
  --sheen:     linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,0) 52%);
  --nav-active-bg: linear-gradient(135deg, color-mix(in srgb, var(--gold-bright) 22%, transparent), color-mix(in srgb, var(--gold-bright) 7%, transparent));
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --trans:     .18s ease;
  --ease-out:  cubic-bezier(.2,.8,.2,1);
  --sidebar-w: 256px;
  --font:      'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --chart-grid: #ece8df;
  --c1: #b8900f; --c2: #2a78d6; --c3: #eb6834; --c4: #1baf7a; --c5: #4a3aa7; --c6: #e87ba4;
  --c-other: #bdb8ac;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0b0c0f;
  --bg-mesh:
    radial-gradient(1000px 600px at 4% -14%, color-mix(in srgb, var(--gold-bright) 14%, transparent), transparent 60%),
    radial-gradient(900px 600px at 106% 2%, rgba(70,110,200,.11), transparent 60%),
    radial-gradient(1100px 700px at 50% 122%, color-mix(in srgb, var(--gold-bright) 6%, transparent), transparent 65%);
  --surface:   #16171b;
  --surface2:  #1d1e23;
  --surface3:  #26272e;
  --border:    #2a2b32;
  --border-strong: #3a3c46;
  --gold:      #dcb84a;
  --gold-dim:  #a88b28;
  --gold-bright: #f0cf66;
  --gold-glow: rgba(220,184,74,.22);
  --accent-text: #17140a;
  --accent-hover: #e9c65c;
  --text:      #ededf2;
  --text-dim:  #9c9daa;
  --text-faint:#62636f;
  --red:       #f06767;
  --green:     #4fd29b;
  --amber:     #f3a84b;
  --blue:      #5b9cf0;
  --card-bg:   linear-gradient(180deg, #1b1c21 0%, #16171b 100%);
  --glass:     rgba(19,20,24,.72);
  --glass-strong: rgba(22,23,27,.9);
  --glass-border: rgba(255,255,255,.06);
  --hl:        inset 0 1px 0 rgba(255,255,255,.065);
  --shadow-card: var(--hl), 0 0 0 1px rgba(0,0,0,.22), 0 10px 30px -12px rgba(0,0,0,.7);
  --shadow-lift: var(--hl), 0 0 0 1px rgba(0,0,0,.3), 0 22px 50px -16px rgba(0,0,0,.85);
  --shadow-float: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.05);
  --shadow-toast: 0 18px 44px -10px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.05);
  --shadow-inset: inset 0 1px 2px rgba(0,0,0,.35);
  --modal-backdrop: rgba(3,4,6,.62);
  --grad-gold:       linear-gradient(180deg, #f0cf66 0%, #d6b040 52%, #bb951f 100%);
  --grad-gold-hover: linear-gradient(180deg, #f6da7a 0%, #e0bb4a 52%, #c49e28 100%);
  --gold-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 1px 2px rgba(0,0,0,.4), 0 8px 22px -8px rgba(220,184,74,.5);
  --sheen:     linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 50%);
  --nav-active-bg: linear-gradient(135deg, rgba(220,184,74,.19), rgba(220,184,74,.05));
  --chart-grid: #26272e;
  --c1: #a88514; --c2: #3987e5; --c3: #d95926; --c4: #199e70; --c5: #9085e9; --c6: #d55181;
  --c-other: #4a4b55;
}
/* Hintergrund: ruhiges Farbfeld („Mesh") statt Flachfarbe – gibt den Glas-Flächen
   etwas, das durchscheinen kann. Fixiert, damit es beim Scrollen nicht wandert. */
body { background: var(--bg-mesh), var(--bg); background-attachment: fixed; }
