/* CHEX · Farben, Schriften und Abstände als Variablen (hell/dunkel), Grundlagen. */
:root {
  --bg: #f5f5f7;
  --bg-elev: #ffffff;
  --fill: rgba(120, 120, 128, .12);
  --fill-2: rgba(120, 120, 128, .08);
  --fill-3: rgba(120, 120, 128, .22);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --sep: rgba(60, 60, 67, .14);
  --accent: #e03a10;           /* Links & Text (CHEX-Orange, kräftig und noch gut lesbar) */
  --accent-bg: #f24a1d;        /* gefüllte Buttons */
  --accent-bg-hover: #dc3d12;
  --brand-grad: linear-gradient(135deg, #ff8a2b 0%, #f43f1f 100%); /* kräftiges Orange wie die Logo-Kachel */
  --accent-soft: rgba(244, 74, 29, .14);
  --green: #12923c;  --green-soft: rgba(40, 205, 90, .2);
  --orange: #b05c00; --orange-soft: rgba(255, 176, 0, .26); /* Bernstein für „Angefragt“ & Co. – klar anders als das CHEX-Orange */
  --red: #e0162b;    --red-soft: rgba(255, 59, 48, .16);
  --blue: #0a6ae0;   --blue-soft: rgba(10, 132, 255, .16);
  --grey: #6e6e73;   --grey-soft: rgba(120, 120, 128, .14);
  --material: rgba(250, 250, 252, .78);
  --material-border: rgba(0, 0, 0, .1);
  --card-border: transparent;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .03), 0 3px 12px rgba(0, 0, 0, .04);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, .06), 0 18px 44px rgba(0, 0, 0, .08);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .22);
  --radius: 22px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.22, 1, .36, 1); /* früher mit Überschwingen; jetzt wie --ease-out */
  --bar-h: 52px;
  --tab-h: 56px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #000000;
    --bg-elev: #1c1c1e;
    --fill: rgba(120, 120, 128, .24);
    --fill-2: rgba(120, 120, 128, .16);
    --fill-3: rgba(120, 120, 128, .34);
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #6e6e73;
    --sep: rgba(84, 84, 88, .55);
    --accent: #ff6a3a;
    --accent-bg: #f4501f;
    --accent-bg-hover: #ff6234;
    --accent-soft: rgba(255, 106, 58, .2);
    --green: #34de68;  --green-soft: rgba(52, 222, 104, .2);
    --orange: #ffb82e; --orange-soft: rgba(255, 184, 46, .2);
    --red: #ff5247;    --red-soft: rgba(255, 82, 71, .2);
    --blue: #56c4ff;   --blue-soft: rgba(86, 196, 255, .18);
    --grey: #a1a1a6;   --grey-soft: rgba(120, 120, 128, .26);
    --material: rgba(22, 22, 24, .72);
    --material-border: rgba(255, 255, 255, .1);
    --card-border: rgba(255, 255, 255, .06);
    --shadow-sm: none;
    --shadow-md: 0 16px 44px rgba(0, 0, 0, .6);
    color-scheme: dark;
}
/* Einstellung „Animationen reduzieren“ */
[data-motion="reduce"] *, [data-motion="reduce"] *::before, [data-motion="reduce"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 var(--font);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 28px);
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
h1 { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
p { margin: 0 0 10px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
summary { cursor: pointer; }
::selection { background: var(--accent-soft); }
