@import url('https://fonts.verwaltungsportal.de/import/?family=Source+Sans+3:400,600,700,400i,600i,700i');

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

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

a {
    color: #0075bf;
}

#content a {
    text-decoration: underline;
}

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

b,
strong {
    font-weight: 600;
}

:focus-visible {
    outline: 3px solid #ffe500 !important;
}

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

#topbar {
    padding: 5px 0;
    background: url('../img/topbar-hintergrund.png') center / cover no-repeat;
    position: relative;
}

#topbar>.row {
    row-gap: 24px;
}

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

#style span,
#contrast_style span {
    font-style: italic;
    font-size: 0.9375rem;
}

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

    #style button {
        border: none;
        color: var(--colorStyleButton);
        display: inline-block;
        font-weight: 600;
        text-align: center;
        background: var(--colorareas);
        line-height: 1;
        border-radius: 5px;
        font-size: 1rem;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        margin-left: 10px;
        box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 10px 0 rgba(0, 0, 0, 0.1);
    }

    #style button:is(:hover, :focus) {
        color: #191919;
        background: #ffe500;
    }

    #style+* {
        margin-left: 40px;
    }
}

#contrast_style button {
    color: #000000;
    padding: 0;
    display: inline-block;
    min-width: 36px;
    min-height: 36px;
    border-radius: 5px;
    font-weight: 400;
    text-align: center;
    background: #ffffff;
    position: relative;
    z-index: 1;
    font-size: 0;
    border: none;
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

#contrast_style button::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    left: -6px;
    top: -6px;
    min-width: 36px;
    min-height: 36px;
    background: rgba(0, 0, 0, 0.1);
    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 *+* {
    margin-left: 10px;
}

#contrast_style button::after {
    content: "";
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    bottom: 10px;
    border: 2px solid rgba(0, 0, 0, 1);
}

#contrast_style button:nth-of-type(1)::after {
    background: linear-gradient(-315deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1) 50%, rgba(255, 255, 255, 1) 50%);
}

#contrast_style button:nth-of-type(2)::after {
    background: linear-gradient(405deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 50%, rgba(0, 0, 0, 1) 50%);
}

#contrast_style button:nth-of-type(3)::after {
    background: var(--colorareas);
    border: 2px solid var(--colorareas);
}

#contrast_style button:is(:hover, :focus) {
    background: #f6f6f6;
}

@media (max-width: 991px) {
    #contrast_style {
        margin-bottom: 15px;
    }
}

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

#search {
    background: #ffffff;
    display: inline-flex;
    width: 100%;
    height: 36px;
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

@media (min-width: 992px) {
    #search {
        max-width: 270px;
        margin-top: 25px;
    }
}

#search_input {
    color: #191919;
    font-size: 0.9375rem;
    font-style: normal;
    background: transparent;
    padding: 6px 14px;
    border: 0;
    width: 100%;
    line-height: 36px;
    height: 36px;
}

#search_submit {
    min-width: 48px;
    flex-shrink: 0;
    line-height: 36px;
    background: url('../img/lupe-icon.png') center no-repeat;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
}

#search_submit:is(:hover, :focus) {
    background-color: #f6f6f6;
}

#search_input::placeholder {
    color: #191919 !important;
    opacity: 1 !important;
    font-style: italic !important;
}

/* #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: var(--colorareas);
        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: var(--colorareas);
        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: 6px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 10px 0;
        border-top: 4px solid #ffe500;
        background-color: var(--colorareas);
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        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;
        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: #191919;
    font-weight: 700;
    text-align: left;
    padding: 12px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 10px;
    background-color: #ffffff;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"] {
        margin-bottom: 10px;
    }

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

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

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

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

/* 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: #191919;
    background-color: #ffe500;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 10px 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 40px;
        min-width: 310px;
    }

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 20px;
        left: 50%;
        transform: translate(-50%, 0);
    }

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

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

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

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

/* secondlevel + thirdlevel */

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

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

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])+li:not(:nth-child(2)) {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

nav.horizontally a:is([class*="thirdlevel"])::before {
    content: "\203A \203A";
    display: inline-block;
    position: relative;
    bottom: 2px;
    position: absolute;
    left: 0;
    top: 8px;
    opacity: 0;
    transition: opacity 300ms linear;
}

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

    nav.horizontally a[class*="secondlevel"].dropdown-toggle2::before {
        content: "\203A \203A";
        display: inline-block;
        bottom: 2px;
        position: absolute;
        left: 0;
        top: 8px;
    }
}

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

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

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

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

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

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

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

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

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

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

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

.slider-mask {
    display: none;
}

/* #region -------------------------------------- tab ------------------------------------------- */

#tabs {
    padding-top: 30px;
}

@media (min-width: 992px) {
    #tabs {
        padding-top: 0;
        position: relative;
        z-index: 60;
        margin-top: -100px;
    }
}

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

#tabs .tab {
    height: 100%;
    min-height: 100%;
    padding: 40px 20px 40px 20px;
}

#tabs .tab {
    background: #ffffff url('../img/tab-hintergrund.png') center / cover no-repeat;
    border-radius: 20px;
    box-shadow: 0 60px 20px -50px rgba(0, 0, 0, 0.1);
}

#tabs .tab.tab1 {
    background: #ffffff url('../img/bg-unsere-vereine.png') center no-repeat;
}

#tabs .tab.tab2 {
    font-size: 1.5625rem;
    background: var(--colorareas) url('../img/kringeling.png') center / cover no-repeat;
}

@media (min-width: 992px) {
    #tabs .tab.tab2 {
        padding: 70px 40px;
    }
}

#tabs .tab .tabHeadline {
    font-size: clamp(1.75rem, 3vw, 2.1875rem);
    margin-bottom: 0;
    padding-bottom: 20px;
    letter-spacing: 2px;
}

#tabs .tab.tab2 .tabHeadline {
    font-size: 2.1875rem;
    padding-bottom: 0;
    letter-spacing: 0;
    text-transform: none;
}

#tabs .tab.tab2,
#tabs .tab.tab2 :is(h1, h2, h3, h4, h5, h6, .tabHeadline) {
    color: var(--colorStyleButton);
}

#tabs .tab.tab2 a {
    color: var(--colorStyleButton);
    text-decoration: underline;
}

#tabs .tab.tab2 :is(b, strong) {
    font-weight: 700;
    font-size: clamp(1.875rem, 4vw, 3.125rem);
    line-height: 1;
}

#tabs .tab.tab1 a {
    margin-top: 15px;
    font-size: 1.5rem;
    color: #191919;
    background: #ffe500;
    border-radius: 10px;
    display: inline-block;
    padding: 8px 20px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

#tabs .tab.tab1 a:is(:hover, :focus) {
    color: #ffe500;
    background: #191919;
}

#tabs .tab.tab3 a {
    margin-top: 15px;
    font-size: 1.5rem;
    color: var(--colorStyleButton);
    background: var(--colorareas);
    border-radius: 10px;
    display: inline-block;
    padding: 8px 20px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

#tabs .tab.tab3 a:is(:hover, :focus) {
    color: #191919;
    background: #ffe500;
}

#tabs .tab.tab1 a::after,
#tabs .tab.tab3 a::after {
    content: " \203A \203A";
}

/* #endregion ----------------------------------- tab ------------------------------------------- */

/* ------------------------------------------- contentBox ------------------------------------------ */

.index main {
    background: #f6f6f6;
}

main {
    border-top: 4px solid #ffe500;
}

#contentBox {
    text-align: left;
    padding-top: clamp(40px, 4vw, 60px);
    padding-bottom: clamp(40px, 7vw, 80px);
}

.index #contentBox,
#tickerWrapper {
    padding-top: 40px;
}

.newsticker,
.newsticker a {
    color: #0075bf;
}

/* ----------------------------------------------- @12ev events -------------------------------------------- */

@media (max-width: 991px) {
    #tabsRight {
        margin: 30px auto 0 auto;
    }
}

#ev12 {
    color: #191919;
    font-size: 1rem;
    border-radius: 20px;
    position: relative;
    background: #ffffff;
    box-shadow: 0 60px 20px -50px rgba(0, 0, 0, 0.1);
}

#ev12 .tabHeadline {
    margin-bottom: 0;
    text-align: center;
    font-size: 1.5625rem;
    font-weight: 700;
    padding: 19px 25px;
}

#ev12 #clr-events-hide {
    padding: 20px;
}

#ev12 #clr-events-hide>P:first-of-type {
    display: none;
}

#ev12 .tab_link_title a {
    font-weight: 700;
}

#ev12 .tab_link_mandat a {
    color: #191919;
}

#ev12 .tab_link_mehr {
    font-size: 0;
    text-align: center !important;
    padding-bottom: 30px;
}

#ev12 .tab_link_mehr a {
    font-size: 0.9375rem;
    color: var(--colorStyleButton);
    background: var(--colorareas);
    border-radius: 10px;
    display: inline-block;
    padding: 6px 20px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

#ev12 .tab_link_mehr a:hover,
#ev12 .tab_link_mehr a:focus {
    color: #191919;
    background: #ffe500;
}

#ev12 .tab_link_mehr a::after {
    content: " \203A \203A";
}

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

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

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

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #0075bf;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Source Sans 3", sans-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;
}

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

footer {
    margin-top: -20px;
    font-size: 1rem;
}

footer::before {
    content: "";
    display: block;
    height: 100px;
    background: var(--colorareas);
    margin: 0 15px;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

#footer {
    position: relative;
    padding: 40px 0 clamp(40px, 4vw, 60px) 0;
}

:is(#footer, #innerfooter)>.row {
    row-gap: 30px;
}

#footer::before,
#footer::after {
    content: "";
    display: block;
    width: 117px;
    height: 100px;
    position: absolute;
    top: -80px;
    pointer-events: none;
    background: var(--colordark) linear-gradient(9deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.4) 51%) bottom -14px right / 102px 50px no-repeat;
}

#footer::before {
    left: 0;
}

#footer::after {
    right: 0;
    transform: scaleX(-1);
}

@media (min-width: 992px) {
    footer::before {
        margin: 0 158px;
    }

    #footer::before,
    #footer::after {
        width: 260px;
    }
}

#footer a {
    text-decoration: underline;
}

#footer .footerHeadline {
    color: #0075bf;
    font-size: 1.5rem;
    margin-bottom: 6px;
    letter-spacing: 2px;
}

#footer .footerHeadline::before {
    content: "";
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #ffe500;
    margin: 0 auto 15px auto;
    background-position: center;
    background-repeat: no-repeat;
}

#footer .tab1 .footerHeadline::before {
    background-image: url('../img/icon-fragen.png');
}

#footer .tab2 .footerHeadline::before {
    background-image: url('../img/icon-location.png');
}

#footer .tab3 .footerHeadline::before {
    background-image: url('../img/icon-mail.png');
}

#innerfooter {
    padding: 26px 0;
    background-color: var(--colorareas);
    border-bottom: 11px solid #ffe500;
    position: relative;
}

#innerfooter ul {
    padding: 0;
}

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

    #innerfooter li+li {
        margin-left: clamp(20px, 3vw, 40px);
    }
}

#innerfooter a {
    color: var(--colorStyleButton);
}

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

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

#vernetzt {
    gap: 18px;
    text-align: right;
    font-size: 0.875rem;
    color: var(--colorStyleButton);
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

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

.contrast_light_font #style button {
    border: 1px solid #ffffff !important;
}

.contrast_light_font #search_input,
.contrast_light_font #contrast_style button {
    background-color: #ffffff !important;
}

.contrast_dark_font #vernetzt img {
    background-color: #000000;
}

#logo .contrast_dark img {
    background: #fff;
}

.navbar-default .navbar-nav>li:is(.contrast_light_font, .contrast_dark_font) .dropdown-menu>li:first-child,
.navbar-default .navbar-nav>li:is(.contrast_light_font, .contrast_dark_font) .dropdown-menu>li:last-child {
    display: none !important;
}