@import url('https://fonts.verwaltungsportal.de/css/?family=Outfit:400,400i,700,700i');

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #e1eefa;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #2e3c48 #ffffff;
}

body {
    font-family: "Outfit", sans-serif;
    font-weight: 400;
    color: #191919;
    background: #ffffff;
    font-size: clamp(1rem, 2vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
}

a {
    color: #407242;
    text-decoration: underline;
}

a:is(:hover, :focus) {
    color: #407242;
    text-decoration: none;
}

b,
strong {
    font-weight: 700;
}

/* ------------------------------------------ topbar -------------------------------------------- */

#topbar {
    background-color: #fff9f4;
}

.logo {
    display: inline-block;
    text-decoration: none;
}

.logo img {
    display: block;
}

@media (max-width: 991px) {
    .logo img {
        max-width: calc(100vw - 120px);
        width: 100%;
    }

    .logo {
        padding: 5px 0;
    }
}

.horizontally>.row>div:first-child {
    margin-bottom: -7px;
}

.logo-text {
    font-weight: 700;
    font-size: clamp(1.375rem, 2vw, 1.625rem);
    line-height: 1.2;
}

.logo:is(:hover, :focus) {
    text-decoration: none;
}

/* #region ---------------------------------- navigation ---------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #ffffff;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #407242;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        transition: transform 200ms linear, opacity 200ms linear;
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    #burgerButton[aria-expanded="true"]::before {
        opacity: 0;
    }

    #burgerButton[aria-expanded="true"]:after {
        transform: rotate(45deg) translate(-4px, -6px);
    }

    #burgerButtonInner {
        top: 16px;
    }

    #burgerButton::before {
        top: 24px;
        content: "";
    }

    #burgerButton:after {
        top: 32px;
        content: "";
    }

    .navbar-nav {
        margin: 20px 0;
    }

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #fff9f4;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 100;
        height: auto !important;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        overflow-y: auto;
        transition: left 300ms linear, opacity 300ms linear, box-shadow 600ms linear;
        box-shadow: 250px 0 50vw 50vw rgba(255, 255, 255, 0);
    }

    .navbar-collapse:is([aria-expanded="true"], .in) {
        left: 0;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        box-shadow: 250px 0 50vw 50vw rgba(0, 0, 0, 0.6);
    }

    .navbar-header {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
    }

    .dropdown-toggle-button-wrapper {
        top: 7px;
    }

    .dropdown-toggle-button-wrapper2 {
        top: 4px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background-color: #fff9f4;
        padding: 5px 0;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav.horizontally .navbar-nav>li {
        flex-grow: 1;
    }

    nav.horizontally .navbar-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    nav.horizontally .navbar-nav [class*="secondlevel"]>ul {
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav li {
        position: relative;
    }

    nav.horizontally .navbar-nav li:is(.open, :hover)>ul,
    nav.horizontally .navbar-nav li.open:focus-within>ul,
    nav.horizontally .navbar-nav li[class*="secondlevel"]>ul[style*="block"] {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible;
    }

    nav.horizontally .navbar-nav li.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.horizontally .navbar-nav li:is(:hover, :focus)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #407242;
    font-weight: 700;
    text-align: left;
    padding: 10px 15px 15px 15px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="toplevel"].dropdown-toggle {
        padding-right: 35px;
    }
}

@media (min-width: 992px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 20px;
    }

    nav.horizontally a[class*="toplevel"] {
        text-align: center;
        padding: 18px 0;
    }
}

nav.horizontally a[class*="toplevel"]::after {
    content: "";
    width: 0;
    height: 1px;
    display: block;
    position: absolute;
    left: 50%;
    bottom: 14px;
    background: #407242;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 300ms linear, width 300ms linear;
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::after,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"].open>a::after,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::after {
    opacity: 1;
    width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #fff9f4;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    nav.horizontally [class*="toplevel"]>ul {
        padding: 10px 0;
    }
}

@media(min-width:992px) {
    nav.horizontally [class*="toplevel"] ul {
        padding-top: 18px;
        padding-bottom: 18px;
        border-top: 2px solid #407242;
    }

    nav.horizontally [class*="toplevel"]>ul {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        left: 50%;
        transform: translate(-50%, -2px);
    }

    nav.horizontally [class*="secondlevel"]>ul {
        margin-top: -18px;
        border-radius: 4px;
        margin-left: 10px;
        border-top: 2px solid #407242;
    }

    nav.horizontally [class*="secondlevel"]>ul::before {
        content: "";
        position: absolute;
        display: block;
        width: 10px;
        top: 0;
        bottom: 0;
        left: -10px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #191919;
    font-weight: 400;
    text-align: center;
    padding: 8px 25px;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

@media(max-width:991px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        text-align: left;
    }

    nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
        padding-right: 35px;
    }
}

/* secondlevel + thirdlevel over */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus) {
    background: #407242;
    color: #fff;
}

/* #endregion ------------------------------- navigation ---------------------------------------- */

/* #region ------------------------------------ banner ------------------------------------------ */

#slider {
    max-height: clamp(300px, 42vw, 400px);
    position: relative;
}

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(300px, 62vw, 650px);
    }

    #headerpic a.nivo-prevNav {
        left: 65px;
    }

    #headerpic a.nivo-nextNav {
        right: 65px;
    }
}

#headerpic {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.slider-wrapper,
#slider {
    height: 100%;
}

.slider-mask {
    display: block;
    background: linear-gradient(to top, rgba(255, 249, 244, 1.0), rgba(255, 249, 244, 0) 80%);
}

/* #endregion */

/* #region -------------------------------- scroll bottom --------------------------------------- */

#scrollBottom {
    font-size: 0;
    border-radius: 50%;
    display: block;
    width: 40px;
    height: 40px;
    text-align: center;
    background-color: #407242;
    animation: bounceAni 2s infinite 2s;
    transition: all .2s ease-in;
    position: absolute;
    left: calc(50% - 20px);
    bottom: 20px;
    z-index: 50;
}

@media (min-width: 768px) {
    #scrollBottom {
        bottom: 45px;
    }
}

#scrollBottom:is(:hover, :focus) {
    animation-play-state: paused;
}

#scrollBottom::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 1px;
    margin-top: 13px;
    display: inline-block;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    transition: border 300ms linear;
}

@keyframes bounceAni {

    0%,
    100%,
    20%,
    50%,
    80% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

#scrollBottom:is(:hover, :focus)::after {
    border-color: #267cc6;
}

/* #endregion ----------------------------- scroll bottom --------------------------------------- */

/* ------------------------------------------- content ------------------------------------------ */

#content {
    text-align: left;
    padding-bottom: clamp(30px, 4vw, 60px);
    padding-top: clamp(30px, 4vw, 60px);
}

/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #407242;
    font-weight: 700;
    line-height: 1.2;
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
}

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.875rem, 5vw, 2.25rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.75rem, 5vw, 2rem);
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4,
main .tabHeadline {
    font-size: clamp(1.625rem, 5vw, 1.875rem);
}

h5,
.h5,
.legacy_h5 {
    font-size: clamp(1.5rem, 4vw, 1.625rem);
}

h6,
.h6,
.legacy_h6,
footer .tabHeadline {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
}

/* #region ----------------------------------- tabs ------------------------------------------- */

.parallax {
    background-attachment: fixed;
}

main .tab {
    padding: 64px 0;
}

.button-style a {
    position: relative;
    text-transform: uppercase;
    display: inline-block;
    font-weight: 700;
    padding: 10px 44px;
    border-radius: 22px;
    margin-top: 70px;
    bottom: 0;
    transition: bottom 300ms linear, background-color 300ms linear, color 300ms linear;
    text-decoration: none;
}

.button-style a::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: transparent;
    border: #407242 1px solid;
    border-radius: 22px;
    transition: top 300ms linear, bottom 300ms linear;
}

.button-style a:is(:hover,:focus) {
    background-color: #407242;
    color: #fff;
    text-decoration: none;
    bottom: 10px;
}

.button-style a:is(:hover,:focus)::after {
    top: 10px;
    bottom: -10px;
}

.tabHeadline {
    margin-bottom: 24px;
}

/* #endregion */

/* #region ----------------------------------- footer ------------------------------------------- */

footer {
    background-color: #fff9f4;
    padding: 20px 0;
    hyphens: auto;
}

@media (max-width: 575px) {
    footer>.row>.col-xs-12+* {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        margin-top: 15px;
        padding-top: 15px;
    }
}

@media (max-width: 991px) {
    footer>.row>div {
        margin-bottom: 15px;
    }
}

footer .tabHeadline {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    footer {
        font-size: 1.125rem;
    }
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: block;
}

#innerfooter li a {
    color: #191919;
    text-decoration: none;
}

#innerfooter li a:is(:hover, :focus) {
    color: #407242;
    text-decoration: underline;
}

@media (min-width:500px) {
    #innerfooter li {
        display: block;
    }
}

/* #endregion -------------------------------- footer ------------------------------------------- */

/* ------------------------------------------ vernetzt ------------------------------------------ */

#vernetzt {
    gap: 18px;
    text-align: right;
    font-size: 0.875rem;
    color: #191919;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
}

@media (max-width: 575px) {
    #vernetzt {
        text-align: left;
    }
}

#vernetzt img {
    max-width: fit-content;
}

#vernetzt :is(b, strong) {
    color: #407242;
}

#vernetzt span span {
    display: block;
}