header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: var(--secondary);
    border-bottom: solid 1px var(--primary);
}

header.startPage {
     background: var(--transparent);
}

header.header--fixed {
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    background: var(--secondary);
}

header.header--fixed .border-bottom-white {
    border-bottom: none;
}

header.header--fixed img {
    display: none;
}

header.header--fixed .hidden, header.header--fixed .hidden img {
    display:block;
}

header.darkTextInHeader img {
    display: none;
}

header.darkTextInHeader .hidden, header.darkTextInHeader .hidden img {
    display: block;
}

header.darkTextInHeader {
    border-bottom: solid 1px var(--primary);
}

header.darkTextInHeader .nav-link, header.darkTextInHeader .nav-link.active {
     color: var(--primary);
}

header.darkTextInHeader .nav-link.active {
    border-bottom: solid 2px var(--primary);
}

header.header--fixed .nav-link, header.header--fixed .nav-link.active {
    color: var(--primary);
}

header.header--fixed .nav-link.active {
    border-bottom: solid 2px var(--primary);
}

.showBorder {
    border-bottom: solid 1px var(--fourth);
}

.lh-header-brand-img {
    max-width: 100%;
    width: 300px;
}

.headerWrapper > div {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-link {
    color: var(--primary);
    border-bottom: solid 2px transparent;
}

.nav-pills, .nav-pills .nav-link {
    border-radius: 0;
}

.nav-link:hover, .nav-link:focus, .nav-link:focus-visible, .nav-link:active {
    color: var(--primary);
    border-bottom: solid 2px var(--primary);
    border-radius: 0;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background: none;
    color: var(--primary);
     border-bottom: solid 2px var(--primary);
}

.showBorder .nav-link, .showBorder .nav-link.active {
    color: var(--white);
    
}

.showBorder .nav-link.active {
    border-bottom: solid 2px var(--white);
}


.showSubMenu svg {
    position:relative;
    left: -5px;
    top: 3px;
    cursor: pointer;
}

#menu {
    display: none;
    top: 87px;
}


.mm-listview {
    padding: 1rem;
}

.mm-panel {
    padding-top: 2rem;
}


.mm-menu--theme-light {
    background: var(--bg-primary);
}

.mm-navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2rem;
}

.mm-navbar__title > span {
    color: var(--white);
    font-size: 1.6rem;
    overflow: visible;
    padding-bottom: 0.5rem;
}

.mm-panel > ul.level-1 .mm-listitem__text.isPrio {
    font-size: 2.222rem;
    padding: calc((var(--mm-listitem-size) - var(--mm-lineheight)) / 2) 0;
    padding-left: 20px;
}

.mm-panel > ul.level-1 .mm-listitem__text {
    font-size: 1.6rem;
}

a.mm-btn.mm-btn--next.mm-listitem__btn {
    color: var(--white);
}

.level-2 a.mm-listitem__text, .level-3 a.mm-listitem__text {
    font-size: 1.6rem;
}

.mm-menu a:hover {
    text-decoration: underline;
}

.lang {
    position:relative;
}

.lang .chosenLang {
    color: var(--black);
    cursor: pointer;
    border-bottom: solid 2px var(--black);
    padding-bottom: 0.2rem;
    padding-left: 10px;
    padding-right: 10px;
}


.template-dark .lang .chosenLang {
    color: var(--white);
    border-bottom: solid 2px #a8aba4;
}

.lang .chosenLang:hover {
    border-bottom: solid 2px var(--yellow);
}

.lang .chooseLang {
    display: none;
    background: var(--sand);
    color: var(--black);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.lang .chooseLang.open {
    display:block;
    position:absolute;
}

.lang .chooseLang > div {
    cursor: pointer;
    padding: 0.2rem 1rem;
}

.lang .chooseLang > div:hover {
    background: var(--dark-yellow);
    color: var(--white);
}

.lang img {
    cursor:pointer;
    filter: invert(1);
}

.template-dark .lang img {
    filter: inherit;
}

.template-dark .lunch a {
    color: var(--white);
    border-bottom: solid 2px #a8aba4;
    font-family: "aleo";
}

.subMenuWrapper {
    flex-grow: 1;
    display: none;
    position:absolute;
}

.subMenuWrapper.active {
    display:flex;
}

.subMenuWrapper a {
    width: 25%;
}

.subMenuWrapper a:hover div {
    border-radius: 30px;
    background: rgba(183,206,230,0.1);
}

.subMenuWrapper div {
    background: var(--primary);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.subMenuWrapper a {
    text-decoration: none;
}

@media (min-width:1120px) { 
    .lg-hide {
        display: none;
    }
}

@media (max-width:1120px) { 
    .headerWrapper .logo {
        order: 2;
    }
    
    .headerWrapper div:last-child {
        order: 1;
        width: 100%;
        justify-content: center;
    }
    
    .headerWrapper > ul {
        order: 3;
    }
}

@media (orientation: portrait) and (max-width:1024px) {
        li.nav-item {
        display: none !important;
    }
    

    .nav-pills li:last-child {
        display: block !important;
        margin-right: 2rem;
    }
}

@media (orientation: landscape) and (max-width:1024px) {
    .headerWrapper div:last-child {
        margin-left: 0;
    }
}

@media (max-width:860px) { 
    .headerWrapper .logo {
        order: 1;
        width: 100%;
    }
    
    .headerWrapper div:last-child {
        order: 3;
        width: auto;
        justify-content: flex-end;
    }
    
    .headerWrapper > ul {
        order: 2;
    }
    

    li.nav-item {
        display: none !important;
    }
    

    .nav-pills li:last-child {
        display: block !important;
        margin-right: 1rem;
    }
    
    .headerWrapper > .d-flex > div:first-child {
        display:none;
    }
    
    .header--fixed .lh-header-brand-img {
        width: 100px;
    }
 
}

@media (max-width: 560px) {
    .headerWrapper .logo {
        order: 1;
       
    }


}
        