/* =============================================
   RESPONSIVE DESIGN (Mobile First)
   ============================================= */

/* Tablet & Mobile */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 3%;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Kontakt-Layout anpassen */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile First (max-width: 768px) */
@media (max-width: 768px) {
    /* Navbar für mobile */
    .navbar {
        padding: 0.8rem 3%;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    /* Hero Anpassungen */
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn-lg {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* Section Padding */
    .hero-single {
        padding: 3rem 3%;
    }
    
    .services-section,
    .contact-section,
    .about-section {
        padding: 4rem 3%;
    }
    
    /* CTA Box */
    .cta-box {
        padding: 2rem;
    }
    
    /* Trust Grid */
    .trust-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* Map Größe */
    .map-container iframe {
        height: 300px;
    }
    
    /* Footer Links */
    .footer-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    /* Testimonial */
    .testimonial-section blockquote {
        font-size: 1.2rem;
    }
}

/* Smartphone (max-width: 480px) */
@media (max-width: 480px) {
    /* Navbar */
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 0.8rem;
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .contact-info-top {
        order: 2;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-overlay,
    .hero-content {
        padding: 2rem;
    }
    
    /* Buttons */
    .btn-lg {
        font-size: 0.95rem;
        padding: 1rem 1.5rem;
        width: 100%;
        margin: 0.3rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    /* CTA Box */
    .cta-box {
        padding: 2rem 1rem;
    }
    
    /* Trust Icons */
    .trust-box {
        padding: 1.5rem;
    }
    
    .trust-box i {
        font-size: 2rem;
    }
    
    /* Quick Form */
    .quick-form {
        padding: 1.5rem;
    }
    
    .quick-form input,
    .quick-form select,
    .quick-form textarea {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    /* Map */
    .map-container iframe {
        height: 250px;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem;
    }
    
    /* WhatsApp Button - kleiner auf Mobile */
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* Buttons im CTA */
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn-lg {
        width: 100%;
        margin: 0;
    }
}

/* Accessibility - High Contrast Mode Unterstützung */
@media (prefers-contrast: high) {
    :root {
        --gray-light: #ffffff;
        --gray-medium: #cccccc;
        --gray-dark: #333333;
    }
    
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Motion Reduktion für barrierefreie Nutzung */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Druckansicht */
@media print {
    .navbar,
    .whatsapp-float,
    .hero-overlay,
    .trust-elements,
    .cta-buttons {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem;
        background: var(--white) !important;
    }
    
    body {
        font-size: 12pt;
    }
}