@import url('https://fonts.verwaltungsportal.de/css/?family=Lato:400,400i,700,700i%7CBarlow:600,600i,700,700i');
@import url("https://fonts.verwaltungsportal.de/css/?family=Khand:600,600i");

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

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

a {
    color: #cc3835;
}

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

b,
strong {
    font-weight: 700;
}

a:focus-visible,
button:focus-visible,
form:focus-visible,
input:focus-visible {
    outline: 3px solid #0066ff !important;
}

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

#topbar {
    position: relative;
}

#topbar>.row {
    padding: 12px 0;
}

@media (min-width: 1200px) {
    #topbar>.row>*:first-child:before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: -12px;
        right: -345px;
        width: 329px;
        height: 170px;
        background: url('../img/ast.png') center no-repeat;
        z-index: 12;
    }
}

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

#logo {
    display: flex;
    align-items: center;
    align-content: center;
    gap: clamp(15px, 3vw, 30px);
    text-decoration: none;
}

@media (min-width: 576px) {
#logoWappen {
    display: flex;
    gap: clamp(15px, 5vw, 70px);
}
}

#logo .logoImg img {
    display: block;
    filter: drop-shadow(0px 10px 5px rgba(0, 0, 0, 0.15));
}

@media (max-width: 991px) {
    #logo .logoTxt {
        margin-left: 30px;
    }
    #logo .logoImg img {
        max-width: 210px;
        width: 100%;
    }
}

#logo .logoTxt {
    font-style: italic;
    line-height: 1;
    font-weight: 600;
    color: #282828;
    font-family: "Barlow", sans-serif;
    font-size: clamp(1.125rem, 2vw, 2.0625rem);
}

#logo .logoTxt :is(b, strong) {
    color: #282828;
    text-indent: -55px;
    font-size: clamp(1.25rem, 3vw, 2.4375rem);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1;
    font-style: normal;
    font-family: "Barlow", sans-serif;
    display: block;
}

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

#stylerBox {
    width: 100%;
    margin-bottom: 27px;
    column-gap: 30px;
}

#stylerBox h2 {
    color: #2d3133;
    font-size: 0.9375rem;
    font-weight: 400;
    font-family: "Lato", sans-serif;
    margin: 0;
}

#stylerBox button {
    color: #4b4b4b;
    padding: 2px;
    border: 1px solid rgba(0, 0, 0, 0.6);
    font-family: "Khand", sans-serif;
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    font-weight: 600;
    text-align: center;
    background: transparent;
    position: relative;
    font-size: 17px;
    z-index: 1;
    line-height: 1;
    margin-left: 10px;
}

#style button:is(:hover, :focus) {
    color: #cc3835;
}

#stylerBox button::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    left: -6px;
    top: -6px;
    bottom: -6px;
    right: -6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 150ms linear;
}

#stylerBox button:is(:hover, :focus)::before {
    opacity: 1;
}

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

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

#contrast_style button:nth-of-type(3)::after {
    background: #ea5b0c;
    border: none;
}

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

/* #region ------------------------------------- search ----------------------------------------- */

form[id^="search"] {
    background: #3d5e07;
    display: inline-flex;
    border-radius: 30px;
    border: 4px solid #ffffff;
    overflow: hidden;
}

@media (max-width: 991px) {
    form[id^="search"] {
        width: calc(100% - 30px);
        margin: 20px 15px;
    }
}

@media (min-width: 992px) {
    form#search1 {
        position: relative;
        z-index: 60;
        margin-right: 4px;
        margin-bottom: -48px;
    }
}

form[id^="search"] label {
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 400;
    padding: 9px 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

form [id^="search_input"] {
    color: #d3e2ee;
    font-size: 0.9375rem;
    font-style: normal;
    background: transparent;
    padding: 9px 15px;
    border: 0;
    width: 100%;
}

form [id^="search_submit"] {
    min-width: 40px;
    border: none;
    background: url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    font-size: 0;
}

form [id^="search_submit"]:is(:hover, :focus) {
    background-color: rgba(0, 0, 0, 0.3);
}

form [id^="search_input"]::placeholder {
    color: #d3e2ee !important;
    opacity: 1 !important;
    font-style: normal !important;
}

/* #endregion ---------------------------------- search ----------------------------------------- */

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

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

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

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

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

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

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

.slider-mask {
    display: none;
}

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

/* burgermenu for tablet */

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

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #3d5e07;
        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: #578014;
        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: 14px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background-color: #578014;
        position: sticky;
        top: 0;
        z-index: 101;
    }

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

    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: #ffffff;
    font-weight: 400;
    text-align: left;
    padding: 15px 15px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 18px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
    }
}

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 0;
    height: 5px;
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    background: #ffffff;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 300ms linear, width 300ms linear;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::before {
        bottom: unset;
        top: -5px;
        background: #b3cf69;
    }
}

/* 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) {
    background: #3d5e07;
}

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;
    width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    border-top: 5px solid #b3cf69;
    background: #ffffff;
}

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

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

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 6px;
    }

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

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

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

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

/* secondlevel + thirdlevel */

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

@media (max-width: 991px) {
    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: #f0f0f0;
    color: #cc3835;
}

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

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

#content {
    text-align: left;
    padding-top: 20px;
    padding-bottom: clamp(20px, 3vw, 35px);
    background: #fafafa;
}

@media (min-width: 992px) {
    #contentCol {
        padding-top: 30px;
    }
}

#content>.row {
    row-gap: 40px;
}

/* #region -------------------------------------- tabs ------------------------------------------ */

#tabsLeft {
    display: grid;
    gap: 30px;
}

@media (min-width: 576px) and (max-width: 991px) {
    #tabsLeft {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    #tabsLeft {
        align-items: start;
        align-content: start;
        padding-right: clamp(20px, 2vw, 38px);
    }
}

#tabsLeft .tab {
    width: 100%;
    max-width: 360px;
    margin: 32px auto 0 auto;
    position: relative;
    padding: 45px 20px 20px 20px;
    background: #ffffff;
    font-size: 0.9375rem;
    border-top: 4px solid #b3cf69;
}

#tabsLeft .tab::before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    position: absolute;
    top: -32px;
    left: 50%;
    margin-left: -30px;
    border-radius: 50%;
    background: #3d5e07 url('../img/kalender-icon.png') center no-repeat;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15);
}

#tabsLeft #tab2::before {
    background-image: url('../img/nachrichten-icon.png');
}

#tabsLeft .tab :is(h1, h2, h3, h4, h5, h6, .tabHeadline) {
    color: #282828;
    font-size: 1.625rem;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    text-align: center;
}

#tabsLeft .tab .clr-events-tab-h3 {
    font-size: 1rem !important;
    text-transform: none !important;
}

#tabsLeft .tab .tab_link_title a {
    color: #282828;
    font-weight: 700;
}

#tabsLeft .tab .tab_link_mandat a {
    color: inherit;
}

#tabsLeft .tab .tab_link_mehr {
    font-size: 0;
}

#tabsLeft .tab .tab_link_mehr a {
    text-decoration: none;
    display: inline-block;
    font-size: 0.9375rem;
    color: #cc3835;
    font-weight: 400;
    border-radius: 2px;
    padding: 3px 15px;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

#tabsLeft .tab .tab_link_mehr a:is(:hover, :focus) {
    color: #ffffff;
    background: #cc3835;
}

#tabsLeft .tab .eventclndr-tab {
    margin-bottom: 22px;
}

#tabsLeft .tab #clr-events-hide>p:first-child {
    margin-bottom: 15px;
}

#tabsLeft .tab .tab_spacer {
    height: 15px;
}

/* #endregion ----------------------------------- tabs ------------------------------------------ */

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #282828;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Barlow", 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, 1.875rem);

}

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

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

#teaser {
    min-height: 150px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (min-width: 992px) {
    #teaser {
        min-height: 308px;
    }
}

/* --------------------------------------------- firstFooter ----------------------------------------- */

#firstFooter {
    color: #ffffff;
    padding-top: clamp(30px, 5vw, 65px);
    padding-bottom: clamp(30px, 4vw, 50px);
    background-color: #578014;
    position: relative;
}

@media (min-width: 1200px) {
    #firstFooter>.row::after {
        content: '';
        position: absolute;
        pointer-events: none;
        bottom: 13px;
        right: -313px;
        width: 218px;
        height: 282px;
        background: url('../img/Hirsch-footer.png') center no-repeat;
    }
}

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

#firstFooter :is(h1, h2, h3, h4, h5, h6, a) {
    color: #ffffff;
}

#firstFooter .tabHeadline {
    text-transform: uppercase;
    font-size: 1.5625rem;
}

#firstFooter .tab a {
    text-decoration: underline;
}

#newsletter {
    margin-top: 30px;
}

#newsletterInputs {
    min-height: 52px;
    background: #3d5e07;
    display: inline-block;
    position: relative;
}

#newsletter_input {
    color: #ffffff;
    font-size: 1.125rem;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    padding-left: 18px;
    padding-right: 75px;
    min-height: 52px;
    width: 100%;
}

#newsletter_submit {
    width: 70px;
    background: #3d5e07 url('../img/icon-newsletter.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    line-height: 33px;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    font-size: 0;
    transition: background-color 300ms linear;
}

#newsletter_submit:hover {
    background-color: #2d4505;
}

#newsletter_input::-ms-input-placeholder {
    color: #ffffff !important;
}

#newsletter_input::-webkit-input-placeholder {
    color: #ffffff !important;
}

#newsletter_input::-moz-placeholder {
    opacity: 1;
}

#newsletter_input:-moz-placeholder {
    opacity: 1;
}

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

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

#lastFooter {
    color: #ffffff;
    padding-top: 8px;
    padding-bottom: 8px;
    border-top: 5px solid #b3cf69;
    background-color: #578014;
}

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

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

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

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

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

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

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

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

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

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

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

#vernetzt span span {
    display: block;
}

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

.contrast_dark_font #newsletter_input,
.contrast_light_font :is(form[id^="search"], #search_input1, #footer2) {
    background-color: #000000 !important;
}

.contrast_dark_font :is(form[id^="search"], #search_input1, #scrollTopBtn) {
    background-color: #ffffff !important;
}

:is(.contrast_light_font, .contrast_dark_font) form [id^="search_submit"] {
    background: #000000 url('../img/lupe-icon.png') center no-repeat !important;
}

:is(.contrast_light_font, .contrast_dark_font) #content,
.contrast_light_font #teaser>.row,
.contrast_light_font #teaser>.row>* {
    background: none !important;
}

.contrast_dark_font form [id^="search_input"] {
    color: #000000 !important;
}