/* Critical CSS - Above the fold styling für sofortiges Rendering */

/* CSS Reset und Base Styles - kritisch für Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    line-height: 1.6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header - Above the fold */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 4rem 1rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Navigation - kritisch für UX */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem;
}

/* Container - Layout kritisch */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid - Layout für Hauptkategorien */
.laptop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Buttons - CTA kritisch */
.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Mobile-First - kritisch für Performance */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
        min-height: 50vh;
    }
    
    .laptop-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Loading-Optimierung */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.loaded {
    opacity: 1;
}

/* Cookie Notice - GDPR Compliance */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid #3498db;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-notice.hidden {
    display: none;
}

.cookie-notice p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-notice a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.cookie-notice a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cookie-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cookie-btn.accept {
    background: #27ae60;
    color: white;
}

.cookie-btn.accept:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.cookie-btn.decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-btn.decline:hover {
    background: white;
    color: #2c3e50;
}

.cookie-btn.settings {
    background: #3498db;
    color: white;
}

.cookie-btn.settings:hover {
    background: #2980b9;
}

@media (max-width: 768px) {
    .cookie-notice {
        padding: 1.5rem 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* Font-Display Optimierung für bessere Performance */
body {
    font-display: swap;
}
