@import url('https://fonts.verwaltungsportal.de/import/?family=Open+Sans:400,600,700,400i,600i,700i%7CPoppins:600,600i,800,800i');

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

body {
    font-family: "Open Sans", sans-serif;
    color: #333333;
    background: #ffffff;
    font-size: 1rem;
    /* 1rem = 16px */
    line-height: 1.6;
}

a {
    color: #263cd9;
}

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

b,
strong {
    font-weight: 600;
}

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

.contact {
    background-color: #e40c0c;
    line-height: 1.8;
    color: #ffffff;
    padding: 11px 0;
    font-size: 0.875rem;
}

@media (min-width: 992px) {
    .contact {
        line-height: 1.2;
    }
}

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

@media (min-width: 992px) {
    .contact p+p::before {
        content: "|";
        margin: 0 10px;
        color: #468da3;
    }
}

.contact a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

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

#topbar {
    padding: clamp(12px, 2vw, 24px) 0 10px 0;
}

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

#logoText {
    color: #222222;
    font-size: clamp(1.5625rem, 5vw, 2.0625rem);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

#logoText:is(:hover, :focus) {
    text-decoration: none;
}

#logoText :is(strong, b) {
    font-weight: 800;
}

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

@media (min-width: 992px) {
    .toolbar {
        margin-top: -25px;
    }
}

/* -------------------------------------------- contrast ------------------------------------------ */
#contrast_style button {
    color: #6e6e6e;
    padding: 0;
    border: 1px solid#4b4b4b;
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-weight: 400;
    text-align: center;
    background: #ffffff;
    position: relative;
    z-index: 1;
    font-size: 0;
}

#contrast_style button::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    left: -6px;
    top: -6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #4b4b4b;
    opacity: 0;
    -webkit-transition: opacity 150ms linear;
    -moz-transition: opacity 150ms linear;
    -ms-transition: opacity 150ms linear;
    -o-transition: opacity 150ms linear;
    transition: opacity 150ms linear;
}

#contrast_style button::after {
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    right: 3px;
    left: 3px;
    bottom: 3px;
    border: 1px solid #4b4b4b;
    border-radius: 50%;
}

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

#contrast_style button:nth-of-type(1)::after {
    background: linear-gradient(to right, #4b4b4b, #4b4b4b 50%, rgba(255, 255, 255, 1) 50%);
}

#contrast_style button:nth-of-type(2)::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 50%, #4b4b4b 50%);
}

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

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

#style {
    flex-shrink: 0;
    line-height: 1;
    margin-left: 30px;
}

#style h2,
#contrast_style h2 {
    font-size: 0.875rem;
    font-weight: inherit;
    color: #6e6e6e;
    width: unset;
}

#style h2 {
    margin: 0 0 10px 0;
}

#contrast_style h2 {
    margin: 0 0 4px 0;
}

#contrast_style {
    margin-bottom: 6px;
}

#style button {
    font-weight: 400;
    font-size: 16px;
    padding: 0;
    border: none;
    color: #ffffff;
    background: #e40c0c;
    display: inline-block;
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    margin-left: 5px;
}

#style button:is(:hover, :focus) {
    background: #222222;
}

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

form[id^="search"] {
    background: #f4f4f4;
    display: inline-flex;
    border-radius: 30px;
    margin: 15px 15px 0 15px;
}

@media (min-width: 992px) {
    form[id^="search"] {
        min-width: 207px;
        margin: 0 0 0 30px;
        height: 29px;
    }
}

form [id^="search_input"] {
    color: #222222;
    font-size: 1rem;
    font-style: normal !important;
    background: transparent;
    border: 0;
    width: 100%;
    border-radius: 30px;
    padding: 2px 0 2px 12px;
}

@media (min-width: 992px) {
    form [id^="search_input"] {
        margin-right: -13px;
    }
}

form [id^="search_submit"] {
    border: 4px solid #fff;
    background: #f20d0d url('../img/lupe-icon.png') center / 14px auto no-repeat;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    margin: -5px -5px -5px 0;
    font-size: 0;
    aspect-ratio: 1/1;
    min-width: 38px;
    flex-shrink: 0;
    transition: transform 150ms linear;
}

@media (min-width: 992px) {
    form [id^="search_submit"] {
        border-color: #ffffff;
    }
}

form [id^="search_submit"]:is(:hover, :focus) {
    transform: scale(1.2);
}

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

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

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

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

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

/* #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: #f20d0d;
        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;
        border-bottom: 1px solid #ebebeb;
        padding-bottom: 20px;
    }

    .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: 4px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background: #ffffff;
    }

    .is-sticky nav.horizontally {
        box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
    }

    .secondandthird-wrapper {
        padding: 10px 0;
        border: 1px solid #ebebeb;
    }

    nav.horizontally .navbar-nav {
        border-top: 1px solid #ebebeb;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    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: #222222;
    font-weight: 600;
    text-align: center;
    padding: 12px 35px;
    hyphens: auto;
    text-transform: uppercase;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

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

    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 15px;
    }
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.15);
}

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

@media(min-width:992px) {
    nav.horizontally [class*="toplevel"] ul {
        padding-top: 10px;
        padding-bottom: 10px;
        background-color: #ffffff;
    }

    nav.horizontally [class*="toplevel"]>ul {
        left: 0;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        margin-top: -10px;
        border-radius: 4px;
        margin-left: 15px;
    }

    nav.horizontally [class*="secondlevel"]>ul::before {
        content: "";
        display: block;
        position: absolute;
        width: 10px;
        top: 0;
        bottom: 0;
        left: -10px;
    }
}

/* secondlevel + thirdlevel */

:is(nav.horizontally, #menu-left) a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    background: #ffffff;
    font-weight: normal;
    text-align: left;
    padding: 10px 18px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    color: #333333;
}

@media (max-width: 991px) {
    :is(nav.horizontally, #menu-left) a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        text-align: center;
        padding-left: 35px;
        padding-right: 35px;
    }
}

@media (min-width: 992px) {
    #menu-left a[class*="thirdlevel"] {
        padding-left: 30px;
    }
}

/* secondlevel + thirdlevel over */

:is(nav.horizontally, #menu-left) li[class*="secondlevel"]:is(:hover, :focus-within)>a,
:is(nav.horizontally, #menu-left) li[class*="secondlevel"]>a:is(:hover, :focus),
:is(nav.horizontally, #menu-left) li[class*="secondlevel"].open>a,
:is(nav.horizontally, #menu-left) li[class*="secondlevel"].open>a:is(:hover, :focus),
:is(nav.horizontally, #menu-left) li[class*="secondlevel"][class*="_over"]>a,
:is(nav.horizontally, #menu-left) li[class*="secondlevel"][class*="_over"]>a:is(:hover, :focus),
:is(nav.horizontally, #menu-left) li[class*="thirdlevel"]:is(:hover, :focus-within)>a,
:is(nav.horizontally, #menu-left) li[class*="thirdlevel"]>a:is(:hover, :focus),
:is(nav.horizontally, #menu-left) li[class*="thirdlevel"].open>a,
:is(nav.horizontally, #menu-left) li[class*="thirdlevel"].open>a:is(:hover, :focus),
:is(nav.horizontally, #menu-left) li[class*="thirdlevel"][class*="_over"]>a,
:is(nav.horizontally, #menu-left) li[class*="thirdlevel"][class*="_over"]>a:is(:hover, :focus) {
    background: #e40c0c url(../img/logo-weiss-aktiv.png) no-repeat right 10px center;
    color: #ffffff;
}

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

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

#slider {
    max-height: 400px;
    position: relative;
}

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

@media (min-width: 992px) {
    #headerpic a.nivo-prevNav {
        left: 65px;
    }

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

    body.index #slider {
        max-height: 562px;
    }
}

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

.slider-mask {
    display: none;
}

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

#content-area {
    text-align: left;
    row-gap: 40px;
    padding: clamp(30px, 4vw, 60px) 0 clamp(40px, 6vw, 80px) 0;
}

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

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

h1,
.h1 {
    font-size: 36px;
}

h2,
.h2 {
    font-size: 1.875rem;
}

h3,
.h3 {
    font-size: 1.625rem;
}

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

h5,
.h5 {
    font-size: 1.375rem;
}

h6,
.h6 {
    font-size: 1.25rem;
}

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

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

@media (min-width: 1200px) {
    #tabs {
        padding-left: 42px;
    }

    #menu-left {
        padding-right: 42px;
    }
}

.tab {
    background: #f3f3f3;
    padding: 30px 20px;
    text-align: center;
}

#events .tab {
    background: #ffffff;
}

.tabHeadline {
    margin: 0 0 12px 0;
    color: #333333;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.25rem;
}

.tabContent {
    color: #333333;
    font-size: 0.875rem;
}

.tab_link_title a {
    color: inherit;
    font-weight: 600;
}

.tab_spacer {
    height: 15px;
}

.tab_link_mehr {
    text-align: center;
    font-size: 0;
}

:is(.tab_link_mehr, .buttonStyle) a {
    color: #ffffff;
    font-weight: 600;
    background: #e40c0c;
    border-radius: 2px;
    display: inline-block;
    padding: 4px 13px;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
}

.buttonStyle a {
    margin-top: 20px;
}

:is(.tab_link_mehr, .buttonStyle) a:is(:hover, :focus) {
    background: #850505;
}

.tab_link_mandat a {
    color: #333333;
}

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

/* ------------------------------------------- tab deko ----------------------------------------- */

.imgTab .banner {
    background-color: #e40c0c;
    position: relative;
    min-height: 60px;
    display: block;
}

.imgTab .banner+.tab {
    padding-top: 60px;
}

.imgTab .banner::after {
    content: "";
    position: absolute;
    background: url('../img/logo-tab.png') center no-repeat;
    width: 80px;
    height: 80px;
    left: calc(50% - 40px);
    bottom: -40px;
}


.imgTab .banner img {
    display: block;
    width: 100%;
}

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

#events {
    padding: 35px 0;
    background-size: cover;
    background-position: center;
    hyphens: auto;
    background-repeat: no-repeat;
}

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

@media (min-width: 992px) {
    #events .imgTab {
        margin-top: -105px;
    }
}

@media (min-width: 1200px) {
    #events>.row>div:first-child {
        padding-right: 42px;
    }
}

#events .tab_link_entries {
    display: grid;
    gap: 30px;
}

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

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

@media (min-width: 1200px) {
    #events .tab_link_entries {
        column-gap: 70px;
    }
}

#events .tab_link_entry {
    background: #ffffff;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    font-size: 0.875rem;
}

#events :is(.tab_link>div:last-child, .tab_spacer) {
    display: none;
}

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

/* ------------------------------------------- footer ------------------------------------------- */

footer {
    background-color: #e40c0c;
    padding: 30px 0;
    color: #ffffff;
}

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

#innerfooter ul {
    padding: 0;
}

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

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

#innerfooter a::after {
    position: absolute;
    content: '';
    background: url(../img/logo-weiss-aktiv-footer.png)no-repeat;
    width: 25px;
    height: 34px;
    opacity: 0;
    top: -35px;
    left: calc(50% - 15px);
}

#innerfooter a:is(:hover, :focus)::after {
    opacity: 1;
}

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

    #innerfooter li+li::before {
        content: "|";
        margin: 0 clamp(10px, 2vw, 20px);
        color: #fff;
        font-weight: 700;
        font-size: 0.75rem;
        position: relative;
        top: -2px;
    }
}

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

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

#vernetzt span span {
    display: block;
}

#vernetzt strong {
    font-weight: 700;
}

/* ------------------------------------------ vernetzt ------------------------------------------ */
.darkMode form[id^="search"],
.darkMode #style button  {
    border: 1px solid #fff !important;
    background: transparent;
}

.darkMode form [id^="search_input"]::placeholder,
.darkMode form [id^="search_input"] {
    color: #fff !important;
}

.darkMode form [id^="search_submit"] {
    background: rgba(0, 0, 0, 1) url('../img/lupe-icon.png') center / 14px auto no-repeat;
}

.contrast_light form [id^="search"] {
    border: 1px solid #000 !important;
}
.contrast_light form [id^="search"],
.contrast_light #style button {
    border: 1px solid #000 !important;
}