/**
 * New Mobile Menu - Komplett neues, einfaches Mobile-Menü
 * Präfix: nmm- (New Mobile Menu)
 */

/* ===== GRUNDSTRUKTUR ===== */
.new-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.new-mobile-menu.nmm-active {
    pointer-events: auto;
}

/* ===== OVERLAY ===== */
.new-mobile-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.new-mobile-menu.nmm-active .new-mobile-menu__overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* ===== MENU CONTENT ===== */
.new-mobile-menu__content {
    position: absolute;
    top: 0;
    right: -100%;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: #1f242c;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.4s ease;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.new-mobile-menu.nmm-active .new-mobile-menu__content {
    right: 0;
}

@media (max-width: 767px) {
    .new-mobile-menu__content {
        width: 350px;
    }
}

@media (max-width: 376px) {
    .new-mobile-menu__content {
        width: 100%;
        max-width: 100%;
    }
}

/* ===== HEADER ===== */
.new-mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.new-mobile-menu__header img {
    max-width: 250px;
    height: auto;
}

@media (max-width: 767px) {
    .new-mobile-menu__header {
        padding: 40px 24px;
    }
}

@media (max-width: 376px) {
    .new-mobile-menu__header img {
        max-width: 80%;
    }
}

/* ===== CLOSE BUTTON ===== */
.new-mobile-menu__close {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.new-mobile-menu__close:hover {
    color: #16ccf0;
    border-color: #16ccf0;
}

/* ===== SCROLLBARER BEREICH ===== */
.new-mobile-menu__scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Scrollbar Styling */
.new-mobile-menu__scroll::-webkit-scrollbar {
    width: 8px;
}

.new-mobile-menu__scroll::-webkit-scrollbar-track {
    background: rgba(128, 255, 251, 0.1);
}

.new-mobile-menu__scroll::-webkit-scrollbar-thumb {
    background: #3c9797;
    border-radius: 4px;
}

.new-mobile-menu__scroll::-webkit-scrollbar-thumb:hover {
    background: #16ccf0;
}

/* ===== NAVIGATION ===== */
.new-mobile-menu__nav {
    padding: 20px 0;
}

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

.new-mobile-menu__nav > ul > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.new-mobile-menu__nav > ul > li > a,
.new-mobile-menu__nav > ul > li > .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    text-transform: capitalize;
    transition: all 0.3s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

@media (max-width: 767px) {
    .new-mobile-menu__nav > ul > li > a,
    .new-mobile-menu__nav > ul > li > .submenu-toggle {
        padding: 15px 24px;
    }
}

.new-mobile-menu__nav > ul > li > a:hover,
.new-mobile-menu__nav > ul > li > .submenu-toggle:hover {
    background-color: rgba(22, 204, 240, 0.1);
    color: #16ccf0;
}

/* Chevron Icon Animation */
.submenu-toggle i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.submenu-toggle.nmm-open i {
    transform: rotate(180deg);
}

/* ===== SUBMENU ===== */
.submenu {
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0;
    margin: 0;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submenu.nmm-open {
    display: block;
    max-height: 500px;
    padding: 10px 0;
}

.submenu li {
    border: none;
}

.submenu li a {
    display: block;
    padding: 12px 30px 12px 50px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .submenu li a {
        padding: 12px 24px 12px 44px;
    }
}

.submenu li a:hover {
    background-color: rgba(22, 204, 240, 0.15);
    color: #16ccf0;
    padding-left: 55px;
}

@media (max-width: 767px) {
    .submenu li a:hover {
        padding-left: 49px;
    }
}

/* ===== MAP SECTION ===== */
.new-mobile-menu__map {
    padding: 30px 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 767px) {
    .new-mobile-menu__map {
        padding: 30px 24px 20px;
    }
}

#map-placeholder-new {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

#map-placeholder-new img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

#map-placeholder-new .blurmap_overlay {
    background-color: white;
    opacity: 0.95;
    width: 90%;
    margin: 0 auto;
    padding: 12px;
    border-radius: 12px;
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
}

#map-placeholder-new .blurmap_overlay p {
    font-size: 12px;
    color: #333;
    margin-bottom: 10px;
}

#map-placeholder-new .blurmap_overlay a {
    color: #16ccf0;
}

.btn-load-map {
    background: #16ccf0;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-load-map:hover {
    background: #00cccc;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 220px;
    border: none;
    border-radius: 8px;
}

/* ===== CONTACT SECTION ===== */
.new-mobile-menu__contact {
    padding: 20px 30px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 767px) {
    .new-mobile-menu__contact {
        padding: 20px 24px 40px;
    }
}

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

.new-mobile-menu__contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    color: #ffffff;
}

.new-mobile-menu__contact ul li i {
    color: #16ccf0;
    font-size: 18px;
    margin-right: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}

.new-mobile-menu__contact ul li span,
.new-mobile-menu__contact ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.new-mobile-menu__contact ul li a:hover {
    color: #16ccf0;
}

/* ===== ANIMATIONS ===== */
@keyframes nmm-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes nmm-slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Body Lock wenn Menü offen */
body.nmm-menu-open {
    overflow: hidden;
}
