/* ==========================================================================
   webagent.design – Design-Tokens
   Schriften (selbst gehostet), Farben, Abstände, Schatten. Dunkel ist die
   Vorgabe und passt zu webagent.de; Hell folgt dem System oder dem Schalter
   (html[data-theme]).
   ========================================================================== */

/* Reihenfolge aller Ebenen – einmal hier festgelegt, die übrigen Dateien nutzen nur die Namen. */
@layer tokens, reset, base, ui, layout, components, pages, utilities;

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-ext-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Geist";
  src: url("../fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-ext-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@layer tokens {
  :root {
    color-scheme: dark;

    /* Marke: Cyan und Violett wie auf webagent.de, Rosa als dritte Farbe */
    --brand-1: #22d3ee;
    --brand-2: #8b5cf6;
    --brand-3: #f472b6;
    --amber: #fbbf24;
    --green: #34d399;
    --red: #fb7185;

    /* Flächen */
    --bg: #060811;
    --bg-2: #0a0e1a;
    --surface: rgb(255 255 255 / .05);
    --surface-2: rgb(255 255 255 / .085);
    --surface-solid: #0e1424;
    --surface-solid-2: #131b2f;
    --line: rgb(255 255 255 / .1);
    --line-strong: rgb(255 255 255 / .18);

    /* Text */
    --text: #eef3fc;
    --muted: #a3b2cb;
    --dim: #71819c;
    --accent: var(--brand-1);
    --accent-ink: #03141b;
    --link: #67e8f9;
    --focus: #67e8f9;
    --danger: #fda4af;

    /* Verläufe */
    /* Flächen mit Text darauf (Schaltflächen, Zahlen): Dunkel auf hellem Verlauf, Kontrast ≥ 4,5 : 1 */
    --grad-brand: linear-gradient(135deg, #22d3ee, #a78bfa);
    --grad-brand-wide: linear-gradient(100deg, var(--brand-1) 0%, var(--brand-2) 55%, var(--brand-3) 100%);

    /* Form */
    --radius-s: 8px;
    --radius: 14px;
    --radius-l: 22px;
    --radius-xl: 32px;
    --shadow-1: 0 1px 0 rgb(255 255 255 / .05) inset, 0 10px 30px rgb(0 0 0 / .35);
    --shadow-2: 0 30px 80px rgb(0 0 0 / .55);
    --ring: 0 0 0 1px var(--line-strong);

    /* Typografie */
    --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-text: "Geist", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --fs-hero: clamp(3rem, 1.2rem + 7.4vw, 7.2rem);
    --fs-h1: clamp(2rem, 1rem + 3.9vw, 4.4rem);
    --fs-h2: clamp(1.8rem, 1.2rem + 1.9vw, 2.9rem);
    --fs-h3: clamp(1.15rem, 1rem + .5vw, 1.4rem);
    --fs-lead: clamp(1.05rem, .98rem + .4vw, 1.3rem);

    /* Raster */
    --container: 1260px;
    --gutter: clamp(16px, 4vw, 44px);
    --header-h: 68px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-in: cubic-bezier(.4, 0, 1, 1);

    /* Karten-Akzent: wird je Karte aus dem Bild gesetzt (style="--a:#…") */
    --a: var(--brand-1);
    --b: var(--brand-2);
  }

  /* Hell: System oder Schalter */
  :root[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f6fb;
    --bg-2: #e9edf7;
    --surface: rgb(255 255 255 / .72);
    --surface-2: rgb(255 255 255 / .95);
    --surface-solid: #ffffff;
    --surface-solid-2: #f1f4fb;
    --line: rgb(15 23 42 / .1);
    --line-strong: rgb(15 23 42 / .18);
    --text: #0b1224;
    --muted: #46546e;
    --dim: #76839c;
    --accent: #0e7490;
    --accent-ink: #ffffff;
    --grad-brand: linear-gradient(135deg, #0e7490, #7c3aed);
    --link: #0e7490;
    --focus: #0891b2;
    --danger: #be123c;
    --shadow-1: 0 1px 0 rgb(255 255 255 / .8) inset, 0 8px 24px rgb(30 41 80 / .1);
    --shadow-2: 0 24px 60px rgb(30 41 80 / .18);
  }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
      color-scheme: light;
      --bg: #f4f6fb;
      --bg-2: #e9edf7;
      --surface: rgb(255 255 255 / .72);
      --surface-2: rgb(255 255 255 / .95);
      --surface-solid: #ffffff;
      --surface-solid-2: #f1f4fb;
      --line: rgb(15 23 42 / .1);
      --line-strong: rgb(15 23 42 / .18);
      --text: #0b1224;
      --muted: #46546e;
      --dim: #76839c;
      --accent: #0e7490;
      --accent-ink: #ffffff;
      --grad-brand: linear-gradient(135deg, #0e7490, #7c3aed);
      --link: #0e7490;
      --focus: #0891b2;
      --danger: #be123c;
      --shadow-1: 0 1px 0 rgb(255 255 255 / .8) inset, 0 8px 24px rgb(30 41 80 / .1);
      --shadow-2: 0 24px 60px rgb(30 41 80 / .18);
    }
  }
}
