@import url("https://fonts.verwaltungsportal.de/import/?family=Red+Hat+Text:400,500,600,400i,500i,600i%7CLora:700,700i");

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

body {
    font-family: "Red Hat Text", sans-serif;
    color: #2a2a2a;
    background: #ffffff;
    font-size: clamp(1rem, 2vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.4;
}

a {
    color: #8f6614;
}

#content a {
    text-decoration: underline;
}

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

b,
strong {
    font-weight: 600;
}

/* ----------------------------------------------- @3tp topbar ----------------------------------------------- */

#tp3 {
    color: #ffffff;
    padding-bottom: 10px;
    background: #233b2d;
}

@media (max-width: 991px) {
    #tp3>.row>*+* {
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    #tp3>.row>*>*+* {
        margin-top: 10px;
    }
}

@media (min-width: 992px) {
    #tp3 {
        padding-bottom: 0;
    }
}

#tp3 span {
    color: #ffffff;
    font-size: 0.875rem;
    padding-right: 10px;
}

.optionscol {
    flex-wrap: wrap;
    gap: 10px 0;
}

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

#logo {
    display: inline-block;
    position: relative;
}

#logo img {
    display: block;
    padding: 34px 20px 18px 20px;
    border-radius: 0 0 155px 155px;
    background: #d8deaa;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) {
    .logo-col {
        z-index: 103;
    }

    #logo {
        position: absolute;
        top: 0;
        left: 15px;
    }
}

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

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

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

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

#contrast_style button:hover,
#contrast_style button:focus {
    background: #d8deaa;
}

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

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

#style button {
    padding: 0;
    border: none;
    color: #2a2a2a;
    display: inline-block;
    min-width: 29px;
    min-height: 29px;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    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: #2a2a2a;
    background: #d8deaa;
}

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

form[id^="search"] {
    min-height: 35px;
    display: block;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 575px) {
    form[id^="search"] {
        display: inline-block;
    }
}

@media (min-width: 576px) {
    form[id^="search"] {
        margin-left: 30px;
    }
}

form [id^="search_input"] {
    font-size: 0.875rem;
    color: #444444;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    padding-left: 14px;
    padding-right: 54px;
    min-height: 35px;
    width: 100%;
    display: block;
}

form [id^="search_submit"] {
    width: 40px;
    background: url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 6px;
    bottom: 6px;
    right: 0;
    font-size: 0;
    border-left: 1px solid #233b2d;
    transition: background 200ms linear, top 200ms linear, bottom 200ms linear;
}

form [id^="search_submit"]:hover,
form [id^="search_submit"]:focus {
    top: 0;
    bottom: 0;
    background-color: #d8deaa;
}

[id^="search_input"]::-ms-input-placeholder {
    color: #444444 !important;
}

[id^="search_input"]::-webkit-input-placeholder {
    color: #444444 !important;
}

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

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

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

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

/* 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: #8f6614;
        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: 7px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    #menuBox {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 102;
    }

    nav.horizontally {
        background: rgba(255, 255, 255, 0.9);
    }

    nav.horizontally>.row>div {
        transition: all 0.2s 0s ease;
    }

    .is-sticky nav.horizontally>.row>div {
        margin-left: 0;
        max-width: 100%;
        flex: 0 0 100%;
    }

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

    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:focus-within, :hover)>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:is(:hover, :focus-within)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #233b2d;
    font-weight: 700;
    text-align: left;
    padding: 12px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: 'Lora', serif;
}

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

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

@media (min-width: 992px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 2px;
    }

    nav.horizontally a[class*="toplevel"] {
        padding: 60px 10px 19px 10px;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-align: center;
    }

    nav.horizontally a[class*="toplevel"]::before {
        content: "";
        width: 30px;
        height: 34px;
        display: block;
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
        margin: auto;
        background: url('../img/aktiv-korb.png') center no-repeat;
        transition: all 150ms linear;
        opacity: 0;
    }
}

/* 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: #8f6614;
}

@media (min-width: 992px) {

    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: #ffffff;
    box-shadow: -1px 0px 5px 0 rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

/* secondlevel + thirdlevel */

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

@media (max-width: 991px) {
    nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
        padding-right: 35px;
    }
}

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

    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
        content: "";
        width: 0;
        height: 0;
        border-top: 36px solid #d8deaa;
        border-right: 18px solid transparent;
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        right: -18px;
        opacity: 0;
        transition: all 300ms;
    }

    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
        content: "";
        position: absolute;
        pointer-events: none;
        display: block;
        bottom: 0;
        left: 12px;
        width: 29px;
        height: 45px;
        background: url('../img/aktiv-pfote.png') center no-repeat;
        opacity: 0;
        transition: opacity 300ms linear;
    }
}

/* 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: #2a2a2a;
    background: #d8deaa;
}

@media (min-width: 992px) {

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

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

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

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

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

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

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

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

    #headerpic .nivo-controlNav {
        bottom: 130px;
    }
}

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

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

.slider-mask {
    display: block;
    background: linear-gradient(to top, #d8deaa, rgba(255, 255, 255, 0) 30%);
}

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

#content {
    background: #d8deaa url('../img/deko-wald.png') bottom center / 100% auto no-repeat;
}

#contentmain {
    background: #ffffff;
    padding: 20px;
}

@media (min-width: 992px) {
    #contentmain {
        padding: 30px 40px 30px 40px;
        margin-top: -110px;
        position: relative;
        z-index: 55;
    }
}

/* #region ---------------------------------- events ------------------------------------- */

#events {
    background-color: #ffffff;
    padding: 45px 0;
    position: relative;
    z-index: 56;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1200px) {
    #events {
        background: url('../img/rabe.png') bottom 20px left no-repeat;
    }
}

#events .tabHeadline {
    margin: 0 0 20px;
    padding-left: 15px;
    width: auto;
    position: relative;
    z-index: 2;
    background: linear-gradient(#d8deaa, #d8deaa) bottom left 8px / 100px 20px no-repeat;
}

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

#events .tab_link_entries {
    display: grid;
    gap: 20px 30px;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.15));
}

@media (min-width: 576px) {
    #events .tab_link_entries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    #events .tab_link_entries {
        grid-template-columns: repeat(3, 1fr);
    }
}

#events .tab_link_entry {
    background-color: #d8deaa;
    color: #2a2a2a;
    padding: clamp(25px, 2vw, 30px) clamp(20px, 2vw, 25px);
    border: none !important;
}

@media (min-width: 992px) {
    #events .tab_link_entry {
        clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0% 100%);
    }
}

#events .tab_link_entry a {
    color: #2a2a2a;
}

#events .tab_link_title a {
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 6px;
    display: inline-block;
}

#events .tab_link_date {
    font-style: italic;
}

#events .tab_spacer {
    display: none;
}

/* button */

#events .tab_link_mehr {
    font-size: 0;
}

#events .tab_link_mehr a {
    display: inline-block;
    text-decoration: none;
    position: relative;
    color: #ffffff;
    background-color: #233b2d;
    width: 170px;
    margin-top: 30px;
    padding: 6px 20px 14px 20px;
    font-family: "Lora", serif;
    line-height: 1;
    transition: all 300ms;
    clip-path: polygon(30px 0, 100% 0, 100% 100%, 0% 100%);
}

@media (min-width: 576px) and (max-width: 991px) {
    #events .tab_link_mehr a {
        position: absolute;
        bottom: 0;
        right: 15px;
    }
}

#events .tab_link_mehr a:is(:hover, :focus) {
    background-color: #6E4E0F;
}

#events .tab_link_mehr a::after {
    content: "\00BB";
    font-size: clamp(30px, 4vw, 45px);
}

/* #endregion ------------------------------- events ------------------------------------- */

/* --------------------------------------------- breaker -------------------------------------------- */

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

@media (min-width: 992px) {
    #breaker {
        min-height: 390px;
    }
}

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

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

h1,
.h1,
.legacy_h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.625rem, 3.5vw, 2.25rem);
}

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

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

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

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

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

#f5 {
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: #233b2d;
}

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

/* --------------------------------------------- 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 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 ----------------------------------------- */

:is(.contrast_light_font, .contrast_dark_font) #logo::after,
:is(.contrast_light_font, .contrast_dark_font) #logo::before {
    display: none;
}

#logo :is(.contrast_light_font, .contrast_dark_font) {
    background-color: #ffffff !important;
}

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