/**
 * Design System - CSS Variables & Reset
 * 
 * Core design tokens and base styles
 * This file contains all reusable design variables
 * 
 * @package Asivo
 * @version 1.0.0
 */

/* ================================
   CSS Custom Properties (Variables)
   ================================ */

:root {
    /* Colors - ASIVO Brand */
    --color-primary: #4F46E5;           /* Indigo Primär */
    --color-primary-hover: #4338CA;     /* Indigo Hover */
    --color-primary-light: #A5B4FC;     /* Indigo Light */
    --color-accent: #00D1FF;            /* Electric Cyan */
    --color-accent-hover: #00B5E0;      /* Cyan Hover */
    
    /* Backgrounds */
    --color-dark-bg: #0B0F14;           /* Hero Gradient End */
    --color-dark-bg-secondary: #0F1522; /* Hero Gradient Start */
    --color-card-bg: #111826;           /* Card Background */
    --color-card-border: #24324A;       /* Card Border */
    --color-form-bg: #0E1420;           /* Formfeld Background */
    --color-form-border: #24324A;       /* Formfeld Border */
    
    /* Text Colors */
    --color-white: #FFFFFF;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #9CA3AF;
    --color-gray-light: #9CA3AF;
    
    /* Typography - Satoshi & Playfair Display */
    --font-headline: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-ui: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Font Sizes - Fluid Typography (ASIVO Scale) */
    --text-xs: clamp(0.8125rem, 0.75rem + 0.25vw, 0.875rem);      /* 13-14px */
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);           /* 14-16px */
    --text-base: clamp(1.125rem, 1rem + 0.5vw, 1.1875rem);        /* 18-19px Body */
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);           /* 18-24px */
    --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);                 /* 24-32px */
    --text-2xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);          /* 28-40px H3 */
    --text-3xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);              /* 40-56px H2 */
    --text-4xl: clamp(3rem, 2.5rem + 2.5vw, 5rem);                /* 48-80px H1 */
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Spacing - 8px base grid */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-5: 2.5rem;   /* 40px */
    --space-6: 3rem;     /* 48px */
    --space-8: 4rem;     /* 64px */
    --space-10: 5rem;    /* 80px */
    --space-12: 6rem;    /* 96px */
    --space-16: 8rem;    /* 128px */
    
    /* Container */
    --container-max: 1280px;
    --container-padding: var(--space-4);
    
    /* Border Radius - ASIVO Style */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px - Primary Button */
    --radius-lg: 0.75rem;    /* 12px - Cards */
    --radius-xl: 1rem;       /* 16px */
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-glow-primary: 0 0 20px rgba(79, 70, 229, 0.4);      /* Indigo Glow */
    --shadow-glow-accent: 0 0 20px rgba(0, 209, 255, 0.3);       /* Cyan Glow */
    
    /* Z-index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-tooltip: 400;
}

/* ================================
   CSS Reset & Base Styles
   ================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-dark-bg);
    background: linear-gradient(180deg, var(--color-dark-bg-secondary) 0%, var(--color-dark-bg) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================================
   Typography Base
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    font-weight: var(--font-semibold);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--color-white);
    margin: 0;
}

h1 { 
    font-size: var(--text-4xl);
    line-height: 1.05;
    font-weight: var(--font-bold);
}

h2 { 
    font-size: var(--text-3xl);
    line-height: 1.1;
}

h3 { 
    font-size: var(--text-2xl);
    line-height: 1.15;
}

h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin: 0;
    max-width: 65ch;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-accent);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ================================
   Utility Classes
   ================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    z-index: 1000;
    font-weight: var(--font-bold);
}

.skip-link:focus {
    top: 0;
}

/* ================================
   Container
   ================================ */

.section__container,
.header-container,
.footer-container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ================================
   Sections
   ================================ */

.section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
    position: relative;
}

.section__header {
    margin-bottom: var(--space-8);
}

.section__title {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.section__arrow {
    color: var(--color-accent);
    font-size: 0.8em;
}

.section__description {
    color: var(--color-text-secondary);
    max-width: 600px;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-3);
    }
    
    .section {
        padding-top: var(--space-8);
        padding-bottom: var(--space-8);
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: var(--space-2);
    }
}
