/*
 * 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 {
  /* 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;
  --leading: 1.55;

  /* Farben (hell) */
  --color-bg: #faf9f6;
  --color-surface: #ffffff;
  --color-text: #1f2328;
  --color-muted: #5c6370;
  --color-border: #e3e1dc;
  --color-primary: #2f6f62;
  --color-primary-contrast: #ffffff;
  --color-accent: #b8832e;
  --color-highlight-bg: #f1efe7;   /* hervorgehobene Modi: Fokussitzung, Vorbereitung, Wochenrückblick */
  --color-coachee-bubble: #e8f1ee;
  --color-hermine-bubble: #ffffff;
  --color-danger: #a33a3a;
  --color-focus: #2f6f62;

  /* 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: #15171a;
    --color-surface: #1d2024;
    --color-text: #e7e9ec;
    --color-muted: #a2a9b3;
    --color-border: #2e3238;
    --color-primary: #6fb3a3;
    --color-primary-contrast: #0f1a17;
    --color-accent: #d6a75a;
    --color-highlight-bg: #23272c;
    --color-coachee-bubble: #1f2e2a;
    --color-hermine-bubble: #1d2024;
    --color-danger: #e07a7a;
    --color-focus: #6fb3a3;
  }
}

:root[data-theme="dark"] {
  --color-bg: #15171a;
  --color-surface: #1d2024;
  --color-text: #e7e9ec;
  --color-muted: #a2a9b3;
  --color-border: #2e3238;
  --color-primary: #6fb3a3;
  --color-primary-contrast: #0f1a17;
  --color-accent: #d6a75a;
  --color-highlight-bg: #23272c;
  --color-coachee-bubble: #1f2e2a;
  --color-hermine-bubble: #1d2024;
  --color-danger: #e07a7a;
  --color-focus: #6fb3a3;
}

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;
}
