@import url('https://fonts.verwaltungsportal.de/css/?family=Source+Sans+3:300,300i,400,400i,500,500i,600,600i,700,700i%7CUbuntu:400,700,400i,700i');

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

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

a {
    color: #477029;
}

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

#content a,
b,
strong {
    font-weight: 600;
}

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

/* ------------------------------------------ contact ------------------------------------------- */

.contact {
    background-color: #477029;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 300;
    padding: 15px 0;
}

.contact :is(b, strong) {
    font-weight: 400;
}

@media (min-width: 992px) {
    .contact {
        padding: 6px 0;
    }
}

.contact p {
    margin: 0;
    display: inline-block;
}

.contact p+p {
    margin-left: clamp(15px, 2vw, 25px);
}

.contact a {
    color: #ffffff;
    display: inline-block;
    text-decoration: underline;
}

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

#logo {
    display: inline-block;
    margin: 14px 0;
}

#logo img {
    display: block;
}

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

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

nav.horizontally {
    background: #fff;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    #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: #477029;
        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: #ffffff;
        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: 5px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: flex-end;
        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, :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: #56524a;
    font-weight: 700;
    font-family: "Ubuntu", sans-serif;
    text-align: left;
    padding: 12px 35px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 300ms linear, color 300ms linear, padding 150ms linear;
}

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

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

    .is-sticky nav.horizontally a[class*="toplevel"] {
        padding: 25px 9px;
    }

    .navbar-default .navbar-nav>li+li {
        border-left: 1px solid rgba(0, 0, 0, 0.1);
    }
}

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

/* secondlevel + thirdlevel dropdown-box */

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

nav.horizontally [class*="toplevel"]>ul {
    background: #477029;
}

nav.horizontally [class*="secondlevel"]>ul {
    margin: 0;
    background: #f6f6f6;
}

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"] ul {
        padding: 18px 0;
    }

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

    nav.horizontally [class*="toplevel"]>ul::before {
        content: "";
        position: absolute;
        top: -12px;
        left: calc(50% - 20px);
        width: 40px;
        height: 12px;
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
        background: #477029;
    }

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    font-weight: 700;
    font-family: "Ubuntu", sans-serif;
    text-align: left;
    padding: 10px 35px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

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

nav.horizontally a[class*="secondlevel"] {
    color: #ffffff;
}

nav.horizontally a[class*="thirdlevel"] {
    color: #56524a;
}

/* secondlevel + thirdlevel over */

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

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

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

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

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

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

#headerpic {
    padding: 0;
    position: relative;
    background-color: #f9f9f9;
}

#headerpic::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(5px);
}

@media (min-width: 768px) {
    #headerpic .nivo-controlNav {
        text-align: right;
        padding-right: 10px;
    }
}

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

.slider-mask {
    display: none;
}

#bannerOverlay {
    background: rgba(71, 112, 41, 0.9);
    color: #ffffff;
    padding: 30px 20px;
    font-weight: 300;
    font-size: 1.125rem;
}

@media (min-width: 768px) {
    #bannerOverlay {
        padding: 30px 24px;
        position: absolute;
        left: 30px;
        right: 0;
        bottom: 0;
        z-index: 60;
    }
}

.bannerHeadline {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 1.8125rem;
}

#bannerOverlay a {
    color: #ffffff;
    text-decoration: underline;
}

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

/* -------------------------------------------- optionsBox ------------------------------------------ */


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

#styleContrast {
    height: 100%;
    background: #f0f7ea;
    padding: 23px 15px;
}

@media (min-width: 576px) and (max-width:767px) {
    #styleContrast {
        margin: 0;
    }
}

@media (min-width: 768px) {
    #styleContrast {
        margin-left: 15px;
        padding: 23px 0;
    }
}

#styleContrast>* {
    padding: 0 10px;
}

@media (min-width: 992px) {
    #styleContrast>*+* {
        border-left: 1px solid rgba(71, 112, 41, 0.35);
    }
}

#styleContrast h2 {
    color: #56524a;
    font-weight: 300;
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.875rem;
    margin-bottom: 0;
    width: auto;
    margin-right: 14px;
}

#styleContrast button {
    font-size: 18px;
    padding: 0 0 0 0 !important;
    border: none;
    color: #56524a;
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 500;
    text-align: center;
    background: rgba(86, 82, 74, 0.24);
    position: relative;
    line-height: 1;
}

#contrast_style button::after {
    content: "";
    display: block;
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 50%, #477029 50%);
}

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

#contrast_style button:nth-of-type(3)::after {
    background: #eb5b25;
    border-color: transparent;
}

#styleContrast button+button {
    margin-left: 4px;
}

#styleContrast button:is(:hover, :focus) {
    color: #ffffff;
    background: #477029;
}

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

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

#search {
    background: #ffffff;
    display: inline-block;
    position: relative;
    width: 100%;
    margin-top: 6px;
    border: 2px solid #e9e9e9;
}

#search_input {
    color: #56524a;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    font-style: normal;
    background: transparent;
    border: 0;
    padding: 15px 70px 15px 20px;
    width: 100%;
}

#search_input:is(:hover, :focus) {
    background: rgba(140, 118, 95, 0.1);
}

#search_submit {
    width: 60px;
    border: none;
    background: url('../img/lupe-icon.png') center / 20px auto no-repeat;
    padding: 0;
    cursor: pointer;
    position: absolute;
    top: 8px;
    bottom: 8px;
    right: 0px;
    font-size: 0;
    border-left: 2px solid #477029;
    transition: background 100ms linear;
}

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

#search input::placeholder {
    color: #56524a !important;
    opacity: 1 !important;
    font-style: normal !important;
}

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

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

/* -------------------------------------------- teaser ------------------------------------------ */

#teaser {
    color: #56524a;
    font-weight: 400;
    line-height: 1.4;
    padding-bottom: clamp(30px, 4vw, 40px);
    font-size: 1.125rem;
}

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

.teaser {
    background: #ffffff;
    padding: 25px 30px;
    height: 100%;
    min-height: 100%;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.31);
}

.teaser :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1.5rem;
    margin: 0;
}

.teaser a {
    color: #477029;
    text-decoration: underline;
}

.teaser img {
    margin-bottom: 15px;
}

.teaser:is(:hover, :focus-within) img {
    backface-visibility: hidden;
}

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

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

h1,
.h1,
.legacy_h1 {
    font-size: 1.875rem;
}

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.3125rem;
}

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

#footer {
    background: #f0f7ea;
    padding-top: clamp(30px, 2vw, 35px);
    padding-bottom: clamp(30px, 3vw, 40px);
    font-weight: 300;
    font-size: 1.125rem;
}

#footer .note {
    font-size: 1.5rem;
    font-weight: 400;
    font-family: "Ubuntu", sans-serif;
}

#footer .note :is(strong, b) {
    font-weight: 700;
    color: #3e7b27;
}

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

#footer .footer-headline {
    font-weight: 500;
    font-family: "Source Sans 3", sans-serif;
    color: inherit;
    margin: 0 0 2px 0;
    font-size: inherit;
}

#innerfooter {
    background: #477029;
    padding: 15px 0;
    font-size: 1rem;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    position: relative;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
    position: relative;
}

#innerfooter a:is(:hover, .focus) {
    color: #ffffff;
}

#innerfooter a::after {
    content: "";
    position: absolute;
    left: 0;
    width: 0;
    bottom: 2px;
    height: 1px;
    background: #ffffff;
    transition: width 150ms linear;
}

#innerfooter a:is(:hover, .focus)::after {
    width: 100%;
}

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

    #innerfooter li+li::before {
        content: "•";
        color: #ffffff;
        margin: 0 24px;
    }
}

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

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

#vernetzt {
    gap: 18px;
    text-align: right;
    font-size: 0.875rem;
    color: #56524a;
    line-height: 1.3;
    font-weight: 300;
    text-decoration: none;
}

#vernetzt strong {
    color: #477029;
    font-weight: 300;
}

#vernetzt span span {
    display: block;
}