/* ==========================================================
   Geotrend GmbH - Design Tokens
   ========================================================== */

/* -- Local Fonts (DSGVO-konform, kein Google Fonts) -- */
@font-face {
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/Heebo-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: 'Heebo';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/Heebo-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 {
    /* -- Brand Colors -- */
    --color-accent: #e83535;
    --color-accent-hover: #d02e2e;
    --color-accent-light: rgba(232, 53, 53, 0.1);

    /* -- Light Mode (Default) -- */
    --color-bg: #ffffff;
    --color-bg-secondary: #f5f5f7;
    --color-bg-tertiary: #eaeaed;
    --color-text: #1a1e25;
    --color-text-secondary: #555a64;
    --color-text-muted: #8a8f9a;
    --color-border: #d8d8dc;
    --color-border-light: #eaeaed;
    --color-card-bg: #ffffff;
    --color-card-shadow: rgba(0, 0, 0, 0.08);
    --color-overlay: rgba(0, 0, 0, 0.5);
    --color-nav-bg: #ffffff;
    --color-code-bg: #f0f0f3;
    --color-viewer-bg: #f0f0f3;

    /* -- Typography -- */
    --font-family: 'Heebo', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-md: 1.125rem;   /* 18px */
    --font-size-lg: 1.25rem;    /* 20px */
    --font-size-xl: 1.5rem;     /* 24px */
    --font-size-2xl: 2rem;      /* 32px */
    --font-size-3xl: 2.5rem;    /* 40px */
    --font-size-4xl: 3.5rem;    /* 56px */

    --line-height-tight: 1.2;
    --line-height-base: 1.6;
    --line-height-loose: 1.8;

    /* -- Spacing -- */
    --space-2: 0.125rem;
    --space-4: 0.25rem;
    --space-6: 0.375rem;
    --space-8: 0.5rem;
    --space-10: 0.625rem;
    --space-12: 0.75rem;
    --space-14: 0.875rem;
    --space-16: 1rem;
    --space-20: 1.25rem;
    --space-24: 1.5rem;
    --space-32: 2rem;
    --space-40: 2.5rem;
    --space-48: 3rem;
    --space-56: 3.5rem;
    --space-64: 4rem;
    --space-80: 5rem;
    --space-96: 6rem;
    --space-120: 7.5rem;

    /* -- Layout -- */
    --max-width: 1200px;
    --nav-height: 64px;
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;

    /* -- Transitions -- */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* -- Shadows -- */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* -- Form-specific (Light) -- */
    --color-error-bg: #fef2f2;
    --color-error-border: #fecaca;
    --color-error-text: #991b1b;
    --color-success: #16a34a;

    /* -- Z-Index Scale -- */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
}

/* ==========================================================
   Dark Mode
   ========================================================== */

[data-theme="dark"] {
    --color-bg: #1a1e25;
    --color-bg-secondary: #282d37;
    --color-bg-tertiary: #323843;
    --color-text: #e0e0e0;
    --color-text-secondary: #a0a5b0;
    --color-text-muted: #6a7080;
    --color-border: #3a4050;
    --color-border-light: #323843;
    --color-card-bg: #282d37;
    --color-card-shadow: rgba(0, 0, 0, 0.3);
    --color-overlay: rgba(0, 0, 0, 0.7);
    --color-nav-bg: #1a1e25;
    --color-code-bg: #282d37;
    --color-viewer-bg: #1a1e25;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);

    --color-error-bg: #3d1a1a;
    --color-error-border: #6b2020;
    --color-error-text: #fca5a5;
    --color-success: #4ade80;
}

/* ==========================================================
   Responsive Breakpoints (via media queries in other files)
   Documented here for reference:
   - Mobile: < 768px
   - Tablet: 768px - 1024px
   - Desktop: > 1024px
   ========================================================== */
