/* ============================================
   CSS DESIGN TOKENS - Swiss Federal Design System
   KBOB Fachdatenkatalog
   ============================================ */

:root {
    /* =====================
       COLOR SYSTEM
       ===================== */

    /* Primary Brand Colors */
    --color-primary: #DC0018;
    --color-primary-light: #F7001D;
    --color-primary-dark: #B00014;

    /* Interactive Colors */
    --color-interactive: #006699;
    --color-interactive-hover: #005580;
    --color-focus: #66AFE9;
    --color-focus-input: #6366f1;

    /* Neutral Colors */
    --color-black: #000000;
    --color-text-primary: #1a2a3a;
    --color-text-secondary: #4a5568;
    --color-text-muted: #718096;
    --color-border: #e2e8f0;
    --color-border-light: #e5e7eb;
    --color-border-input: #9ca3af;
    --color-bg-alt: #f7fafc;
    --color-bg-light: #f0f4f7;
    --color-white: #FFFFFF;

    /* Surface Colors */
    --color-surface: #f7fafc;
    --color-surface-alt: #edf2f7;
    --color-surface-blue: #ebf4ff;
    --color-highlight: #FFFAB2;

    /* Status Colors */
    --color-success: #3C763D;
    --color-success-bg: #DFF0D8;
    --color-warning: #8A6D3B;
    --color-warning-bg: #FCF8E3;
    --color-error: #A94442;
    --color-error-bg: #F2DEDE;
    --color-info: #31708F;
    --color-info-bg: #D9EDF7;

    /* Dark UI Colors (footer, contact sections) */
    --color-surface-dark: #3d4f5f;
    --color-surface-darker: #2d3a44;

    /* =====================
       TYPOGRAPHY
       ===================== */

    --font-family-primary: 'Noto Sans', 'Helvetica Neue', 'Arial', sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Type Scale (Major Third - 1.25 ratio) */
    --text-display: 2.25rem;    /* 36px */
    --text-h1: 1.75rem;         /* 28px */
    --text-h2: 1.5rem;          /* 24px */
    --text-h3: 1.25rem;         /* 20px */
    --text-h4: 1.125rem;        /* 18px */
    --text-h5: 1rem;            /* 16px */
    --text-body: 1rem;          /* 16px */
    --text-body-sm: 0.875rem;   /* 14px */
    --text-body-xs: 0.6875rem;  /* 11px */
    --text-caption: 0.75rem;    /* 12px */
    --text-label: 0.875rem;     /* 14px */

    /* Font Size Aliases (for component compatibility) */
    --font-size-sm: var(--text-body-sm);  /* 14px */
    --font-size-xs: var(--text-caption);  /* 12px */

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-snug: 1.3;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --line-height-loose: 1.8;

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* =====================
       SPACING (4px base unit)
       ===================== */

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;

    /* =====================
       LAYOUT
       ===================== */

    --container-max-width: 1564px;
    --container-padding: var(--space-xl);  /* 32px - consistent edge padding for all sections */
    --grid-gutter: 24px;

    /* Breakpoints */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-logo: 1024px;  /* Logo full/minimal switch */

    /* Component Dimensions */
    --header-height: 146px;
    --nav-height: 64px;
    --footer-height: 64px;
    --toolbar-height: 46px;

    /* =====================
       BORDERS & SHADOWS
       ===================== */

    --border-radius-sm: 2px;
    --border-radius: 4px;
    --border-radius-lg: 8px;
    --border-radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* =====================
       TRANSITIONS
       ===================== */

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* =====================
       Z-INDEX SCALE
       ===================== */

    --z-dropdown: 100;
    --z-topbar: 150;
    --z-sticky: 200;
    --z-modal-backdrop: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}
