/* ============================================
   RESPONSIVE IMPROVEMENTS 2025
   Erweiterte Mobile-Optimierungen
   ============================================ */

/* ==========================================
   BREAKPOINTS
   ========================================== */
/*
   Mobile Small:  < 480px
   Mobile:        < 768px
   Tablet:        768px - 968px
   Desktop:       > 968px
*/

/* ==========================================
   GLOBALE MOBILE OPTIMIERUNGEN
   ========================================== */

/* Verbessertes Touch-Targeting */
@media (max-width: 768px) {
    /* Alle interaktiven Elemente mindestens 44x44px */
    a, button, .btn, input, select, textarea {
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Größere Touch-Bereiche für Links */
    .nav-link, .mobile-nav-link, .dropdown-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
    }
    
    /* Verbesserte Schrift-Lesbarkeit */
    body {
        font-size: 16px; /* Verhindert Zoom auf iOS */
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Optimierte Container-Breiten */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

@media (max-width: 968px) {
    /* Header Sticky-Verhalten */
    .header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
    }
    
    /* Logo Größe */
    .logo img {
        height: 36px;
        width: auto;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        padding: 0.75rem;
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile Navigation Overlay */
    .mobile-overlay.active {
        backdrop-filter: blur(4px);
    }
    
    /* Mobile Nav Menü */
    .mobile-nav {
        padding-top: 4rem;
    }
    
    .mobile-nav-link {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .mobile-dropdown-link {
        font-size: 0.9375rem;
        padding: 0.875rem 1rem 0.875rem 2rem;
    }
}

/* Sehr kleine Screens */
@media (max-width: 480px) {
    .logo img {
        height: 32px;
    }
    
    .mobile-nav {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */

@media (max-width: 968px) {
    .hero {
        padding: 2.5rem 0;
        min-height: auto;
        background-attachment: scroll;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero h1 {
        font-size: clamp(1.625rem, 5vw, 2rem);
        line-height: 1.25;
        margin-bottom: 1rem;
    }
    
    .hero-highlight::after {
        height: 0.1em;
    }
    
    .hero-description {
        font-size: 0.9375rem;
        line-height: 1.6;
        max-width: 100%;
    }
    
    .hero-badge {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.25rem;
    }
    
    /* CTA Buttons */
    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        gap: 0.875rem;
    }
    
    .cta-group .btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    /* Hero Stats */
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .stat-item {
        text-align: center;
        padding: 1.25rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 1rem;
        backdrop-filter: blur(10px);
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.9375rem;
    }
    
    /* Hero Image Grid */
    .hero-image-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .hero-img-card {
        aspect-ratio: auto;
        padding: 1.25rem;
        min-height: 120px;
    }
    
    .hero-img-card i {
        width: 40px;
        height: 40px;
        margin-bottom: 0.875rem;
    }
    
    .hero-img-card h4 {
        font-size: 1rem;
    }
    
    .hero-img-card p {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
        margin-top: 66px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .cta-group .btn {
        font-size: 0.9375rem;
        padding: 0.875rem 1.25rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .hero-img-card {
        padding: 1rem;
        min-height: 100px;
    }
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

@media (max-width: 968px) {
    .services-grid,
    .services-grid-row-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .service-image {
        height: 200px;
        object-fit: cover;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 64px;
        height: 64px;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    .service-features li {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .service-image {
        height: 160px;
    }
    
    .service-content {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
    }
    
    .service-card h3 {
        font-size: 1.125rem;
    }
    
    .service-card p {
        font-size: 0.875rem;
    }
    
    .service-features li {
        font-size: 0.8125rem;
    }
}

/* ==========================================
   WHY SECTION
   ========================================== */

@media (max-width: 968px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .why-card {
        max-width: 500px;
        margin: 0 auto;
        padding: 1.5rem;
    }
    
    .why-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }
    
    .why-card h4 {
        font-size: 1.125rem;
    }
    
    .why-card p {
        font-size: 0.9375rem;
    }
}

@media (max-width: 640px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .why-card {
        padding: 1.25rem;
    }
}

/* ==========================================
   PROCESS SECTION
   ========================================== */

@media (max-width: 968px) {
    .process-section::before {
        display: none;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-step {
        max-width: 500px;
        margin: 0 auto;
        padding: 1.5rem;
    }
    
    .process-number {
        width: 72px;
        height: 72px;
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }
    
    .process-step h4 {
        font-size: 1.125rem;
    }
    
    .process-step p {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .process-step {
        padding: 1.25rem;
    }
    
    .process-number {
        width: 64px;
        height: 64px;
        font-size: 1.625rem;
    }
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form {
        max-width: 600px;
        margin: 0 auto;
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: row;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 44px;
        height: 44px;
    }
    
    .contact-details h4 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9375rem;
    }
    
    /* Formular */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Verhindert Zoom */
        padding: 0.875rem;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    .contact-info,
    .contact-form {
        padding: 1.25rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================
   FOOTER
   ========================================== */

@media (max-width: 968px) {
    footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-grid-new,
    .footer-grid-compact {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        padding-right: 0;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    .footer-brand p {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-social,
    .footer-social-bottom {
        justify-content: center;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links a {
        font-size: 0.9375rem;
    }
    
    .partners-compact,
    .partners-grid {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .footer-section h4 {
        font-size: 0.9375rem;
    }
    
    .footer-links a {
        font-size: 0.875rem;
    }
    
    .partner-name,
    .partners-compact span {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* ==========================================
   FAQ SECTION
   ========================================== */

@media (max-width: 968px) {
    .faq-container {
        max-width: 100%;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem;
        font-size: 0.9375rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem 1.25rem;
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
        font-size: 0.875rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0.875rem 1rem;
        padding-top: 0;
    }
}

/* ==========================================
   COMPARISON GRID
   ========================================== */

@media (max-width: 968px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .comparison-box {
        max-width: 600px;
        margin: 0 auto;
        padding: 1.5rem;
    }
    
    .comparison-header {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .comparison-icon {
        width: 56px;
        height: 56px;
    }
    
    .comparison-title {
        font-size: 1.25rem;
    }
    
    .comparison-item-title {
        font-size: 1rem;
    }
    
    .comparison-item-desc {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .comparison-box {
        padding: 1.25rem;
    }
    
    .comparison-icon {
        width: 48px;
        height: 48px;
    }
    
    .comparison-title {
        font-size: 1.125rem;
    }
}

/* ==========================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================== */

@media (max-width: 768px) {
    /* Alle Buttons */
    .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        border-radius: 2rem;
    }
    
    /* CTA Button im Header */
    .cta-btn {
        padding: 0.625rem 1.125rem;
        font-size: 0.875rem;
    }
    
    /* Back to Top Button */
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 110px;
        right: 20px;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

@media (max-width: 768px) {
    /* Text Alignment */
    .text-center-mobile {
        text-align: center !important;
    }
    
    /* Hide on Mobile */
    .hide-mobile {
        display: none !important;
    }
    
    /* Show only on Mobile */
    .show-mobile {
        display: block !important;
    }
    
    /* Full Width on Mobile */
    .full-width-mobile {
        width: 100% !important;
    }
    
    /* Spacing Adjustments */
    .spacing-sm-mobile {
        padding: 1rem !important;
    }
    
    .spacing-md-mobile {
        padding: 1.5rem !important;
    }
}

/* ==========================================
   LANDSCAPE OPTIMIERUNGEN
   ========================================== */

@media (max-width: 968px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .cta-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .cta-group .btn {
        flex: 1;
        min-width: 200px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .stat-item {
        padding: 0.875rem;
    }
    
    .hero-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .header,
    .mobile-bar,
    .back-to-top,
    .mobile-nav,
    .mobile-overlay,
    .mobile-menu-btn,
    .cookie-banner,
    .social-link,
    .language-switcher {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .hero {
        background: #f0f0f0;
        color: #000;
        page-break-after: avoid;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */

/* Fokus-Styles für Tastatur-Navigation */
@media (max-width: 768px) {
    a:focus,
    button:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 3px solid var(--primary-orange);
        outline-offset: 2px;
    }
    
    /* Skip-Link für Screen-Reader */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 0;
        background: var(--primary-orange);
        color: var(--white);
        padding: 8px;
        text-decoration: none;
        z-index: 10000;
    }
    
    .skip-link:focus {
        top: 0;
    }
}

/* ==========================================
   PERFORMANCE OPTIMIERUNGEN
   ========================================== */

@media (max-width: 768px) {
    /* Reduziere Animationen für bessere Performance */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Optimiere Bilder */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ==========================================
   DARK MODE SUPPORT (Optional)
   ========================================== */

@media (max-width: 768px) and (prefers-color-scheme: dark) {
    /* Diese Styles werden nur aktiviert, wenn der Nutzer Dark Mode bevorzugt */
    /* Aktuell deaktiviert, kann bei Bedarf eingeschaltet werden */
    
    /* body {
        background: var(--gray-900);
        color: var(--white);
    } */
}
