/* Mobile Optimierungen für How-it-works Bereich */

/* Tablet und kleiner */
@media (max-width: 768px) {
    /* Responsive Headlines */
    .hero-headlines {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .main-headline {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .sub-headline {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .how-it-works-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .how-it-works-visual-column {
        order: -1;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        width: 100%;
        margin-bottom: 3rem;
    }
    
    .how-it-works-visual {
        width: 100%;
        max-width: 450px;
        aspect-ratio: 16/9;
        max-height: 280px;
        margin: 0 auto;
    }
    
    .how-it-works-visual-small {
        width: 100%;
        max-width: 380px;
        aspect-ratio: 16/9;
        max-height: 200px;
        margin: 0 auto;
    }
    
    /* Bildunterschriften besser positionieren */
    .image-caption,
    .image-caption-small {
        text-align: center;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.85);
        border-radius: 0 0 var(--radius) var(--radius);
        color: white;
    }
    
    .image-caption h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        color: white;
        font-weight: 600;
    }
    
    .image-caption p {
        font-size: 0.9rem;
        line-height: 1.4;
        color: #e5e7eb;
    }
    
    .image-caption-small h5 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        color: white;
        font-weight: 600;
    }
    
    .image-caption-small p {
        font-size: 0.8rem;
        line-height: 1.3;
        color: #d1d5db;
    }
    
    .how-it-works-text h2 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }
    
    .how-it-works-text p {
        text-align: center;
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .process-steps-detailed {
        margin-bottom: 1.5rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 0.75rem;
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }
    
    .step-content h3 {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .step-content p {
        text-align: center;
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .how-it-works-cta {
        margin-top: 2rem;
        text-align: center;
        width: 100%;
    }
    
    .how-it-works-cta .btn {
        max-width: 320px;
        font-size: 1rem;
        padding: 1rem 2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .image-caption h4 {
        font-size: 0.9rem;
    }
    
    .image-caption p {
        font-size: 0.8rem;
    }
    
    .image-caption-small h5 {
        font-size: 0.8rem;
    }
    
    .image-caption-small p {
        font-size: 0.7rem;
    }
    
    /* Allgemeine Container-Anpassungen */
    .container {
        padding: 0 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
}

/* Smartphone */
@media (max-width: 480px) {
    /* Responsive Headlines */
    .hero-headlines {
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .main-headline {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .sub-headline {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    .how-it-works {
        padding: 2rem 0;
    }
    
    .how-it-works-content {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .how-it-works-visual {
        max-height: 160px;
    }
    
    .how-it-works-visual-small {
        max-height: 100px;
    }
    
    .how-it-works-text h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .how-it-works-text p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .step-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .step-content h3 {
        font-size: 0.9rem;
    }
    
    .step-content p {
        font-size: 0.8rem;
    }
    
    .how-it-works-cta .btn {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
    
    .image-caption-small h5 {
        font-size: 0.75rem;
    }
    
    .image-caption-small p {
        font-size: 0.65rem;
    }
}

/* Sehr kleine Geräte */
@media (max-width: 375px) {
    .how-it-works-text h2 {
        font-size: 1.1rem;
    }
    
    .how-it-works-text p {
        font-size: 0.8rem;
    }
    
    .step-content h3 {
        font-size: 0.85rem;
    }
    
    .step-content p {
        font-size: 0.75rem;
    }
    
    .how-it-works-cta .btn {
        font-size: 0.8rem;
        padding: 0.7rem 0.9rem;
    }
}