/* Mobile Optimierungen für iPhone und kleine Bildschirme */

/* Hero Section Mobile Optimierungen */
@media (max-width: 575px) {
    /* Reduziere padding-top für mobile */
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 60px 0 80px;
        min-height: auto;
    }
    
    .hero-text h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-text p.lead {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .hero-stats {
        margin-top: 2rem !important;
    }
    
    .stat-item h3 {
        font-size: 1.75rem !important;
    }
    
    .stat-item p {
        font-size: 0.85rem !important;
    }
    
    /* Layered Images - viel kleiner für mobile und verhindern Überlagerung */
    .layered-images-container {
        height: 200px !important;
        margin-top: 2rem;
        margin-bottom: 1rem !important;
        overflow: hidden !important;
    }
    
    .bottom-image-wrapper {
        transform: scale(0.45) !important;
    }
    
    .top-image-wrapper {
        transform: scale(0.35) !important;
    }
    
    /* Animationen auf mobil deaktivieren */
    .bottom-image,
    .top-image {
        animation: none !important;
    }
    
    /* Wellen für mobile anpassen */
    .hero-shape {
        height: 60px !important;
    }
    
    .wave-container {
        height: 60px !important;
    }
    
    .single-wave {
        background-size: 800px 60px !important;
        height: 60px !important;
    }
    
    @keyframes wave-animation {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-800px);
        }
    }
}

/* Abstände global reduzieren für mobile */
@media (max-width: 575px) {
    .section {
        padding: 40px 0 !important;
    }
    
    .section-header {
        margin-bottom: 30px !important;
    }
    
    .section-header h2 {
        font-size: 1.75rem !important;
    }
    
    .section-description {
        font-size: 1rem !important;
    }
    
    /* Container padding reduzieren */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Features Section Mobile */
@media (max-width: 575px) {
    .features-section {
        padding: 50px 0 !important;
    }
    
    .features-grid {
        margin-top: 2rem !important;
        gap: 1.5rem !important;
    }
    
    .feature-item {
        padding: 1.5rem !important;
        margin-bottom: 0 !important;
    }
    
    .feature-icon {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 1rem !important;
    }
    
    .feature-icon i {
        font-size: 1.5rem !important;
    }
    
    .feature-item h3 {
        font-size: 1.25rem !important;
    }
}

/* How It Works Section Mobile - KRITISCHE FIXES */
@media (max-width: 575px) {
    .section-how-it-works {
        padding: 60px 0 !important;
    }
    
    .hiw-step-block {
        margin-bottom: 60px !important;
    }
    
    .hiw-step-number {
        font-size: 3rem !important;
    }
    
    .hiw-step-title {
        font-size: 1.5rem !important;
    }
    
    .hiw-step-description {
        font-size: 1rem !important;
    }
    
    /* Icons viel kleiner und zentriert */
    .hiw-image-container {
        height: 200px !important;
        margin-bottom: 20px !important;
    }
    
    .hiw-main-image {
        max-width: 50% !important;
        max-height: 50% !important;
        opacity: 0.9 !important;
    }
    
    /* Animationen auf mobil deaktivieren */
    .hiw-main-image {
        animation: none !important;
    }
    
    /* Wellen für How-It-Works anpassen */
    .section-how-it-works .wave-top {
        height: 60px !important;
    }
    
    .section-how-it-works .wave-top .wave-container {
        height: 60px !important;
    }
    
    .section-how-it-works .wave-top .single-wave {
        background-size: 800px 60px !important;
        height: 60px !important;
    }
    
    .section-how-it-works .wave-bottom svg {
        height: 60px !important;
    }
    
    .section-how-it-works .hero-shape {
        height: 60px !important;
    }
    
    .section-how-it-works .hero-shape .wave-container {
        height: 60px !important;
    }
    
    .section-how-it-works .hero-shape .single-wave {
        background-size: 800px 60px !important;
        height: 60px !important;
    }
}

/* Pricing Section Mobile */
@media (max-width: 575px) {
    .pricing-section {
        padding: 50px 0 !important;
    }
    
    .pricing-toggle {
        margin-bottom: 2rem !important;
        flex-wrap: wrap;
    }
    
    .pricing-plans {
        gap: 1.5rem !important;
    }
    
    .pricing-card {
        padding: 1.75rem !important;
    }
    
    .pricing-card.featured {
        transform: scale(1) !important;
    }
    
    .pricing-card.featured:hover {
        transform: scale(1) translateY(-5px) !important;
    }
    
    .price {
        font-size: 2.25rem !important;
    }
}

/* Satisfaction Section Mobile - KRITISCHE FIXES */
@media (max-width: 575px) {
    .satisfaction-section {
        padding: 50px 0 !important;
    }
    
    /* WICHTIG: Icons ausblenden auf mobilen Geräten */
    .satisfaction-images.left,
    .satisfaction-images.right {
        display: none !important;
    }
    
    .satisfaction-wrapper {
        min-height: auto !important;
        padding: 40px 20px !important;
    }
    
    .satisfaction-heading {
        font-size: 2rem !important;
        line-height: 1.4 !important;
    }
    
    /* Wellen anpassen */
    .satisfaction-section .wave-top,
    .satisfaction-section .hero-shape {
        height: 60px !important;
    }
    
    .satisfaction-section .wave-top .wave-container,
    .satisfaction-section .hero-shape .wave-container {
        height: 60px !important;
    }
    
    .satisfaction-section .wave-top .single-wave,
    .satisfaction-section .hero-shape .single-wave {
        background-size: 800px 60px !important;
        height: 60px !important;
    }
}

/* Contact Form Mobile */
@media (max-width: 575px) {
    .contact-section {
        padding: 50px 0 !important;
    }
    
    .contact-form {
        padding: 1.5rem !important;
    }
    
    .contact-info {
        padding: 1.5rem !important;
    }
}

/* Navbar Mobile */
@media (max-width: 575px) {
    .navbar {
        padding: 0.75rem 0 !important;
    }
    
    .navbar-brand img.logo {
        height: 35px !important;
        width: 35px !important;
    }
    
    .navbar-brand {
        font-size: 1.25rem !important;
    }
}

/* Testimonials Mobile */
@media (max-width: 575px) {
    .testimonials-section {
        padding: 50px 0 !important;
    }
    
    .testimonial-card {
        padding: 1.5rem !important;
        margin: 0.5rem !important;
    }
    
    .testimonial-text {
        font-size: 1rem !important;
    }
}

/* Footer Mobile */
@media (max-width: 575px) {
    footer {
        padding: 40px 0 20px !important;
    }
    
    .footer-widget {
        margin-bottom: 2rem !important;
    }
}

/* Allgemeine Text-Optimierungen */
@media (max-width: 575px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.35rem !important;
    }
    
    h4 {
        font-size: 1.15rem !important;
    }
    
    p {
        font-size: 0.95rem !important;
    }
}

/* Buttons Mobile */
@media (max-width: 575px) {
    .btn {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.95rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* Verhindere horizontales Scrollen */
@media (max-width: 575px) {
    body {
        overflow-x: hidden !important;
    }
    
    .row {
        margin-left: -12px !important;
        margin-right: -12px !important;
    }
    
    .row > * {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Tablet-Optimierungen (iPads, etc.) */
@media (min-width: 576px) and (max-width: 991px) {
    .satisfaction-images .floating-image {
        width: 80px !important;
        height: 80px !important;
    }
    
    .hiw-main-image {
        max-width: 70% !important;
        max-height: 70% !important;
    }
    
    .layered-images-container {
        height: 300px !important;
    }
    
    .bottom-image-wrapper {
        transform: scale(0.6) !important;
    }
    
    .top-image-wrapper {
        transform: scale(0.5) !important;
    }
}

/* Optimierung für sehr kleine Bildschirme (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero-text h1 {
        font-size: 1.75rem !important;
    }
    
    .layered-images-container {
        height: 180px !important;
    }
    
    .bottom-image-wrapper {
        transform: scale(0.4) !important;
    }
    
    .top-image-wrapper {
        transform: scale(0.3) !important;
    }
    
    .satisfaction-heading {
        font-size: 1.75rem !important;
    }
    
    .hiw-step-number {
        font-size: 2.5rem !important;
    }
}
