/* =================================
   10. Responsive Design
   ================================= */

   @media (max-width: 1024px) and (max-height: 768px) {
    .hero-logo img {
        height: min(220px, 35vh);
    }
    
    .hero {
        padding-top: 80px; 
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) and (max-width: 1366px) and (max-height: 1024px) and (orientation: landscape) {
    .hero-logo img {
        height: min(280px, 35vh);
    }
}

@media (min-width: 1024px) and (max-height: 850px) {
    .hero {
        padding-top: 90px;
    }
    
    .hero-logo img {
        height: min(200px, 30vh);
    }
    
    .hero-logo {
        margin-bottom: 1rem;
    }
}

@media (min-width: 1200px) and (max-height: 820px) {
    .hero-logo img {
        height: min(180px, 28vh);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
        margin: 0 auto;
        max-width: 500px;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--background-dark);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: left 0.3s ease-in-out;
        padding-top: 2rem;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .section {
        padding: 80px 0;
    }

    .section h2 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .map-container {
        height: 400px;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-section h3 {
        margin-bottom: 0.8rem;
    }

    .footer-social-links {
        justify-content: center;
    }
}

@media (max-height: 700px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 20px 60px;
    }
    
    .hero-logo {
        margin-bottom: 1rem;
    }
    
    .hero-logo img {
        height: min(180px, 30vh);
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-height: 600px) {
    .hero-logo img {
        height: min(150px, 25vh);
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: 20px;
    }

    .logo-img {
        height: 38px;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .hero-logo img {
        height: 110px;
    }

    .cta-button {
        padding: 14px 30px;
        font-size: 0.9rem;
    }

    .service-card,
    .contact-card {
        padding: 2rem 1.5rem;
    }

    .map-container {
        height: 350px;
    }

    footer {
        padding: 3rem 0 1.5rem 0;
    }

    .footer-grid {
        gap: 2rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem 15px;
    }

    .hero-logo img {
        height: 90px;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .map-container {
        height: 300px;
    }
}

/* Extra Fix für sehr breite aber niedrige Bildschirme */
@media (min-width: 1200px) and (max-height: 820px) {
    .hero-logo img {
        height: min(180px, 28vh);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Alte 16:9 Monitore (1366x768) */
@media (min-width: 1280px) and (max-width: 1400px) and (max-height: 800px) {
    .hero {
        padding-top: 90px;
    }
    
    .hero-logo img {
        height: min(190px, 30vh);
    }
    
    .hero-logo {
        margin-bottom: 1.2rem;
    }
}

/* Alte 16:10 Monitore (1440x900, 1680x1050) */
@media (min-width: 1400px) and (max-height: 950px) {
    .hero {
        padding-top: 85px;
    }
    
    .hero-logo img {
        height: min(220px, 32vh);
    }
}

/* Alte 5:4 Monitore (1280x1024) */
@media (min-width: 1200px) and (min-height: 1000px) and (max-height: 1050px) {
    .hero-logo img {
        height: min(300px, 38vh);
    }
}

/* Sehr alte kleine Auflösungen (1024x768) */
@media (max-width: 1024px) and (min-height: 700px) and (max-height: 800px) {
    .hero {
        padding-top: 85px;
    }
    
    .hero-logo img {
        height: min(180px, 28vh);
    }
}