/* cenero.one Werkzeug-Design – Design-Tokens
   Farben aus den Referenz-Screens (referenz-hell.png / referenz-dunkel.png)
   und dem Master-Theme (Cenero-One_Master.pptx) übernommen.
   Theme-Umschaltung: data-theme="light" | "dark" auf <html>, ohne Attribut = System. */

:root {
  /* Marke (themenunabhängig) */
  --brand: #95C11F;          /* cenero-Grün: Logo, Primär-Button, aktive Marker, Badges */
  --brand-dark: #14822C;     /* Dunkelgrün: Radio/Checkbox aktiv, Links */
  --brand-lime: #BED000;     /* Akzent, sparsam */
  --brand-petrol: #2F5357;   /* Akzent, sparsam */
  --on-brand: #0F1A2C;       /* Text auf --brand */

  /* Hell */
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #F1F4F8;      /* Segmented Control, Hover */
  --border: #E1E6ED;
  --border-strong: #C9D1DC;  /* Eingabefelder, Karten-Rand */
  --text: #0F1A2C;
  --text-muted: #5B6778;
  --text-faint: #A4ABB4;
  --success-soft: #F1F8E3;   /* erledigter Schritt */
  --warn: #FFC061;           /* Hinweisleiste links */
  --warn-soft: #FFF5E0;
  --danger: #C62828;
  --danger-soft: #F1C9C9;

  /* Sidebar ist in beiden Themes dunkel */
  --sidebar: #0F1A2C;
  --sidebar-active: #1F2D2A;
  --sidebar-text: #C9D2DE;
  --sidebar-text-active: #FFFFFF;

  --radius: 8px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --focus-ring: 0 0 0 3px rgba(149, 193, 31, .35);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; /* IDs, Nummern */

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1422;
    --surface: #0F1A2C;
    --surface-2: #16243B;
    --border: #22324D;
    --border-strong: #2C3D5A;
    --text: #E7ECF3;
    --text-muted: #9AA7B8;
    --text-faint: #5B6779;
    --success-soft: #1F2D2A;
    --warn-soft: #282829;
    --danger: #FF8A80;
    --danger-soft: #4B3641;
    --sidebar: #0A1220;
    --sidebar-active: #1A2620;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0B1422;
  --surface: #0F1A2C;
  --surface-2: #16243B;
  --border: #22324D;
  --border-strong: #2C3D5A;
  --text: #E7ECF3;
  --text-muted: #9AA7B8;
  --text-faint: #5B6779;
  --success-soft: #1F2D2A;
  --warn-soft: #282829;
  --danger: #FF8A80;
  --danger-soft: #4B3641;
  --sidebar: #0A1220;
  --sidebar-active: #1A2620;
  color-scheme: dark;
}

/* Im Dunkel-Theme haben Eingabefelder eine eigene Füllung */
:root { --input-bg: var(--surface); }
:root[data-theme="dark"] { --input-bg: #16243B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --input-bg: #16243B; } }
