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

html {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    background: #e1eefa;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #2e3c48 #ffffff;
}

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

a {
    color: #b00015;
}

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

b,
strong {
    font-weight: 600;
}

.row {
    max-width: 1600px;
}

#over {
    overflow: clip;
    position: relative;
}

.news-welcomepage-more-link {
    margin-bottom: 30px;
    display: block;
}

#logo2 {
    position: absolute;
    top: 10px;
    z-index: 9;
    left: 10px;
    max-width: 80px;
}

@media (max-width: 575px) {
    body:not(.index) #logo2{
        max-width: 50px;
    }
}


/* #region ---------------------------------- mobilOptions -------------------------------------------- */

#mobilOptions {
    color: #ffffff;
    background-color: #b00015;
    font-size: 1rem;
}

#selectMobil summary {
    font-size: 1rem;
    color: #ffffff;
}

@media (max-width: 575px) {
    #mobilOptions {
        font-size: 0.875rem;
    }
}

#mobilOptions ul {
    padding: 0;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}

#mobilOptions li {
    display: block;
    text-align: center;
    flex-grow: 1;
    position: relative;
}

#mobilOptions li::before,
#selectMobil summary::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 10px;
    left: 0;
    right: 0;
    margin: auto;
    width: 20px;
    height: 20px;
}

#mobilOptions li:first-of-type:before {
    background: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23ffffff"><path d="M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"/></svg>') center no-repeat;
}

#mobilOptions li:nth-of-type(2)::before {
    background: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23ffffff"><path d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg>') center no-repeat;
}

#selectMobil summary::before {
    background: url("../img/icon-accessibility.png") center / contain no-repeat;
}

#mobilOptions a,
#selectMobil summary {
    text-decoration: none;
    font-weight: 400;
    color: #ffffff;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    padding: 35px 10px 10px 10px;
    background-color: #b00015;
}

#mobilOptions a:is(:hover, :focus) {
    background-color: #920011;
}

/* #region ---------------------------------- topbar -------------------------------------------- */

#topbar {
    padding-top: 20px;
    padding-bottom: 20px;
    background: #ffffff;
}

@media (min-width: 992px) {
    #topbar {
        padding-top: 18px;
        padding-bottom: 18px;
    }
}

/* #region ---------------------------------- logo --------------------------------------------- */

@media (min-width: 992px) {
    .logo-wrapper {
        position: absolute;
        width: 155px;
        height: 185px;
        border-bottom-right-radius: 78px;
        border-bottom-left-radius: 78px;
        background-color: #fff;
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
        padding: 24px 12px 0;
        transform-origin: top;
        transition: transform 300ms linear;
    }

    .is-sticky .logo-wrapper {
        transform: scale(.7);
    }
}

@media (max-width: 991px) {
    .logoWrapper {
        margin-top: 20px;
    }
}

/* #endregion */

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

#controls {
    position: static;
    gap: clamp(20px, 2vw, 30px);
    display: grid;
}

#select summary {
    min-width: 10vw;
    min-height: 41px;
    position: relative;
}

/* select */

#select {
    z-index: 1000;
    position: relative;
}

#selectMobil {
    width: 100%;
    position: relative;
}

#controlsMobil {
    cursor: pointer;
}

#controlsMobil summary {
    transition: background-color 300ms linear;
}

#controlsMobil:is(:hover, :focus) summary {
    background-color: #920011;
}


@media (max-width: 991px) {
    #select div[class*="col"] {
        padding: 0px;
    }
}

#select summary {
    cursor: pointer;
    font-size: 1.375rem;
    font-weight: 500;
    color: #222222;
    font-family: "Ubuntu", sans-serif;
    list-style: none;
    padding-left: 65px;
    display: flex;
    align-content: center;
    align-items: center;
}

#select summary::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    width: 41px;
    height: 41px;
    border-radius: 6px;
    background: url('../img/icon-accessibility.png') center no-repeat, #b00015;
}

/* contact tab */

#bf-options,
#bf-optionsModil {
    position: absolute;
    top: calc(100% + 15px);
    left: 15px;
    right: 15px;
    background: #ffffff;
    color: #010101;
    font-size: 1.125rem;
    padding: 22px 18px;
    border: 3px solid #323232;
    border-radius: 6px;
    transition: all 300ms linear;
    min-width: 240px;
}

#bf-optionsModil {
    left: -180px;
    z-index: 1003;
}



@media (min-width: 992px) {
    #bf-options {
        width: 100%;
        left: unset;
        right: -20px;
    }
}

#bf-options :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1.25rem;
}

/* styler */

#style {
    width: 100%;
    max-width: 200px;
}

#style button {
    border: none;
    font-size: 1.125rem;
    background: transparent;
    padding: 10px 0 10px 35px;
    position: relative;
    color: #010101;
}

@media (max-width: 575px) {
    #style button {
        font-size: 1rem;
    }
}

#style button::before {
    content: '';
    display: block;
    height: 31px;
    width: 31px;
    position: absolute;
    top: calc(50% - 13px);
    left: 0;
    background: url('../img/icon-a.png') center no-repeat;
    background-color: #fff !important;
    filter: contrast(100%);
    background-size: contain !important;
}

#style button:nth-child(1)::before {
    background: url('../img/icon-lupe-plus.png') center no-repeat;
    background-repeat: no-repeat;
}

#style button:nth-child(3)::before {
    background: url('../img/icon-lupe-minus.png') center no-repeat;
    background-repeat: no-repeat;
}

/* contrast */

#contrast_style {
    max-width: 250px;
}

#contrast_style button {
    background: transparent;
    border: none;
    font-size: 1.125rem;
    padding: 10px 0 10px 35px;
    position: relative;
    color: #010101;
}

@media (max-width: 575px) {
    #contrast_style button {
        font-size: 16px;
    }
}

#contrast_style button::before {
    content: '';
    display: block;
    height: 27px;
    width: 27px;
    position: absolute;
    top: calc(50% - 13px);
    left: 0;
    background: url('../img/icon-lightbulb.png') center no-repeat;
    background-color: #fff !important;
    filter: contrast(100%);
    background-size: contain !important;
}

#contrast_style button:nth-child(1)::before {
    background: url('../img/icon-grayscale.png') center no-repeat;
    background-repeat: no-repeat;
}

#contrast_style button:nth-child(2)::before {
    background: url('../img/icon-contrast.png') center no-repeat;
    background-repeat: no-repeat;
}

/* #endregion */

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

form[id^="search"] {
    min-height: 41px;
    display: block;
    position: relative;
    background: #ffffff;
    width: auto;
    min-width: 6vw;
}

@media (min-width: 1200px) {
    form[id^="search"] {
        max-width: 10vw;
    }
}

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

form [id^="search_input"] {
    font-size: 1.375rem;
    color: #222222;
    font-style: normal;
    font-weight: 500;
    font-family: "Ubuntu", sans-serif;
    background: transparent;
    padding: 0;
    border: 0;
    padding-left: 50px;
    padding-right: 0;
    min-height: 41px;
    width: 100%;
    display: block;
}

form [id^="search_submit"] {
    width: 41px;
    background: url('../img/suche-icon.png') center no-repeat;
    padding: 0;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    font-size: 0;
    height: 100%;
}

form [id^="search_submit"]:hover,
form [id^="search_submit"]:focus {
    filter: invert(10%) sepia(0%) saturate(1%) hue-rotate(152deg) brightness(100%) contrast(92%);
}

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

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

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

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

/* für :focus-visible -> setzt die Umrandung -3px weiter hinein */
form[id^="search"],
form [id^="search_input"],
form [id^="search_submit"] {
    outline-offset: -3px;
}

/* #endregion */

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #burgerButton {
        font-size: 13px;
        display: block;
        width: 48px;
        height: 48px;
        border-radius: 2px;
        padding: 8px 0 0 0 !important;
        cursor: pointer;
        background: #fff;
        border: none !important;
        border-radius: 4px;
        color: #b00015;
        font-weight: 700;
        line-height: 1;
        text-transform: uppercase;
        text-align: center;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButtonInner {
        margin-bottom: 26px;
        display: inline-block;
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner {
        opacity: 0;
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner2 {
        transform: rotate(-45deg) translate(3px, -3px);
    }

    #burgerButton[aria-expanded="true"]:after {
        transform: rotate(45deg) translate(-10px, -10px);
    }

    #burgerButtonInner2,
    #burgerButton:after {
        transition: transform 200ms linear, opacity 200ms linear;
    }

    #burgerButtonInner2 {
        top: 28px;
    }

    #burgerButton:after {
        top: 38px;
    }

    #burgerButtonInner2,
    #burgerButton:after {
        content: "";
        display: block;
        position: absolute;
        background: #b00015;
        border-radius: 2px;
        width: 38px;
        height: 3px;
        left: 5px;
        font-size: 0;
    }

    .navbar-nav {
        margin: 20px 0;
    }

    .navbar-collapse {
        padding: 30px 0;
        top: 0;
        background: #b00015;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 1000;
        height: auto !important;
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        overflow-y: auto;
        transition: left 300ms linear, opacity 300ms linear;
    }

    .navbar-collapse[aria-expanded="true"],
    .navbar-collapse.in {
        left: 0;
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-header {
        position: fixed;
        top: 80px;
        right: 15px;
        z-index: 101;
        transition: top 300ms linear;
    }

    .is-sticky .navbar-header {
        top: 15px;
    }

    .navbar-toggle::before {
        content: "";
        opacity: 0;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 0;
        z-index: -1;
        display: block;
        background-color: rgba(0, 0, 0, 0.5);
        transition: width 300ms linear, opacity 300ms linear;
    }

    .navbar-toggle[aria-expanded="true"]::before {
        opacity: 1;
        width: 100%;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    #menu {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 50%, rgba(0, 0, 0, .1) calc(50%), rgba(0, 0, 0, 0) calc(50% + 5px), rgba(255, 255, 255, 0));
        position: relative;
        min-height: 86px;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-around !important;
        min-height: 156px;
        padding: 30px 0;
        flex-wrap: wrap;
    }

    .is-sticky #menu {
        right: 0;
        left: 0;
        width: 100% !important;
    }

    nav.horizontally li[class*="toplevel"] {
        flex: 1;
        max-width: 180px;
    }

    nav.horizontally li[class*="toplevel"]>a {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100%;
    }

    nav.horizontally li[class*="toplevel"]>ul {
        position: absolute;
        top: auto;
        left: 0;
        right: 0;
        z-index: 1000;
        margin: 0;
        max-height: 60vh;
        padding: 10px 25px;
        padding-top: 20px;
        padding-bottom: 20px;
        overflow: visible;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    nav.horizontally li[class*="toplevel"]>ul::after {
        content: "";
        display: block;
        position: absolute;
        width: calc(100% - 60px);
        z-index: -1;
        transform: translateX(-50%);
        left: 50%;
        top: 0;
        bottom: 0;
        background: #ffffff;
        box-shadow: 0 8px 8px 0 rgba(84, 73, 73, 0.1);
        border-bottom: #b00015 5px solid;
    }

    nav.horizontally li[class*="toplevel"]>ul:not(.mCustomScrollbar),
    nav.horizontally li[class*="toplevel"]>ul .mCSB_container {
        -webkit-column-count: 4;
        -moz-column-count: 4;
        column-count: 4;
        -webkit-column-gap: 30px;
        -moz-column-gap: 30px;
        column-gap: 30px;
        max-width: 992px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 15px;
        height: auto;
    }

    nav.horizontally li[class*="secondlevel"] {
        float: none;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        break-inside: avoid;
        display: table !important;
    }

    .navbar-default .navbar-nav li[class*="toplevel"]:hover>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
        z-index: 1003;
    }

    .navbar-default .navbar-nav li[class*="toplevel"]:focus-within>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    .nav li[class*="toplevel"].open>.dropdown-menu {
        pointer-events: none !important;
        opacity: 0 !important;
    }

    #mCSB_1_scrollbar_vertical {
        left: 50%;
        margin-left: calc(962px/2);
    }
}

@media (min-width: 1200px) {

    nav.horizontally li[class*="toplevel"]>ul:not(.mCustomScrollbar),
    nav.horizontally li[class*="toplevel"]>ul .mCSB_container {
        max-width: 1200px;
        padding-top: 25px;
        padding-bottom: 30px;
    }

    #mCSB_1_scrollbar_vertical {
        margin-left: calc(1170px/2);
    }
}

nav.horizontally li[class$="_end"],
nav.horizontally li[class$="_start"] {
    display: none;
}

/* ---------------------------------------------- toplevel ---------------------------------------------- */

.navbar-default li[class*="toplevel"]>a {
    color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 500;
    text-align: left;
    padding: 15px 15px 15px 15px;
    margin: 0 10px;
    position: relative;
    font-size: clamp(1rem, 2vw, 1.375rem);
    line-height: 1.2;
    text-decoration: none;
    z-index: 1004;
}

@media (max-width: 991px) {
    .navbar-default li[class*="toplevel"] {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.horizontally li[class*="toplevel"]>a {
        color: #fff;
        text-align: left;
        font-size: 1.1875rem;
    }

    .dropdown-toggle-button-wrapper {
        top: 11px;
    }

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

@media (min-width: 992px) {
    .navbar-default li[class*="toplevel"]>a {
        padding: 26px 12px;
        border: #b00015 3px solid;
        background-color: #b00015;
        border-radius: 10px;
        word-wrap: break-word;
        word-break: keep-all;
        text-align: center;
    }
}

/* -------------------------------------------- toplevel-over ------------------------------------------- */

@media(min-width: 992px) {

    .navbar-default li[class*="toplevel"]:hover>a,
    .navbar-default li[class*="toplevel"]>a:hover,
    .navbar-default li[class*="toplevel"]>a:focus,
    .navbar-default li[class*="toplevel"].open>a,
    .navbar-default li[class*="toplevel"].open>a:hover,
    .navbar-default li[class*="toplevel"].open>a:focus,
    .navbar-default li[class*="toplevel"][class$="_over"]>a,
    .navbar-default li[class*="toplevel"][class$="_over"]>a:hover,
    .navbar-default li[class*="toplevel"][class$="_over"]>a:focus {
        background-color: #ffffff;
        color: #222222;
    }
}

/* -------------------------------------- secondlevel + thirdlevel dropdown-box -------------------------------------- */

@media (max-width: 991px) {

    .navbar-default li[class*="toplevel"]>.dropdown-menu,
    .navbar-default li[class*="toplevel"]>.dropdown-menu>li>.dropdown-menu {
        padding: 10px;
        background: #ffffff;
    }
}

@media (min-width: 992px) {
    .navbar-default li[class*="toplevel"]>.dropdown-menu>li>.dropdown-menu {
        display: block;
    }
}

/* --------------------------------------------- secondlevel + thirdlevel -------------------------------------------- */

.navbar-default li[class*="secondlevel"]>a,
.navbar-default li[class*="thirdlevel"]>a {
    color: #444444;
    text-align: left;
    padding: 8px 35px 8px 15px;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
    hyphens: auto;
}

.navbar-default li[class*="secondlevel"]>a {
    font-weight: 400;
}

.navbar-default li[class*="thirdlevel"]>a {
    font-weight: 400;
}

@media (min-width: 992px) {
    .navbar-default li[class*="secondlevel"]>a {
        padding: 20px 0 2px;
    }

    .navbar-default li[class*="thirdlevel"]>a {
        padding: 5px 0 5px 10px;
    }
}

/* ------------------------------------------ secondlevel + thirdlevel over ------------------------------------------ */

.navbar-nav li[class*="secondlevel"]:hover>a,
.navbar-nav li[class*="secondlevel"]>a:hover,
.navbar-nav li[class*="secondlevel"]>a:focus,
.navbar-nav li[class*="secondlevel"].open>a,
.navbar-nav li[class*="secondlevel"].open>a:hover,
.navbar-nav li[class*="secondlevel"].open>a:focus,
.navbar-nav li[class*="secondlevel"][class$="_over"]>a,
.navbar-nav li[class*="secondlevel"][class$="_over"]>a:hover,
.navbar-nav li[class*="secondlevel"][class$="_over"]>a:focus,
.navbar-nav li[class*="thirdlevel"]>a:hover,
.navbar-nav li[class*="thirdlevel"]>a:focus,
.navbar-nav li[class*="thirdlevel"].open>a,
.navbar-nav li[class*="thirdlevel"].open>a:hover,
.navbar-nav li[class*="thirdlevel"].open>a:focus,
.navbar-nav li[class*="thirdlevel"][class$="_over"]>a,
.navbar-nav li[class*="thirdlevel"][class$="_over"]>a:hover,
.navbar-nav li[class*="thirdlevel"][class$="_over"]>a:focus {
    color: #b00015;
}

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

/* #region ---------------------------------- banner ------------------------------------------- */

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

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

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

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

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

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

@media(min-width: 992px) {
    .slider-mask {
        display: block;
        background: url(../img/slider-mask.png) bottom center no-repeat;
    }

    #headerpic {
        margin-top: -100px;
    }
}

@media (min-width: 1200px) {
    .banner-overlay {
        position: absolute;
        bottom: 140px;
        z-index: 99;
        background-color: rgba(255, 255, 255, .8);
    }
}

@media (min-width: 1400px) {
    .banner-overlay {
        bottom: 240px;
    }
}

.banner-overlay {
    font-size: clamp(0.9rem, 3vw, 2.1875rem);
    padding: 24px;
}

.banner-overlay .tab-headline {
    font-size: clamp(1rem, 3vw, 2.8125rem);
}

@media (max-width: 991px) {
    .banner-overlay .tab-headline {
        margin-bottom: 0;
    }

    .banner-overlay{
        padding: 20px 0 0 0;
    }
}

#headerpic a {
    color: #000;
}

@media (min-width: 992px) {
    #headerpic .nivo-controlNav {
        bottom: 160px;
    }
}

@media (max-width: 991px) {
    body:not(.index) .nivo-controlNav {
        display: none;
    }
}

/* #endregion */

/* #region ---------------------------------- news-ticker--------------------------------------- */

.newsticker {
    color: #b00015;
    font-size: 1rem;
}

.newsticker a {
    color: #222;
}

/* #endregion */

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

#tabs {
    padding-top: 20px;
}

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

    #tabs>.row {
        margin-top: -160px;
        position: relative;
        z-index: 12;
    }
}

#tabs .tabs-wrapper {
    background-color: #ffffff;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-around;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1199px) {
    #tabs .tabs-wrapper {
        width: 100%;

    }
}

@media (max-width: 767px) {
    #tabs .tabs-wrapper {
        width: 100%;
    }
}

@media (max-width: 991px) {
    #tabs .tabs-wrapper {
        gap: 10px;
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 576px) and (max-width:991px) {
    #tabs .tabs-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

#tabs .tab {
    color: #323232;
    display: flex;
    flex-direction: column;
    text-align: center;
    flex-basis: 100%;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    position: relative;
    z-index: 2;
}

@media (min-width:992px) {
    #tabs .tab {
        max-width: 220px;
    }

    #tabs .tabs-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

#tabs .tab-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-basis: 100%;
    width: 100%;
    height: 100%;
    padding: 5px 30px;
}

#tabs .tab-content .template-page>.row {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100%;
}

#tabs .tab-content .template-page>.row>* {
    row-gap: 15px;
}

#tabs .tab-content .template-page>.row>*>* {
    padding: 0;
}

@media (min-width: 576px) {

    #tabs .tab-content .template-page>.row>*,
    #tabs .tab-content .template-page {
        display: flex;
        align-content: center;
        align-items: center;
        flex-direction: column;
        justify-content: start;
        height: 100%;
        min-height: 100%;
    }

    #tabs .tab-content .tp-image-wrapper {
        min-height: 70px;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        margin-top: 10px;
    }
}

#tabs img.contrast_grayscale {
    background-color: #000;
}

#tabs .tab-content :is(.row, div[class*="col"]) {
    position: unset;
}

#tabs a {
    margin-top: 24px;
    color: #323232;
    word-wrap: normal;
    word-break: break-word;
    font-weight: 600;
}

#tabs:not([class*='contrast']) a::before,
#tabs:not([class*='contrast']) a::after {
    content: '';
}

#tabs a::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    z-index: -1;
    transition: scale 200ms linear, background-color 200ms linear;
}

#tabs a::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    transition: scale 200ms linear, background-color 200ms linear;
}

@media (max-width: 991px) {
    #tabs a::after {
        background-color: transparent;
    }

    #tabs .tab {
        background-color: #ffffff;
    }

    #tabs .tabs-wrapper {
        background-color: transparent;
        flex-wrap: wrap;
    }
}

@media(min-width: 992px) {
    #tabs .tab+.tab .tab-content {
        border-left: rgba(50, 50, 50, .4) 1px solid;
        transition: border-color 200ms linear;
    }
}

#tabs a:is(:hover, :focus) {
    text-decoration: none;
    color: #b00015;
}

#tabs .tab:is(:hover, :focus) img {
    filter: invert(12%) sepia(99%) saturate(6461%) hue-rotate(349deg) brightness(68%) contrast(105%);
}

#tabs .tab:is(:hover, :focus)+.tab {
    z-index: 1;
}

@media (max-width: 991px) {
    body:not(.index) #tabs {
        display: none;
    }

    #tabs .tab-content:hover a,
    #tabs .tab-content:focus a,
    #tabs a:hover,
    #tabs a:focus {
        color: #b00015;
    }

    #tabs .tab-content:hover img,
    #tabs .tab-content:focus img {
        filter: invert(12%) sepia(99%) saturate(6461%) hue-rotate(349deg) brightness(68%) contrast(105%);
    }
}

@media (max-width: 575px) {
    #tabs .tabs-wrapper {
        padding: 10px 0;
    }

    #tabs .tab {
        padding: 10px 0;
    }

    #tabs .tab-content {
        text-align: left;
        justify-content: start;
        padding: 0 20px;
    }

    #tabs .tab-content .template-page>.row>* {
        display: flex;
        align-content: center;
        align-items: center;
        flex-direction: unset;
        justify-content: start;
        height: 100%;
        min-height: 100%;
    }

    #tabs .tab-content .template-page>.row>*>*:last-child {
        display: block;
        width: 100%;
    }

    #tabs .tab-content .tp-image-wrapper {
        min-height: 60px;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        margin-top: 0;
        background: #b00015;
        width: 60px;
        height: 60px;
    }

    #tabs .tab-content img {
        max-width: 35px;
        filter: invert(100%) sepia(0%) saturate(7428%) hue-rotate(119deg) brightness(108%) contrast(1000%);
    }

    #tabs .tab-content:hover img,
    #tabs .tab-content:focus img {
        filter: invert(100%) sepia(0%) saturate(7428%) hue-rotate(119deg) brightness(108%) contrast(1000%);
    }

    #tabs a {
        margin-top: 0;
        border: 2px solid #b00015;
        color: #b00015;
        padding: 4px 20px;
        display: flex;
        min-height: 60px;
        align-content: center;
        align-items: center;
        word-wrap: unset;
        word-break: unset;
    }

    #tabs .tab-content:hover a,
    #tabs .tab-content:focus a,
    #tabs a:hover,
    #tabs a:focus {
        color: #ffffff;
        background: #b00015;
    }
}

/* #region ---------------------------------- 6nw aktuelles ------------------------------------ */

#aktuelles {
    padding-top: 50px;
    padding-bottom: 50px;
}

#aktuelles .tabHeadline {
    margin-bottom: 0;
    color: #b00015;
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 5px;
}

#aktuelles .tabContent {
    font-size: 1.25rem;
    color: #444444;
}

#aktuelles .tab_link {
    margin-top: 12px;
}

@media (min-width: 768px) {
    #aktuelles .tab_link {
        margin-top: 30px;
    }

    #aktuelles .tab_link_entries {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #aktuelles .tab_link_entries {
        justify-content: center;
    }

    #aktuelles .tab_link_entries+div {
        width: 50% !important;
        text-align: right;
        margin-left: 50%;
        margin-top: -80px;
    }
}

#aktuelles .tab_link_entry {
    font-size: 1rem;
    border-bottom: none !important;
    text-align: center;
    position: relative;
    background: #ffffff;
    width: 100%;
    padding: 165px 20px 20px 20px;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    #aktuelles .tab_link_entry {
        margin-top: 15px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #aktuelles .tab_link_entry {
        width: calc(50% - 15px);
    }

    #aktuelles .tab_link_entry:nth-child(2n+1) {
        margin-right: 15px;
    }

    #aktuelles .tab_link_entry:nth-child(2n+2) {
        margin-left: 15px;
    }
}

@media (min-width: 992px) {
    #aktuelles .tab_link_entry {
        width: calc(25% - 12px);
    }

    #aktuelles .tab_link_entry+.tab_link_entry {
        margin-left: 15px;
    }
}

#aktuelles .tab_link_entry::before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: grey;
    background: url(../img/placeholder.jpg) center / cover no-repeat;
}

#aktuelles .tab_link_entry .tab_preview_picture {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 150px;
    overflow: hidden;
    background: #ffffff;
}

#aktuelles .tab_preview_picture img {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
}

#aktuelles .tab_date {
    font-size: 1rem;
    position: absolute;
    left: 50%;
    top: 134px;
    z-index: 1;
    display: inline-block;
    padding: 4px 10px;
    background: #b00015;
    color: #fff;
    transform: translateX(-50%);
}

#aktuelles .tab_link_title a {
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

#aktuelles .tab_link_entry>div:nth-last-child(2) {
    color: #fff;
    font-size: 0;
    line-height: 0;
}

#aktuelles .tab_link_entry>div:nth-last-child(2)>a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(176, 0, 21, 0.8), rgba(176, 0, 21, 1) 150px);
    z-index: 1;
    text-align: center;
    font-size: 0;
    font-weight: 600;
    display: flex !important;
    justify-content: center;
    align-items: center;
    align-content: center;
    opacity: 0;
    transition: opacity 200ms linear;
}

#aktuelles .tab_link_entry:hover div:nth-last-child(2)>a {
    opacity: 1;
}

#aktuelles:not([class*="contrast"]) .tab_link_entry div:nth-last-child(2)>a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -40px;
    margin-top: -60px;
    display: block;
    background: url(../img/news-more-icon.png) center no-repeat;
    width: 80px;
    height: 80px;
}

#aktuelles:not([class*="contrast"]) div:nth-last-child(2)>a::after {
    content: "mehr erfahren";
    margin-top: 100px;
    font-size: 1.25rem;
    color: #fff;
}

#aktuelles a:hover,
#aktuelles a:focus {
    text-decoration: none;
}

/* ----------------------------------------- news button ---------------------------------------- */

#aktuelles .news-head-wrapper {
    position: relative;
}

#aktuelles .tab_link_mehr_main {
    color: #fff;
    margin-top: 10px;
    font-size: 1.125rem;
    
}

@media (max-width: 767px) {
    #aktuelles .tab_link_mehr_main {
        text-align: left;
    }
}

#aktuelles .tab_link_mehr_main a {
    text-decoration: none;
    display: inline-block;
    background-color: #920011;
    color: #fff;
    padding: 5px 12px;
}


#aktuelles .tab_link_mehr_main a:is(:hover, :focus) {
    text-decoration: none;
    background-color: #010101;
}

/* #region ---------------------------------- 6nw aktuelles ------------------------------------ */

#veranstaltungen {
    padding-top: 50px;
    padding-bottom: 50px;
}

#veranstaltungen .tabHeadline {
    margin-bottom: 0;
    color: #b00015;
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 5px;
}

#veranstaltungen .tabContent {
    font-size: 1.25rem;
    color: #444444;
}

#veranstaltungen .tab_link {
    margin-top: 12px;
}

@media (min-width: 768px) {
    #veranstaltungen .tab_link {
        margin-top: 30px;
    }

    #veranstaltungen .tab_link_entries {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #veranstaltungen .tab_link_entries {
        justify-content: center;
    }

    #veranstaltungen .tab_link_entries+div {
        width: 50% !important;
        text-align: right;
        margin-left: 50%;
        margin-top: -80px;
    }
}

#veranstaltungen .tab_link_entry {
    font-size: 1rem;
    border-bottom: none !important;
    text-align: center;
    position: relative;
    background: #ffffff;
    width: 100%;
    padding: 165px 20px 20px 20px;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
    #veranstaltungen .tab_link_entry {
        margin-top: 15px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #veranstaltungen .tab_link_entry {
        width: calc(50% - 15px);
    }

    #veranstaltungen .tab_link_entry:nth-child(2n+1) {
        margin-right: 15px;
    }

    #veranstaltungen .tab_link_entry:nth-child(2n+2) {
        margin-left: 15px;
    }
}

@media (min-width: 992px) {
    #veranstaltungen .tab_link_entry {
        width: calc(25% - 12px);
    }

    #veranstaltungen .tab_link_entry+.tab_link_entry {
        margin-left: 15px;
    }
}

#veranstaltungen .tab_link_entry::before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: grey;
    background: url(../img/platzhalterbild-veranstaltungen.jpg) center / cover no-repeat;
}

#veranstaltungen .tab_link_entry .tab_preview_picture {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 150px;
    overflow: hidden;
    background: #ffffff;
}

#veranstaltungen .tab_preview_picture img {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
}

#veranstaltungen .tab_date {
    font-size: 1rem;
    position: absolute;
    left: 50%;
    top: 134px;
    z-index: 1;
    display: inline-block;
    padding: 4px 10px;
    background: #b00015;
    color: #fff;
    transform: translateX(-50%);
}

#veranstaltungen .tab_link_title a {
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

#veranstaltungen .tab_link_entry>div:nth-last-child(2) {
    color: #fff;
    font-size: 0;
    line-height: 0;
}

#veranstaltungen .tab_link_entry>div:nth-last-child(2)>a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(176, 0, 21, 0.8), rgba(176, 0, 21, 1) 150px);
    z-index: 1;
    text-align: center;
    font-size: 0;
    font-weight: 600;
    display: flex !important;
    justify-content: center;
    align-items: center;
    align-content: center;
    opacity: 0;
    transition: opacity 200ms linear;
}

#veranstaltungen .tab_link_entry:hover div:nth-last-child(2)>a {
    opacity: 1;
}

#veranstaltungen:not([class*="contrast"]) .tab_link_entry div:nth-last-child(2)>a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -40px;
    margin-top: -60px;
    display: block;
    background: url(../img/news-more-icon.png) center no-repeat;
    width: 80px;
    height: 80px;
}

#veranstaltungen:not([class*="contrast"]) div:nth-last-child(2)>a::after {
    content: "mehr erfahren";
    margin-top: 100px;
    font-size: 1.25rem;
    color: #fff;
}

#veranstaltungen a:hover,
#veranstaltungen a:focus {
    text-decoration: none;
}

/* ----------------------------------------- news button ---------------------------------------- */

#veranstaltungen .news-head-wrapper {
    position: relative;
}

#veranstaltungen .tab_link_mehr_main {
    color: transparent;
    margin-top: 10px;
    font-size: 1.125rem;
}

@media (max-width: 767px) {
    #veranstaltungen .tab_link_mehr_main {
        text-align: left;
    }
}

#veranstaltungen .tab_link_mehr_main a {
     text-decoration: none;
    display: inline-block;
    background-color: #920011;
    color: #fff;
    padding: 5px 12px;
}


#veranstaltungen .tab_link_mehr_main a:is(:hover, :focus) {
    text-decoration: none;
    background-color: #010101;
}

/* #endregion */

/* #region ---------------------------------- content ------------------------------------------ */

#bottom-text-tab .tab-wrapper {
    padding-top: 50px;
    padding-bottom: 50px;
    border-top: rgba(37, 37, 37, .1) 2px solid;
}

#bottom-text-tab .tab {
    padding: 50px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
}

#content {
    text-align: left;
    padding-bottom: 30px;
    padding-top: 30px;
}

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

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

h1,
.h1,
.legacy_h1 {
    font-size: clamp(2rem, 6vw, 2.8125rem);
}

h2,
.h2,
.legacy_h2 {
    color: #323232;
    font-size: clamp(1.7rem, 6vw, 2.4375rem);
}

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

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

h5,
.h5,
.legacy_h5 {
    font-size: clamp(1.375rem, 4vw, 1.625rem);
}

h6,
.h6,
.legacy_h6 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
}

/* #endregion */

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

#footer {
    background: #b00015 url(../img/wasserzeichen-wappen.png) right center no-repeat;
    padding: 30px 0 clamp(30px, 5vw, 55px);
    color: #fff;
}

#footer.contrast_dark_font * {
    color: #fff !important;
}

@media (max-width: 767px) {
    #footer>.row>.col-xs-12+* {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        margin-top: 15px;
        padding-top: 15px;
    }
}

@media (max-width: 991px) {
    #footer>.row>.col-xs-12:last-child {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        margin-top: 15px;
        padding-top: 15px;
    }
}

#footer a {
    color: #fff;
}

#footer a[href*="mailto:"] {
    color: #fff;
    text-decoration: underline;
}

#footer a[href*="mailto:"]:is(:hover, :focus) {
    text-decoration: none;
}

#footer .tab-headline {
    color: #fff;
    font-size: clamp(1.25rem, 3vw, 1.5625rem);
    padding-bottom: 14px;
    margin-bottom: 14px;
    position: relative;
}

#footer .tab-headline::after {
    content: '';
    position: absolute;
    left: 0;
    top: 100%;
    height: 2px;
    width: 15px;
    background-color: #fff;
}

#innerfooter {
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 1rem;
}

#innerfooter ul {
    padding: 0;
}

@media (max-width: 767px) {
    #innerfooter ul {
        margin-bottom: 20px;
    }
}

#innerfooter li {
    display: block;
    line-height: 2;
}

#innerfooter a {
    color: #222;
    text-decoration: none;
    font-weight: 400;
}

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

@media (min-width:768px) {
    #innerfooter li+li::before {
        content: "•";
        margin: 0 clamp(15px, 2vw, 25px);
        color: #222;
    }

    #innerfooter li {
        display: inline-block;
        line-height: unset;
        margin-bottom: unset;
    }
}

#logos {
    border-top: rgba(37, 37, 37, .1) 2px solid;
    padding: 24px 0;
}

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

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

#vernetzt {
    gap: 18px;
    text-align: right;
    line-height: 1.3;
}

#vernetzt span span {
    display: block;
}