.topnav {
    background: var(--qonnex-blauw);
    color: white;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
}

.hamburger {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.topnav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.topnav li {
    position: relative;
    flex: 1;
}
.topnav li br {
    display: none;
}

.topnav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: black;
    text-decoration: none;
    white-space: nowrap;
    font-weight: bold;
    font-size: 14px;
}

.topnav li > a {
    background-color: white;
    border: 1px solid var(--qonnex-blauw);
    justify-content: center;
}
.topnav li:hover > a {
    background: var(--qonnex-blauw);
    color: white;
}

#navLinks li.disabled a,
#navLinks a.disabled {
    cursor: default;
    color: var(--qonnex-antraciet-80);
}
#navLinks img.icon {
    height: 16px;
    filter: brightness(0) saturate(100%) invert(59%) sepia(92%)
            saturate(3943%) hue-rotate(165deg) brightness(97%) contrast(103%);
}

#navLinks li:hover img.icon {
    filter: brightness(0) invert(1);
}

/* ------ Mega dropdown ------ */

.has-mega:hover .mega {
    display: flex;
}

.mega {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 380px;
    background: white;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    gap: 40px;
    z-index: 10;
}

.mega .col {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.mega a {
    color: #333;
    padding: 4px;
    width: 100%;
}

.mega a:hover:not(.disabled) {
    background-color: #0092ce;
    color: white;
}

/* =========================================================
   ===============  MOBIEL RESPONSIVE  ======================
   ========================================================= */

@media (max-width: 1100px) {

    .hamburger {
        display: block;
    }

    .topnav ul {
        flex-direction: column;
        display: none;
        background: var(--qonnex-antraciet);
    }

    .topnav ul.show {
        display: flex;
    }

    .topnav li > a {
        background-color: transparent;
        color: white;
        text-transform: uppercase;
        border: none;
    }
    .topnav li img.icon {
        display: none;
    }
    #navLinks li.disabled a,
    #navLinks a.disabled {
        color: var(--qonnex-grijs);
    }
    /* Mega menu wordt gewoon een sublijst */
    .mega {
        position: static;
        display: none;
        box-shadow: none;
        background: transparent;
        padding: 0px;
        gap: 20px;
    }
    .mega .col {
        width: 100%;
    }
    .mega a {
        display: block;
        text-align: center;
        color: var(--qonnex-blauw);
        text-transform: uppercase;
        padding: 8px 0;
    }

    .has-mega .mega.open,
    .has-mega:hover .mega {
        display: block;
    }

    .has-mega.open > .mega {
        display: flex;
    }

    .has-mega > a {
        justify-content: space-between;
    }

    .has-mega > a::after {
        content: "▾";
    }

    .has-mega > a {
        cursor: pointer;
        pointer-events: auto;
    }
}

.menu {
    margin: -20px 0 0 -20px;
}

.menubutton {
    position: relative;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    box-sizing: border-box;
    height: 125px;
    width: 125px;
    margin: 20px 0 0 20px;
    text-align: center;
    vertical-align: middle;
    padding: 12px;
    color: #fff;
    background-color: var(--qonnex-blauw);
}
.menubutton.empty {
    background-color: transparent;
}
.menubutton[disabled] img {
    -webkit-filter: brightness(0%) invert(100%);
    -moz-filter: brightness(0%) invert(100%);
    -ms-filter: brightness(0%) invert(100%);
    -o-filter: brightness(0%) invert(100%);
    filter: brightness(0%) invert(100%);
}
.menu a {
    display: inline-block;
}
.menu a[disabled] {
    pointer-events: none;
    cursor: default;
}
.menubutton p {
    margin: 0 0 0 -12px;
    position: absolute;
    bottom: 10px;
    width: calc(100% - 20px);
    text-align: center;
    word-wrap: break-word;
    padding: 0px 10px;
}
.menubutton:hover {
    box-shadow: 0px 0px 3px 3px #ddd;
}
.menubutton.small {
    height: 65px;
    width: 60px;
    font-size: 10px;
    line-height: 10px;
    margin: 10px 0 0 10px;
}
.menubutton.small img {
    height: 45px;
}
.menubutton .menuimage {
    width: 60px;
    height: 60px;
    background-color: #00000022;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 7px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.printcard .menubutton {
    height: 105px;
    width: 105px;
}
.printcard .menubutton p {
    bottom: 5px;
}
.printcard .menubutton .menuimage img {
    max-width: 90%;
    max-height: 90%;
}
.badge.hasnew-circle {
    font-size: 9px;
    background-color: var(--qonnex-blauw);
    letter-spacing: -0.2px;
    color: white !important;
    text-align: center;
    display: inline-block;
    position: absolute;
    margin-top: 9px;
    margin-left: -10px;
    width: 14px;
    height: 14px;
    line-height: 15px;
    border: 1px solid var(--qonnex-antraciet);
    border-radius: 50%;
    z-index: 99;
}
.badge.hasnew-circle[data-hasnew="0"],
.badge.hasnew-circle[data-hasnew=""] {
    display: none;
}

.header1 .hamburger {
    display: none;
    color: white;
    padding-right: 10px;
    font-size: 30px;
}

@media screen and (max-width: 1200px) {
    .topnav a {
        font-size: 12px;
    }
}
@media screen and (max-width: 1100px) {
    .header1 .welcome-text {
        color: var(--qonnex-antraciet);
    }
    .header2 {
        display: none;
    }
    .header2 .wrapper-center {
        position: fixed;
    }
    .user-menu {
        position: absolute;
        right: 45px;
        width: calc(100% - 65px);
    }
    .header2.show,
    .user-menu.show {
        display: block;
    }
    .header1 .hamburger {
        display: block;
    }
    .header_cog img {
        filter: invert(0.75);
    }
}

@media screen and (max-width: 600px) {
    .menu {
        margin: -44px -4px 0px -25px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .menu a {
        flex: 0 0 calc(33.3333% - 7px);
    }
    .menubutton {
        margin: 0;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .menubutton .menuimage {
        margin-top: 15%;
    }
}

@media screen and (max-width: 400px) {
    .menu {
        margin-top: -38px;
    }
    .menubutton {
        font-size: 11px;
    }
    .menubutton .menuimage {
        margin-top: 5%;
    }
}

@media screen and (max-width: 350px) {
    .menubutton {
        font-size: 8px;
    }
    .menubutton .menuimage {
        margin-top: 0%;
    }
}
