
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
}

.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: rgba(255,255,255,0.95); 
    backdrop-filter: blur(16px); 
    z-index: 10000; 
}

.hero {
    padding-top: 76px; /* Exakt die Navbar-Höhe (76px) */
    min-height: calc(100vh - 76px);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
}

/* ==========================================================================
   INDEX-SPEZIFISCHE KOMPONENTEN - NICHT IN MAIN.CSS ENTHALTEN
   ========================================================================== */

/* Services Preview - Index-spezifische Erweiterungen */
.services-preview {
    padding: 80px 0;
    background: #f8fafc;
}

/* Why Choose Us - Index-spezifische Komponente */
.why-choose-us {
    padding: 80px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

/* CTA Section - Index-spezifische Komponente */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* ==========================================================================
   INDEX-SPEZIFISCHE MOBILE OPTIMIZATIONS
   ========================================================================== */

/* Zusätzliche Tablet-Optimierungen */
@media (max-width: 1024px) {
    .scroll-nav { 
        display: none !important; 
    }
    
    .scroll-hint { 
        display: block; 
    }
    
    .features-grid { 
        scroll-snap-type: x mandatory; 
    }
    
    .feature-item { 
        scroll-snap-align: center; 
        scroll-snap-stop: always; 
    }
    
    .paket-carousel { 
        scroll-snap-type: x mandatory; 
    }
    
    .plan-card { 
        scroll-snap-align: center; 
        scroll-snap-stop: always; 
    }
    
    .specs-grid { 
        scroll-snap-type: x mandatory; 
    }
    
    .spec-category { 
        scroll-snap-align: center; 
        scroll-snap-stop: always; 
    }
}

/* Erweiterte Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        background: rgba(255, 255, 255, 0.98); 
        backdrop-filter: blur(20px);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); 
        padding: 32px 0;
        gap: 24px; 
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link { 
        font-size: 1.1rem; 
        padding: 16px 0; 
    }
    
    .plan-card.empfohlen, 
    .plan-card.beliebt { 
        transform: none; 
    }
    
    .plan-card.empfohlen:hover, 
    .plan-card.beliebt:hover { 
        transform: translateY(-8px) scale(1.02); 
    }
    
    .feature-item { 
        min-width: clamp(260px, 70vw, 300px); 
        max-width: clamp(260px, 70vw, 300px); 
    }
    
    .plan-card { 
        min-width: clamp(300px, 80vw, 360px); 
        max-width: clamp(300px, 80vw, 360px); 
    }
    
    .spec-category { 
        min-width: clamp(280px, 75vw, 320px); 
        max-width: clamp(280px, 75vw, 320px); 
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

/* Kleine Mobile Geräte */
@media (max-width: 480px) {
    .features-grid { 
        padding: 0 16px; 
        gap: 20px; 
    }
    
    .feature-item { 
        min-width: clamp(240px, 85vw, 280px); 
        max-width: clamp(240px, 85vw, 280px); 
        height: clamp(180px, 25vw, 220px); 
    }
    
    .paket-carousel { 
        padding: 20px 16px 40px; 
        gap: 20px; 
    }
    
    .plan-card { 
        min-width: clamp(280px, 90vw, 320px); 
        max-width: clamp(280px, 90vw, 320px); 
    }
    
    .specs-grid { 
        padding: 20px 16px 40px; 
        gap: 20px; 
    }
    
    .spec-category { 
        min-width: clamp(260px, 85vw, 300px); 
        max-width: clamp(260px, 85vw, 300px); 
    }
    
    .cta-buttons { 
        flex-direction: column; 
        align-items: center; 
    }
}

/* ==========================================================================
   ACCESSIBILITY & ENHANCED FEATURES
   ========================================================================== */

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles können hier erweitert werden */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .feature-item, 
    .plan-card, 
    .spec-category, 
    .faq-item { 
        border: 2px solid #000; 
    }
    
    .scroll-nav { 
        border: 2px solid #000; 
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .horizontal-scroll-wrapper { 
        scroll-behavior: auto; 
    }
    
    .feature-item, 
    .plan-card, 
    .spec-category, 
    .faq-item, 
    .btn, 
    .scroll-nav { 
        transition: none; 
    }
}

/* Enhanced Focus States */
.horizontal-scroll-wrapper:focus { 
    outline: 3px solid #0B7BBC; 
    outline-offset: 2px; 
}

.feature-item:focus, 
.plan-card:focus, 
.spec-category:focus, 
.faq-question:focus { 
    outline: 3px solid #0B7BBC; 
    outline-offset: 2px; 
}

.btn:focus { 
    outline: 3px solid #0B7BBC; 
    outline-offset: 3px; 
}

/* ==========================================================================
   LOADING STATES & ANIMATIONS
   ========================================================================== */

/* Loading States */
.btn.loading { 
    pointer-events: none; 
    opacity: 0.8; 
}

.btn.loading::after {
    content: ''; 
    width: 16px; 
    height: 16px; 
    border: 2px solid transparent;
    border-top: 2px solid currentColor; 
    border-radius: 50%; 
    display: inline-block;
    animation: spin 1s linear infinite; 
    margin-left: 8px;
}

@keyframes spin { 
    to { 
        transform: rotate(360deg); 
    } 
}

/* Smooth Entrance Animations */
.feature-item, 
.plan-card, 
.spec-category {
    opacity: 0; 
    transform: translateY(30px); 
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

.plan-card:nth-child(1) { animation-delay: 0.2s; }
.plan-card:nth-child(2) { animation-delay: 0.4s; }
.plan-card:nth-child(3) { animation-delay: 0.6s; }
.plan-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp { 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* Performance optimizations */
.feature-item, 
.plan-card, 
.spec-category { 
    will-change: transform; 
    contain: layout style paint; 
}

.horizontal-scroll-wrapper { 
    contain: layout style; 
}

/* ==========================================================================
   SPEZIFISCHER FIX FÜR SECONDARY BUTTON IM HERO-BEREICH
   Nur der Secondary Button im Hero-Bereich bekommt schwarzen Text
   ========================================================================== */

/* Spezifischer Selektor nur für den Secondary Button im Hero-Bereich */
.hero .btn-secondary {
    background: rgba(37, 99, 235, 0.1);
    color: #374151; /* Schwarzer Text nur für diesen Button */
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.hero .btn-secondary:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
    color: #1e293b; /* Noch etwas dunkler beim Hover */
    transform: translateY(-2px);
}

/* Alle anderen Secondary Buttons behalten weißen Text */
.cta-section .btn-secondary,
.footer .btn-secondary,
.contact .btn-secondary,
.services .btn-secondary {
    background: rgba(37, 99, 235, 0.1);
    color: #e5e7eb; /* Weißer Text für alle anderen */
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.cta-section .btn-secondary:hover,
.footer .btn-secondary:hover,
.contact .btn-secondary:hover,
.services .btn-secondary:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
    color: #f8fafc; /* Heller weißer Text beim Hover */
    transform: translateY(-2px);
}