/* ===================================
   PREMIUM DESIGN SYSTEM
   Thomas Michael Jobst - Unternehmensberatung
   =================================== */

/* CSS Variables / Design Tokens */
:root {
    /* Colors - Premium Palette */
    --color-primary: #1e293b;      /* Slate 800 - Elegant Dark */
    --color-secondary: #0f172a;    /* Slate 900 - Deep */
    --color-accent: #1e40af;       /* Blue 800 - Professional */
    --color-accent-light: #3b82f6; /* Blue 500 - Highlight */
    
    /* Backgrounds */
    --color-bg-white: #ffffff;
    --color-bg-off-white: #f8fafc; /* Slate 50 */
    --color-bg-light: #f1f5f9;     /* Slate 100 */
    
    /* Text Colors */
    --color-text-primary: #0f172a;   /* Dark */
    --color-text-secondary: #475569; /* Slate 600 */
    --color-text-muted: #64748b;     /* Slate 500 */
    --color-text-light: #94a3b8;     /* Slate 400 */
    
    /* Borders */
    --color-border: #e2e8f0;        /* Slate 200 */
    --color-border-light: #f1f5f9;  /* Slate 100 */
    
    /* Accent Colors (sparsam verwenden) */
    --color-success: #059669;       /* Emerald 600 */
    --color-success-light: #10b981; /* Emerald 500 */
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-serif: 'Crimson Pro', 'Georgia', serif;
    
    /* Font Sizes - Fluid Typography */
    --text-display: clamp(2.5rem, 5vw, 4.5rem);    /* 40-72px */
    --text-h1: clamp(2rem, 4vw, 3rem);             /* 32-48px */
    --text-h2: clamp(1.5rem, 3vw, 2.25rem);        /* 24-36px */
    --text-h3: clamp(1.125rem, 2.5vw, 1.5rem);     /* 18-24px */
    --text-body: clamp(1rem, 2vw, 1.125rem);       /* 16-18px */
    --text-small: clamp(0.875rem, 1.8vw, 1rem);    /* 14-16px */
    
    /* Spacing - 8px Grid System */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 3rem;      /* 48px */
    --space-xl: 4rem;      /* 64px */
    --space-2xl: 6rem;     /* 96px */
    --space-3xl: 8rem;     /* 128px */
    
    /* Border Radius */
    --radius-sm: 0.375rem;  /* 6px */
    --radius-md: 0.75rem;   /* 12px */
    --radius-lg: 1rem;      /* 16px */
    
    /* Shadows - Dezent & Elegant */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ===================================
   BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-body);
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--text-h1);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-h2);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-h3);
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.text-display {
    font-size: var(--text-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-light {
    color: var(--color-text-light);
}

/* ===================================
   BUTTONS - Premium Style
   =================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: var(--text-body);
    font-weight: 500;
    font-family: var(--font-sans);
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background-color: var(--color-bg-off-white);
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    background-color: var(--color-accent-light);
    box-shadow: var(--shadow-md);
}

/* ===================================
   CARDS - Elegant & Luftig
   =================================== */

.card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-light);
    transform: translateY(-2px);
}

.card-minimal {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.card-minimal:hover {
    border-color: var(--color-accent-light);
    box-shadow: var(--shadow-md);
}

/* ===================================
   NAVIGATION - Glassmorphism
   =================================== */

.nav-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.nav-premium.scrolled {
    box-shadow: var(--shadow-sm);
}

/* ===================================
   SECTIONS - Großzügig
   =================================== */

.section {
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.section-lg {
    padding: clamp(5rem, 10vw, 10rem) 0;
}

.section-xl {
    padding: clamp(6rem, 12vw, 12rem) 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===================================
   GRID SYSTEM
   =================================== */

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

/* ===================================
   UTILITIES
   =================================== */

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

.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.bg-off-white {
    background-color: var(--color-bg-off-white);
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* ===================================
   HERO SECTION - Minimalistisch
   =================================== */

.hero-premium {
    background: linear-gradient(180deg, var(--color-bg-white) 0%, var(--color-bg-off-white) 100%);
    padding: clamp(7.5rem, 15vw, 12.5rem) 0 clamp(5rem, 10vw, 8.75rem);
    position: relative;
    overflow: hidden;
}

.hero-premium::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1" fill="%231e293b" opacity="0.03"/></svg>') repeat;
    pointer-events: none;
}

/* ===================================
   BARCODE DECORATIVE ELEMENT
   =================================== */

.barcode-decoration {
    position: absolute;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.barcode-decoration.top-right {
    top: 2rem;
    right: 2rem;
    width: 200px;
    transform: rotate(-90deg);
}

.barcode-decoration.bottom-left {
    bottom: 2rem;
    left: 2rem;
    width: 150px;
}

/* ===================================
   ACCENT BORDERS
   =================================== */

.border-accent-left {
    border-left: 4px solid var(--color-accent);
}

.border-accent-top {
    border-top: 4px solid var(--color-accent);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .section {
        padding: clamp(3rem, 6vw, 5rem) 0;
    }
    
    .card {
        padding: var(--space-md);
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ===================================
   ANIMATIONS - Dezent
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===================================
   FOCUS STYLES - Accessibility
   =================================== */

*:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* Remove outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}
