/* Helles Farbschema „Weinberg am Mittag“. Der Server bindet die Datei je nach gespeichertem
   Modus ein (fragments/theme.html): „Hell“ immer, „Auto“ nur bei hellem System
   (media="(prefers-color-scheme: light)"), „Dunkel“ nie. `:root` hält die Spezifität der
   früheren [data-theme="light"]-Regeln. */

:root {
  color-scheme: light;

  --interactive-green: #7a1f2b;
  --interactive-green-hover: #611722;
  --accent: #8a5a00;
  --accent-text: #7a4f00;
  --accent-tint: rgba(138, 90, 0, 0.1);
  --surface-dark: #2a1d16;
  --danger: #b3261e;
  --danger-text: #a3221a;
  --wine-red: #b3261e;

  --dark: #2a1d16;
  --text-secondary: #5f4d42;
  --muted-grau: #6c5d52;
  --on-dark: #fbf6ee;

  --bg: #ece2d2;
  --card-bg: #fffaf2;
  --glass-bg: rgba(255, 251, 244, 0.68);
  --glass-bg-strong: rgba(255, 251, 244, 0.84);
  --card-border: rgba(42, 29, 22, 0.13);
  --border: rgba(42, 29, 22, 0.1);
  --glass-border-strong: rgba(42, 29, 22, 0.22);
  --th-bg: rgba(42, 29, 22, 0.05);
  --ghost-bg: rgba(42, 29, 22, 0.06);
  --ghost-bg-hover: rgba(42, 29, 22, 0.11);

  --input-bg: rgba(255, 252, 247, 0.85);
  --input-border: rgba(42, 29, 22, 0.28);
  --input-text: #2a1d16;
  --input-placeholder: #7b695d;
  --input-focus: #8a5a00;

  --warn-gelb: #d19900;
  --attention: #8f6200;
  --critical: #b3261e;
  --stable: #4a6b2e;
  --pruef-amber: #f6e6bd;
  --confirmed-mint: #dfead0;
  --danger-soft-bg: #f8dcd8;
  --danger-soft-text: #7c1a14;
  --recording-text: #9b2d3d;
  --recording-ring: rgba(155, 45, 61, 0.25);
  --danger-hover: #8f1e18;

  --scrim: linear-gradient(180deg, rgba(255, 250, 240, 0.5) 0%, rgba(255, 250, 240, 0.14) 36%, rgba(236, 226, 210, 0.66) 66%, rgba(236, 226, 210, 0.95) 88%, #ece2d2 100%);
  --scrim-side: linear-gradient(90deg, rgba(90, 60, 30, 0.1), transparent 40%, transparent 60%, rgba(90, 60, 30, 0.1));

  --shadow-md: 0 8px 24px rgba(80, 30, 20, 0.12);
  --shadow-floating: 0 12px 32px rgba(80, 30, 20, 0.18);
  --shadow-popover: 0 24px 60px rgba(80, 30, 20, 0.24);
  --shadow-glow: 0 8px 40px rgba(122, 31, 43, 0.2);
}

:root .detail-main > h1:first-child { text-shadow: none; }
:root .workbench-hero h1 { text-shadow: 0 1px 18px rgba(255, 250, 240, 0.6); }
/* Leitfrage liegt direkt auf dem Foto: im Hellen dunkler + heller Halo. */
:root .workbench-hero__question {
  color: var(--dark);
  text-shadow: 0 0 2px rgba(255, 250, 240, 0.9), 0 1px 16px rgba(255, 250, 240, 0.85);
}
:root .area-crumb > a,
:root .area-head p { color: var(--dark); text-shadow: 0 0 2px rgba(255, 250, 240, 0.9), 0 1px 12px rgba(255, 250, 240, 0.8); }
