.wbox-meganav {
    list-style-type: none;
    margin: 10px 0 0 0;
    padding: 0;
    position: relative;
}

.wbox-meganav li, .wbox-meganav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wbox-meganav li:before {
    content: '';
    display: none;
}

.wbox-meganav a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 400;
    display: flex;
    flex-direction: column;
}

.wbox-meganav a:before {
    content: attr(data-text);
    content: attr(data-text) / "";
    height: 0;
    visibility: hidden;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    font-weight: 600;
  
}
@media speech {
    .wbox-meganav a:before {
        display: none;
    }
}



/* ------------------------------------------------------------------------------------
Level 1
------------------------------------------------------------------------------------ */

.wbox-meganav > li {
    float: left;
    margin: 0;
    /* position: relative; */
}

.wbox-meganav > li.navigation-horizontal {
    /* position: initial;*/
    position: static;
}

.wbox-meganav > li > a {
    font-size: 1.5rem;
    position: relative;
    padding: 0rem 1rem;
    letter-spacing: 0.04em;
}
.wbox-meganav > li > a.nav-selected,
.wbox-meganav > li > a.nav-path-selected {
    font-weight: 600;
}

.wbox-meganav > li a:hover {
    color: var(--bs-primary);
    font-weight: 600;
}

.wbox-meganav > li:last-child > a {
    padding-right: 0;
}

.wbox-meganav > li > a::after {
    content: '';
    display: block;
    position: absolute;
    z-index: 302;
    left: 50%;
    top: 33px;
    transform: translate(-50%);
    background-image: url("data:image/svg+xml,%3Csvg width='58' height='34' viewBox='0 0 58 34' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_8513_46)'%3E%3Cpath d='M51.8368 31.2752L29.0622 10.4578L6.47559 31.2752H51.8368Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_8513_46' x='0.475586' y='0.458008' width='57.3613' height='32.8174' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset dy='-4'/%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_8513_46'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_8513_46' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 58px;
    height: 34px;
    opacity: 0;
}

/* Hover Level1 */
.wbox-meganav > li.level1Show > a:after {
    opacity: 1;
}

.wbox-meganav .wbox-meganav-sub a.nav-selected,
.wbox-meganav .wbox-meganav-sub a.nav-path-selected {
    font-weight: 600;
    color: var(--bs-primary);
}


/* ------------------------------------------------------------------------------------
Box Level 2
------------------------------------------------------------------------------------ */

.wbox-meganav > li > .wbox-meganav-sub {
    position: absolute;
    opacity: 0;
    right: -5rem;
    background: white;
    padding-block: 3.5rem;
    padding-inline: 3.5rem;
    /* width: calc(100vw - 10rem); */
    height: auto;
    /* box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.3); */
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.10);
    /* Move away instead of display none */
    top: -999em;
    z-index: 301;
}

/* helper dev -> einblenden div */
/*
.wbox-meganav > li:nth-child(1) > .wbox-meganav-sub {
    opacity: 1;
    top: 12px;
    top: 60px;
}
*/

.wbox-meganav > li > .wbox-meganav-sub.subnavShow {
    opacity: 1;
    top: 60px;
}

.wbox-meganav .wbox-meganav-sub > .container > ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
}

.wbox-meganav .wbox-meganav-sub li a {
    text-transform: none;
}

.wbox-meganav h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--bs-dark);
    font-weight: 500;
}

/* ------------------------------------------------------------------------------------
Level 2
------------------------------------------------------------------------------------ */


.wbox-meganav > li li > a {
    color: var(--bs-dark);
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.wbox-meganav .wbox-meganav-sub > ul > li {
    width: 100%;
}

.wbox-meganav li.nav-dropdownlvl2 {
    word-break: normal;
}

.wbox-meganav li.nav-last.nav-dropdownlvl2 {
    border-right: none;
    margin-right: 0;
}



/* ------------------------------------------------------------------------------------
Level 3
------------------------------------------------------------------------------------ */

.wbox-meganav > li li li > a {
    font-size: 1.125rem;
    font-weight: 400;
    text-transform: none;
    line-height: 1.2;
    padding-block: 0.75rem;
    margin: 0;
    position: relative;
    border-bottom: 1px solid #eee;
}

/* .wbox-meganav > li li li > a::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14'%3E%3Cpath fill='none' fill-rule='evenodd' stroke='%23FFF' stroke-linecap='square' d='m1 1 6 6-6 6'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: 50% 50%;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
} */

.wbox-meganav > li li li.nav-last {
    padding-bottom: 25px;
}

/* ------------------------------------------------------------------------------------
Level 4
------------------------------------------------------------------------------------ */

.wbox-meganav > li li li li > a {
    font-size: 14px;
    font-weight: 300;
    margin-left: 15px;
}

/* ------------------------------------------------------------------------------------
Responsive
------------------------------------------------------------------------------------ */

@media (max-width: 767px) { 
    .wbox-meganav {display: none;}
}

@media (min-width: 768px) and (max-width: 991px) {
    .wbox-meganav {display: none;}  
}

@media (min-width: 992px) and (max-width: 1199px) {

    .mainnav {
        margin-left: 40px;
    }
    .wbox-meganav { 
        margin-top: 0;
    }

    .wbox-meganav > li {
        margin-right: 14px;
    }
    
        
    .wbox-meganav > li > a {
        font-size: 1.05em;
        padding-top: 12px;
    }
    
    .wbox-meganav > li > .wbox-meganav-sub  {
        
    }
    
    .wbox-meganav .wbox-meganav-sub > ul > li {
        width: 100%;
    }
    
    .wbox-meganav .navigation-horizontal .wbox-meganav-sub > ul > li {
        width: -webkit-calc(25% - 12px);
        width: calc(25% - 12px);
    }
}

@media (min-width: 1340px) and (max-width: 1800px) {
    .wbox-meganav > li > .wbox-meganav-sub {
        left: -15rem;
        right: 0;
    }
}

@media (min-width: 1200px) and (max-width: 1600px) {
    .wbox-meganav > li > a {
        font-size: 1.35rem;
        padding: 0rem 0.5rem;
    }
    .wbox-meganav > li > .wbox-meganav-sub {
        left: -23rem;
    }
}
@media (min-width: 1200px) and (max-width: 1340px) {

    .wbox-meganav > li > .wbox-meganav-sub {
        padding-inline: 2rem;
        left: -21rem;
    }
}

@media (min-width: 1800px) {
    .wbox-meganav .wbox-meganav-sub > .container > ul {
        grid-template-columns: repeat(4, 250px);
    }
}