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

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #e8eef3;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #557d40 #ffffff;
    scrollbar-width: thin;
}

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

a {
    color: #557d40;
}

a:is(:hover, :focus) {
    color: #557d40;
    text-decoration: underline;
}

#content a {
    color: #557d40;
    text-decoration: underline;
}

b,
strong {
    font-weight: 700;
}

a:focus-visible,
button:focus-visible,
form:focus-visible,
input:focus-visible {
    outline: 3px solid #0066ff !important;
}

/* -------------------------------------------- logo -------------------------------------------- */

#topbar {
    padding: 12px 0;
}

.logo {
    display: inline-block;
}

.logo img {
    display: block;
}

@media (max-width: 991px) {
    #logoMobil img {
        max-width: calc(100vw - 120px);
        max-height: 50px;
        width: 100%;
    }

    #logoMobil .logo {
        position: fixed;
        top: 10px;
        left: 15px;
        z-index: 102;
    }
}

/* search */

form[id^="search"] {
    background: rgba(255, 255, 255, 0);
    overflow: hidden;
    width: 100%;
    position: relative;
}

@media (max-width: 767px) {
    form[id^="search"] {
        background: #6acd9c;
        padding-left: 12px;
        border-radius: 10px 20px 10px 20px;
    }
}

@media (min-width: 768px) {
    form[id^="search"]::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 1px;
        width: calc(100% - 45px);
        background: #3a4554;
        pointer-events: none;
        opacity: 0.4;
    }
}

form[id^="search"] label {
    font-size: 1.25rem;
    font-weight: 400;
}

form [id^="search_input"] {
    color: #2d2d2d;
    font-size: 1rem;
    font-style: normal !important;
    background: transparent !important;
    border: 0;
    width: 100%;
    padding: 6px 12px;
    font-weight: 400;
}

@media (max-width: 767px) {

    form[id^="search"] label,
    form [id^="search_input"] {
        color: #282828;
    }
}

form [id^="search_submit"] {
    border: none;
    padding: 0;
    border-radius: 10px 20px 10px 20px;
    cursor: pointer;
    width: 46px;
    min-height: 46px;
    flex-shrink: 0;
    font-size: 0;
    border: 2px solid #fff;
    background: #6acd9c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48' fill='%23282828' %3E%3Cpath d='M38.7 40.85 26.65 28.8q-1.5 1.3-3.5 2.025-2 .725-4.25.725-5.4 0-9.15-3.75T6 18.75q0-5.3 3.75-9.05 3.75-3.75 9.1-3.75 5.3 0 9.025 3.75 3.725 3.75 3.725 9.05 0 2.15-.7 4.15-.7 2-2.1 3.75L40.95 38.7q.45.4.45 1.025 0 .625-.5 1.125-.45.45-1.1.45-.65 0-1.1-.45Zm-19.85-12.3q4.05 0 6.9-2.875Q28.6 22.8 28.6 18.75t-2.85-6.925Q22.9 8.95 18.85 8.95q-4.1 0-6.975 2.875T9 18.75q0 4.05 2.875 6.925t6.975 2.875Z'/%3E%3C/svg%3E") center / 29px auto no-repeat;
}

form [id^="search_submit"]:is(:hover, :focus) {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48' fill='%23282828' %3E%3Cpath d='M38.7 40.85 26.65 28.8q-1.5 1.3-3.5 2.025-2 .725-4.25.725-5.4 0-9.15-3.75T6 18.75q0-5.3 3.75-9.05 3.75-3.75 9.1-3.75 5.3 0 9.025 3.75 3.725 3.75 3.725 9.05 0 2.15-.7 4.15-.7 2-2.1 3.75L40.95 38.7q.45.4.45 1.025 0 .625-.5 1.125-.45.45-1.1.45-.65 0-1.1-.45Zm-19.85-12.3q4.05 0 6.9-2.875Q28.6 22.8 28.6 18.75t-2.85-6.925Q22.9 8.95 18.85 8.95q-4.1 0-6.975 2.875T9 18.75q0 4.05 2.875 6.925t6.975 2.875Z'/%3E%3C/svg%3E");
}

form [id^="search_input"]::placeholder {
    color: #2d2d2d !important;
    opacity: 1 !important;
    font-style: italic !important;
}

@media (max-width: 767px) {
    form [id^="search_input"]::placeholder {
        color: #ffffff !important;
    }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #menu {
        position: relative !important;
        width: 100% !important;
    }
    #burgerButton {
        font-size: 0;
        border: none !important;
        position: absolute;
        z-index: 1002;
        display: block;
        width: 46px;
        height: 40px;
        border-radius: 2px;
        cursor: pointer;
        background-color: #ffffff;
        padding: 3px;
        right: 12px;
        top: 50%;
        margin-top: -20px;
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #6acd9c;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 2px;
        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: 11px;
    }

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

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

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

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 70px;
        background: #6acd9c;
        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 {
        height: 70px;
        line-height: 1;
        padding: 10px 15px;
        background-color: #ffffff;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 101;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
    }

    .dropdown-toggle-button-wrapper,
    .dropdown-toggle-button-wrapper2 {
        z-index: 1;
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    #menu {
        background-color: #6acd9c;
    }

    .is-sticky #menu {
        left: unset !important;
    }

    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;
        visibility: hidden;
        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:focus-within, :hover)>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:is(:hover, :focus-within)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #282828;
    font-weight: 700;
    text-align: center;
    padding: 10px 35px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 29px 15px;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}

nav.horizontally a[class*="toplevel"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    display: block;
    height: 2px;
    background-color: #fff;
    transition: width 300ms linear;
}

/* toplevel-over */

nav.horizontally #menu li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.horizontally #menu li[class*="toplevel"]>a:is(:hover, :focus),
nav.horizontally #menu li[class*="toplevel"].open>a,
nav.horizontally #menu li[class*="toplevel"].open>a:is(:hover, :focus),
nav.horizontally #menu li[class*="toplevel"][class*="_over"]>a,
nav.horizontally #menu li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    background-color: #ffffff;
    color: #8d021a;
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #ffffff;
    box-shadow: inset 0 0 20px 0 rgba(0, 0, 0, 0.12);
}

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

    nav.horizontally [class*="secondlevel"]>ul {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

@media (min-width:992px) {
    nav.horizontally [class*="toplevel"] ul {
        padding-top: 10px;
        padding-bottom: 10px;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2), inset 0 0 20px 0 rgba(0, 0, 0, 0.12);
    }

    nav.horizontally [class*="secondlevel"]>ul {
        margin-top: -10px;
        margin-left: 6px;
    }

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

/* secondlevel + thirdlevel */

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

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

    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
        content: "\0007C";
        margin-right: 5px;
    }
}

/* 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) {
    color: #8d021a;
}

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



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

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

@media (min-width: 768px) {
    body.index #slider .nivo-directionNav a {
        top: unset;
        bottom: 10px;
        z-index: 51;
    }
}

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(450px, 70vw, 570px);
    }

    body.index #slider .nivo-directionNav a {
        bottom: 110px;
    }
}

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

@media (min-width: 768px) {
    #headerpic {
        background: #fff;
    }
}

@media (max-width: 991px) {
    #headerpic {
        margin-top: 70px;
    }
}

@media (min-width: 992px) {
    #headerpic a.nivo-prevNav {
        left: 65px;
    }

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

    body.index #headerpic .nivo-controlNav {
        bottom: clamp(60px, 10vw, 110px);
    }
}

.slider-mask {
    display: none;
}

@media (min-width: 768px) {
    body.index .slider-mask {
        display: block;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    }
}

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

#slogan {
    position: relative;
    pointer-events: auto;
    padding-top: 15px;
    color: #2d2d2d;
    line-height: 1.2;
    font-size: clamp(1.375rem, 3vw, 1.625rem);
    font-weight: 700;
}

@media (max-width: 767px) {
    #slogan {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

#bannerOverlay {
    border-bottom: 2px solid #6acd9c;
}

@media (min-width: 768px) {
    #bannerOverlay {
        position: absolute;
        right: 0;
        bottom: 40px;
        left: 0;
        z-index: 53;
        pointer-events: none;
        border: none;
    }
}

/* #endregion --------------------------------- banner ------------------------------------------ */

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

#tabs {
    background-color: #6acd9c;
    padding-top: 30px;
    padding-bottom: 30px;
    color: #282828;
}

@media (min-width: 992px) {
    #tabs {
        padding-top: 0px;
        padding-bottom: 0;
    }

    #tabs>.row {
        position: relative;
        z-index: 55;
        bottom: -70px;
    }
}

#tabs>.row {
    row-gap: 15px;
}

#tabs .link :is(h1, h2, h3, h4, h5, h6) {
    color: #282828;
}

#tabs .tab {
    position: relative;
    color: #282828;
    height: 100%;
    min-height: 100%;
    padding: 10px 15px 30px 15px;
    outline: 2px solid #557d40;
    border-radius: 3px;
}

#tabs .tab:not(.link) {
    min-height: 150px;
    background-color: #6acd9c;
}

#tabs .tab img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
}

#tabs .tab .cleaner {
    display: none;
}

#tabs .tab .tabHeadline {
    position: relative;
    color: #8d021a;
    padding: clamp(100px, 16vw, 240px) 0px 0 0px;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    hyphens: auto;
}

#tabs a,
.buttonDesign a {
    font-weight: 700;
    color: #282828 !important;
    padding: 8px 30px;
    background-color: #6acd9c;
    border-radius: 30px;
}

#tabs a:is(:hover, :focus),
.buttonDesign a:is(:hover, :focus) {
    color: #ffffff !important;
    background-color: #8d021a;
}

/* #endregion ---------------------------------- tabs ------------------------------------------- */

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

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

.index #content {
    padding-top: clamp(30px, 9vw, 110px);
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #8d021a;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Oxygen", sans-serif;
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(1.875rem, 4vw, 2.6875rem);
}

h2,
.h2,
.legacy_h2 {
    font-size: 1.75rem;
}

h3,
.h3,
.legacy_h3 {
    font-size: 1.625rem;
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: 1.5rem;
}

h5,
.h5,
.legacy_h5 {
    font-size: 1.375rem;
}

h6,
.h6,
.legacy_h6 {
    font-size: 1.25rem;
}

/* --------------------------------------------- footer ----------------------------------------- */

#contact a,
#contact a:is(:hover, :focus) {
    color: #557d40;
}

#contact {
    background-color: #fff;
    color: #2d2d2d;
    border-top: 3px solid #8d021a;
    padding: clamp(15px, 4vw, 36px) 0 15px 0;
}

#contact>.row>div {
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    #contact {
        padding-top: 30px;
        padding-bottom: 15px;
    }

    #contact .row>*:nth-child(1)+* {
        margin-top: 15px;
    }
}

@media (min-width: 992px) {
    #contact>.row>*+* {
        border-left: 3px solid #ccd8c5;
    }
}

.contactTab {
    min-height: 100%;
    padding: 0 15px;
}

.contactTab .tabHeadline {
    margin-bottom: 20px;
    font-size: clamp(1.25rem, 3vw, 1.6875rem);
    color: #8d021a;
}

.contactTab a {
    font-weight: 700;
}

.contactTab .tab_link_title a {
    color: #2d2d2d !important;
}

.tab_link_mehr {
    font-size: 0;
}

.tab_link_mehr a {
    font-size: 1rem;
}

#footer {
    background-color: #6acd9c;
}

@media (max-width: 991px) {
    #footer {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

/* ------------------------------------------- innerfooter -------------------------------------- */

#innerfooter a {
    color: #282828;
    text-decoration: none;
    display: inline-block;
    padding: 4px 8px;
}

@media (min-width: 992px) {
    #innerfooter a {
        padding: 34px 8px;
    }
}

#innerfooter a:is(:hover, :focus) {
    color: #8d021a;
    background-color: #fafafa;
}

#innerfooter ul {
    padding: 0;
}

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

    #innerfooter li+li {
        margin-left: clamp(10px, 2vw, 20px);
    }
}

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

#vernetzt {
    gap: 14px;
    text-align: left;
    font-size: 0.9375rem;
    color: #282828;
    line-height: 1.4;
    font-weight: 400;
    text-decoration: none;
}

@media (max-width: 991px) {
    #vernetzt {
        margin: 20px 0;
    }
}

#vernetzt strong {
    color: #282828;
    font-weight: 400;
}

#vernetzt span span {
    display: block;
}