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

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

body {
    font-family: "Poppins", sans-serif;
    color: #636363;
    background: #eff6e7;
    font-size: 1rem;
    /* 1rem = 16px */
    line-height: 1.5;
}

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

a {
    color: #347937;
}

#content a,
a:hover,
a:focus {
    color: #347937;
    text-decoration: underline;
}

#content a {
    font-style: italic;
}

b, strong {
    font-weight: 600;
}

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

#topbar {
    background: #ffffff;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* ------------------------------------------------- styler ------------------------------------------------ */

@media (min-width: 992px) {
    #style button {
        font-size: 18px;
        background: transparent;
        padding: 0;
        border: none;
        color: #37813a;
        display: inline-block;
        font-weight: 400;
        text-align: center;
        position: relative;
        line-height: 1;
        width: 38px;
        height: 38px;
        border-radius: 100%;
        border: 1px solid #37813a;
        transition: color 300ms linear, background 300ms linear;
    }

    #style button+button {
        margin-left: 9px;
    }

    #style button:hover {
        color: #ffffff;
        background: #37813a;
    }

    #style button:focus-visible {
        outline: 2px auto;
    }
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

@media (max-width: 991px) {
    .searchBox {
        padding: 0 15px 20px 15px;
    }
}

form[id^="search"] {
    height: 38px;
    background: #fbfbfb;
    display: inline-block;
    position: relative;
    border-radius: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 240px;
}

form [id^="search_input"] {
    color: #6e6e6e;
    font-size: 16px;
    font-style: italic;
    background: transparent;
    padding: 0;
    border: 0;
    line-height: 38px;
    padding-left: 15px;
    padding-right: 47px;
    height: 38px;
    width: 100%;
    display: block;
    border-radius: 30px;
}

form [id^="search_submit"] {
    width: 38px;
    height: 38px;
    border: none;
    background: url('../img/lupe-icon.png') center no-repeat, #37813a;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0;
    -webkit-transition: transform 150ms linear;
    -moz-transition: transform 150ms linear;
    -ms-transition: transform 150ms linear;
    -o-transition: transform 150ms linear;
    transition: transform 150ms linear;
}

form [id^="search_submit"]:hover,
form [id^="search_submit"]:focus {
    -moz-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -o-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}

[id^="search_input"]::-ms-input-placeholder {
    color: #6e6e6e !important;
    font-style: italic;
}

[id^="search_input"]::-webkit-input-placeholder {
    color: #6e6e6e !important;
    font-style: italic;
}

[id^="search_input"]::-moz-placeholder {
    opacity: 1;
    font-style: italic;
}

/* --------------------------------------- navigation --------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    .horizontally {
        position: static !important;
    }

    #burgerButton {
        font-size: 0;
        border: none !important;
        position: relative;
        z-index: 1002;
        display: block;
        width: 46px;
        height: 40px;
        border-radius: 2px;
        cursor: pointer;
        background-color: #ffffff;
        padding: 3px;
    }

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

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

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

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

    #burgerButtonInner {
        top: 10px;
    }

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

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

    #burgerButton::before, #burgerButton::after {
        content: "";
        display: block;
    }

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

    .navbar-collapse {
        top: 0;
        background: #ffffff;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 100;
        height: auto !important;
        -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        overflow-y: auto;
        -webkit-transition: left 300ms linear, opacity 300ms linear;
        -moz-transition: left 300ms linear, opacity 300ms linear;
        -ms-transition: left 300ms linear, opacity 300ms linear;
        -o-transition: left 300ms linear, opacity 300ms linear;
        transition: left 300ms linear, opacity 300ms linear;
    }

    .navbar-collapse.collapse.in {
        left: 0;
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-header {
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        background-color: #ffffff;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
        -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    .navbar-collapse.in::after {
        content: "";
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
        display: block;
        width: 90px;
        background-color: rgba(0, 0, 0, 0.5);
    }
}

@media (min-width: 575px) and (max-width: 991px) {
    .navbar-collapse {
        width: 60%;
    }

    .navbar-collapse.collapse.in::after {
        width: 40%;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    .horizontally {
        background: #ffffff;
        padding: 5px 0;
        transition: padding 300ms linear, box-shadow 300ms linear;
    }

    .is-sticky .horizontally {
        padding: 5px 0;
        box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.08);
        -webkit-box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.08);
        -moz-box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.08);
    }

    nav.horizontally .navbar-nav {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify !important;
        -ms-flex-pack: justify !important;
        justify-content: space-between !important;
        -webkit-box-align: center !important;
        -ms-flex-align: center !important;
        align-items: center !important;
        flex-wrap: wrap;
    }

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

    nav.horizontally .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

    nav.horizontally .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        position: absolute;
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav>li, nav.horizontally .navbar-nav>li>.dropdown-menu>li {
        position: relative;
    }

    /* Fade in Hover Start */
    .navbar-default .navbar-nav li[class*="toplevel"]>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]>ul {
        display: block !important;
        pointer-events: none;
        opacity: 0;
        -webkit-transition: opacity 300ms linear;
        -moz-transition: opacity 300ms linear;
        -ms-transition: opacity 300ms linear;
        -o-transition: opacity 300ms linear;
        transition: opacity 300ms linear;
    }

    .navbar-default .open>.dropdown-menu,
    .navbar-default .navbar-nav li[class*="toplevel"]:hover>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]:hover>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]>ul[style*="block"] {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    .navbar-default .navbar-nav li[class*="toplevel"]:focus-within>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]:focus-within>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    .navbar-default .nav .open>.dropdown-menu {
        pointer-events: none !important;
        opacity: 0 !important;
    }
}

/* ---------------------------------------------- toplevel ---------------------------------------------- */

.navbar-default .navbar-nav>li>a {
    color: #58788d;
    font-weight: 400;
    text-align: left;
    padding: 10px 35px 15px 35px;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 1px;
    text-decoration: none;
}

@media (max-width: 991px) {
    .navbar-default .navbar-nav>li {
        border-bottom: 1px solid rgba(55, 129, 58, 0.2);
    }
}

@media (min-width: 992px) {
    .navbar-default .navbar-nav>li+li {
        margin-left: 20px;
    }

    .navbar-default .navbar-nav>li>a {
        padding: 20px 0;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
    }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) and (min-width: 992px) {
    .navbar-default .navbar-nav>li>a {
        display: block;
    }
}

/* -------------------------------------------- toplevel-over ------------------------------------------- */

.navbar-nav>li:hover>a,
.navbar-nav>li>a:hover,
.navbar-nav>li>a:focus,
.navbar-nav>li.open>a,
.navbar-nav>li.open>a:hover,
.navbar-nav>li.open>a:focus,
.navbar-nav>li[class$="_over"]>a,
.navbar-nav>li[class$="_over"]>a:hover,
.navbar-nav>li[class$="_over"]>a:focus {
    color: #37813a;
    background-color: transparent;
}

/* -------------------------------------- secondlevel + thirdlevel dropdown-box -------------------------------------- */

nav.horizontally [class*="toplevel"] ul {
    padding: 20px 0;
    background-color: #ffffff;
    filter: drop-shadow(0px 1px 5px rgba(0, 0, 0, 0.08));
}

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

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

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

    nav.horizontally [class*="toplevel"]>ul::after {
        top: -12px;
        left: 50%;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 14px 12px 14px;
        border-color: transparent transparent #ffffff transparent;
        transform: translate(-50%, 0);
    }

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

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

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

/* --------------------------------------------- secondlevel + thirdlevel -------------------------------------------- */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #636363;
    font-weight: 500;
    text-align: left;
    padding: 9px 35px;
    font-size: 0.9375rem;
    line-height: 1.2;
    text-decoration: none;
    letter-spacing: 1px;
}

@media (min-width:992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding: 9px 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) {
    background: transparent;
    color: #37813a;
}

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

#headerpic {
    position: relative;
}

#slider {
    overflow: hidden;
    position: relative;
    /*1920px * 720px*/
    height: 37.5vw;
}

body:not(.index) #slider {
    /*1920px * 500px*/
    height: 26vw;
}

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

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

@media (max-width: 991px) {

    #slider-onebanner,
    #slider .nivo-box>div,
    #slider .nivo-slice>div,
    #slider .nivo-main-image,
    #slider div[style*='background-size'] {
        background-attachment: unset !important;
        background-size: 100% auto !important;
    }
}

.slider-mask {
    display: none;
}

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

@media (max-width: 991px) {
    #bannerOverlay {
        padding: 40px 0;
        position: relative;
        z-index: 1;
    }
}

@media (min-width: 992px) {
    #bannerOverlay {
        position: absolute;
        pointer-events: none;
        bottom: 85px;
        left: 0;
        right: 0;
        z-index: 12;
    }

    #bannerOverlay .tab {
        pointer-events: all;
    }
}

#bannerOverlay .tab {
    color: #ffffff;
    padding: 30px 45px 35px 45px;
    border-radius: 30px 0 30px 0;
    background: url('../img/logo-deko.png') top 14px right 20px no-repeat, rgba(55, 129, 58, 0.9);
    position: relative;
    hyphens: auto;
}

#bannerOverlay .tab::after {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 40px;
    left: -15px;
    right: -15px;
    bottom: -20px;
    background: rgba(142, 192, 67, 0.9);
    border-radius: 30px 0 30px 0;
    z-index: -1;
}

#bannerOverlay .tab a {
    color: #ffffff;
}

#bannerOverlay .tab :is(h1, h2, h3, h4, h5, h6) {
    color: #ffffff;
    font-style: italic;
    font-size: clamp(1.75rem, 4vw, 2.1875rem);
    margin: 0;
}

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

main {
    text-align: left;
    padding-top: 30px;
    padding-bottom: 30px;
}

@media (min-width: 992px) {
    main {
        padding-top: 55px;
        padding-bottom: 70px;
    }
}

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

.h4link a:link, .h4link a:hover, .h4link a:focus, .h4link a:visited, H6, H5, H4, H3, H2, H1 {
    color: #37813a;
    font-weight: 600;
    line-height: 1.2;
    font-family: "Poppins", sans-serif;
}

h1, .h1, .legacy_h1 {
    font-size: 28px;
}

@media (min-width: 768px) {
    h1, .h1, .legacy_h1 {
        font-size: 2.25rem;
    }
}

h2, .h2, .legacy_h2 {
    font-size: 26.4px;
}

@media (min-width: 768px) {
    h2, .h2, .legacy_h2 {
        font-size: 2rem;
    }
}

h3, .h3, .legacy_h3 {
    font-size: 25.6px;
}

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

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

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

#newslinks, #newsmandate {
    border: 1px solid #37813a;
}

/* ----------------------------------------------- kontaktFooter ----------------------------------------------- */

#kontaktFooter {
    padding-top: 40px;
    padding-bottom: 55px;
    position: relative;
    z-index: 1;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #eff6e7;
}

#kontaktFooter .tab {
    hyphens: auto;
    color: #ffffff;
    padding: 45px 60px 35px 60px;
    border-radius: 0 30px 0 30px;
    background: rgba(55, 129, 58, 0.9);
    position: relative;
}

@media (min-width: 992px) {
    #kontaktFooter .tab {
        margin-right: 25px;
    }
}

#kontaktFooter .tab::after {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 11px;
    left: -14px;
    right: -12px;
    bottom: -11px;
    background: rgba(142, 192, 67, 0.9);
    border-radius: 0 30px 0 30px;
    z-index: -1;
}

#kontaktFooter .tab .tabHeadline {
    color: #ffffff;
    font-size: 1.5625rem;
}

#kontaktFooter .tab a {
    color: #ffffff;
    text-decoration: underline;
    font-style: italic;
}

/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#f5 {
    padding-top: 22px;
    padding-bottom: 16px;
    background-color: #eff6e7;
}

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

@media (max-width: 767px) {
    #innerfooter {
        border-bottom: 1px solid rgba(55, 129, 58, 0.1);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #347937;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 600;
}

#innerfooter a:hover,
#innerfooter a:focus {
    color: #347937;
    text-decoration: underline;
}

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

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

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

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

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

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

#vernetzt {
    text-align: left;
    font-size: 0.8125rem;
    color: #636363;
    line-height: 1.3;
    margin: 0 auto;
    text-decoration: none;
}

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

#vernetzt span {
    color: #636363;
}

#vernetzt b {
    color: #347937;
}

#vernetzt span span {
    display: block;
}

#vernetzt img {
    margin-right: 12px;
}