/* ============================================
   DESIGN SYSTEM TOKENS v2.0
   Für KMU-Websites (Schweiz)
   ============================================ */

:root {
    /* ==========================================
        BRAND COLORS - PRO KUNDE ANPASSEN
       ========================================== */
    
    /* Primary - Hauptfarbe */
    --c-primary: #dc2626;           /* Default: Rot */
    --c-primary-dark: #b91c1c;
    --c-primary-light: #ef4444;
    --c-primary-soft: #fee2e2;      /* Sehr hell für Hintergründe */
    
    /* Accent - Optional, für Highlights */
    --c-accent: #f59e0b;
    --c-accent-light: #fbbf24;
    
    /* ==========================================
        NEUTRALS
       ========================================== */
    --c-bg: #f9fafb;
    --c-surface: #ffffff;
    --c-dark: #111827;
    --c-text: #374151;
    --c-text-soft: #6b7280;
    --c-text-muted: #9ca3af;
    --c-border: #e5e7eb;
    --c-border-strong: #d1d5db;
    
    /* Semantic */
    --c-success: #22c55e;
    --c-warning: #f59e0b;
    --c-error: #ef4444;
    --c-focus: #3b82f6;
    
    /* ==========================================
        SPACING (4px Grid)
       ========================================== */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-20: 80px;
    --sp-24: 96px;
    
    /* ==========================================
        TOUCH & INTERACTION
       ========================================== */
    --touch-min: 44px;
    --touch-comfortable: 48px;
    
    /* ==========================================
        TYPOGRAPHY
       ========================================== */
    --font-display: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    --leading-tight: 1.15;
    --leading-snug: 1.4;
    --leading-normal: 1.6;
    --leading-relaxed: 1.7;
    
    /* ==========================================
        LAYOUT
       ========================================== */
    --max-width: 1000px;
    --max-width-narrow: 600px;
    --max-width-wide: 1200px;
    --header-height: 72px;
    
    /* ==========================================
       ⚡ TRANSITIONS
       ========================================== */
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
    
    /* ==========================================
        SHADOWS
       ========================================== */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    
    /* ==========================================
        BORDER RADIUS
       ========================================== */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 50px;
}


/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--c-text);
    background: var(--c-surface);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 3px solid var(--c-focus);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
    outline: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--sp-4);
    z-index: 1000;
    padding: var(--sp-3) var(--sp-6);
    background: var(--c-dark);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
    top: var(--sp-4);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================
   UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

.container-narrow {
    max-width: var(--max-width-narrow);
}

.container-wide {
    max-width: var(--max-width-wide);
}

.section {
    padding: var(--sp-20) var(--sp-6);
}

.section-alt {
    background: var(--c-bg);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--c-primary);
}
