@charset "UTF-8";

/* Load after the existing styles; menu contents still come from the CMS. */
#menu-toggle[hidden],
#site-navigation[hidden] {
    display: none !important;
}

#menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 1px solid #000;
    border-radius: 0;
    color: #000;
    background: #fff;
    font: inherit;
    font-family: 'MarkOT_Bold', sans-serif;
    line-height: 1.2;
    letter-spacing: 0.025rem;
    cursor: pointer;
}

.menu-toggle-icon {
    position: relative;
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 2px;
    background: currentColor;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    content: '';
}

.menu-toggle-icon::before {
    top: -6px;
}

.menu-toggle-icon::after {
    top: 6px;
}

#menu-toggle[aria-expanded='true'] .menu-toggle-icon {
    background: transparent;
}

#menu-toggle[aria-expanded='true'] .menu-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

#menu-toggle[aria-expanded='true'] .menu-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Restore visible keyboard focus where the legacy link styles remove it. */
#menu-toggle:focus,
#site-navigation a:focus,
#kopf #logolink:focus {
    outline: 2px solid #000;
    outline-offset: 4px;
}

.seiteneinleitung {
    clear: both;
    box-sizing: border-box;
    margin: 3rem 2rem 0;
    text-align: left;
    overflow-wrap: break-word;
}

.seiteneinleitung h1 {
    max-width: 40ch;
    margin: 0 0 0.75rem;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: 0.025rem;
}

.seiteneinleitung p {
    max-width: 90ch;
    margin: 0;
    line-height: 1.6;
}

.seiteneinleitung p + p {
    margin-top: 0.75rem;
}

.seiteneinleitung + .kachelmenuezeile {
    margin-top: 0;
}

@media screen and (max-width: 700px) {
    #kopf {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        min-height: 0;
        padding: 24px 7% 0;
    }

    #branding {
        float: none;
        width: auto;
        margin: 0 1rem 0 0;
        text-align: left;
    }

    #Logo {
        float: none;
        height: 90px;
        margin-bottom: 0;
    }

    #menu-toggle {
        margin-left: auto;
    }

    /* Without JavaScript this block remains visible and the button stays hidden. */
    #site-navigation {
        flex: 0 0 100%;
        min-width: 0;
        width: 100%;
        margin-top: 1.5rem;
        padding-bottom: 0.5rem;
    }

    #site-navigation .menuezeile {
        float: none;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    #site-navigation .menuezeilenabstand {
        height: 0.75rem;
    }

    #site-navigation .scroll {
        top: 0;
        height: 0;
    }

    #site-navigation .nav1container,
    #site-navigation .nav2container,
    #site-navigation .navcontainer {
        display: block;
    }

    #site-navigation a.nav1,
    #site-navigation a.nav1X,
    #site-navigation a.nav2,
    #site-navigation a.nav2X,
    #site-navigation a.nav,
    #site-navigation a.navX {
        display: block;
        left: 0;
        box-sizing: border-box;
        min-height: 44px;
        margin: 0;
        padding: 0.65rem 0;
        border: 0;
        background-image: none;
        line-height: 1.35;
        white-space: normal;
        overflow-wrap: break-word;
    }

    #site-navigation a.nav1X,
    #site-navigation a.nav2X,
    #site-navigation a.navX,
    #site-navigation a:hover {
        text-decoration: underline;
        text-underline-offset: 0.2em;
    }

    .seiteneinleitung {
        margin: 2.5rem 7% 0;
    }

    .seiteneinleitung h1 {
        font-size: 1.75rem;
    }

    .seiteneinleitung + .kachelmenuezeile {
        margin-top: 1.5rem;
    }
}
