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

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

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

a {
    color: #507a1a;
}

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

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

@media (min-width: 1200px) {
    .row, .compact, ._op-container .container {
        max-width: 1440px;
        width: 100%;
    }
}

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

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

    #topbar,
    nav.horizontally {
        pointer-events: all;
        max-width: 1410px;
        width: 100% !important;
        margin: auto;
    }

    #topbar>.row>* {
        padding-left: 5px;
        padding-right: 5px;
    }

    nav.horizontally>.row>*:first-child {
        padding: 0;
    }
}

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

#topbar {
    padding: 4px 0;
    background: #ffffff;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}

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

#style {
    margin-left: 25px;
}

#style span {
    font-size: 1rem;
    color: #252525;
    margin-right: 15px;
}

#style button {
    padding: 0;
    border: none;
    color: #252525;
    display: inline-block;
    min-width: 40px;
    min-height: 40px;
    font-weight: 600;
    font-size: 1.125rem;
    text-align: center;
    background: #f6a50d;
    position: relative;
    line-height: 1;
    transition: color 300ms linear, background 300ms linear;
}

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

#style button:hover,
#style button:focus {
    color: #252525;
    background: #fdedcf;
}

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

form[id^="search"] {
    min-height: 40px;
    display: block;
    position: relative;
    background: #fdedcf;
    width: fit-content;
}

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

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

form [id^="search_input"] {
    font-size: 1rem;
    color: #252525;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    padding-left: 20px;
    padding-right: 120px;
    min-height: 40px;
    width: 100%;
    display: block;
}

form [id^="search_submit"] {
    min-width: 115px;
    text-align: center;
    padding: 0;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    color: #252525;
    font-size: 1rem;
    text-transform: uppercase;
    background: #f6a50d;
    transition: background 200ms linear;
}

form [id^="search_submit"]:hover,
form [id^="search_submit"]:focus {
    background-color: #fdedcf;
}

@media (max-width: 767px) {
    form [id^="search_input"] {
        padding-left: 5px;
        padding-right: 60px;
        font-size: 0.875rem;
    }

    form [id^="search_submit"] {
        min-width: 55px;
        font-size: 0.75rem;
    }
}

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

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

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

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

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

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

#logo {
    display: inline-block;
    padding: 20px 34px;
    background: #ffffff;
}

#logo img {
    display: block;
}

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

@media (max-width: 767px) {
    #logo {
        padding: 10px 24px;
    }

    #logo img {
        max-width: 90px;
    }
}

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

/* burgermenu for tablet */

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

    #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: #507a1a;
        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: #507a1a;
        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: url('../img/wasserzeichen-logo.png') bottom right no-repeat, #507a1a;
    }

    .is-sticky nav.horizontally {
        left: 0 !important;
        right: 0 !important;
    }

    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.125rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="toplevel"] {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
    }

    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: 40px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}

/* 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: #486e17;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    border-top: 5px solid #f6a50d;
    background: #ffffff;
    box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.1);
}

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

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"] ul {
        padding: 20px 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: -25px;
        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: #252525;
    font-weight: 400;
    text-align: left;
    padding: 11px 25px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
    }

    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: #fdedcf;
    color: #252525;
}

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

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

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

@media (min-width: 992px) {
    #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: block;
    background: url('../img/slider-mask.png') bottom -1px center / 100% auto no-repeat;
}

/* ----------------------------------------------- video_wrapper ----------------------------------------------- */

#video_wrapper {
    width: 100%;
    height: auto;
    max-height: 750px !important;
    overflow: hidden;
    position: relative;
}

#video_wrapper::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/slider-mask.png') bottom -1px center / 100% auto no-repeat;
    z-index: 1;
}

#body-video-background {
    width: 100%;
    /* z-index: -100; */
    position: relative;
    margin-top: -20%;
    /* DIESEN WERT FÜR OPTIMALE HÖHENVERSCHIEBUNG ANPASSEN. 0 LASSEN FALLS VIDEODATEI HÖHE BEREITS = GEWÜNSCHTE HÖHE */
    max-width: 100%;
    object-fit: cover;
}

@media(max-width:991px) {
    #video_wrapper {
        line-height: 0;
        max-height: 300px !important;
    }
}

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

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

#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;
    }
}

.tab {
    width: 100%;
    max-width: 360px;
    margin: 32px auto 0 auto;
    position: relative;
    padding: 45px 20px 20px 20px;
    background: #ffffff;
    font-size: 1rem;
    border-top: 4px solid #f6a50d;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
}

#content .tab::before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    position: absolute;
    top: -32px;
    left: 50%;
    margin-left: -30px;
    border-radius: 50%;
    background: #507a1a url('../img/icon-veranstaltungen.png') center no-repeat;
}

#teaser .tab::before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    position: absolute;
    top: -32px;
    left: 50%;
    margin-left: -30px;
    border-radius: 50%;
    background: #507a1a url('../img/icon-mitglied.png') center no-repeat;
    z-index: 1;
}

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

.tab .tab_link_title a {
    color: #252525;
    font-weight: 600;
}

.tab .tab_link_mandat a {
    color: inherit;
}

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

.tab .tab_link_mehr a,
#teaser a {
    text-decoration: none;
    padding: 4px 15px 3px 15px;
    display: inline-block;
    border-radius: 2px;
    text-transform: uppercase;
    font-size: 0.9375rem;
    background: #507a1a;
    color: #ffffff;
    font-weight: 600;
}

#teaser a {
    margin-top: 15px;
}

:is(.tab .tab_link_mehr, #teaser) a:is(:hover, :focus) {
    background: #f6a50d;
    color: #252525;
}

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

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

.tab .tab_spacer {
    height: 15px;
}

.tab hr {
    height: 4px;
    opacity: 1;
    background: #254c6b;
    max-width: 100px;
    width: 100%;
    margin: 28px auto;
    display: block;
}

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

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

#teaser {
    min-height: 245px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll, fixed;
    background-color: #fdedcf;
    position: relative;
}

@media (max-width: 991px) {
    #teaser {
        padding: 20px 0;
    }
}

#teaser::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/slider-mask-footer.png') top -1px center / 100% auto no-repeat;
}

#teaser .tab {
    padding-top: 30px;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
    #teaser .tab {
        margin-top: -60px;
        margin-bottom: -65px;
    }
}

#teaser img {
    margin: -30px -20px 25px -20px;
    display: block;
    width: calc(100% + 40px) !important;
    min-width: calc(100% + 40px) !important;
}

#teaser a {
    margin-top: 15px;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #252525;
    font-weight: 600;
    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;
}

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

#f5 {
    background-color: #507a1a;
}

@media (max-width: 991px) {
    #f5 {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #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;
    padding: 38px 22px;
}

#innerfooter a:hover,
#innerfooter a:focus {
    background: #486e17;
}

@media (max-width: 991px) {
    #innerfooter a {
        padding: 20px 15px;
    }
}

@media (max-width: 767px) {
    #innerfooter a {
        padding: 5px 22px;
    }

    #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.8125rem;
    color: #ffffff;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

/* ------------------------------------------- scroll top --------------------------------------- */

#scroll-top {
    font-size: 0;
    width: 33px;
    height: 33px;
    display: block;
    position: relative;
    margin: 0 auto;
    background: #f6a50d;
}

#scroll-top:is(:hover, :focus) {
    background: #ffffff;
}

@media (min-width: 992px) {
    #scroll-top {
        margin: 0;
    }
}

#scroll-top::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 3px;
    width: 14px;
    height: 7px;
    border-radius: 2px;
    margin-top: 10px;
    display: inline-block;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: #252525;
    transition: border 300ms linear;
}