:root
{
    /***  transitions ***/
    --menuTransitionSpeed: 1s;
    --headerTransitionSpeed: 0;
}
.menuToggler,
.menuCloser,
.menuOpener
{
    display: none;
}
.menuTitle,
#menuButton
{
    display: none;
}
.logoContent
{
    fill: white;

    transition: fill var(--headerTransitionSpeed) ease-in-out;
}

#logo svg
{
    width: clamp( 200px, 23vw + 0.3rem, 300px );
    height: auto;
}

#mainMenuWrapper
{
    display: flex;
    gap: 2rem;
    margin-left: auto;
    z-index: 100000;
}

/*** main menu ***/
#mainMenu
{
    display: flex;
}

#mainMenu .level1 > a,
#mainMenu .level2 > a {
    font-size: 22px;
}

#mainMenu .level1.menuItem {
    position: relative;
    border-left:  0.75rem solid transparent;
    border-right: 0.75rem solid transparent;
}

#mainMenu .level1.menuItem:first-of-type {
    border-left-width: 30px;
}

@media screen and (min-width: 1300px) {

    #mainMenu .level1.menuItem:first-of-type {
        border-left-width: 130px;
    }

}

#mainMenu .level1.menuItem:last-of-type {
    border-right: 0;
}

#mainMenu .level1.menuItem::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -0.75rem;
    left:  -0.75rem;
    z-index: -1;
}

#mainMenu .menuItemInfoHeader
{
    font-size: clamp(16px, 1.5vw , 24px);
}

.menuLinkLevel1
{
    padding-inline: 1rem;
    padding-block: 0.6rem;
    white-space: nowrap;
}

.menuLinkLevel2
{
    white-space: nowrap;
}

#headerWrapper .menuLinkLevel1:hover,
#headerWrapper .menuLinkLevel1:focus
{
    background-color: var(--gbBlau);
    color: white;
}

.subMenuWrapper
{
    position: fixed;
    top: var(--headerHeight);
    /* left: calc((100% - 100vw)/2); */
    left: 0;
    width: 100%;
    height: auto;
    padding-top: 0;
    overflow: hidden;
    background-color: white;
    display: none;

    transition: all 0s;

    z-index: 10000;
}

div.subMenuWrapper > * {
    max-width: var(--headerWidth);
    margin-inline: auto;
    padding-inline: var(--content-padding-inline);
    padding-top: 3rem;
    position: relative;
}

.subMenuWrapper > ::before {
    content: "";
    position: absolute;
    width: calc(100% - 2 * var(--content-padding-inline));
    left: var(--content-padding-inline);
    top: 0;
    border-top: 1px solid #f7f7f7;
    margin-inline: auto;
}

li.level1:hover > .subMenuWrapper
{
    display: block;
    border-top: 1.5rem solid transparent;

    /*transition: all var(--menuTransitionSpeed) ease-in-out;*/
}

li.level1:hover > a,
li.level1:focus > a {
    background-color: var(--gbBlau);
    color: white!important;
}

ul.level2
{
    padding-bottom: 3rem;
    background-color: white;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

li.level2
{
    flex-shrink: 1;
    flex-grow: 0;
    flex-basis: auto;
}

li.level2 > a {
    color: var(--gbBlack);
}

li.level2 > a:hover {
    color: var(--gbGrey)!important;
}

ul.level3
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    background-color: white;
    color: var(--gbGrey);
}

li.level3 > a
{
    transition: all 0.3s ease-in-out;
    position: relative;
    transition: 0.3s ease-in-out;
}

li.level3 > a:before
{
    content: "";
    background-image: url(images/Navi_Pfeil_v03.svg);
    background-position: right center;
    background-size: 22px 13px;
    position: absolute;
    width: 22px;
    height: 13px;
    left: -40px;
    top: 0.4em;
    opacity: 0;

    transition: 0.3s ease-in-out;
}

li.level3 > a:hover
{
    position: relative;
    left: 20px;
    color: var(--gbBlack) !important;
}

li.level3 > a:hover:before
{
    opacity: 0.6;
    left: -28px;
}

/**** text image info for level 1 items ***/
li.level1:hover .subMenuWrapper[data-subitems="0"]
{
    padding-bottom: 3rem;
    background-color: white;
}
.subMenuWrapper[data-subitems="0"] > div
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-inline: auto;
}

.menuItemTextWrapper
{
    display: flex;
    flex-flow: column;
    gap: 1rem;
    width: 480px
}

.menuItemInfoHeader
{
    color: #1C1C1C;
}

.menuItemInfoText
{
    color: #707070;
}

.submenuInfoImage
{
    width: 460px;
    height: 300px;
    background-repeat: no-repeat;
    background-size: cover;
}

.unterpunkte
{
    color: var(--gbBlack2);
}

.unterpunkte .unterpunkte2
{
    color: var(--gbGrey);
}

.subMenuWrapper a
{
    color: inherit;
    font-weight: inherit;
}




