:root
{
    /***  heights and sizes  ***/
    --headerHeight: 70px;
    --headerWidth:  100%;
    --menuTop: 7rem;
    /*** timing ***/
    --mobileMenuTransitionTime: 0.3s;
}
#headerWrapper
{
    padding-top: 0;
}
#mainMenu,
.menuTitle,
.searchAndLang,
.subMenuWrapper,
ul.level2,
ul.level3
{
    display: none;
}

.logoContent
{
    fill: white;
}

.noTeaser .logoContent
{
    fill: var(--gbBlau);
}

#logo
{
    padding-top: 1.5rem;
    z-index: 10000;
}

#logo svg
{
    width: 300px;
    height: auto;
}

#langMenu,
ul.level2
{
    font-size: 0.8em;
}

#searchFormToggle svg,
#searchPageLink svg
{
    width: auto;
    height: 0.8em;
}

#headerSearchForm
{
    top: 0;
    left: 2.2em;
}

.searchIcon
{
    /*stroke: var(--gbBlack);*/
}

#mainMenuWrapper
{
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 1000;
}

.toggle-button
{
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    top: 1.4rem;
    right: 1em;
    width: 1.8rem;
    height: 1.8rem;
}

.toggle-button .bar
{
    height: 2px;
    width: 100%;
    background-color: white;
    pointer-events: none;

    transition: all var(--mobileMenuTransitionTime) ease-in-out;
}

.pastTeaser .toggle-button .bar,
#headerWrapper:hover .toggle-button .bar
{
    background-color: var(--gbBlau);
}

.active .logoContent
{
    fill: var(--gbBlau) !important;
}

.active #mainMenuWrapper
{
    width: 100%;
    height: 100vh;
    background-color: white;
    color: var(--gbBlack);
    overflow-y: scroll;
    overflow-x: hidden;
}

.active #mainMenuWrapper::-webkit-scrollbar {
    display: none;
}

.active #mainMenuWrapper {
    scrollbar-width: none;
}

.active #hamburgerBar1
{
    margin-top: 2px;
    transform: rotate(45deg);
}
.active #hamburgerBar2
{
    opacity: 0;
}
.active #hamburgerBar3
{
    margin-top: calc(-50% + 4px);
    transform: rotate(-45deg);
}

#mainMenu li,
.searchAndLang
#mainMenu li.level2,
#mainMenu li.level3 {
    position: relative;
}

#mainMenu li.level3 {
    line-height: 0.8em;
}

#mainMenu li,
.searchAndLang
{
    font-size: clamp( 1.2rem, 4vw + 0.5rem, 2.4rem);
    padding-left: 0;
}

#mainMenu li.level2 a,
#mainMenu li.level2 span
{
    font-size: clamp( 0.8rem, 2vw + 0.5rem, 1.6rem);
    padding-left: 0;
}

#mainMenu li.level3 a,
#mainMenu li.level3 span
{
    font-size: clamp( 0.5rem, 1vw + 0.5rem, 1.0rem);
    padding-left: 0;
}

.subMenuOpener {
    display: inline;
    font-weight: 600;
}

.active #mainMenu
{
    display: flex;
    flex-direction: column;
    gap: 1em;
    position: relative;
    top: var(--menuTop);
    padding-inline: 2rem;
}

#mainMenu a {
    display: inline-block;
}

#mainMenu ul.level2 {
    margin-top: 1rem;
}

#mainMenu ul.level3 {
    margin-bottom: 1rem;
}

.active .searchAndLang
{
    position: relative;
    display: block;
    top: var(--menuTop);
    margin-top: 2.2em;
    padding-inline: 2rem;
}

.active > .subMenuWrapper
{
    display: block;
    min-height: 10rem;
    width: 100%;
    margin-left: -2rem;
    padding-inline: 2rem;
    background-color: white;
}

.active > div > ul.level2
{
    display: flex;
    flex-direction: column;
    font-family: var(--lightFont);
    font-size: 0.7em;
}

.activeLevel1 .menuLinkLevel1,
.activeLevel1 .gbLogo
{
    display: none;
}

.activeLevel2 li.level2:not(.active)
{
    display: none;
}

.active > .menuLinkLevel2
{
    font-family: var(--defaultFont);
}

.active > ul.level3
{
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
    font-size: 0.9em;
}

.activeLevel1 #mobileMenuBack
{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 2rem;
    height: 2rem;
    font-size: 2rem;
    color: var(--gbBlack);
}
