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

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

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

a {
    color: #c63c44;
}

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

b,
strong {
    font-weight: 600;
}

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

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

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

#topbar {
    padding: 15px 0;
}

#topbar .tab {
    color: #444444;
    font-size: clamp(1rem, 1vw, 1.125rem);
}

#topbar .tab :is(b, strong) {
    color: #c63c44;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

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

#logo {
    display: inline-block;
}

@media (min-width: 992px) {
    #logo {
        position: absolute;
        top: -52px;
        transition: top 300ms linear;
    }

    .is-sticky #logo {
        top: -30px;
    }

    #logo img {
        transition: max-width 300ms linear;
    }

    .is-sticky #logo img {
        max-width: 210px;
    }
}

#logo img {
    display: block;
}

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        padding: 10px 0;
        position: static !important;
    }

    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #903136;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #ffffff;
        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 {
        padding: 20px 0;
        background-color: #ffffff;
        margin-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;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    #menuBox {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 80;
    }

    nav.horizontally {
        background: rgba(255, 255, 255, 0.8);
        padding: 11px 0;
        transition: box-shadow 300ms linear;
    }

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

    nav.horizontally .navbar-nav {
        position: relative;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    nav.horizontally .navbar-nav>li {
        flex-grow: 1;
    }

    nav.horizontally .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

    nav.horizontally .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        position: absolute;
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav>li, nav.horizontally .navbar-nav>li>.dropdown-menu>li {
        position: relative;
    }

    .navbar-default .navbar-nav li[class*="toplevel"]>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]>ul {
        display: block !important;
        pointer-events: none;
        opacity: 0;
        -webkit-transition: opacity 300ms linear;
        -moz-transition: opacity 300ms linear;
        -ms-transition: opacity 300ms linear;
        -o-transition: opacity 300ms linear;
        transition: opacity 300ms linear;
    }

    .navbar-default .open>.dropdown-menu,
    .navbar-default .navbar-nav li[class*="toplevel"]:hover>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]:hover>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]>ul[style*="block"] {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

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

    .navbar-default .nav .open>.dropdown-menu {
        pointer-events: none !important;
        opacity: 0 !important;
    }

    .navbar-default .navbar-nav li[class*="toplevel"]:hover>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]:hover>u {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #444444;
    font-weight: 400;
    text-align: left;
    padding: 10px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

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

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 13px 6px;
        text-align: center;
        height: 100%;
    }
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open>a,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"][class*="_over"]>a,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #ffffff;
    background-color: #c63c44;
    background: linear-gradient(to right, #903036, #c63c44);
}

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

.navbar-default .navbar-nav>li>.dropdown-menu {
    background: #c63c44;
}

.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
    background: #8b2f35;
}

@media (max-width: 991px) {
    .navbar-default .navbar-nav>li>.dropdown-menu {
        padding: 10px;
    }
}

@media(min-width:992px) {

    .navbar-default .navbar-nav>li>.dropdown-menu,
    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu {
        margin-top: 20px;
        left: 50%;
        -moz-transform: translate(-50%, 0);
        -webkit-transform: translate(-50%, 0);
        -o-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
        transform: translate(-50%, 0);
    }

    .navbar-default .navbar-nav>li>.dropdown-menu::before {
        content: '';
        position: absolute;
        display: block;
        top: -20px;
        height: 20px;
        left: 0;
        right: 0;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        margin-top: -20px;
        margin-left: 10px;
    }

    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu::before {
        content: "";
        position: absolute;
        display: block;
        width: 10px;
        top: 0;
        bottom: 0;
        left: -10px;
    }
}

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

.navbar-default .navbar-nav>li>.dropdown-menu>li>a,
.navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a {
    color: #ffffff;
    font-weight: 400;
    text-align: left;
    padding: 8px 25px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

@media(min-width:992px) {

    .navbar-default .navbar-nav>li>.dropdown-menu>li>a,
    .navbar-default .navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a {
        text-align: center;
        padding: 13px 25px;
    }
}

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

.navbar-nav>li>.dropdown-menu>li:hover>a,
.navbar-nav>li>.dropdown-menu>li>a:hover,
.navbar-nav>li>.dropdown-menu>li>a:focus,
.navbar-nav>li>.dropdown-menu>li.open>a,
.navbar-nav>li>.dropdown-menu>li.open>a:hover,
.navbar-nav>li>.dropdown-menu>li.open>a:focus,
.navbar-nav>li>.dropdown-menu>li[class$="_over"]>a,
.navbar-nav>li>.dropdown-menu>li[class$="_over"]>a:hover,
.navbar-nav>li>.dropdown-menu>li[class$="_over"]>a:focus {
    background: #8b2f35;
}

.navbar-nav>li>.dropdown-menu>li:focus-within>a {
    background: #8b2f35;
}

.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a:hover,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li>a:focus,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li.open>a,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li.open>a:hover,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li.open>a:focus,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li[class$="_over"]>a,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li[class$="_over"]>a:hover,
.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li[class$="_over"]>a:focus {
    background: #c63c44;
}

.navbar-nav>li>.dropdown-menu>li>.dropdown-menu>li:focus-within>a {
    background: #c63c44;
}

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

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

#slider {
    height: clamp(300px, 60vw, 600px);
    overflow: hidden;
    position: relative;
}

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

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

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

    #headerpic .nivo-controlNav {
        bottom: unset !important;
        top: 100px;
    }
}

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

#headerpic .nivo-main-image {
    min-height: 100% !important;
}

.slider-mask {
    display: none;
}

/* dots */

#headerpic .nivo-controlNav li {
    width: auto;
}

#headerpic .nivo-controlNav button {
    background: #ffffff !important;
    border-radius: 0;
    width: 10px;
    height: 10px;
    border: 1px solid #222222;
    color: #000;
    padding: 0;
    margin: 0 6px;
    transition: border-color 300ms linear, background 300ms linear;
}

#headerpic .nivo-controlNav button:is(:hover, :focus),
#headerpic .nivo-controlNav .slick-active button {
    background: #c63c44 !important;
    border-color: #8b2f35 !important;
}

/* banner arrows */

#headerpic .nivo-directionNav a {
    background: #ffffff;
    width: 60px;
    height: 48px;
    transition: width 300ms linear, opacity 300ms linear, background 300ms linear;
}

#headerpic:is(:hover, :focus) .nivo-directionNav a {
    width: 70px;
}

#headerpic .nivo-directionNav a::before,
#headerpic .nivo-directionNav a::after {
    content: "";
    display: block;
    position: absolute;
}

#headerpic .nivo-directionNav a::before {
    height: 2px;
    width: 16px;
    top: 50%;
    margin-top: -1px;
    background: #c63c44;
    transition: background 300ms linear;
    right: 26px;
}

#headerpic .nivo-directionNav a::after {
    height: 8px;
    width: 8px;
    top: 50%;
    margin-top: -5px;
    transform: rotate(45deg);
    transition: border-color 300ms linear;
    right: 32px;
    border-left: 2px solid #c63c44;
    border-bottom: 2px solid #c63c44;
}

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

#headerpic a.nivo-nextNav {
    right: 0;
    transform: scaleX(-1);
}

/* #endregion --------------------------------- banner ------------------------------------------ */

/* #region --------------------------------- bannerOverlay -------------------------------------- */

#bannerOverlay {
    z-index: 13;
    position: relative;
}

@media (min-width: 1200px) {
    #bannerOverlay {
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
    }

    #bannerOverlay::before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: 0;
        bottom: 0;
        left: -365px;
        width: 365px;
        background: rgba(68, 68, 68, 0.7);
    }
}

#style,
#contrast_style {
    background-color: #ffffff;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 25px 8px;
}

#style button {
    width: 40px;
    height: 40px;
    padding: 5px;
    border: none;
    background: #c63c44;
}

#contrast_style button {
    width: 40px;
    height: 40px;
    padding: 5px;
    border: none;
    font-size: 0;
    line-height: 0;
    background: #ababab;
}

:is(#style, #contrast_style) p {
    width: 100%;
    color: #222222;
    font-weight: 600;
}

/* styler */

#style button {
    font-size: 18px;
    color: #ffffff;
    font-weight: 400;
    text-align: center;
    position: relative;
    line-height: 1;
    transition: all 300ms linear;
    overflow: hidden;
}

#style button:is(:hover, :focus) {
    box-shadow: inset 0 -5px 0 0 #8b2f35;
}

/* contrast_style */

#bannerOverlay #contrast_style {
    border-left: 1px solid #e6e6e6;
}

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

/* search */

#searchContainer {
    background: url('../img/icon-suche.png') left 10px center no-repeat, linear-gradient(90deg, #903036, #c63c44), #903036;
    padding-top: 10px;
    padding-bottom: 10px;
    align-content: center;
}

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

#searchContainer .template-page {
    color: #ffffff;
    line-height: 1.2;
}

#searchContainer .template-page :is(strong, b) {
    font-size: 1.5625rem;
}

#searchContainer .template-page a {
    color: #ffffff;
    text-decoration: underline;
}

#search {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 30px;
    margin-top: 30px;
}

@media (min-width: 576px) {
    #search {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        margin: 0;
        width: 100%;
        transition: all 300ms linear;
        transform: translate(100%, 0);
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.15);
    }
}

@media (min-width: 992px) {
    #search {
        opacity: 0;
        transform: unset;
    }

    #searchContainer:is(:hover, :focus-within)>#search {
        opacity: 1;
    }
}

@media (min-width: 1200px) {
    #searchContainer:is(:hover, :focus-within)>#search {
        transform: translate(100%, 0);
    }
}

#search_input {
    background: transparent;
    color: #252525;
    font-size: 1rem;
    font-style: normal;
    padding: 6px 10px;
    border: 0;
    width: 100%;
}

#search_submit {
    width: 35px;
    flex-shrink: 0;
    background: url('../img/icon-arrow-green.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    border: none;
    font-size: 0;
    transition: all 200ms linear;
}

#search_submit:is(:hover, :focus) {
    transform: translate(5px, 0);
}

#search_input,
#search_submit {
    height: 2.1875rem;
    border-bottom: 1px solid #252525;
}

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

/* #endregion ------------------------------ bannerOverlay -------------------------------------- */

/* ------------------------------------------ greenButton --------------------------------------- */

.greenButton a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    position: relative;
    padding: 13px 50px 12px 20px;
    display: inline-block;
    line-height: 1.2;
    font-weight: 600;
    background-color: #c63c44;
    background: linear-gradient(to right, #903036, #c63c44);
}

.greenButton a::after {
    content: '\2192';
    right: 20px;
    top: calc(50% - 7px);
    transition: all 200ms linear;
    position: absolute;
    line-height: 1;
}

.greenButton a:is(:hover, :focus)::after {
    right: 15px;
}

/* #region ------------------------------------- topics ----------------------------------------- */

#topics {
    padding-top: clamp(30px, 5vw, 80px);
    position: relative;
}

@media (min-width: 1200px) {
    #topics::before {
        content: '';
        position: absolute;
        pointer-events: none;
        right: 0;
        top: 0;
        bottom: 100px;
        width: 1045px;
        height: 359px;
        background: #ececec;
    }
}

#topics>.row {
    row-gap: 20px;
}

#topics .tab {
    height: 100%;
    min-height: 370px;
    background: #ffffff;
}

#topics .tab1 {
    position: relative;
    z-index: 1;
    padding: 15px;
    overflow: hidden;
    font-size: clamp(1rem, 2vw, 1.1875rem);
    background: #444444;
    pointer-events: none;
    height: 100%;
    min-height: 370px;
}

#topics .tab1::before {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(0deg, #444444 0%, rgba(68, 68, 68, 0.2) 50%, rgba(68, 68, 68, 0) 100%);
    transition: all 300ms linear;
}

#topics .tab1:is(:hover, :focus-within)::before {
    background-color: rgba(68, 68, 68, 0.8);
}

#topics .tab1,
#topics .tab1 :is(h1, h2, h3, h4, h5, h6, a) {
    color: #ffffff;
}

#topics .tab1 :is(h1, h2, h3, h4, h5, h6) {
    margin-bottom: 8px;
    padding-bottom: 8px;
    font-size: 1rem;
    border-bottom: 2px solid #ffffff;
}

#topics .tab1 a img {
    position: absolute;
    z-index: -2;
    pointer-events: all;
    object-fit: cover;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    min-width: 100%;
    min-height: 100%;
}

#topics .tab1 :is(.row, .row>*) {
    position: static;
}

#topics .tab2 {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    background: #ffffff;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
}

/* #endregion ---------------------------------- topics ----------------------------------------- */

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

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

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

#events {
    padding-top: 55px;
    margin-bottom: 70px;
    padding-bottom: clamp(40px, 5vw, 100px);
    position: relative;
    z-index: 1;
}

#events::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    bottom: 170px;
    right: 475px;
    background: #444444;
}

@media (max-width: 1199px) {
    #events::before {
        bottom: 0;
        right: 0;
    }
}

@media (min-width: 1200px) {
    #events::after {
        content: '';
        position: absolute;
        pointer-events: none;
        right: 0;
        bottom: -70px;
        width: 1445px;
        height: 500px;
        background: #ececec;
        z-index: -1;
    }
}

#events .tab,
#events .tab :is(h1, h2, h3, h4, h5, h6) {
    color: #ffffff;
}

#events .tab :is(h1, h2, h3, h4, h5, h6) {
    font-weight: 400;
    margin-bottom: 0;
    font-size: clamp(1.6875rem, 4vw, 2.1875rem);
    background-color: #444444;
}

#events .tab_link {
    margin: 110px 0 -70px 0;
}

#events .tab_link_entries {
    display: grid;
    gap: 85px 30px;
    counter-reset: section;
}

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

@media (min-width: 576px) and (max-width: 767px) {
    #events .tab_link_entry:nth-child(3) {
        grid-column: 1/3;
    }
}

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

#events .tab_link_entry {
    font-size: 1rem;
    position: relative;
    background: #ffffff;
    padding: 200px 30px 30px 30px;
    box-shadow: 0 0 20px 10px rgba(37, 37, 37, 0.1);
    border: none !important;
    z-index: 1;
}

#events .tab_link_entry::after {
    content: "0"counter(section);
    counter-increment: section;
    font-size: 100px;
    font-weight: 600;
    pointer-events: none;
    position: absolute;
    color: #5d5c5c;
    line-height: 1;
    top: -64px;
    left: 30px;
    z-index: -1;
}

#events .tab_link_title a {
    line-height: 1.2;
    font-weight: 600;
    font-size: 1.375rem;
    display: block;
    margin-bottom: 20px;
    color: #222222;
}

#events .tab_link_entry .tab_link_title a::before,
#events .tab_link_entry .tab_preview_picture {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    overflow: hidden;
}

#events .tab_link_entry .tab_link_title a::before {
    content: "";
    background: center / cover no-repeat;
}

#events .tab_preview_picture img {
    margin: 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#events .tab_link_date {
    font-weight: 400;
    position: absolute;
    left: 0;
    top: 20px;
    z-index: 1;
    display: inline-block;
    padding: 8px 15px;
    min-width: 170px;
    color: #ffffff;
    background: #8b2f35;
    text-align: center;
}

#events .vorschau {
    opacity: 1 !important;
}

#events .tab_link_entries :is(.tab_spacer, .tab_link_mehr) {
    display: none;
}

@media (max-width: 767px) {
    #events .greenButton a {
        margin-top: 15px;
    }
}

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

/* #region ---------------------------------- newsletterBox ------------------------------------- */

#newsletterBox {
    background: #444444 center / cover no-repeat;
    position: relative;
}

#newsletterBox::before {
    content: '';
    position: absolute;
    right: 30px;
    left: 30px;
    bottom: 30px;
    top: 30px;
    background-color: rgba(68, 68, 68, 0.4);
    background-blend-mode: multiply;
    backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    #newsletterBox::before {
        right: 0;
        left: calc(50% + 15px);
        bottom: 0;
        top: 0;
    }
}

#newsletterBox .tab {
    padding: clamp(50px, 6vw, 85px) clamp(50px, 4vw, 60px) 50px clamp(50px, 4vw, 60px);
}

#newsletterBox .tab,
#newsletterBox .tab :is(h1, h2, h3, h4, h5, h6, a) {
    color: #ffffff;
}

#newsletterBox .tab a {
    text-decoration: underline;
}

#newsletterInputs {
    min-height: 50px;
    background: #ffffff;
    display: flex;
    position: relative;
    margin-top: clamp(30px, 2vw, 40px);
}

#newsletter_input {
    color: #444444;
    font-size: 1rem;
    font-style: normal;
    background: transparent;
    padding: 8px 20px;
    border: 0;
    width: 100%;
}

#newsletter_submit {
    width: 70px;
    flex-shrink: 0;
    background: url('../img/newsletter-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    border: none;
    font-size: 0;
    transition: all 300ms linear;
}

#newsletter_submit:is(:hover, :focus) {
    transform: translate(-10px, 0);
}

#newsletter_input::placeholder {
    color: #444444 !important;
    opacity: 1 !important;
    font-style: normal !important;
}

/* #endregion ------------------------------- newsletterBox ------------------------------------- */

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

#news {
    padding-top: clamp(30px, 5vw, 80px);
    padding-bottom: clamp(30px, 5vw, 90px);
    position: relative;
}

@media (min-width: 1200px) {
    #news>.row::before {
        content: '';
        position: absolute;
        pointer-events: none;
        left: -365px;
        bottom: 50px;
        width: 1160px;
        height: 295px;
        background: #ececec;
    }
}

#news :is(h1, h2, h3, h4, h5, h6) {
    margin-bottom: 0;
    color: #252525;
    font-size: clamp(1.6875rem, 4vw, 2.5rem);
}

#news .tab_link {
    margin-top: 30px;
}

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

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

@media (min-width: 576px) and (max-width: 767px) {
    #news .tab_link_entry:nth-child(3) {
        grid-column: 1/3;
    }
}

@media (min-width: 768px) {
    #news .tab_link_entries {
        grid-template-columns: unset;
    }
}

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

#news .tab_link_entry {
    font-size: 1rem;
    position: relative;
    background: #ffffff;
    padding: 250px 30px 35px 30px;
    box-shadow: 0 0 20px 10px rgba(37, 37, 37, 0.1);
    border: none !important;
}

@media (min-width: 768px) {
    #news .tab_link_entry {
        padding-top: 35px;
        padding-left: 200px;
    }
}

@media (min-width: 1200px) {
    #news .tab_link_entry {
        padding-left: 300px;
    }
}

#news .tab_link_title a {
    line-height: 1.2;
    font-weight: 600;
    font-size: 1.25rem;
    display: block;
    margin-bottom: 20px;
    color: #222222;
}

#news .tab_link_entry .tab_link_title a::before,
#news .tab_link_entry .tab_preview_picture {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    overflow: hidden;
}

@media (min-width: 768px) {

    #news .tab_link_entry .tab_link_title a::before,
    #news .tab_link_entry .tab_preview_picture {
        bottom: 0;
        right: unset;
        height: unset;
        width: 170px;
    }
}

@media (min-width: 1200px) {

    #news .tab_link_entry .tab_link_title a::before,
    #news .tab_link_entry .tab_preview_picture {
        width: 270px;
    }
}

#news .tab_link_entry .tab_link_title a::before {
    content: "";
    background: center no-repeat;
    background-color: #c53c44;
}

#news .tab_preview_picture img {
    margin: 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#news .tab_date {
    position: absolute;
    top: 145px;
    left: 50%;
    width: 85px;
    height: 85px;
    background: #8b2f35;
    color: #ffffff;
    display: inline-grid;
    justify-content: center;
    align-items: center;
    padding: 5px;
    word-break: break-word;
    text-align: center;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    z-index: 12;
    transform: translateX(-50%);
    outline: 2px solid #ffffff;
    outline-offset: 8px;
}

@media (min-width: 768px) {
    #news .tab_date {
        left: 100px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (min-width: 1200px) {
    #news .tab_date {
        left: 200px;
    }
}

#news .vorschau {
    opacity: 1 !important;
}

#news :is(.tab_link_mehr, .tab_link_mandat, .tab_spacer) {
    display: none;
    height: 0;
}

@media (max-width: 767px) {
    #news .greenButton a {
        margin-top: 15px;
    }
}

/* #endregion ------------------------------------ news ----------------------------------------- */

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

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

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.6875rem, 4vw, 2.1875rem);
}

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

h5,
.h5,
.legacy_h5 {
    font-size: 1.5rem;
}

h6,
.h6,
.legacy_h6 {
    font-size: 1.375rem;
}

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

footer {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #444444;
    color: #ffffff;
}

@media (max-width: 767px) {
    :is(#footerwrapper, #lastFooter)>.row>.col-xs-12+* {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 25px;
    }
}

@media (min-width: 576px) {
    :is(#footerwrapper, #lastFooter)>.row>.col-xs-12+*:nth-child(2) {
        border-top: unset;
        padding-top: unset;
    }
}

footer .greenButton :is(a+a, .tiny_p+.tiny_p) {
    margin-top: clamp(15px, 2vw, 30px);
}

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

/* footerwrapper */

#footerwrapper {
    padding: clamp(30px, 4vw, 50px) 0;
    font-size: 1rem;
    line-height: 1.7;
}

#footerwrapper :is(.tabHeadline, .tab a) {
    color: inherit;
}

#footerwrapper .tabHeadline {
    font-size: 1.25rem;
    text-transform: uppercase;
    hyphens: auto;
    margin-bottom: clamp(15px, 2vw, 30px);
}

#footerwrapper .tab a {
    text-decoration: underline;
}

#footerwrapper .tab1 a {
    text-decoration: none;
}

#footerwrapper .tab1 a:hover,
#footerwrapper .tab1 a:focus {
    text-decoration: underline;
}

#footerwrapper .greenButton a {
    width: 100%;
    display: block;
}

/* scrollTopBtn */

#scrollTopBtn {
    margin-bottom: clamp(15px, 2vw, 30px);
}

#scrollTopBtn::after {
    content: "\2191";
    right: 20px;
}

#scrollTopBtn:is(:hover, :focus)::after {
    top: calc(50% - 13px);
}

/* lastFooter */

#lastFooter {
    border-top: 2px solid #fefefe;
    padding: 8px 0 25px 0;
}

@media (min-width: 768px) {
    #lastFooter {
        padding-bottom: 8px;
    }
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
    font-size: 0.875rem;
    padding: 10px;
}

#innerfooter a:is(:hover, :focus) {
    background-color: #c63c44;
}

@media (max-width: 767px) {
    #innerfooter li {
        text-align: center;
        margin: 0;
    }

    #innerfooter :is(li, a) {
        display: block;
    }
}

/* vernetzt */

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

#vernetzt span span {
    display: block;
}

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

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

:is(.contrast_light, .contrast_dark) main {
    filter: none;
    background: none;
}

.contrast_dark #contrast_style button {
    background: rgb(212, 212, 212) !important;
    border: none !important;
}

.contrast_light #contrast_style button {
    background: rgb(53, 53, 53) !important;
    border: none !important;
}

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

.contrast_light_font #search_input {
    color: #000000 !important;
    background-color: #ffffff !important;
}

:is(.contrast_light_font, .contrast_dark_font) .tab a img {
    width: auto !important;
}

.contrast_dark_font #topics .tab :is(h1, h2, h3, h4, h5, h6) {
    color: #000000 !important;
    background: #ffffff !important;
}

#newsletterBox .contrast_dark_font {
    color: #fff !important;
}

.contrast_dark_font #newsletter_input {
    color: #000 !important;
}

.contrast_dark_font #vernetzt img,
.contrast_dark_font #burgerButton::before,
.contrast_dark_font #burgerButton::after,
.contrast_dark_font #burgerButtonInner {
    background-color: #000000;
}

.contrast_dark_font :is(.searchbar, #bannerOverlay),
.contrast_light_font #burgerButton::before,
.contrast_light_font #burgerButton::after,
.contrast_light_font #burgerButtonInner {
    background-color: #ffffff !important;
}

.contrast_dark .navbar {
    background: rgba(0, 0, 0, 0) !important;
}

.tab_link_title .contrast_grayscale {
    filter: none !important;
}