/* Malna – Design-Tokens der Website.
   Werte aus dem App-Repository (css/tokens.css, docs/DESIGN-SYSTEM.md, Stand 30.09.2026).
   Entscheid des Eigentümers vom 01.10.2026: Die Website hat einen weissen Hintergrund (DECISIONS.md). Darum gilt hier
   das helle Erscheinungsbild der App, unabhängig von der Einstellung des Geräts; die Bildfolgen sind auf Weiss gerendert. */
:root {
  color-scheme: light;

  --page: #FFFFFF;
  --card: #FFFFFF;
  --surface-2: #F4F4F3;
  --border: #E7E5E4;
  --text: #1C1917;
  --text-2: #57534E;
  --text-3: #78716C;
  /* Gedämpfte Schrift auf --surface-2 (App-Ausschnitte): --text-3 erreicht dort nur 4.4:1 */
  --text-3-on-surface: #6B6560;

  /* Handeln: Bordeaux */
  --accent: #57202B;
  --accent-fill: #57202B;
  --accent-fill-hover: #672733;
  --on-accent: #FFFFFF;

  /* Filmische Bühne: tiefes Weinrot, warme Schrift, ruhige Lichtkanten.
     Website-Entscheid des Eigentümers, 02.10.2026. */
  --cinema-page: #150B10;
  --cinema-card: #21151B;
  --cinema-surface: #2B1B23;
  --cinema-border: #59454C;
  --cinema-text: #F7F2EC;
  --cinema-copy: #E0D5CC;
  --cinema-muted: #BDB0AA;
  --cinema-focus: #D8B6BE;
  --cinema-tone: #613142;
  --cinema-data: #477DFA;
  --cinema-goal-toward: #9FD08A;
  --cinema-goal-away: #FF6B5B;
  --cinema-protein: #F4767F;
  --cinema-fat: #E6BA66;
  --cinema-carb: #6CC4DC;
  --cinema-warning: #EBB26B;
  /* Erreichte Ziele der Körperillustration, ausdrücklich keine Gesundheitsbewertung. */
  --route-highlight: #87CFA0;
  --cinema-solute: #E5D5B8;
  --cinema-water: #ABC2CC;

  /* App im Handy der Szene: dunkles Erscheinungsbild der App (css/dark.css), passend zu den Screenshots; seit App 0.97.0
     edleres Bordeaux und Saphirblau (Daten: --cinema-data) mit Leuchten wie in der App (--app-accent-glow-small) */
  --app-page: #080809;
  --app-text: #F5F5F4;
  --app-text-2: #CFCBC7;
  --app-text-3: #A09B96;
  --app-accent: #FA505E;
  --app-accent-fill: #A70029;
  --app-on-accent: #FFFFFF;
  /* Leuchten der App (dunkle Werte aus css/dark.css der App 0.97.0): nie auf Text oder Karten, kein Pulsieren */
  --app-accent-glow: 0 0 6px -1px color-mix(in srgb, var(--app-accent) 70%, transparent), 0 0 24px -2px color-mix(in srgb, var(--app-accent) 55%, transparent);
  --app-accent-glow-small: 0 0 4px -1px color-mix(in srgb, var(--app-accent) 60%, transparent), 0 0 16px -2px color-mix(in srgb, var(--app-accent) 50%, transparent);
  --app-data-glow: 0 0 4px -1px color-mix(in srgb, var(--cinema-data) 85%, transparent), 0 0 14px -1px color-mix(in srgb, var(--cinema-data) 55%, transparent);

  /* Daten: Blau */
  --data-1: #3F57B5;
  --data-1-area: color-mix(in srgb, var(--data-1) 14%, transparent);
  --data-2: var(--text-2);
  --chart-band: color-mix(in srgb, var(--text) 10%, transparent);

  /* Zielrichtung: nur für die Gewichtsveränderung relativ zum eigenen Ziel */
  --goal-toward: #2E7A44;
  --goal-away: #B42318;

  /* Makros */
  --macro-protein: #B2383E;
  --macro-fat: #94650F;
  --macro-carb: #1C7690;

  --warning-color: #92400E;

  /* Abstände: 4/8/12/16/24, Abschnitte in Vielfachen */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 96px;
  --space-9: 144px;

  /* Radien */
  --radius-card: 12px;
  --radius-button: 10px;
  --radius-pill: 999px;
  --radius-progress: 3px;

  /* Schrift: Titel in New York (Apple), sonst Playfair Display (als «Malna Serif», OFL) */
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, "New York", "Malna Serif", Georgia, serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --line-height-text: 1.5;
  --line-height-title: 1.1;

  --control-height: 44px;
  --pill-height: 32px;
  --icon-size: 18px;
  --progress-height: 5px;
  --progress-height-small: 3px;

  --content-max: 1200px;
  --gutter: 16px;
  --header-height: 60px;
}

@font-face {
  font-family: "Malna Serif";
  src: url("../fonts/malna-serif-400.woff2?v=3af74abbd5") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

/* Leuchten der App-Inhalte aus: im Kontrastmodus, mit «Transparenz reduzieren» und mit «Bewegung reduzieren» */
@media (forced-colors: active), (prefers-reduced-transparency: reduce), (prefers-reduced-motion: reduce) {
  :root {
    --app-accent-glow: none !important;
    --app-accent-glow-small: none !important;
    --app-data-glow: none !important;
  }
}
