/* ===================================
   MODERN RESPONSIVE ENHANCEMENTS
   =================================== */

/* Tablet Landscape & Desktop */
@media (min-width: 769px) {
    /* Hero mit besserer Animation */
    .hero-modern {
        min-height: 90vh;
    }
    
    /* Service Cards mit besserer Hover-Parallax */
    .service-card-modern {
        transform-style: preserve-3d;
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    :root {
        --space-xl: 2.5rem;
        --space-2xl: 3.5rem;
        --space-3xl: 5rem;
    }
    
    .hero-content-modern {
        padding: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 1.5rem !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 2.5rem;
        --space-3xl: 3.5rem;
    }
    
    /* Hero Mobile Optimierung */
    .hero-modern {
        min-height: 70vh;
    }
    
    .hero-content-modern h2 {
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
    }
    
    .hero-content-modern p {
        font-size: clamp(1rem, 4vw, 1.25rem) !important;
    }
    
    /* Navigation Mobile */
    .nav-container {
        padding: 1rem !important;
    }
    
    .logo-text h1 {
        font-size: 1rem !important;
    }
    
    .logo-text p {
        font-size: 0.75rem !important;
    }
    
    .main-logo {
        height: 50px !important;
    }
    
    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .service-card-modern {
        padding: var(--space-lg) !important;
    }
    
    /* Modern Cards Mobile */
    .modern-card,
    .glass-card {
        padding: 1.5rem !important;
        border-radius: var(--radius-lg) !important;
    }
    
    /* Buttons Mobile */
    .btn-modern {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9375rem !important;
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Quote Section Mobile */
    .quote-modern {
        padding: 3rem 1.5rem !important;
    }
    
    .quote-modern blockquote {
        font-size: 1.125rem !important;
    }
    
    .quote-modern::before,
    .quote-modern::after {
        font-size: 80px !important;
        opacity: 0.05;
    }
    
    /* Footer Mobile */
    footer {
        padding: 3rem 1.5rem 1.5rem !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Section Padding Mobile */
    .intro,
    .services,
    .cta,
    .page-content {
        padding: 3rem 1.5rem !important;
    }
    
    /* Page Header Mobile */
    .page-header {
        padding: 6rem 1.5rem 3rem !important;
    }
    
    .page-header h1 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }
    
    /* Disable 3D transforms on mobile for better performance */
    .service-card-modern:hover,
    .modern-card:hover {
        transform: translateY(-8px) !important;
    }
    
    /* FAQ Mobile */
    .faq-question-modern {
        padding: 1rem !important;
        font-size: 0.95rem !important;
    }
    
    .faq-answer-modern {
        padding: 0 1rem !important;
    }
    
    .faq-modern.active .faq-answer-modern {
        padding: 0 1rem 1rem !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --space-lg: 1.25rem;
        --space-xl: 1.75rem;
    }
    
    .hero-modern {
        min-height: 60vh;
    }
    
    .service-icon-modern {
        width: 60px !important;
        height: 60px !important;
    }
    
    .service-icon-modern img {
        width: 45px !important;
        height: 45px !important;
    }
    
    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }
    
    h3 {
        font-size: clamp(1.125rem, 4vw, 1.5rem) !important;
    }
    
    p {
        font-size: 0.9375rem !important;
    }
}

/* Touch Device Optimierungen */
@media (hover: none) and (pointer: coarse) {
    /* Deaktiviere Hover-Effekte auf Touch-Geräten */
    .service-card-modern:hover {
        transform: none !important;
    }
    
    .modern-card:hover {
        transform: translateY(0) !important;
    }
    
    /* Größere Touch-Targets */
    .btn-modern,
    .nav-link-modern,
    .faq-question-modern {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Deaktiviere Parallax auf Touch */
    .hero-image-modern {
        animation: none !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image-modern,
    .main-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    /* Bei Bedarf Dark Mode Styles hier */
}

/* Reduced Motion für Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-image-modern {
        animation: none !important;
    }
    
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .scale-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    .nav-modern,
    .whatsapp-float,
    .cta,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .modern-card,
    .glass-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
