/* ============================================================
   Pluvidex — Design-Tokens
   Quelle: design-system/project/tokens/ (unverändert übernommen)
   Fonts: self-hosted woff2 (aus dem Explainer-Bundle extrahiert)
   statt Google-Fonts-CDN — DSGVO-sauber, keine externen Requests.
   ============================================================ */

/* ---------- Webfonts (latin + latin-ext) ---------- */

/* Space Grotesk — Display/Headlines (variable, 500–700) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-var-latin.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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-var-latin-ext.woff2') format('woff2');
  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;
}

/* IBM Plex Sans — Body/UI (variable, 400–700) */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-var-latin.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-sans-var-latin-ext.woff2') format('woff2');
  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;
}

/* IBM Plex Mono — Zahlen/Daten (400/500/600) */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-400-latin.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-500-latin.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-600-latin.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-600-latin-ext.woff2') format('woff2');
  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;
}

:root {
  /* Systemschrift überall: nutzt die native Schrift des jeweiligen Geräts/OS
     (San Francisco auf Apple, Segoe UI auf Windows, Roboto auf Android …).
     Keine Webfont-Dateien nötig, lädt sofort, wirkt neutral und vertraut.
     Zahlen bleiben über die .mono-Klasse via tabular-nums sauber ausgerichtet. */
  --font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-system);
  --font-body: var(--font-system);
  --font-mono: var(--font-system);
}

/* ---------- Farben ----------
   Forest = Vertrauen/Landwirtschaft (primär). Wheat = Ernte (Akzent).
   Sky = Wetter/Daten. Warme Sand-Neutraltöne statt kaltem Grau. */
:root {
  /* Forest (primary) */
  --forest-950: #0E1F16;
  --forest-900: #15301F;
  --forest-800: #1D4229;
  --forest-700: #26512F;
  --forest-600: #3D7A4C;
  --forest-500: #5B9967;
  --forest-200: #BEDAC5;
  --forest-100: #E3EDE4;
  --forest-50:  #F3F7F1;

  /* Wheat (accent) */
  --wheat-700: #9C7A1D;
  --wheat-600: #B8912A;
  --wheat-500: #C9A227;
  --wheat-300: #E4C866;
  --wheat-100: #F6EBC9;

  /* Sky (data / weather) */
  --sky-700: #1F4E63;
  --sky-600: #2F6F8F;
  --sky-500: #4A8FAE;
  --sky-200: #BFDCE6;
  --sky-100: #E1EEF1;

  /* Sand (warm neutrals) */
  --sand-950: #201E18;
  --sand-800: #3A362C;
  --sand-600: #605A48;
  --sand-500: #7A755F;
  --sand-300: #B5AF9B;
  --sand-200: #D9D3C4;
  --sand-100: #EFEBDF;
  --sand-50:  #F8F6F0;
  --white: #FFFFFF;

  /* Semantic status */
  --status-success: #3D7A4C;
  --status-success-bg: #E3EDE4;
  --status-warning: #B8912A;
  --status-warning-bg: #F6EBC9;
  --status-danger: #A23B2E;
  --status-danger-bg: #F5E2DE;
  --status-info: #2F6F8F;
  --status-info-bg: #E1EEF1;

  /* Semantic aliases */
  --surface-page: var(--sand-50);
  --surface-card: var(--white);
  --surface-sunken: var(--sand-100);
  --surface-inverse: var(--forest-900);
  --surface-brand: var(--forest-800);

  --border-subtle: var(--sand-200);
  --border-strong: var(--sand-300);
  --border-brand: var(--forest-600);

  --text-primary: var(--sand-950);
  --text-secondary: var(--sand-600);
  --text-tertiary: var(--sand-500);
  --text-inverse: var(--sand-50);
  --text-brand: var(--forest-700);
  --text-link: var(--sky-700);
  --text-link-hover: var(--sky-600);

  --brand-primary: var(--forest-700);
  --brand-primary-hover: var(--forest-800);
  --brand-primary-active: var(--forest-900);
  --accent-wheat: var(--wheat-500);
  --accent-sky: var(--sky-600);
}

/* ---------- Typo-Skala ---------- */
:root {
  --text-2xs: 12px;
  --text-xs: 13px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 19px;
  --text-xl: 23px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 46px;
  --text-5xl: 58px;

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-label: 0.06em;
}

/* ---------- Spacing, Radius, Container ---------- */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --container-max: 1200px;
}

/* ---------- Elevation & Motion (warm getönte Schatten, ruhige Bewegung) ---------- */
:root {
  --shadow-xs: 0 1px 2px rgba(32, 30, 24, 0.06);
  --shadow-sm: 0 2px 6px rgba(32, 30, 24, 0.08);
  --shadow-md: 0 6px 16px rgba(32, 30, 24, 0.10);
  --shadow-lg: 0 16px 40px rgba(32, 30, 24, 0.14);
  --shadow-focus: 0 0 0 3px rgba(61, 122, 76, 0.28);

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
}
