/* TRAINR – Design-Tokens „Spielbericht“: Papier, Tinte, Schiri-Gelb. Torwart-Lila ist fest und wird von Theme und Vereinsfarbe nie überschrieben. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo.woff2") format("woff2");
}

:root {
  --keeper: #9154d9;
  --keeper-ink: #ffffff;
  --keeper-soft: #efe6fb;

  /* Signal = Schiri-Gelb (Vereinsfarbe kann es ersetzen), Fill = gewählte/primäre Flächen */
  --signal: #ffd400;
  --on-signal: #14130e;
  --accent: var(--signal);
  --on-accent: var(--on-signal);
  --fill: #14130e;
  --on-fill: #f6f3ea;
  --brand: #14130e;
  --brand-2: #14130e;
  --red-card: #d62718;

  --bg: #efebe0;
  --bg-grad: none;
  --surface: #faf8f2;
  --surface-2: #f4f1e8;
  --surface-3: #e6e1d3;
  --ink: #14130e;
  --ink-2: #4a483f;
  --ink-3: #747166;
  --line: #d5cfbf;
  --line-2: #b3ac9a;
  --rule: #14130e;
  --hero: #14130e;
  --hero-ink: #f6f3ea;
  --hero-muted: #a8a495;
  --hero-line: rgba(246, 243, 234, .16);
  --ok: #1d7036;
  --ok-soft: #dfeedd;
  --warn: #9a5800;
  --warn-soft: #fbebc8;
  --danger: #c0251a;
  --danger-soft: #f8dfda;
  --focus: #14130e;
  --scrim: rgba(20, 19, 14, .5);

  --pitch: #2f6a3e;
  --pitch-2: #2a5f37;
  --pitch-line: rgba(255, 255, 255, .55);
  --player: #ffd400;
  --player-ink: #14130e;
  --opponent: #f6f3ea;
  --opponent-ink: #14130e;
  --cone: #ff7a1a;

  /* Schwerpunkt-Bereiche (Technik, Spielverständnis, Bewegung, Torwart) */
  --f-technik: #1d7036; --f-technik-soft: #dfeedd;
  --f-taktik: #1f5fae; --f-taktik-soft: #dde7f5;
  --f-athletik: #c4500a; --f-athletik-soft: #fbe3d0;
  --f-torwart: #9154d9; --f-torwart-soft: #efe6fb;
  --f-none: #8a877b; --f-none-soft: #ebe7dc;

  --r-xs: 2px; --r-sm: 3px; --r-md: 4px; --r-lg: 6px; --r-xl: 8px; --r-pill: 999px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --shadow-1: none;
  --shadow-2: 0 10px 30px rgba(20, 19, 14, .14);
  --shadow-3: 0 22px 60px rgba(20, 19, 14, .28);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --cond: 72%;
  --semi: 88%;
  --font-scale: 1;
  --touch: 48px;
  --tabbar-h: 64px;
  --appbar-h: 56px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.2, 1.3, .4, 1);
  --dur-1: 140ms; --dur-2: 240ms; --dur-3: 380ms;
  color-scheme: light;
}

/* Flutlicht: dunkles Stadion, Gelb leuchtet. */
:root[data-theme="dark"] {
  --fill: #ffd400;
  --on-fill: #14130e;
  --brand: #ffd400;
  --brand-2: #ffd400;
  --bg: #0e0e0b;
  --surface: #171713;
  --surface-2: #1d1d18;
  --surface-3: #2a2922;
  --ink: #f2efe5;
  --ink-2: #bfbbad;
  --ink-3: #8e8b7f;
  --line: #2d2c25;
  --line-2: #47453b;
  --rule: #f2efe5;
  --hero: #1b1b16;
  --hero-ink: #f6f3ea;
  --hero-muted: #a8a495;
  --ok: #7dd08f; --ok-soft: #17301d;
  --warn: #f5c060; --warn-soft: #36290f;
  --danger: #ff8f80; --danger-soft: #3b1a15;
  --focus: #ffd400;
  --scrim: rgba(0, 0, 0, .65);
  --keeper-soft: #2b2140;
  --pitch: #24502f;
  --pitch-2: #1f4729;
  --f-technik: #7dd08f; --f-technik-soft: #17301d;
  --f-taktik: #86b4f0; --f-taktik-soft: #16283f;
  --f-athletik: #f5a764; --f-athletik-soft: #3a2513;
  --f-torwart: #c39af0; --f-torwart-soft: #2b2140;
  --f-none: #8e8b7f; --f-none-soft: #2a2922;
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .5);
  --shadow-3: 0 22px 60px rgba(0, 0, 0, .65);
  color-scheme: dark;
}

/* Motion-Stufen: off = keine Animation, reduced = nur kurze Überblendungen. */
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
:root[data-motion="reduced"] { --dur-1: 80ms; --dur-2: 120ms; --dur-3: 160ms; }
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before, :root[data-motion="reduced"] *::after {
  animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
