@import url("https://fonts.verwaltungsportal.de/import/?family=Jost:300,400,500,600,300i,400i,500i,600i");

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

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

a {
    color: #13581c;
}

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

b,
strong {
    font-weight: 600;
}

:focus-visible {
    outline: 3px solid #13581c !important;
}

/* #region --------------------------- topbar + contrast + styler  ------------------------------ */

#topbar {
    font-size: 0.875rem;
    background: #186821;
    padding: 2px 0;
    color: #ffffff;
    overflow: hidden;
}

#topbar h2 {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0 15px 0 0;
    width: unset;
}

#topbar>.row>div>*:not(h2, address, #style) {
    margin-right: clamp(15px, 2vw, 30px);
}

#contrast_style,
#style {
    background-color: #d9f2d0;
}

:is(#contrast_style, #style) button {
    border: none;
    display: inline-block;
    background: transparent;
    min-height: 24px;
}

:is(#contrast_style, #style) button:is(:hover, :focus) {
    background: rgba(255, 255, 255, 0.8);
}

/* contrast */

#contrast_style {
    line-height: 0;
    padding: 3px 15px;
}

#contrast_style button {
    min-width: 24px;
    position: relative;
    padding: 5px;
    transition: filter 300ms linear;
}

#contrast_style button:not(:hover, :focus) {
    filter: grayscale(1) contrast(1.8);
}

#contrast_style button:nth-child(2) {
    transform: scale(-1);
}

#contrast_style button::after {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid #186821;
    display: block;
    position: absolute;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
}

#contrast_style button:after {
    background: linear-gradient(45deg, #186821, #186821 50%, #d9f2d0 50%);
}

#contrast_style button:nth-child(3):after {
    background: #186821;
}

/* style */

@media (min-width: 992px) {
    #style {
        padding: 3px 10px;
    }

    #style button {
        min-width: 30px;
        padding: 4px;
        color: #222222;
        text-align: center;
        line-height: 1;
    }
}

/* #endregion ------------------------ topbar + contrast + styler  ------------------------------ */

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

@media (min-width: 1200px) {
    .is-sticky #logo img {
        max-height: 80px;
    }
}

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

nav.burger {
    padding: 15px 0;
    background: #d9f2d0;
}

#burgerButton {
    font-size: 0;
    border: none !important;
    display: block;
    height: 50px;
    width: 60px;
    padding: 6px 8px;
    cursor: pointer;
    background-color: #d9f2d0;
    position: relative;
}

@media (max-width: 991px) {
    #burgerButton {
        position: fixed;
        top: 50px;
        right: 15px;
        z-index: 1010;
    }
}

@media (min-width: 992px) {
    #burgerButton {
        font-size: 30px;
        text-transform: uppercase;
        font-weight: 600;
        width: 135px;
        margin-left: auto;
        text-align: left;
        padding: 0;
    }
}

#burgerButton::before,
#burgerButton::after,
#burgerButtonInner::before {
    content: "";
    background-color: #222222;
    position: absolute;
    width: 29px;
    height: 4px;
    right: 16px;
    transition: transform 200ms linear, opacity 200ms linear;
}

@media (min-width: 992px) {

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner::before {
        right: 0;
    }
}

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

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

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

#burgerButtonInner::before {
    top: 13px;
}

#burgerButton::before {
    top: 22px;
}

#burgerButton::after {
    top: 31px;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    .navbar-nav {
        margin: 20px 0;
    }

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #186821;
        padding-bottom: 140px;
        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);
    }

    .dropdown-toggle-button {
        background-color: #d9f2d0;
    }

    .dropdown-toggle-button::before,
    .dropdown-toggle-button::after {
        color: #186821;
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.burger {
        position: sticky;
        top: 0;
        z-index: 1010;
        box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
    }

    #myNavbar {
        background: #ffffff;
        pointer-events: none;
        position: absolute;
        z-index: 1002;
        top: 70px;
        right: 15px;
        opacity: 0;
        width: 580px;
        max-height: 60vh;
        border-radius: 0;
        height: auto !important;
        overflow: auto !important;
        visibility: hidden;
        box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
        transition: opacity 300ms linear, top 300ms linear;
    }

    #myNavbar.navbar-collapse>div {
        display: flex;
        max-height: 75vh;
        overflow-y: auto;
        position: relative;
        background: #ffffff;
    }

    #burgerButton[aria-expanded="true"]+#myNavbar,
    #myNavbar:focus-within {
        pointer-events: auto;
        opacity: 1;
        top: 95px;
        visibility: visible;
    }

    nav.burger .navbar-nav {
        padding: 25px 0;
        background: #186821;
        min-height: 500px;
        scrollbar-color: #1d1d1b #ffffff;
        scrollbar-width: thin;
    }

    nav.burger .navbar-nav,
    nav.burger .navbar-nav>li>ul {
        width: 50%;
    }

    nav.burger .navbar-nav>li>ul {
        padding: 32px 20px;
        position: absolute;
        z-index: 2;
        left: 50%;
        top: 0 !important;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        background: #ffffff;
    }

    .navbar-default .navbar-nav>li>ul {
        display: block !important;
        pointer-events: none;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    .navbar-default #myNavbar.show .navbar-nav>li[class*="_over"]>.dropdown-menu,
    .navbar-default .navbar-nav>li:is(:hover, :focus-within, [class*="_over"])>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    nav.burger .navbar-nav>li:is(:hover, :focus-within)>ul {
        z-index: 3;
    }
}

/* toplevel */

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

@media (max-width: 991px) {
    nav.burger li[class*="toplevel"] {
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    nav.burger a[class*="toplevel"].dropdown-toggle {
        padding-right: 35px;
    }
}

@media (min-width: 992px) {
    nav.burger a[class*="toplevel"] {
        padding: 7px 30px;
        text-align: right;
    }

    nav.burger a[class*="toplevel"]::before {
        content: "";
        position: absolute;
        display: block;
        width: 25px;
        top: 0;
        bottom: 0;
        right: -25px;
    }
}

/* toplevel-over */

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

/* secondlevel + thirdlevel dropdown-box */

@media (max-width: 991px) {
    .navbar-default .navbar-nav>li>.dropdown-menu {
        background: #ffffff;
    }
}

/* secondlevel + thirdlevel */

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

@media (max-width: 991px) {
    nav.burger a[class*="thirdlevel"] {
        padding-left: 45px;
    }
}

nav.burger a[class*="thirdlevel"]::after {
    content: "";
    position: absolute;
    margin-top: -2px;
    top: 50%;
    left: 28px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
}

nav.burger li[class*="secondlevel"] {
    border-top: 2px dashed #d9f2d0;
}

@media (min-width: 992px) {

    nav.burger a[class*="secondlevel"],
    nav.burger a[class*="thirdlevel"] {
        font-size: 1.125rem;
    }

    nav.burger a[class*="secondlevel"] {
        padding: 9px 2px;
    }

    nav.burger a[class*="thirdlevel"] {
        padding: 5px 10px 5px 34px;
    }

    nav.burger a[class*="thirdlevel"]::after {
        left: 8px;
    }

    nav.burger li[class*="secondlevel"]>ul {
        display: block !important;
    }
}

/* secondlevel + thirdlevel over */

nav.burger li[class*="secondlevel"]:is(:hover, :focus-within)>a,
nav.burger li[class*="secondlevel"]>a:is(:hover, :focus),
nav.burger li[class*="secondlevel"].open>a,
nav.burger li[class*="secondlevel"].open>a:is(:hover, :focus),
nav.burger li[class*="secondlevel"][class*="_over"]>a,
nav.burger li[class*="secondlevel"][class*="_over"]>a:is(:hover, :focus) {
    background: transparent;
    color: #13581c;
}

nav.burger li[class*="thirdlevel"]:is(:hover, :focus-within)>a,
nav.burger li[class*="thirdlevel"]>a:is(:hover, :focus),
nav.burger li[class*="thirdlevel"].open>a,
nav.burger li[class*="thirdlevel"].open>a:is(:hover, :focus),
nav.burger li[class*="thirdlevel"][class*="_over"]>a,
nav.burger li[class*="thirdlevel"][class*="_over"]>a:is(:hover, :focus) {
    background: #13581c;
    color: #ffffff;
}

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

/* -------------------------------------------- banner ------------------------------------------ */

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

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(400px, 72vw, 700px);
    }

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

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

    body.index #headerpic .nivo-controlNav {
        bottom: 100px !important;
    }
}

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

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

.slider-mask {
    display: none;
}

.index .slider-mask {
    display: block;
    background: linear-gradient(to top, #ffffff, rgba(255, 255, 255, 0) 40%);
}

/* -------------------------------------------- welcome ----------------------------------------- */

#welcome {
    background: #ffffff;
    padding: 30px 0 40px 0;
}

@media (min-width: 992px) {
    body.index #welcome {
        padding-top: 0;
    }
}

/* ------------------------------------------ bannerOverlay ------------------------------------- */

#bannerOverlay {
    z-index: 12;
    position: relative;
    font-size: clamp(26px, 5vw, 40px);
    line-height: 1.2;
    font-weight: 300;
}

@media (min-width: 992px) {
    #bannerOverlay {
        margin-top: -90px;
    }
}

#bannerOverlay :is(h1, h2, h3, h4, h5, h6, ) {
    font-size: clamp(30px, 6vw, 60px);
}

/* ----------------------------------------- scroll bottom -------------------------------------- */

#scrollBottom {
    position: relative;
    margin: 35px auto 0 auto;
    width: 40px;
    height: 38px;
    display: block;
    font-size: 0;
    color: inherit;
    animation: bounceAni 2s infinite 2s;
}

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

#scrollBottom::after {
    content: "";
    width: 25px;
    height: 25px;
    display: inline-block;
    border-left: 5px solid #222222;
    border-bottom: 5px solid #222222;
    transform: rotate(-45deg);
    transition: border 200ms linear;
}

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

@keyframes bounceAni {

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

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

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

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

#content {
    text-align: left;
    padding: 40px 0 clamp(40px, 6vw, 60px) 0;
    background: #d9f2d0;
}

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

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

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.1875rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.625rem, 3vw, 1.875rem);
}

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

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

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

/* #region ---------------------------------------- @26tab ----------------------------------------------- */

#tab26 {
    padding: 40px 0;
    background: #d9f2d0;
    margin-top: 15px;
    overflow: hidden;
}

#tab26 .tabWrapper .slick-slider .slick-slide {
    margin: 0 !important;
    min-width: unset !important;
}

#tab26 .tabWrapper .slick-slider .slick-slide .row {
    width: auto !important;
}

#tab26 .tabWrapper .slick-track {
    display: flex;
    margin: 15px 0 30px 0;
}

#tab26 .tabWrapper .slick-track>* {
    height: auto;
}

#tab26 .tabWrapper>.template-page>.row>div,
#tab26 .tabWrapper .slick-slide>div {
    background: #ffffff;
    padding: 20px;
    font-size: 1rem;
}

@media (min-width: 576px) {
    #tab26 .tabWrapper {
        margin-right: -30px;
    }

    #tab26 .tabWrapper>.template-page>.row>div,
    #tab26 .tabWrapper .slick-slide>div {
        flex: 0 0 calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
}

#tab26 .tabWrapper .slick-slide>div {
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
}

/* ----------------------- @26tab slider arrows + dots ------- DO NOT DELETE ----------------------- */


#tab26 .slick-dots button,
#tab26 .slick-button {
    background: transparent;
    border: none;
    padding: 5px;
}

#tab26 .slick-button {
    font-size: 0px;
    position: relative;
    top: 4px;
}

#tab26 .slick-prev {
    margin-left: 14px;
}

@media (max-width: 767px) {
    #tab26 .slick-next {
        margin-left: 14px;
    }
}

#tab26 .slick-button::before {
    display: block;
    line-height: 9px;
    height: 20px;
    font-size: 40px;
    color: #222222;
}

#tab26 .slick-button::after {
    content: "";
    position: absolute;
    pointer-events: none;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.05);
    transition: width 200ms linear, height 200ms linear;
    z-index: -1;
}

#tab26 .slick-button:focus::after,
#tab26 .slick-button:hover::after {
    width: 28px;
    height: 28px;
}

@media (max-width: 767px) {

    #tab26 .slick-button::after,
    #tab26 .slick-button::after {
        width: 28px;
        height: 28px;
    }
}

#tab26 .slick-dots {
    padding: 0 15px;
    list-style: none;
}

#tab26 .slick-dots>li {
    display: inline-block;
    position: relative;
    top: 50%;
    font-size: 0px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #222222;
    transform: translateY(-50%);
}

#tab26 .slick-dots,
#tab26 .slick-button {
    display: inline-block !important;
}

@media (max-width: 767px) {
    #tab26 .slick-dots {
        display: none !important;
    }
}

#tab26 .slick-dots>li.slick-active {
    background: #ffffff;
    transition: background 200ms linear;
}

#tab26 .slick-dots>li+li {
    margin-left: 10px;
}

#tab26 .slick-prev::before {
    content: "\2039";
}

#tab26 .slick-next::before {
    content: "\203A";
}

/* ------------ @26tab slider 1 stop/play button for accessibility ------- DO NOT DELETE ------------ */

#tab26 .slick-animate-control {
    position: relative;
    z-index: 2;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    top: -5px;
    left: 10px;
    border: 1px solid #ffffff;
    background-color: #000;
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='M12 36V12h24v24Z' fill='%23fff'/%3E%3C/svg%3E");
}

#tab26 .slick-animate-control.slick-pause {
    background-size: 20px 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='M16 37.85v-28l22 14Z' fill='%23fff'/%3E%3C/svg%3E");
}

/* #endregion ------------------------------------- @26tab ----------------------------------------------- */

/* #region -------------------------------- footerwrapper --------------------------------------- */

.footerwrapper {
    font-size: 1rem;
    position: relative;
}

.footerwrapper>.row {
    row-gap: 30px;
}

.footerwrapper>.row:first-child {
    padding: 40px 0 5px 0;
}

@media (min-width: 992px) {
    .footerwrapper>.row:first-child>*:nth-child(2)::before {
        content: "";
        position: absolute;
        left: -80px;
        top: 0;
        bottom: 0;
        width: 6px;
        margin: auto;
        background-color: #d9f2d0;
    }
}

.footerwrapper>.row:last-child {
    padding: 35px 0;
}

.footerwrapper .template-page a {
    color: inherit;
    text-decoration: underline;
}

.footerwrapper .template-page a:not(.has-image) {
    text-decoration: none;
    background: #d9f2d0;
    display: inline-block;
    padding: 4px 20px;
}

.footerwrapper .template-page a:not(.has-image):is(:hover, :focus) {
    background: #186821;
    color: #ffffff;
}

.footerwrapper .tabHeadline {
    font-size: 1.125rem;
    color: inherit;
}

.tabSocial .tabHeadline {
    margin: 0;
    width: auto;
}

.tabSocial {
    gap: 10px 30px;
}

.tabSocial .template-page {
    width: auto;
}

.tabSocial :is(p+p, a+a) {
    margin-left: 20px;
}

/* #endregion ----------------------------- footerwrapper --------------------------------------- */

/* ------------------------------------------ newsletter ---------------------------------------- */

#newsletter {
    background: #d9f2d0;
    position: relative;
    width: 100%;
    border: 1px solid #fff;
    margin-top: 15px;
    max-width: 340px;
}

#newsletter_input {
    color: #222222;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    background: transparent;
    padding: 6px 15px;
    border: 0;
    width: 100%;
}

#newsletter_submit {
    font-size: 0;
    width: 50px;
    flex-shrink: 0;
    background: url('../img/icon-newsletter.png') center / 22px auto no-repeat;
    padding: 0;
    cursor: pointer;
    border: none;
    transition: background-size 150ms linear;
}

#newsletter_submit:is(:hover, :focus) {
    background-size: 28px auto;
}

#newsletter_input::placeholder {
    color: #222222 !important;
    opacity: 1 !important;
    font-style: normal !important;
}

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

#vernetzt {
    gap: 12px;
    text-align: right;
    font-size: 0.8125rem;
    color: inherit;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

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

#innerfooter {
    background: #186821;
    padding: 22px 0;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 4px 10px;
    display: inline-block;
}

#innerfooter a:is(:hover, :focus) {
    color: #222222;
    background: #d9f2d0;
}

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

    #innerfooter li+li {
        margin-left: clamp(15px, 3vw, 30px);
    }
}

/* --------------------------------------------- contrast --------------------------------------- */

.contrast_dark :is(#style, #contrast_style),
.contrast_light_font :is(#burgerButton, #burgerButtonInner)::before,
.contrast_light_font #burgerButton::after {
    background-color: #ffffff !important;
}

.contrast_dark_font #scrollBottom a:after {
    border-color: rgba(0, 0, 0, 0.8) !important;
}

.contrast_light_font a::after {
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.contrast_dark_font #vernetzt img {
    background-color: #000000;
}

.contrast_light_font .tabSocial img,
.contrast_dark_font #bannerOverlay {
    background-color: #ffffff;
}

#logo .contrast_dark img {
    background: #fff;
}

.navbar-default .navbar-nav>li:is(.contrast_light_font, .contrast_dark_font) .dropdown-menu>li:first-child,
.navbar-default .navbar-nav>li:is(.contrast_light_font, .contrast_dark_font) .dropdown-menu>li:last-child {
    display: none !important;
}

.contrast_light_font #newsletter_input::placeholder {
    color: #fff !important;
}