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

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

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

a {
    color: #c60017;
}

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

b,
strong {
    font-weight: 600;
}

@media (min-width: 1200px) {

    .row,
    .compact,
    ._op-container .container {
        max-width: 1600px;
        width: 100% !important;
    }
}

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

#topbar {
    padding: 6px 0 6px 0;
}

/* ------------------------------------------- optionbar ------------------------------------------- */

#optionbar {
    margin-left: 23px;
}

#optionbar span {
    color: #282828;
    font-size: 0.9375rem;
}

#optionbar button {
    color: #254c6b;
    padding: 2px;
    border: 1px solid rgba(0, 0, 0, 0.6);
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    font-weight: 600;
    text-align: center;
    background: transparent;
    position: relative;
    z-index: 1;
    font-size: 0;
    line-height: 0;
    margin-left: 10px;
}

#style {
    margin-left: 30px;
}

#style button {
    font-size: 17px;
}

#contrast_style button::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    left: -6px;
    top: -6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 150ms linear;
}

#contrast_style *+* {
    margin-left: 10px;
}

#contrast_style button::after {
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    right: 3px;
    left: 3px;
    bottom: 3px;
    border: 1px solid rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

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

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

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

#optionbar button:is(:hover, :focus) {
    color: #c60017;
}

/* ------------------------------------------- suche ------------------------------------------- */

form[id^="search"] {
    display: inline-flex;
    border: #e6e6e6 1px solid;
    width: 100%;
}

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

@media (min-width: 992) {
    form[id^="search"] {
        margin-left: 81px;
    }
}

form [id^="search_input"] {
    color: #282828;
    font-size: 0.9375rem;
    font-style: normal;
    background: transparent;
    padding: 3px 15px;
    border: 0;
    width: 100%;
}

form [id^="search_submit"] {
    min-width: 40px;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    background: #ffffff 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="%232970c0"><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;
}

form [id^="search_submit"]:is(:hover, :focus) {
    background: #a0cdff 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="%232970c0"><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;
}

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

@media (max-width: 991px) {
    #topbar {
        padding: 13px 0;
    }

    form[id^="search"] {
        margin-top: 10px;
    }

    form [id^="search_input"] {
        padding: 3px 15px 3px 0;
    }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: static !important;
        background-color: #0063af;
    }

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

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #0063af;
        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 {
        border-left: 10px solid #0063af;
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #0063af;
        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: 9px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        position: relative;
        z-index: 101;
        background-color: #0063af;
        border-bottom: 1px solid transparent;
        transition: border 200ms linear;
    }

    .is-sticky nav.horizontally {
        border-color: #ffffff;
    }

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

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

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

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

    nav.horizontally .navbar-nav li:is(.open, :hover)>ul,
    nav.horizontally .navbar-nav li.open:focus-within>ul,
    nav.horizontally .navbar-nav li[class*="secondlevel"]>ul[style*="block"] {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible;
    }

    nav.horizontally .navbar-nav li.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.horizontally .navbar-nav li:is(:hover, :focus)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #ffffff;
    font-weight: 500;
    text-align: left;
    padding: 14px 15px;
    position: relative;
    font-size: 1.25rem;
    text-transform: uppercase;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"] {
        border-bottom: 1px solid rgba(46, 60, 72, 0.2);
    }

    nav.horizontally li[class*="toplevel"]+li {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
    }

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

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 25px 10px;
        display: flex;
        text-align: center;
        align-content: center;
        align-items: center;
        justify-content: 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) {
    background-color: #f2f7fb;
    color: #c60017;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #e6e9ef;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
}

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

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 15px;
    }

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

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

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

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

/* secondlevel + thirdlevel */

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

@media (max-width: 991px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding: 10px 35px 10px 15px
    }
}

/* 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: #fff;
    color: #c60017;
}

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

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

#headerpic {
    margin: 0 auto;
    position: relative;
    width: 100%;
}

#slider {
    max-height: 300px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 992px) {
    #slider {
        max-height: 400px;
    }

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

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

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

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

/* #region --------------------------------- h1 - h6, newslink ------------------------------------- */

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #0063af;
    font-weight: 600;
    line-height: 1.2;
}

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

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

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: clamp(1.5625rem, 3vw, 1.875rem);
}

h5,
.h5,
.legacy_h5 {
    font-size: clamp(1.4375rem, 3vw, 1.6875rem);
}

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

#tabs .tabHeadline,
footer .tabHeadline,
#vernetzt h2 {
    color: #ffffff;
    margin-bottom: 30px;
    font-size: clamp(1.375rem, 3vw, 1.5625rem);
    hyphens: auto;
}

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

#tabs {
    padding: clamp(40px, 3vw, 80px) 0;
}

#tabs>.row>div {
    margin-bottom: 30px;
}

#tabs .tab {
    color: #ffffff;
    padding: clamp(30px, 6vw, 40px);
    height: 100%;
    background-size: cover;
    font-weight: 500;
    background-position: center;
    font-size: 1.125rem;
    background-repeat: no-repeat;
}

@media (min-width: 1300px) {
    #tabs .tab {
        padding-top: 100px;
    }
}

#news-events .tab a {
    display: inline-block;
    color: #fff;
    font-weight: 500;
    padding: 6px 30px;
    margin-top: 30px;
    text-decoration: none;
    background-color: #0063af;
}

#tabs .tab a,
#events .tab a {
    display: inline-block;
    color: #0063af;
    font-weight: 500;
    padding: 6px 30px;
    margin-top: 30px;
    text-decoration: none;
    background-color: #fff;
}

#tabs .tab a+a {
    margin-left: 15px;
}

#news-events .tab a:is(:hover, :focus) {
    color: #0063af;
    background-color: #fff;
}

#tabs .tab a:is(:hover, :focus),
#events .tab a:is(:hover, :focus) {
    color: #fff;
    background-color: #0063af;
}

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

#news-events {
    padding-bottom: 50px;
}

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

#news-events .tab {
    font-size: 1.0625rem;
}

#news-events .tab h2 {
    font-size: 2rem;
    color: #0063af;
}

#news-events .tab :is(b, strong) {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #0063af;
    font-weight: 400;
}

#news-events .tab a :is(b, strong) {
    color: inherit;
    font-weight: 400;
}

#news-events .tab a {
    margin-top: 5px;
}

@media (min-width: 992px) {
    #news-events>.row::before {
        position: absolute;
        display: block;
        content: '';
        left: 5%;
        bottom: 137px;
        background: url(../img/logo-wasserzeichen.png) no-repeat;
        width: 249px;
        height: 242px;
    }

    #news-events .btgrid .row.row-1>div {
        flex: 0 0 68%;
        max-width: 68%;
    }

    #news-events .btgrid .row.row-1>div+div {
        flex: 0 0 32%;
        max-width: 32%;
        padding-top: 20px;
        padding-right: 0;
    }
}

@media (min-width: 1200px) {
    #news-events .btgrid>.row {
        width: 100% !important;
        min-width: 770px;
    }
}

@media (min-width: 1300px) {
    #news-events>.row::before {
        left: 55%;
    }
}

#news .tab_link,
#news .tab_link>div {
    height: 100%;
    min-height: 100%;
}

.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: 768px) {
    .news {
        padding-right: 0;
    }

    .news .tab_link_entries {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news .tab_link_entry {
    font-size: 1rem;
    position: relative;
    width: 100%;
    margin-top: 90px;
    padding: 90px 20px 30px 20px;
    background: #ffffff;
    border: 1px solid rgba(2, 47, 81, 0.35) !important;
}

@media (max-width: 991px) {
    .news .tab_link_entry {
        box-shadow: 0 0 15px 0 rgba(0, 0, 0, .1);
    }
}

.news .vorschau {
    opacity: 1;
}

.news .tab_preview_picture {
    background: #ffffff;
}

.news .tab_link_entry::before,
.news .tab_link_entry .tab_preview_picture {
    position: absolute;
    display: block;
    top: -50px;
    left: 9px;
    width: 125px;
    height: 120px;
    overflow: hidden;
}

.news .tab_link_entry::before {
    content: "";
    background: center / cover no-repeat, #666666;
}

.news .tab_preview_picture img {
    position: absolute;
    margin: 0 !important;
    left: 50%;
    top: 50%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    max-width: 125px;
    width: auto;
    height: auto;
    -ms-interpolation-mode: bicubic;
    transform: translateX(-50%) translateY(-50%);
}

.news .tab_date {
    display: inline-block;
    position: absolute;
    z-index: 1;
    right: -1px;
    top: 34px;
    font-style: italic;
    color: #ffffff;
    font-size: 0.8125rem;
    padding: 8px;
    background: #0063af;
}

.news .tab_link_title a {
    display: block;
    font-weight: 400;
    font-size: 1.125rem;
    color: #444444;
    line-height: 1.2;
    margin-bottom: 8px;
}

.news .tab_link_entries+div,
.news .tab_link_entries .tab_spacer,
.news .tab_link_entry>div:nth-last-child(2) {
    display: none;
}

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

#events {
    color: #d4d4d4;
    font-size: 1rem;
    position: relative;
    background: #022f51;
}

#events .tabHeadline {
    margin-bottom: 0;
    hyphens: auto;
    color: #ffffff;
    font-size: clamp(1.5625rem, 4vw, 2rem);
    padding: 35px 30px;
    background: #0063af url(../img/icon-veranstaltungen.png) top 15px right 20px no-repeat;
}

#news-events #events h2.tabHeadline {
    color: #ffffff;
}

#events .newsWrapper {
    padding: 30px 30px 0 30px;
}

#events .tab_link_entries {
    padding-bottom: 30px;
}

#events .tab_link_entry {
    display: grid;
}

#events .tab_link_entry+.tab_link_entry {
    margin-top: 40px;
}

#events .tab_spacer {
    height: 0;
}

#events .tab_link_title {
    order: 2;
}

#events .tab_link_title a {
    font-weight: 600;
    color: #ffffff;
}

#events .tab_link_mandat a {
    color: #d4d4d4;
    font-style: normal;
}

#events .tab_link_date {
    font-size: 0.8125rem;
    color: #d4d4d4;
    order: 1;
}

#events .tab_link_mehr {
    font-size: 0;
    text-align: right !important;
    padding: 0 !important;
    margin-right: -30px;
}

#events .tab_link_mehr a {
    display: inline-block;
    color: #0063af;
    font-weight: 500;
    padding: 6px 30px;
    font-size: clamp(1rem, 1vw, 1.125rem);
    text-decoration: none;
    background-color: #fff;
}

#events .tab_link_mehr a:hover,
#events .tab_link_mehr a:focus {
    color: #fff;
    background: #0063af;
}

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

footer {
    color: #ffffff;
    background: #0063af;
    font-size: 1.125rem;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.0625rem);
}

footer :is(strong, b) {
    font-size: 1.25rem;
}

footer>.row {
    row-gap: 30px;
    padding: clamp(40px, 8vw, 70px) 0 clamp(30px, 8vw, 50px) 0;
}

footer a:not(a#vernetzt) {
    color: #ffffff;
    font-style: normal;
    text-decoration: underline;
}

footer .links {
    padding: 0 0 0 100px;
}

/* #region --------------------------------- innerfooter ------------------------------------------ */

#innerfooter ul.footer_list {
    padding: 0;
}

#innerfooter ul.footer_list a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    padding: 4px 10px 4px 0;
    font-style: normal;
}

#innerfooter ul.footer_list a:is(:hover, :focus) {
    color: #ffffff;
    text-decoration: underline;
}

/* #region --------------------------------- vernetzt ------------------------------------------ */

#vernetzt {
    display: inline-block;
    color: #fff;
    line-height: 1.4;
    text-decoration: none;
}

#vernetzt span {
    display: block;
}

#vernetzt img {
    margin-bottom: 4px;
}

#vernetzt strong {
    color: #ffffff;
    font-weight: 400;
}