/* Mobiler Header Styles */
.desktop-header {
    display: block;
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 900; /* Stark reduzierter z-index, damit der Sprachumschalter darüber liegen kann */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    overflow: visible; /* Wichtig: overflow auf visible setzen, damit der Sprachumschalter sichtbar ist */
}

.mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.mobile-logo img {
    height: 40px;
    width: auto;
}

.mobile-menu-toggle {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #e63e60;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.mobile-nav.open {
    max-height: 300px;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav a.active {
    color: #e63e60;
    background-color: rgba(230, 62, 96, 0.1);
}

.mobile-nav a:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.mobile-nav i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Media Query für Mobile Header */
@media (max-width: 991px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    /* Filter-Sektion auf mobilen Geräten ausblenden */
    .apartment-nav {
        display: none !important;
    }
    
    /* Zusätzlicher Abstand für den Content, damit er nicht unter dem Header verschwindet */
    .apartment-container {
        padding-top: 70px !important;
    }
}
