/* --- Responsive Design für Quadrant42 --- */

/* ----------------------------------- */
/* --- Tablet & Große Smartphones --- */
/* --- Breakpoint: 992px --- */
/* ----------------------------------- */
@media (max-width: 992px) {
    .container {
        padding: 0 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .content-section h2 {
        font-size: 2.2rem;
    }
}

/* ----------------------------------- */
/* --- Mobile Navigation & Layout --- */
/* --- Breakpoint: 768px --- */
/* ----------------------------------- */
@media (max-width: 768px) {
    /* --- Mobile Navigation --- */
    .nav-links {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 15, 30, 0.98);
        backdrop-filter: blur(15px);
        transition: right 0.4s ease-in-out;
        z-index: 101;
    }

    .mobile-nav.active {
        right: 0;
    }

    .mobile-nav a {
        color: var(--primary-text);
        text-decoration: none;
        font-size: 1.8rem;
        font-family: var(--font-orbitron);
        opacity: 0;
        transform: translateY(20px);
    }
    
    .mobile-nav.active a {
       animation: navLinkFade 0.5s ease forwards;
    }
    .mobile-nav a:nth-child(1) { animation-delay: 0.2s; }
    .mobile-nav a:nth-child(2) { animation-delay: 0.3s; }
    .mobile-nav a:nth-child(3) { animation-delay: 0.4s; }
    .mobile-nav .lang-switcher {
        margin-top: 20px;
        opacity: 0;
        transform: translateY(20px);
        animation: navLinkFade 0.5s ease forwards 0.5s;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* --- Allgemeine Layout-Anpassungen --- */
    .container {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.4;
    }

    .content-section {
        padding: 80px 20px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 25px;
    }
    .testimonial-text {
        font-size: 1.1rem;
    }

    /* --- NEU: Kontakt-Layout wird einspaltig --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-text-wrapper h2 {
        text-align: center; /* Auf Mobilgeräten wieder zentrieren */
    }
}


/* ----------------------------------- */
/* --- Kleine Smartphones --- */
/* --- Breakpoint: 480px --- */
/* ----------------------------------- */
@media (max-width: 480px) {
    .logo-container {
        padding: 0;
        border: none;
        background: none;
        box-shadow: none;
    }
    .logo img {
        height: 40px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .content-section h2 {
        font-size: 1.9rem;
        margin-bottom: 40px;
    }

    #contact-form {
        gap: 15px;
    }

    .legal-page h1, .legal-page h2 {
        font-size: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}


/* ----------------------------------- */
/* --- Sehr kleine Smartphones (iPhone SE etc.) --- */
/* --- Breakpoint: 360px --- */
/* ----------------------------------- */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .project-card, .services-list li {
        padding: 20px;
    }

    .cta-button {
        padding: 12px 25px;
    }
}