/* ==========================================================================
   Design Tokens — teambuilding-olympiade.de
   Quelle: 03-Design-System.md — bei Änderungen dort UND hier pflegen.
   ========================================================================== */

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

:root {
  /* ---- Farben: Neutrals ---- */
  --color-ink: #12141a;
  --color-ink-soft: #1e212b;
  --color-paper: #f7f4ee;
  --color-paper-soft: #efeae0;
  --color-line: #dcd5c7;
  --color-line-dark: #2c303c;

  /* ---- Farben: Text ---- */
  --color-text: #14161c;
  --color-text-soft: #575a63;
  --color-text-on-dark: #f4f2ed;
  --color-text-on-dark-soft: #9a9da8;

  /* ---- Farben: Akzente ---- */
  --color-flame: #ff5a36;
  --color-flame-hover: #e64a28;
  --color-gold: #d6a84a;
  --color-gold-soft: #f0dca8;

  /* ---- Farben: Funktional ---- */
  --color-success: #2f7a5c;
  --color-focus: #3d7bff;

  /* ---- Typografie ---- */
  --font-display: "Clash Display", "Arial Black", sans-serif;
  --font-body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-display-xl: clamp(2.75rem, 6vw, 6rem);
  --fs-display-l: clamp(2.25rem, 4.2vw, 3.75rem);
  --fs-display-m: clamp(1.75rem, 2.8vw, 2.5rem);
  --fs-body-l: clamp(1.125rem, 1.3vw, 1.375rem);
  --fs-body-m: 1rem;
  --fs-body-s: 0.875rem;

  /* ---- Spacing (4px-Basis) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  --section-spacing: clamp(4rem, 8vw, 9rem);
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 5vw, 4rem);

  /* ---- Radius ---- */
  --radius-control: 8px;
  --radius-card: 20px;
  --radius-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-elevated: 0 20px 60px -20px rgba(18, 20, 26, 0.25);

  /* ---- Motion ---- */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-micro: 180ms;
  --dur-standard: 450ms;
  --dur-reveal: 900ms;

  /* ---- Breakpoints (Referenzwerte für JS, CSS nutzt Media Queries direkt) ---- */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1440px;
}

/* Reduced-Motion: Bewegungsintensive Custom Properties auf 0 setzen,
   JS liest zusätzlich prefers-reduced-motion selbst aus (siehe main.js). */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-reveal: 1ms;
    --dur-standard: 1ms;
  }
}
