/* =========================================
   TABLET
   Anpassungen für kleinere Laptops & Tablets
========================================= */
@media (max-width: 992px) {

    /* SPLIT LAYOUTS */
    .split-container {
        flex-direction: column !important;
        gap: 30px;
    }

    /* MATERIAL GRID */
    .material-grid {
        grid-template-columns: 1fr;
    }

    /* HERO SPACING */
    .detail-hero {
        padding: 100px 0 40px;
    }

}


/* =========================================
   MOBILE
   Haupt-Mobile Layout
========================================= */
@media (max-width: 768px) {

    /* =====================================
       NAVIGATION / HEADER
    ===================================== */

    /* Hamburger anzeigen */
    .menu-toggle {
        display: flex;
    }

    /* Mobile Menü */
    .main-nav {
        display: none;
        position: fixed;
        top: 85px;
        right: 5%;

        flex-direction: column;

        width: 90%;

        padding: 30px;

        background: rgba(11, 11, 15, 0.98);
        backdrop-filter: blur(20px);

        border-radius: 25px;
        border: 1px solid var(--glass-border);

        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);

        z-index: 9998;
    }

    /* Menü geöffnet */
    .main-nav.active {
        display: flex;
        animation: fadeIn 0.3s ease forwards;
    }

    /* Nav Links */
    .main-nav a {
        width: 100%;

        padding: 15px 0;

        text-align: center;

        font-size: 1.1rem;
    }

    /* =====================================
       HAMBURGER ICON ANIMATION
    ===================================== */

    /* Mittlerer Balken verschwindet */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    /* Oberer Balken */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    /* Unterer Balken */
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }


    /* =====================================
       HERO SECTION
    ===================================== */

    .hero h1 {
        font-size: 2.3rem;
    }


    /* =====================================
       ABOUT SECTION
    ===================================== */

    /* Features untereinander */
    .about-features-grid {
        grid-template-columns: 1fr;
    }

    /* Titel kleiner */
    .section-title {
        font-size: 2rem;
    }


    /* =====================================
       DETAIL BUTTONS
    ===================================== */

    .big-detail-btn {
        padding: 20px;
    }

    .big-detail-btn .btn-title {
        font-size: 1.1rem;
    }

    .big-detail-btn .btn-subtitle {
        font-size: 0.85rem;
    }


    /* =====================================
       TIMELINE
    ===================================== */

    .process-timeline {
        flex-direction: column;
        align-items: center;
    }

    .timeline-item {
        display: flex;
        align-items: center;

        gap: 20px;

        width: 100%;

        margin-bottom: 20px;

        text-align: left;
    }

    .timeline-img {
        width: 100px;
        height: 80px;

        margin-bottom: 0;
    }

}


/* =========================================
   SMALL MOBILE
   Kleine Smartphones
========================================= */
@media (max-width: 480px) {

    /* =====================================
       BEFORE / AFTER GALLERY
    ===================================== */

    .before-after-card {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .ba-image img {
        width: 100%;
        height: 350px;

        object-fit: cover;
        display: block;
    }

    .ba-label {
        font-size: 0.75rem;

        padding: 5px 12px;
    }

}




/* MOBILE */
@media (max-width: 900px) {

    .location-frame {
        flex-direction: column;
    }

    .location-info,
    .location-map {
        width: 100%;
    }

    .location-map {
        height: 300px;
    }

    .location-content {
        padding: 30px 20px;
    }

    .location-content h2 {
        font-size: 1.6rem;
    }
}
