/* Design-Tokens nach design-guidelines-apps.md (iOS-26-Stil, dezent).
   Dunkelmodus ist vorbereitet, aber nur aktiv, wenn <html class="allow-dark"> gesetzt ist
   (Nutzerwunsch: aktuell nur hell). */
:root {
  color-scheme: light;
  --blue: #007AFF; --green: #34C759; --red: #FF3B30; --orange: #FF9500; --yellow: #FFCC00;
  --green-strong: #248A3D;
  --bg: #FFFFFF; --bg-grouped: #F2F2F7; --bg-elevated: #FFFFFF; --bg-elevated-2: #F2F2F7;
  --label: #000000; --label-2: rgba(60,60,67,.60); --label-3: rgba(60,60,67,.30);
  --separator: rgba(60,60,67,.29); --fill: rgba(120,120,128,.12);
  --blue-rgb: 0,122,255; --green-rgb: 52,199,89;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-large-title: 2.125rem; --fs-title1: 1.75rem; --fs-title3: 1.25rem; --fs-headline: 1.0625rem;
  --fs-body: 1.0625rem; --fs-callout: 1rem; --fs-sub: .9375rem; --fs-footnote: .8125rem;
  --fs-caption: .75rem; --fs-caption2: .6875rem;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px;
  --radius-s: 8px; --radius-m: 12px; --radius-l: 18px; --radius-sheet: 28px;
  --hairline: .5px;
  --shadow-float: 0 8px 32px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.08);

  --glass-bg: color-mix(in srgb, var(--bg) 62%, transparent);
  --glass-border: color-mix(in srgb, var(--label) 12%, transparent);
  --glass-blur: blur(20px) saturate(180%);
  --glass-light: inset 0 .5px 0 rgba(255,255,255,.35);
}
@media (prefers-color-scheme: dark) {
  html.allow-dark {
    color-scheme: dark;
    --blue: #0A84FF; --green: #30D158; --red: #FF453A; --orange: #FF9F0A; --yellow: #FFD60A;
    --green-strong: #30D158;
    --bg: #000000; --bg-grouped: #000000; --bg-elevated: #1C1C1E; --bg-elevated-2: #2C2C2E;
    --label: #FFFFFF; --label-2: rgba(235,235,245,.60); --label-3: rgba(235,235,245,.30);
    --separator: rgba(84,84,88,.60); --fill: rgba(120,120,128,.24);
    --blue-rgb: 10,132,255; --green-rgb: 48,209,88;
    --shadow-float: 0 8px 32px rgba(0,0,0,.5), 0 0 0 .5px rgba(255,255,255,.08);
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-bg: var(--bg); --glass-blur: none; }
}
@media (prefers-contrast: more) {
  :root { --glass-bg: var(--bg); --glass-blur: none; --glass-border: var(--label-2); --separator: var(--label-2); }
}
