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

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

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

a {
    color: #517b65;
}

a:is(:hover, :focus),
main a {
    color: #517b65;
    text-decoration: underline;
}

strong,
b {
    font-weight: 600;
}

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

#topbar {
    font-size: 0.875rem;
    padding: 2px 0;
}

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

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

#topbar>.row>div>*+* {
    border-left: 1px solid rgba(88, 69, 58, 0.3);
}

/* --------------------------------------- contrast + styler ------------------------------------ */

#controls {
    column-gap: 14px;
}

:is(#contrast_style, #style) h2 {
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    color: inherit;
    font-style: italic;
    margin: 0 8px 0 20px;
    width: unset;
    opacity: 0.8;
}

:is(#contrast_style, #style) button {
    border: none;
    color: #2d2d2d;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    background: transparent;
    line-height: 1;
    min-width: 30px;
    min-height: 30px;
    position: relative;
    padding: 6px 4px;
    overflow: hidden;
}

:is(#contrast_style, #style) button:is(:hover, :focus) {
    color: #ffffff;
    background: #a8d5ba;
}

#contrast_style button:nth-of-type(2) {
    transform: scaleX(-1);
}

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

#contrast_style button:after {
    background: linear-gradient(to right, #2d2d2d, #2d2d2d 50%, #ffffff 50%);
}

#contrast_style button:nth-of-type(3):after {
    background: linear-gradient(to left, #a8d5ba, #a8d5ba 50%, #ffffff 50%);
}

/* -------------------------------------------- search ------------------------------------------ */

#search {
    background: transparent;
    display: inline-flex;
    width: 100%;
}

@media (min-width: 992px) {
    #search {
        max-width: 200px;
    }
}

#search_input {
    color: #2d2d2d;
    font-style: normal;
    background: transparent;
    padding: 7px 0 7px 20px;
    border: 0;
    width: 100%;
}

#search_submit {
    width: 35px;
    flex-shrink: 0;
    background: url('../img/suche-icon.png') center right / 17px auto no-repeat;
    padding: 0;
    border: none;
    cursor: pointer;
    font-size: 0;
    transition: transform 200ms linear;
    transform-origin: center right;
}

#search_submit:is(:hover, :focus) {
    transform: scale(1.2);
}

#search_input::placeholder {
    color: #2d2d2d !important;
    opacity: 0.8 !important;
    font-style: italic !important;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

@media (max-width: 991px) {
    #logo img {
        max-width: 100%;
        max-height: 50px;
    }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        background: #2A7B4A;
        padding: 10px 0;
    }

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

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #2A7B4A;
        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: #2A7B4A;
        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) {
    .sticky-wrapper {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
    }

    nav.horizontally {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        right: 0;
        top: 0;
        max-width: 1930px;
        width: 100%;
        z-index: 101;
        transition: 300ms linear background;
    }

    .is-sticky nav.horizontally {
        background: #4f7861;
    }

    .horizontally>.row {
        max-width: 1440px;
        width: 100%;
    }

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

    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, :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;
    }
}

@media (min-width: 1200px) {
    nav.horizontally .navbar-nav {
        padding-left: 30px;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #ffffff;
    font-weight: 400;
    text-align: left;
    padding: 10px 25px;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 20px 0px;
        text-align: center;
    }

    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 15px;
    }
}

nav.horizontally a[class*="toplevel"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transform: translate(-50%, 0);
    transition: width 300ms linear;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="toplevel"]::after {
        left: 25px;
        transform: unset;
    }
}

/* toplevel-over */

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

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 {
    width: 30px;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1);
}

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

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 12px;
        left: 50%;
        transform: translate(-50%, 0);
    }

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

    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::before {
        content: "";
        position: absolute;
        display: block;
    }

    nav.horizontally [class*="toplevel"]>ul::before {
        height: 12px;
        left: 0;
        right: 0;
        top: -12px;
    }

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    background-color: transparent;
    color: #2d2d2d;
    font-weight: 400;
    text-align: left;
    padding: 8px 35px;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.9);
}

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

/* 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: #2d2d2d;
    background-color: #a8d5ba;
}

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

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

header {
    position: relative;
}

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

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(440px, 68vw, 600px);
    }

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

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

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

.slider-mask {
    display: block;
    background: linear-gradient(to bottom, rgba(48, 48, 48, 0.9) 0%, transparent 50%);
}

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

#content {
    text-align: left;
    padding-top: clamp(40px, 5vw, 50px);
    padding-bottom: clamp(40px, 8vw, 80px);
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #2d2d2d;
    font-weight: 400;
    line-height: 1.2;
    font-family: "Nunito", 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.5625rem, 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.375rem;
}

/* ------------------------------------------------ @1tab ----------------------------------------------- */

#tab1 {
    padding: clamp(60px, 10vw, 120px) 0;
    background: #e5e5e5 center / cover fixed;
    box-shadow: inset 0 0 0 100vw rgba(229, 229, 229, 0.8);
}

#tab1>.row {
    row-gap: 30px;
}

#tab1 .tab {
    padding: 20px;
    font-size: 1rem;
    min-height: 100%;
    background-color: #ffffff;
    box-shadow: 0px 10px 51px 0px rgba(43, 43, 43, 0.1);
}

#tab1 .tab :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1.25rem;
    font-weight: 600;
}

#tab1 .tab a:not(.has-image):not([rel]):not(.has-image) {
    text-decoration: none;
    display: inline-block;
    color: #2d2d2d;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 7px 14px;
    margin-top: 15px;
    background-color: #a8d5ba;
    transition: background 300ms linear;
}

#tab1 .tab a:not(.has-image):not([rel]):not(.has-image):is(:hover, :focus) {
    background: #4f7861;
    color: #fff;
}

#tab1 .tab img {
    margin: -20px -20px 20px -20px;
    display: block;
    width: calc(100% + 40px) !important;
    min-width: calc(100% + 40px) !important;
}

/* --------------------------------------------- testimonials ------------------------------------------- */

#testimonials {
    padding: clamp(40px, 8vw, 80px) 0;
}

#testimonials .tabHeadline {
    margin-bottom: 30px;
}




#content .events-entry-3-more, #content .events-entry-3-more:hover, .events-entry-3-more, .events-entry-3-more:hover {
    color: #2d2d2d !important;
    background: #a8d5ba !important;
}


/* ----------------------------------------------- @2f footer ----------------------------------------------- */

#f2 {
    padding: clamp(40px, 5vw, 60px) 0;
}

#f2>.row {
    row-gap: 30px;
}

@media (max-width: 767px) {
    #f2 .row>.col-xs-12:not(:first-child)::before {
        content: "";
        background: #000000;
        display: block;
        height: 1px;
        margin: 25px 0;
        opacity: 0.2;
        width: 100%;
    }

    #f2 .row>.col-xs-12.hidden-xs~.col-xs-12::before,
    #f2 .row>.col-xs-12.hidden-sm~.col-xs-12::before {
        display: none;
    }
}

#f2 .template-page a {
    text-decoration: underline;
}

/* ----------------------------------------------- scrollTop ----------------------------------------------- */

#scrollTop {
    text-decoration: none;
    color: #2d2d2d;
    font-size: 1rem;
    opacity: 1 !important;
    max-width: 170px;
    padding: 6px 20px;
    margin: 0 auto 25px auto;
    background-color: #a8d5ba;
}

@media (min-width: 768px) {
    #scrollTop {
        margin: auto 0 45px auto;
    }
}

#scrollTop:is(:hover, :focus) {
    background-color: #4f7861;
    color: #fff;
}

#scrollTop span {
    position: relative;
    display: inline-block;
    font-size: 0;
    height: 35px;
    width: 18px;
    margin-right: 4px;
    transition: border-radius 300ms linear;
}

#scrollTop span::after {
    content: "";
    position: absolute;
    display: inline-block;
    margin-top: -1px;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 1px;
    border-right: 2px solid #2d2d2d;
    border-top: 2px solid #2d2d2d;
    transform: rotate(-45deg);
}

#scrollTop:hover span::after {
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
}

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

#vernetzt {
    gap: 12px;
    text-align: right;
    font-size: 0.875rem;
    color: #2d2d2d;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

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

#innerfooter {
    font-size: 1rem;
    color: #ffffff;
    padding: 22px 0;
    background-color: #2d2d2d;
}

#innerfooter ul {
    padding: 0 !important;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
}

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

#innerfooter li+li::before {
    content: "•";
    margin: 0 10px;
}

@media (min-width: 992px) {
    #innerfooter li+li::before {
        margin: 0 15px;
    }
}

@media (max-width: 767px) {
    #innerfooter li {
        display: block;
        text-align: center;
        padding: 5px;
        margin: 0;
    }

    #innerfooter li+li::before {
        display: none;
    }
}