@import url("https://fonts.verwaltungsportal.de/import/?family=Lato:400,400i,700,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Montserrat:800,800i");

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

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

a {
    color: #db0626;
}

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

:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

b,
strong {
    font-weight: 700;
}

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

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

#topbar {
    padding: 8px 0;
}

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

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

#search {
    background: #db0626;
    flex-shrink: 0;
    border-radius: 4px;
}

#search_input {
    color: #ffffff;
    font-size: 1rem;
    font-style: normal !important;
    background: transparent;
    border: 0;
    width: 100%;
    padding: 6px clamp(15px, 2vw, 20px);
}

#search_submit {
    border: none;
    background: #db0626 url('../img/lupe-icon.png') center / 18px auto no-repeat;
    padding: 0;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
    font-size: 0;
    aspect-ratio: 1/1;
    min-width: 45px;
    flex-shrink: 0;
    transition: transform 150ms linear;
}

#search_submit:is(:hover, :focus) {
    transform: scale(1.2);
}

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

/* ------------------------------------------ navigation ---------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    .sticky-wrapper {
        height: unset !important;
    }

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

    #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 {
        margin: 20px 0;
    }

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #d71527;
        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: 7px;
    }

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

@media (min-width: 768px) and (max-width: 991px) {
    .navbar-header {
        top: 27px;
    }
}

/* menu desktop */

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

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: center;
    }

    nav.horizontally .navbar-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 300ms linear;
    }

    nav.horizontally .navbar-nav [class*="secondlevel"]>ul {
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav li {
        position: relative;
    }

    nav.horizontally .navbar-nav li:is(.open:focus-within, :hover)>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:is(:hover, :focus-within)>ul {
        z-index: 1003;
    }
}

/* toplevel */

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

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

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

    nav.horizontally a[class*="toplevel"] {
        text-align: center;
        padding: 20px 0 19px 0;
    }
}

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

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

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

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #f3e1e3;
}

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

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"] ul {
        padding: 18px 0;
        border-radius: 4px;
    }

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

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

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

    nav.horizontally [class*="toplevel"]>ul::after {
        display: block;
        height: 20px;
        width: 20px;
        background-color: inherit;
        position: absolute;
        top: -6px;
        left: calc(50% - 10px);
        clip-path: polygon(0% 0%, 100% 100%, 0% 100%);
        transform: rotate(135deg);
        border-radius: 0 0 0 0.25em;
    }

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

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

/* secondlevel + thirdlevel */

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

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

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

/* secondlevel + thirdlevel over */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus) {
    background: #102962;
    color: #ffffff;
}

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

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

/* ------------------------------------------------ buttonStyle ----------------------------------------------- */

.buttonStyle a:not(.has-image) {
    position: relative;
    text-decoration: none;
    display: inline-block;
    line-height: 1.2;
    font-size: 1.125rem;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 20px 11px 20px;
    border-radius: 4px;
    background: #db0626;
}

#tabs .buttonStyle a:not(.has-image) {
    font-size: 1rem;
    padding: 8px 16px;
}

.buttonStyle a:not(.has-image):is(:hover, :focus) {
    background: #102962;
}

.buttonStyle a:not(.has-image)+a:not(.has-image) {
    margin-left: 5px;
}

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

#news {
    padding-bottom: clamp(30px, 5vw, 75px);
}

#news .tab_link {
    margin: clamp(30px, 3vw, 45px) 0 30px 0;
}

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

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

#news .tab_link_entry {
    position: relative;
    overflow: hidden;
    hyphens: auto;
    border-radius: 4px;
    background: #f3e1e3;
    border: none !important;
    padding: 230px clamp(20px, 2vw, 30px) 30px clamp(20px, 2vw, 30px);
}

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

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

#news .tab_date {
    margin-bottom: 5px;
}

#news .tab_link_title a {
    color: #102962;
    display: inline-block;
    font-weight: 800;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    line-height: 1.2;
    font-family: "Montserrat", sans-serif;
    margin-bottom: 25px;
}

#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: 200px;
    overflow: hidden;
}

@media (min-width: 992px) {

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

@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-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#news .tab_link_entry .tab_preview_picture {
    z-index: 1;
    background-color: #fff !important;
}

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

#news .tab_link_entry :is(.tab_spacer, .tab_link_mehr) {
    display: none;
}

/* -------------------------------------------- events -------------------------------------------- */

#events {
    padding-bottom: clamp(30px, 4vw, 65px);
}

#events .tab_link {
    margin: clamp(30px, 3vw, 45px) 0 30px 0;
}

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

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

#events .tab_link_entry {
    display: flex;
    hyphens: auto;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #f3e1e3;
    border: none !important;
    padding: 230px clamp(20px, 2vw, 30px) 30px clamp(20px, 2vw, 30px);
}

@media (min-width: 992px) {
    #events .tab_link_entry {
        padding-top: 35px;
    }
}

#events .tab_link_entry .tab_preview_picture {
    order: 1;
}

#events .tab_link_date {
    order: 2;
    margin-bottom: 5px;
}

#events .tab_link_title {
    order: 3;
}

#events .vorschau {
    order: 4;
}

#events .tab_link_title a {
    color: #102962;
    display: inline-block;
    font-weight: 800;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    line-height: 1.2;
    font-family: "Montserrat", sans-serif;
    margin-bottom: 25px;
}




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

#events .tab_link_entry .tab_preview_picture {
    z-index: 1;
    background-color: #fff !important;
}

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

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

/* ------------------------------------------------ tabs ----------------------------------------------- */

#tabs {
    padding-bottom: clamp(30px, 4vw, 65px);
}

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

#tabs .tab {
    hyphens: auto;
    height: 100%;
    font-size: 1rem;
    padding: 30px 03px 35px 30px;
    border-radius: 4px;
    background: #f3e1e3;
}

#tabs .tab .tabHeadline {
    font-size: 1.25rem;
}

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

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

#content :is(h1),
#news .tab :is(h1, h2, h3, h4, h5, h6),
#events .tab :is(h1, h2, h3, h4, h5, h6) {
    color: #ffffff;
    border-radius: 4px;
    padding: 9px 15px;
    background: #d71527;
}

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

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

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

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

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

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

/* ----------------------------------------------- @1f footer ----------------------------------------------- */

#f1 {
    color: #ffffff;
    font-size: 1rem;
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #d71527;
}

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

#f1 a,
#f1 a:hover,
#f1 a:focus {
    color: #ffffff;
}

#f1 .footerTab {
    font-size: 1rem;
}

#f1 .footerTab a {
    text-decoration: underline;
}

#f1 .tabHeadline {
    font-size: 1.375rem;
    color: #ffffff;
}

/* --------------------------------------------- innerfooter -------------------------------------------- */

#innerfooter ul {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 0;
}

#innerfooter li {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

#innerfooter a {
    text-decoration: none;
    position: relative;
    display: block;
    font-size: 1rem;
    font-weight: 400;
    padding: 6px 10px 6px 25px;
}

#innerfooter a::before {
    content: "";
    position: absolute;
    display: block;
    left: 10px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 300ms linear;
}

#innerfooter a:hover::before,
#innerfooter a:focus::before {
    background: #ffffff;
}

/* --------------------------------------------- kontraste -------------------------------------------- */

.contrast_dark_font #innerfooter a::before,
.contrast_light_font .dropdown-toggle-button,
.contrast_dark_font #burgerButton::before,
.contrast_dark_font #burgerButton::after,
.contrast_dark_font #burgerButtonInner {
    background-color: #000 !important;
}

.contrast_light_font #burgerButton::before,
.contrast_light_font #burgerButton::after,
.contrast_light_font #burgerButtonInner {
    background-color: #fff !important;
}

.contrast_light_font nav.horizontally,
.contrast_light_font .buttonStyle a:not(.has-image) {
    border: 1px solid #fff !important;
}

.contrast_dark_font nav.horizontally,
.contrast_dark_font .buttonStyle a:not(.has-image) {
    border: 1px solid #000 !important;
}