@import url("https://fonts.verwaltungsportal.de/css/?family=Patrick+Hand:400,400i");
@import url("https://fonts.verwaltungsportal.de/css/?family=Lato:400,400i,700,700i");

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

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

a {
    color: #235c1d;
}

#content a,
a:is(:hover, :focus) {
    color: #235c1d;
    text-decoration: underline;
}

b,
strong {
    font-weight: 700;
}

#over {
    overflow: clip;
    position: relative;
}

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

#topbar {
    padding: 12px 0;
}

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

#style span {
    color: #444444;
    font-size: 1rem;
    padding-right: 10px;
}

#contrast_style span {
    color: #444444;
    font-size: 1rem;
    padding-left: 10px;
}

/* ------------------------------------------------ contrast_style ---------------------------------------------- */

#contrast_style button {
    color: #444444;
    padding: 0;
    font-size: 0;
    border: unset !important;
    display: inline-block;
    text-align: center;
    width: 29px;
    height: 29px;
    font-weight: 400;
    background: #d0d768;
    transition: background 300ms linear;
    position: relative;
    z-index: 1;
}

#contrast_style button:hover,
#contrast_style button:focus {
    color: #ffffff;
    background: #2f7a3e;
}

#contrast_style *+* {
    margin-left: 3px;
}

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

@media (min-width: 992px) {
    #style {
        margin-left: 30px;
    }
}

#style button {
    padding: 0;
    border: none;
    display: inline-block;
    min-width: 29px;
    min-height: 29px;
    font-weight: 400;
    font-size: 0.875rem;
    text-align: center;
    color: #ffffff;
    background: #2f7a3e;
    position: relative;
    line-height: 1;
    transition: color 300ms linear, background 300ms linear;
}

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

#style button:hover,
#style button:focus {
    color: #444444;
    background: #d0d768;
}

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

#logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 18px;
}

.logoImg img {
    display: block;
}

@media (max-width: 991px) {
    #logo {
        justify-content: start;
    }

    .logoImg img {
        max-width: 170px;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .logoImg img {
        max-width: 110px;
    }
}

.logoTxt {
    color: #2e7c27;
    font-size: clamp(20px, 4vw, 2.4375rem);
    line-height: 1;
    font-family: "Patrick Hand", sans-serif;
    font-weight: 400;
    text-decoration: none;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        background-color: #2e7c27;
        position: static !important;
    }

    #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: #2e7c27;
        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: #2e7c27;
        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) {
    #menuBox {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 60;
    }

    nav.horizontally {
        background-color: rgba(46, 124, 39, 0.95);
        transition: background 300ms linear;
    }

    nav.horizontally::before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: 5px;
        left: 0;
        right: 0;
        bottom: 5px;
        border-top: 1px dashed #fffada;
        border-bottom: 1px dashed #fffada;
    }

    .is-sticky nav.horizontally {
        background-color: #2e7c27;
    }

    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: #ffffff;
    font-weight: 400;
    text-align: left;
    padding: 10px 15px 15px 15px;
    text-transform: uppercase;
    font-family: "Patrick Hand", sans-serif;
    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;
    }

    .navbar-default .navbar-nav>li {
        border-bottom: 1px dashed #fffada;
    }
}

@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"]::before {
    content: "";
    width: 20px;
    height: 9px;
    display: block;
    position: absolute;
    left: 30px;
    bottom: 0;
    border-top-left-radius: 90px;
    border-top-right-radius: 90px;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 300ms linear;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::before {
        left: calc(50% - 15px);
    }
}

/* 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: #fffada;
    background-color: transparent;
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #f4f4f4;
    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;
    }

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

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

    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: #444444;
    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: #2e7c27;
    color: #fffada;
}

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

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

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

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

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

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

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

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

.slider-mask {
    display: block;
    background: url('../img/bannermask.png') bottom -1px center / 100% auto no-repeat;
}

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

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

@media (min-width: 1200px) {
    #content {
        position: relative;
    }

    #content>.row::before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: -130px;
        left: -360px;
        width: 159px;
        height: 178px;
        background: url('../img/pinsel-deko.png') center no-repeat;
        z-index: 12;
    }
}

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

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

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

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

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

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

h5,
.h5,
.legacy_h5 {
    font-size: clamp(1.375rem, 2vw, 1.5625rem);
}

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

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

#footer {
    color: #444444;
    padding: clamp(30px, 3vw, 40px) 0 clamp(30px, 2vw, 35px) 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #fffada;
}

@media (max-width: 767px) {
    #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>.col-xs-12:last-child {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        margin-top: 15px;
        padding-top: 15px;
    }
}

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

#footer a:not(#vernetzt) {
    color: #2e7c27;
    font-style: italic;
    text-decoration: underline;
}

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

#footer .footerSlogan {
    font-size: clamp(1.375rem, 4vw, 1.875rem);
    font-weight: 400;
    color: #2e7c27;
    line-height: 1.2;
    text-transform: uppercase;
    font-family: "Patrick Hand", sans-serif;
}

#footer .tabFooter .tabHeadline {
    color: #2e7c27;
    font-size: clamp(1.75rem, 2vw, 1.875rem);
}

.iframetab iframe,
.iframetab .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
}

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

/* ------------------------------------------ lastFooter ------------------------------------------ */

#lastFooter {
    font-size: 1rem;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #2e7c27;
    position: relative;
}

#lastFooter>.row {
    row-gap: 20px;
}

@media (min-width: 1200px) {
    #lastFooter>.row::before {
        content: '';
        position: absolute;
        pointer-events: none;
        bottom: -21px;
        left: -257px;
        width: 266px;
        height: 360px;
        background: url('../img/Bernhard-Hantzsch-Sprechblase.png') center no-repeat;
        z-index: 1;
    }

    #lastFooter>.row::after {
        content: '';
        position: absolute;
        pointer-events: none;
        bottom: -20px;
        right: -14vw;
        width: 117px;
        height: 321px;
        background: url('../img/bleistifte-deko.png') center no-repeat;
    }
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: block;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
}

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

@media (min-width:500px) {
    #innerfooter li+li::before {
        content: "•";
        margin: 0 clamp(15px, 2vw, 25px);
        color: #fff;
    }

    #innerfooter li {
        display: inline-block;
    }
}

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

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

#vernetzt b {
    color: #ffffff;
}

#vernetzt span span {
    display: block;
}