/*
 * Design-Tokens – Jugendblasorchester Bautzen (Konzept, Abschnitt 5.2/5.3)
 *
 * Alle Farben, Schriften, Abstände und Radien der Website stehen hier.
 * Kontraste werden mit werkzeuge/kontrast-pruefen.py geprüft (WCAG 2.2 AA).
 * Werte nur hier ändern, nie direkt in site.css.
 */

/* ---------- Schriften (vom eigenen Server, SIL Open Font License) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* ---------- Farben ---------- */
  --color-navy: #1A2534;          /* Text, Footer – Hausfarbe */
  --color-navy-soft: #2C3B52;     /* Hover auf Navy-Flächen */
  --color-sky: #2A66CF;           /* Links, Primär-Buttons, Ensemble JBO (aus #2F6FDB für 4,5:1 auf Papier abgedunkelt) */
  --color-sky-dark: #1D4FA6;      /* Hover, Links auf hellblauer Fläche */
  --color-sky-light: #DCE9FB;     /* Flächen, Tags – hellblaue Orchesterhemden */
  --color-sky-on-navy: #A9C8F7;   /* Links auf Navy */
  --color-mint: #2BB59A;          /* Ensemble Junior Band – nur Fläche mit Navy-Text */
  --color-mint-light: #D6F3EC;
  --color-brass: #FFC233;         /* Akzent: Mitspielen!, Datums-Badges – nur mit Navy-Text */
  --color-brass-light: #FFF2CC;
  --color-coral: #E8503A;         /* Status abgesagt (Fläche/Icon) */
  --color-coral-dark: #B3301C;    /* Status abgesagt (Text) */
  --color-coral-light: #FDE6E1;
  --color-paper: #FAF8F4;         /* Seitenhintergrund */
  --color-white: #FFFFFF;         /* Karten */
  --color-text-muted: #4E5A6B;    /* Sekundärtext */
  --color-border: #E7E1D6;        /* dekorative Linien */
  --color-border-strong: #7D8796; /* Rahmen von Bedienelementen (≥ 3:1) */
  --color-focus: #1D4FA6;         /* Fokusrahmen */

  /* Ensemble-Farbcode */
  --ensemble-jbo: var(--color-sky);
  --ensemble-jbo-flaeche: var(--color-sky-light);
  --ensemble-junior-band: var(--color-mint);
  --ensemble-junior-band-flaeche: var(--color-mint-light);
  --ensemble-alle: var(--color-navy);

  /* ---------- Typografie ---------- */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* fluide Skala (320 px → 1280 px) */
  --step--2: 0.8125rem;
  --step--1: 0.9375rem;
  --step-0: 1.125rem;                                    /* Fließtext */
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(1.875rem, 1.5rem + 1.875vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.65rem + 3vw, 3.75rem);
  --step-5: clamp(2.625rem, 1.8rem + 4.2vw, 5rem);

  --leading: 1.6;
  --leading-tight: 1.12;
  --measure: 68ch;

  /* ---------- Abstände ---------- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-section: clamp(3rem, 2rem + 4vw, 6rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);

  --container: 74rem;
  --container-narrow: 46rem;

  /* ---------- Formen ---------- */
  --radius-s: 0.5rem;
  --radius-m: 1rem;
  --radius-l: 1.5rem;
  --radius-pill: 999px;
  --shadow-s: 0 1px 2px rgb(26 37 52 / 0.06), 0 2px 8px rgb(26 37 52 / 0.06);
  --shadow-m: 0 2px 6px rgb(26 37 52 / 0.06), 0 12px 32px rgb(26 37 52 / 0.1);
  --tap: 2.75rem;              /* Mindestgröße von Touch-Zielen (44 px) */

  /* ---------- Bewegung ---------- */
  --dauer: 180ms;
  --kurve: cubic-bezier(0.2, 0.7, 0.2, 1);

  --kopf-hoehe: 4.5rem;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dauer: 0ms;
  }
}
