:root
{
    --teaserHeight: 45dvh;
}
h1, h2
{
    font-size: clamp(1.4rem, 3.5dvw + 0.3rem, 2.5rem)
}

#teaser
{
    max-height: unset;
}

.teaserImgInnerWrapper
{
    max-width: 100dvw !important;
    overflow: clip;
}

.teaserImgInnerWrapper > img
{
    max-width: unset;
    height: var(--teaserHeight);
    object-fit: cover;
}

.teaserTextWrapper
{
    left: 50%;
    width: max-content;
    max-width: 95%;
    max-height: 95%;
    overflow: clip;
    transform: translate(-50%,-50%);
}

.teaserText
{
    max-height: 100%;
    padding-bottom: 1rem;
    overflow: auto;
}

#menuOuterWrapper
{
    margin-right: 0.5em;
}
#mainMenuWrapper
{
    width: fit-content;
    height: fit-content;
    background-color: white;
    padding-block: 0.5rem;
    padding-inline: 0.5rem;
}

#mainMenu a
{
    color: var(--mainMenuClr);
}

#mainMenuWrapper .current-item a.menuLinkLevel1
{
    color: var(--primaryclr);
}

li.level2
{
    padding-left: 1.5rem;
}

.active #menuButton
{
    position: absolute;
    top: 1rem;
    right: 0.8rem;
    /* transform: scale(0.7); */
    background-color: transparent;
    color: black;
    z-index: 100;
}

.active .toggle-button .bar
{
    background-color: black;
}

.menuTitle
{
    display: none;
}

.active .menuTitle
{
    display: block;
}

.toggle-button
{
    position: relative;
    right: 0;
    top: 0;
    font-size: 0.8em;
    transform: scale(0.9);
}

.toggle-button .bar
{
    background-color: var(--secondaryclr);
}

@media screen and (max-width: 530px)
{
    #menuOuterWrapper
    {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
    #header
    {
        position: unset;
    }
    .topContent
    {
        position: absolute;
        top: 4.5rem;
        height: calc(var(--headerHeight) + 1rem);
        width: 49.5%;
    }
    .topContent > .frame
    {
        display: block !important;
        width: fit-content !important;
        margin-inline: auto !important;
    }
    #topLeftText
    {
        left: 0;
    }
    #topRightText
    {
        right: 0;
    }
}