/**
 * src/css/mobile.css
 * ZUSTÄNDIGKEIT: Rein für die Transformation des Skeletts (Sidebar-Drawer, Header-Fix).
 * REFACTORING: Alle spezifischen Profil-Layouts, Auth-Logos und Galerie-Grids entfernt.
 * STATUS: Die Shell-Instanz für mobile Geräte.
 */

@media (max-width: 768px) {
    /* 1. GRUNDGERÜST-ANPASSUNG */
    html, body {
        overflow-x: hidden;
        height: auto;
    }

    body {
        display: block; /* Hebt das Desktop-Flex-Layout auf */
    }

    /* 2. APP-CONTAINER & SIDEBAR-LOGIK (DRAWER) */
    #app-container {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px; /* Außerhalb des Sichtfelds */
        width: 260px;
        height: 100%;
        z-index: 10000;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
    }

    .sidebar.open {
        transform: translateX(280px);
    }

    /* 3. HAUPTINHALT & KARTEN-POSITIONIERUNG */
    .main-content {
        padding: 10px !important;
        padding-top: 85px !important; /* Platz für den fixierten Header */
        width: 100% !important;
        margin-left: 0 !important;
        min-height: 100vh;
    }

    /* .content-box dient hier nur noch als flexibler Rahmen.
       Das Design (Hintergrund, Padding) kommt aus den Feature-Dateien. */
    .content-box {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important; /* Wichtig: Feature-CSS bestimmt das Innenmaß */
        min-height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* 4. HEADER & BURGER-NAVIGATION */
    .app-header {
        position: fixed;
        top: 0; left: 0; right: 0;
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 900;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .burger-btn {
        display: flex !important;
    }

    /* Das dunkle Overlay bei geöffnetem Menü */
    #overlay {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(3px);
    }

    #overlay.open {
        display: block;
    }

    /* 5. TOUCH-OPTIMIERUNG */
    input, select, button {
        font-size: 16px !important; /* Verhindert Auto-Zoom auf iPhones */
    }
}

/* Anpassung für sehr schmale Geräte */
@media (max-width: 480px) {
    #main-content-title {
        font-size: 18px;
    }
}