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

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

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

a {
    color: #ac151a;
}

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

b,
strong {
    font-weight: 700;
}

@media (min-width: 1200px) {
    .row {
        max-width: 1600px;
        width: 100%;
    }
}

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

#logo {
    display: inline-block;
    background: #ac151a;
    position: relative;
    border-bottom-right-radius: 30px;
    padding: 5px 30px 5px 0;
    margin-bottom: 10px;
}

@media (min-width: 1200px) {
    #logo {
        position: absolute;
        top: 0;
        left: 15px;
        width: calc(100% - 30px);
        margin: 0;
    }
}

#logo::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 180px;
    left: -180px;
    background: #ac151a;
}

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

/* #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: #ac151a;
        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: #ac151a;
        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: 11px;
    }

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

/* menu desktop */

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

    nav.horizontally .navbar-nav {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    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: 500;
    text-align: left;
    padding: 15px 15px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "Khand", sans-serif;
}

@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: 20px 15px 16px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}

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

/* toplevel-over */

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 #121212;
    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: 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: #121212;
    font-weight: 400;
    text-align: left;
    padding: 10px 25px 6px 25px;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "Khand", sans-serif;
}

@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: rgba(0, 0, 0, 0.06);
    color: #ac151a;
}

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

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

@media (min-width: 992px) {
    #topbar {
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.9);
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 30;
    }
}

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

#controls {
    gap: 30px;
}

:is(#contrast_style, #style) h2 {
    color: #444444;
    font-size: 0.9375rem;
    font-weight: inherit;
    font-family: inherit;
    margin: 0;
}

:is(#contrast_style, #style) button {
    color: #121212;
    padding: 0 0 3px 0;
    border: 1px solid #121212;
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    font-weight: 400;
    text-align: center;
    background: #fff;
    position: relative;
    font-size: 16px;
    line-height: 1px;
    margin-left: 10px;
}

:is(#contrast_style, #style) button:is(:hover, :focus) {
    color: #fff;
    background-color: #ac151a;
}

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

:is(#contrast_style, #style) 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 #121212;
    border-radius: 50%;
    background: linear-gradient(to right, #121212, #121212 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: #ac151a;
    border: none;
}

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

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

form[id^="search"] {
    background: #eeeff2;
    display: inline-flex;
    width: 100%;
    border-radius: 30px;
}

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

@media (min-width: 992px) {
    form[id^="search"] {
        max-width: 13.125rem;
    }
}

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

form [id^="search_submit"] {
    min-width: 40px;
    border: none;
    background: #ac151a url('../img/lupe-icon.png') center / 14px auto no-repeat;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    border-radius: 50%;
    border: 5px solid #ffffff;
}

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

form [id^="search_input"]::placeholder {
    color: #444444 !important;
    opacity: 1 !important;
}

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

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

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

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

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

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

#headerpic {
    padding: 0;
    overflow: hidden;
    position: relative;
    border-bottom: 5px solid #ffffff;
}

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

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

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

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

@media (max-width: 991px) {
    #content {
        padding-top: 30px;
    }
}

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

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

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

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

@media (min-width: 992px) {

    #tabsLeft,
    #tabsRight {
        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: #f0f0f0;
    font-size: 0.9375rem;
    border-top: 4px solid #121212;
    border-radius: 0 0 20px 20px;
}

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

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

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

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

.tab .tab_link_mandat a {
    color: inherit;
}

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

.tab .tab_link_mehr a {
    text-decoration: none;
    padding: 4px 15px 3px 15px;
    display: inline-block;
    border-radius: 2px;
    font-size: 0.9375rem;
    background: #ac151a;
    color: #fff;
    font-weight: 600;
    font-family: "Khand", sans-serif;
}

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

.tab .tab_link_mehr a:is(:hover, :focus) {
    background: #121212;
}

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

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

.tab .tab_spacer {
    height: 15px;
}

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

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

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

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

/* @11f footer */

footer {
    overflow: hidden;
}

#footer {
    position: relative;
    font-size: 0.9375rem;
    padding: clamp(40px, 4vw, 50px) 0;
    background: #f0f0f0 center / cover no-repeat;
    box-shadow: inset 0 0 0 100vw rgba(240, 240, 240, 0.9);
}

#footer::after {
    content: "";
    display: block;
    position: absolute;
    left: calc(50% + 813px);
    bottom: -20px;
    background: url('../img/grafik-wildschwein.webp') center no-repeat;
    width: 152px;
    height: 163px;
}

#footer :is(h1, h2, h3, h4, h5, h6, .footerHeadline) {
    font-size: 1.625rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

#footer a {
    text-decoration: underline;
}

@media (max-width: 575px) {
    #footer>.row>*+* {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(18, 18, 18, 0.3);
    }
}

@media (min-width: 576px) {
    #footer>.row>*+*:not(:nth-child(2)) {
        border-left: 1px solid rgba(18, 18, 18, 0.3);
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    #footer>.row>*:first-child {
        margin-bottom: 20px;
    }
}

@media (min-width: 992px) {
    #footer>.row>*:not(:last-child) {
        padding-right: 30px;
    }

    #footer>.row>*+* {
        border-left: 1px solid rgba(18, 18, 18, 0.3);
        padding-left: 30px;
    }
}

/* footer2 */

#footer2 {
    padding: 16px 0;
    color: #ffffff;
    background: #ac151a;
}

#footer2>.row {
    row-gap: 15px;
}

/* innerfooter */

#innerfooter {
    font-size: 1rem;
}

#innerfooter>.row {
    row-gap: 15px;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter a {
    color: #ffffff;
    padding: 5px 0;
}

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

    #innerfooter li+li::before {
        content: "•";
        margin: 0 clamp(15px, 2vw, 25px);
    }
}

/* vernetzt */

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

#vernetzt span span {
    display: block;
}

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

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

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