/* Kopie aus corporate-identity (Tag ci-v1.0), Schriften als WOFF-Subset. Nicht hier aendern, sondern dort.
   immerwach – Design-Tokens, Version 1.0 (fixiert 21.11.2026).
   Verbindliche Definition: ../definition/. Quelle der Wahrheit fuer Web, Praesentationen und Vorlagen.
   Einbinden: <link rel="stylesheet" href="immerwach.css">
   Modus: folgt prefers-color-scheme; <html data-theme="light|dark"> ueberschreibt. */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito.woff") format("woff");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans.woff") format("woff");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  /* Palette: Grundfarben */
  --iw-nacht: #1F2A44;
  --iw-terrakotta: #C4553B;
  --iw-sand-hell: #FAF6F0;
  /* Palette: heller Modus */
  --iw-sand: #F1E7D8;
  --iw-sand-dunkel: #DCCBB2;
  --iw-stein: #6B625A;
  --iw-terrakotta-dunkel: #A2412B;
  --iw-terrakotta-tief: #8A3524;
  --iw-salbei: #5E7A6A;
  --iw-weiss: #FFFFFF;
  /* Palette: dunkler Modus */
  --iw-nacht-tief: #172036;
  --iw-nacht-erhoeht: #2A3656;
  --iw-nacht-linie: #3A4768;
  --iw-nacht-rahmen: #6E7A99;
  --iw-sand-grau: #C9BFB2;
  --iw-terrakotta-hell: #E8836B;
  --iw-terrakotta-zart: #F2A18E;
  --iw-salbei-hell: #8FAE9B;

  /* Typografie */
  --iw-font-display: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --iw-font-text: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --iw-font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --iw-size-small: 0.875rem;  /* 14px Klein, Label */
  --iw-size-min: 1rem;        /* 16px Fliesstext Minimum */
  --iw-size-text: 1.125rem;   /* 18px Fliesstext */
  --iw-size-lead: 1.25rem;    /* 20px Lead */
  --iw-size-h3: 1.5rem;       /* 24px */
  --iw-size-h2: 2rem;         /* 32px */
  --iw-size-h1: 3rem;         /* 48px */
  --iw-size-display: 3.5rem;  /* 56px Hero */
  --iw-leading: 1.6;
  --iw-measure: 68ch;

  /* Form und Raum */
  --iw-radius-s: 8px;
  --iw-radius-m: 16px;
  --iw-radius-l: 28px;
  --iw-radius-pill: 999px;
  --iw-space-1: 4px;
  --iw-space-2: 8px;
  --iw-space-3: 16px;
  --iw-space-4: 24px;
  --iw-space-5: 40px;
  --iw-space-6: 64px;
  --iw-space-7: 96px;
  --iw-content: 1120px;
  --iw-duration: 200ms;

  /* Rollen: heller Modus (Standard) */
  color-scheme: light;
  --iw-bg: var(--iw-sand-hell);
  --iw-surface: var(--iw-sand);
  --iw-surface-raised: var(--iw-weiss);
  --iw-border: var(--iw-sand-dunkel);
  --iw-border-strong: var(--iw-stein);
  --iw-text: var(--iw-nacht);
  --iw-text-muted: var(--iw-stein);
  --iw-accent: var(--iw-terrakotta);
  --iw-accent-text: var(--iw-terrakotta-dunkel);
  --iw-accent-text-hover: var(--iw-terrakotta-tief);
  --iw-button-bg: var(--iw-terrakotta-dunkel);
  --iw-button-text: var(--iw-weiss);
  --iw-button-hover: var(--iw-terrakotta-tief);
  --iw-focus: var(--iw-terrakotta-dunkel);
  --iw-error: #B3261E;
  --iw-success: #3F6150;
  --iw-info: var(--iw-nacht);
  --iw-chart-1: var(--iw-nacht);
  --iw-chart-2: var(--iw-terrakotta);
  --iw-chart-3: var(--iw-salbei);
  --iw-chart-4: var(--iw-sand-dunkel);
  --iw-shadow: 0 6px 24px rgba(31, 42, 68, 0.08);
  --iw-shadow-hover: 0 6px 24px rgba(31, 42, 68, 0.12);
}

/* Rollen: dunkler Modus. Zweimal definiert (Systemeinstellung und data-theme), Werte identisch halten. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --iw-bg: var(--iw-nacht-tief);
    --iw-surface: var(--iw-nacht);
    --iw-surface-raised: var(--iw-nacht-erhoeht);
    --iw-border: var(--iw-nacht-linie);
    --iw-border-strong: var(--iw-nacht-rahmen);
    --iw-text: var(--iw-sand-hell);
    --iw-text-muted: var(--iw-sand-grau);
    --iw-accent: var(--iw-terrakotta-hell);
    --iw-accent-text: var(--iw-terrakotta-hell);
    --iw-accent-text-hover: var(--iw-terrakotta-zart);
    --iw-button-bg: var(--iw-terrakotta-hell);
    --iw-button-text: var(--iw-nacht-tief);
    --iw-button-hover: var(--iw-terrakotta-zart);
    --iw-focus: var(--iw-terrakotta-hell);
    --iw-error: #F2B8B5;
    --iw-success: var(--iw-salbei-hell);
    --iw-info: var(--iw-sand-hell);
    --iw-chart-1: var(--iw-sand-hell);
    --iw-chart-2: var(--iw-terrakotta-hell);
    --iw-chart-3: var(--iw-salbei-hell);
    --iw-chart-4: var(--iw-nacht-rahmen);
    --iw-shadow: none;
    --iw-shadow-hover: none;
  }
}
:root[data-theme="dark"], .iw-dunkel {
  color-scheme: dark;
  --iw-bg: var(--iw-nacht-tief);
  --iw-surface: var(--iw-nacht);
  --iw-surface-raised: var(--iw-nacht-erhoeht);
  --iw-border: var(--iw-nacht-linie);
  --iw-border-strong: var(--iw-nacht-rahmen);
  --iw-text: var(--iw-sand-hell);
  --iw-text-muted: var(--iw-sand-grau);
  --iw-accent: var(--iw-terrakotta-hell);
  --iw-accent-text: var(--iw-terrakotta-hell);
  --iw-accent-text-hover: var(--iw-terrakotta-zart);
  --iw-button-bg: var(--iw-terrakotta-hell);
  --iw-button-text: var(--iw-nacht-tief);
  --iw-button-hover: var(--iw-terrakotta-zart);
  --iw-focus: var(--iw-terrakotta-hell);
  --iw-error: #F2B8B5;
  --iw-success: var(--iw-salbei-hell);
  --iw-info: var(--iw-sand-hell);
  --iw-chart-1: var(--iw-sand-hell);
  --iw-chart-2: var(--iw-terrakotta-hell);
  --iw-chart-3: var(--iw-salbei-hell);
  --iw-chart-4: var(--iw-nacht-rahmen);
  --iw-shadow: none;
  --iw-shadow-hover: none;
}
