/*
 * Design-Tokens für hermine-app (Plan Abschnitt 3: Farben und Schriften an einer Stelle).
 * Schrift Inter 4.1 (OFL, static/fonts/LICENSE-Inter-OFL.txt) wird selbst gehostet. Keine CDNs.
 * Werte sind ein Startpunkt; Anpassungen nur hier, nicht in Komponenten.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable-Italic.woff2") format("woff2");
}

:root { color-scheme: light dark; } /* eigener Dunkelmodus: Browser sollen nicht umfärben (Feedback #26) */

:root {
  /* Schrift */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem; /* Schriftzug „Hermine“, größer als Seitenüberschriften */
  --leading: 1.55;

  /* Farben (hell). Marke: Orange #F18423, Dunkelblau #0A091F (wie OpenWebUI-Branding/Manifest) */
  --color-bg: #fbf8f4;
  --color-surface: #ffffff;
  --color-text: #1d1b2e;
  --color-muted: #5f5b70;
  --color-border: #ece4da;
  --color-primary: #F18423;          /* Flächen: Knöpfe, Markierungen */
  --color-primary-contrast: #0A091F; /* Schrift auf Orange (7,5:1); Weiß hätte nur 2,6:1 */
  --color-primary-text: #A9520A;     /* Orange als Schrift auf hellem Grund (5,1:1) */
  --color-accent: #0A091F;
  --color-highlight-bg: #fdf0e3;   /* hervorgehobene Modi: Fokussitzung, Vorbereitung, Wochenrückblick */
  --color-coachee-bubble: #fde9d6;
  --color-hermine-bubble: #ffffff;
  --color-danger: #b3261e;
  --color-focus: #F18423;

  /* Abstände, Radien, Schatten */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);

  /* Layout */
  --content-max: 46rem;
  --tap-min: 44px; /* Mindestgröße für Bedienelemente auf dem Smartphone */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0A091F;
    --color-surface: #16152e;
    --color-text: #ece9f5;
    --color-muted: #a19cb5;
    --color-border: #2a2846;
    --color-primary: #F18423;
    --color-primary-contrast: #0A091F;
    --color-primary-text: #F18423;
    --color-accent: #F5A05A;
    --color-highlight-bg: #1f1d3a;
    --color-coachee-bubble: #2a1f1a;
    --color-hermine-bubble: #16152e;
    --color-danger: #ff8a80;
    --color-focus: #F18423;
  }
}

:root[data-theme="dark"] {
  --color-bg: #0A091F;
  --color-surface: #16152e;
  --color-text: #ece9f5;
  --color-muted: #a19cb5;
  --color-border: #2a2846;
  --color-primary: #F18423;
  --color-primary-contrast: #0A091F;
  --color-primary-text: #F18423;
  --color-accent: #F5A05A;
  --color-highlight-bg: #1f1d3a;
  --color-coachee-bubble: #2a1f1a;
  --color-hermine-bubble: #16152e;
  --color-danger: #ff8a80;
  --color-focus: #F18423;
}

html {
  font-family: var(--font-sans);
  font-size: 100%;
  line-height: var(--leading);
  color: var(--color-text);
  background: var(--color-bg);
}

body {
  margin: 0;
  background: var(--color-bg);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
