/* ==========================================
   SOLVERO.DE - CORE DESIGN SYSTEM
   Schwarz & Weiß Minimalistische Ästhetik
   ========================================== */

:root {
    /* ===== CORE COLORS ===== */
    --black: #000000;
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --dark-gray: #1a1a1a;
    --accent-black: #0a0a0a;

    /* ===== OPACITY LAYERS FOR DEPTH ===== */
    --black-90: rgba(0, 0, 0, 0.9);
    --black-70: rgba(0, 0, 0, 0.7);
    --black-50: rgba(0, 0, 0, 0.5);
    --black-30: rgba(0, 0, 0, 0.3);
    --black-20: rgba(0, 0, 0, 0.2);
    --black-10: rgba(0, 0, 0, 0.1);
    --black-05: rgba(0, 0, 0, 0.05);

    --white-90: rgba(255, 255, 255, 0.9);
    --white-70: rgba(255, 255, 255, 0.7);
    --white-50: rgba(255, 255, 255, 0.5);
    --white-30: rgba(255, 255, 255, 0.3);
    --white-20: rgba(255, 255, 255, 0.2);
    --white-10: rgba(255, 255, 255, 0.1);

    /* ===== GRAYSCALE PALETTE ===== */
    --gray-100: #0a0a0a;
    --gray-200: #1a1a1a;
    --gray-300: #333333;
    --gray-400: #4d4d4d;
    --gray-500: #666666;
    --gray-600: #808080;
    --gray-700: #999999;
    --gray-800: #b3b3b3;
    --gray-900: #cccccc;
    --gray-950: #e6e6e6;

    /* ===== TYPOGRAPHY ===== */
    --font-display: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Georgia', 'Times New Roman', serif;
    --font-mono: 'Courier New', 'Courier', monospace;

    /* ===== SPACING SCALE (8px base) ===== */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2.5rem;    /* 40px */
    --space-xl: 4rem;      /* 64px */
    --space-xxl: 6rem;     /* 96px */
    --space-xxxl: 8rem;    /* 128px */

    /* ===== TYPOGRAPHY SCALE ===== */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 2rem;      /* 32px */
    --text-4xl: 2.5rem;    /* 40px */
    --text-5xl: 3rem;      /* 48px */
    --text-6xl: 4rem;      /* 64px */
    --text-7xl: 5rem;      /* 80px */

    /* ===== TRANSITIONS ===== */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-elastic: 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* ===== SHADOWS ===== */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 30px 60px rgba(0, 0, 0, 0.25);

    /* ===== Z-INDEX LAYERS ===== */
    --z-background: -1;
    --z-base: 0;
    --z-content: 1;
    --z-elevated: 10;
    --z-dropdown: 50;
    --z-header: 100;
    --z-overlay: 900;
    --z-modal: 1000;
    --z-tooltip: 1100;

    /* ===== BORDERS ===== */
    --border-thin: 1px;
    --border-medium: 2px;
    --border-thick: 3px;
    --border-radius-sm: 2px;
    --border-radius-md: 4px;
    --border-radius-lg: 8px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;

    /* ===== LAYOUT ===== */
    --container-max-width: 1200px;
    --container-padding: var(--space-lg);
    --header-height: 80px;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.8;
    overflow-x: hidden;
    letter-spacing: 0.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   TYPOGRAPHY HIERARCHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--text-7xl);
    letter-spacing: 4px;
    line-height: 1.1;
}

h2 {
    font-size: var(--text-5xl);
    letter-spacing: 2px;
}

h3 {
    font-size: var(--text-3xl);
    font-weight: 400;
    letter-spacing: 1px;
}

h4 {
    font-size: var(--text-2xl);
    font-weight: 400;
    letter-spacing: 1.5px;
}

h5 {
    font-size: var(--text-xl);
    font-weight: 500;
    letter-spacing: 1px;
}

h6 {
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.5px;
}

p {
    font-size: var(--text-base);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-base);
}

strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

blockquote {
    border-left: var(--border-thick) solid var(--black);
    padding-left: var(--space-lg);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--gray-400);
}

code {
    font-family: var(--font-mono);
    background: var(--light-gray);
    padding: 0.2em 0.4em;
    border-radius: var(--border-radius-sm);
    font-size: 0.9em;
}

pre {
    font-family: var(--font-mono);
    background: var(--light-gray);
    padding: var(--space-md);
    border-radius: var(--border-radius-md);
    overflow-x: auto;
    margin: var(--space-md) 0;
}

pre code {
    background: none;
    padding: 0;
}

/* ==========================================
   LISTS
   ========================================== */

ul, ol {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

li {
    margin-bottom: var(--space-xs);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--container-padding);
}

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Text Transform */
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

/* Font Weight */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flex Utilities */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Spacing Utilities */
.m-0 { margin: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-xxl { margin-top: var(--space-xxl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-xxl { margin-bottom: var(--space-xxl); }

.p-0 { padding: 0; }
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-full { max-width: 100%; }

/* Fade-in Animation (controlled by JS) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow),
                transform var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

@media (max-width: 1024px) {
    :root {
        --container-padding: var(--space-md);
    }

    h1 { font-size: var(--text-6xl); }
    h2 { font-size: var(--text-4xl); }
    h3 { font-size: var(--text-2xl); }
}

@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-sm);
    }

    h1 {
        font-size: var(--text-4xl);
        letter-spacing: 2px;
    }
    h2 {
        font-size: var(--text-3xl);
        letter-spacing: 1.5px;
    }
    h3 {
        font-size: var(--text-xl);
    }
    h4 {
        font-size: var(--text-lg);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: var(--text-3xl);
    }
    h2 {
        font-size: var(--text-2xl);
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--black);
    color: var(--white);
    padding: var(--space-sm);
    text-decoration: none;
    z-index: var(--z-tooltip);
}

.skip-to-main:focus {
    top: 0;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen reader only */
.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;
}
