/* =========================
   MegaMenu Icons (Mobile)
   ========================= */

.mm-icon {
    width: 1.25rem;
    margin-right: .6rem;
    color: #00a8ff;
    text-align: center;
    opacity: .95;
}

/* =========================
   NAV: Language Pills
   ========================= */
.lang-inline { gap: 6px; }

.lang-pill{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 100;
    font-size: .85rem;
    /*color: rgba(255,255,255,.85);*/
    color: #999;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    line-height: 1;
}

.lang-pill:hover{
    background: rgba(255,255,255,.10);
    color: #fff;
}

.lang-pill.is-active{
    background: rgba(0,168,255,.18);
    border-color: rgba(0,168,255,.35);
    color: #fff;
    font-weight: 800;
}

/* Optional: hide language text on very small screens */
@media (max-width: 360px) {
    .lang-pill span:last-child { display: none; }
}


/* =========================
   NAV: Toggler lines (wenn du das nutzt)
   ========================= */
.navbar-toggler{
    border: 0;
    box-shadow: none !important;
}

.navbar-toggler:focus{
    box-shadow: none !important;
}

.nav-line{
    display:block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: rgba(255,255,255,.9);
    border-radius: 2px;
}


/* =========================
   MEGAMENU (Bootstrap 5 Dropdown)
   ========================= */

/* Panel basics + dark style */
.dropdown-menu.megamenu{
    width: min(100vw, 800px);
    max-width: calc(100vw - 2rem); /* prevents overflow */
    right: 0;
    left: auto;

    border-radius: 14px;
    overflow: hidden;

    background: rgba(15, 15, 18, 0.98);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.92);

    /* Keep it above other elements */
    z-index: 1050;
}

/* If Popper still sets transform sometimes, this is the “nuclear” safety net */
/* .dropdown-menu.megamenu { transform: none !important; } */

.dropdown-menu.megamenu .dropdown-item{
    color: rgba(255,255,255,.92);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 200;
    padding: .55rem .75rem;
}
.dropdown-menu.megamenu .dropdown-item.badge-info {
    color: #212529;
    background-color: #ffc107;
    padding: 5px;
}
.dropdown-menu.megamenu .dropdown-item.badge-info .mm-icon {
    color: #212529;
}

.dropdown > .dropdown-menu.megamenu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    transform: translateY(6px);
}

.dropdown > .dropdown-menu.megamenu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*
.dropdown-menu.megamenu .dropdown-item:hover,
.dropdown-menu.megamenu .dropdown-item:focus{
    background: rgba(255,255,255,.08);
    color: #fff;
}
*/


/* Mega header (logo + title + badge) */
.megamenu__logo{
    width: 44px;
    height: auto;
    opacity: .95;
}

.megamenu__title{
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1.1;
}

.megamenu__text{
    margin-top: .25rem;
    opacity: .85;
    font-size: .95rem;
    line-height: 1.25;
}

.megamenu__badge{
    font-size: .75rem;
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,168,255,.18);
    border: 1px solid rgba(0,168,255,.35);
    color: #fff;
    white-space: nowrap;
}



.news_badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 300;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.news_badge {
    color: #fff;
    background-color: #ED5564;
    padding: 4px 7px;
    margin-left: 5px;
    border-radius: 2px;
}

/* Section titles */
.megamenu__section-title{
    color: #00a8ff;
    font-weight: 400;
    font-size: 18px;
    font-family: "Fjalla One", sans-serif;
    text-transform: uppercase;
}

/* Divider look */
.dropdown-menu.megamenu hr{
    border-color: rgba(255, 255, 255, 0.34) !important;
}

/* =========================
   MOBILE behavior inside collapse
   ========================= */
@media (max-width: 991.98px) {
    /* Make the dropdown behave like a block inside collapse */
    .navbar .dropdown-menu.megamenu{
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: .5rem;
    }

    /* Optional: add some spacing so it breathes */
    .navbar-nav .nav-item.dropdown{
        margin-top: .25rem;
    }
    #navMoreDropdown .label-mobile, #navMoreDropdown .label-mobile::after {
        display: none !important;
    }
    #mainNavbar ul > li > .nav-link.dropdown-toggle {
        display: none!important;
    }
}


/* =========================
   OPTIONAL: better spacing for links in collapse
   ========================= */
@media (max-width: 991.98px) {
    .navbar .nav-link{
        padding-top: .65rem;
        padding-bottom: .65rem;
    }
}


.label-mobile { display: inline; }
.label-desktop { display: none; }

@media (min-width: 992px) {
    .label-mobile { display: none; }
    .label-desktop { display: inline; }
}

