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

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

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

a {
    color: #294495;
}

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

#content a {
    font-style: italic;
}

b,
strong {
    font-weight: 600;
}

@media (min-width: 1200px) {

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

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

#topbar {
    padding: 22px 0;
}

/* ------------------------------------------- topButton ------------------------------------------- */

.topButton a {
    display: inline-block;
    text-decoration: none;
    color: #1b2d61;
    font-weight: 600;
    font-size: clamp(1rem, 1vw, 1.125rem);
    padding: 6px 30px;
    background: #fdde09;
}

.topButton a:is(:hover, :focus) {
    color: #ffffff;
    background: #294495;
}

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

form[id^="search"] {
    display: inline-flex;
    width: 100%;
}

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

form [id^="search_input"] {
    color: #585757;
    font-size: 1rem;
    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="%23294495"><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: #fdde09 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="%23294495"><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: #585757 !important;
    opacity: 1 !important;
    font-style: normal !important;
}

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

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

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

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

#logo,
#logoMobil {
    display: inline-block;
    border-radius: 100%;
    padding: 14px 25px;
    background: #ffffff;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
}

#logo img,
#logoMobil img {
    display: block;
}

@media (max-width: 991px) {
    #logoMobil img {
        max-height: 150px;
        height: 100%;
    }
}

@media (min-width: 992px) {
    #logo {
        position: absolute;
        top: -105px;
        aspect-ratio: 1/1;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        transition: top 300ms linear, max-width 300ms linear;
    }

    .is-sticky #logo {
        top: -45px;
        max-width: 140px;
    }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        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: #ffffff;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #294495;
        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;
    }

    .nav1 .navbar-nav {
        margin-bottom: 0;
    }

    .nav2 .navbar-nav {
        margin-top: 0;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 35px 0;
        background: #294495;
    }

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

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

    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: 600;
    text-align: left;
    padding: 10px 35px 15px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

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

/* 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: #1b2d61;
    background-color: #fdde09;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

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

/* 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: #fdde09;
    color: #1b2d61;
}

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

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

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

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

#slider {
    overflow: hidden;
    position: relative;
    height: 100%;
}

@media (min-width: 992px) {
    #headerpic a.nivo-prevNav {
        left: 65px;
    }

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

    .slider-wrapper {
        position: absolute !important;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }

    body:not(.index) #headerpic {
        min-height: 500px;
    }

    .index #bannerOverlay {
        padding: 11.5vw 0 2vw 0;
    }

    #slogan {
        margin-bottom: 20px;
    }
}

@media (max-width: 991px) {

    #slider-onebanner,
    #slider .nivo-box>div,
    #slider .nivo-slice>div,
    #slider .nivo-main-image {
        background-attachment: unset !important;
        background-size: 100% auto !important;
    }

    #slider {
        height: 40vw;
    }

    body:not(.index) #slider {
        height: 28vw;
    }
}

#bannerOverlay {
    position: relative;
    pointer-events: none;
    z-index: 53;
    padding: 30px 0 20px 0;
    border-bottom: 2px solid #294495;
}

@media (min-width: 992px) {
    #headerpic {
        position: relative;
        background-color: #1b2d61;
    }

    #headerpic::before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 12;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.0) 100%);
    }

    #headerpic .slick-sr-only {
        color: #ffffff;
    }

    #bannerOverlay {
        padding: 0;
        border-bottom: none;
    }

    #slogan {
        pointer-events: all;
    }
}

#slogan :is(h1, h2, h3, h4, h5, h6) {
    font-size: clamp(1.875rem, 4vw, 4.375rem);
}

#slogan :is(h1, h2, h3, h4, h5, h6) :is(em, i) {
    font-weight: 400;
    font-style: normal;
    display: block;
}

@media (min-width: 992px) {
    #slogan {
        color: #ffffff;
    }

    #slogan :is(h1, h2, h3, h4, h5, h6, p, a) {
        color: #ffffff;
    }
}

.slider-mask {
    display: none;
}

@media (min-width: 992px) {
    .index .slider-mask {
        display: block;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%);
    }
}

/* #region --------------------------------- scroll bottom -------------------------------------- */

#scrollBottom a {
    position: relative;
    font-size: 0;
    display: block;
    width: 44px;
    height: 44px;
    margin: clamp(10px, 3vw, 120px) auto 10px auto;
    text-align: center;
    background-color: #1b2d61;
    border-radius: 50%;
    border: none;
    pointer-events: auto;
    transition: all .2s ease-in;
}

#scrollBottom a:is(:hover, :focus) {
    background-color: #294495;
}

#scrollBottom a::after,
#scrollBottom a::before {
    position: absolute;
    content: "";
}

#scrollBottom a::after {
    left: 17px;
    top: 20px;
    width: 8px;
    height: 8px;
    display: inline-block;
    border-left: 3px solid #fdde09;
    border-bottom: 3px solid #fdde09;
    transform: rotate(-45deg);
    border-radius: 2px;
    transition: border 300ms linear;
}

#scrollBottom a::before {
    left: 50%;
    top: 10px;
    width: 3px;
    height: 20px;
    border-radius: 15px;
    background-color: #fdde09;
    transform: translateX(-50%);
}

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

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

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

#news-events {
    padding-top: clamp(30px, 5vw, 90px);
    padding-bottom: clamp(30px, 3vw, 50px);
    background: url('../img/welle.png') bottom -1px center / 100% auto no-repeat;
}

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

#news-events .tab h2 {
    font-size: clamp(1.5625rem, 4vw, 2rem);
}

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

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

#news-events .tab a {
    display: inline-block;
    color: #1b2d61;
    font-weight: 600;
    padding: 6px 30px;
    margin-top: 30px;
    text-decoration: none;
    background-color: #fdde09;
}

#news-events .tab a:is(:hover, :focus) {
    color: #ffffff;
    background: #294495;
}

@media (min-width: 992px) {
    #news-events>.row::before {
        position: absolute;
        display: block;
        content: '';
        width: 320px;
        height: 536px;
        left: 52%;
        bottom: -97px;
        background: url('../img/trompete.png') no-repeat;
    }

    #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: 50%;
    }
}

#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: none !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, #294495;
}

#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: #294495;
}

#news .tab_link_title a {
    display: block;
    font-weight: 600;
    font-size: 1.125rem;
    color: #585757;
    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: #294495;
}

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

#events #newsWrapper {
    padding: 30px 30px 47px 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;
    font-size: clamp(1rem, 1vw, 1.125rem);
    color: #ffffff;
}

#events .tab_link_mandat {
    order: 3;
}

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

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

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

#events .tab_link_mehr a {
    position: absolute;
    right: 0;
    display: inline-block;
    font-size: clamp(1rem, 1vw, 1.125rem);
    font-weight: 600;
    color: #1b2d61;
    padding: 10px 15px;
    background: #fdde09;
    text-decoration: none;
}

#events .tab_link_mehr a:hover,
#events .tab_link_mehr a:focus {
    color: #1b2d61;
    background: #ffffff;
}

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

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

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

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);
}

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

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

footer {
    color: #d4d4d4;
    background: #294495;
    padding: clamp(30px, 4vw, 60px) 0 clamp(30px, 3vw, 50px) 0;
}

footer>.row {
    row-gap: 30px;
}

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

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

#innerfooter ul.footer_list {
    padding: 0;
}

#innerfooter ul.footer_list a {
    color: #d4d4d4;
    text-decoration: none;
    display: block;
    padding: 4px 10px 4px 0;
    font-style: normal;
    transition: padding-left 300ms linear, color 300ms linear, background 300ms linear;
}

#innerfooter ul.footer_list a:is(:hover, :focus) {
    color: #1b2d61;
    padding-left: 10px;
    background: #fdde09;
}

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

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

#vernetzt span {
    display: block;
}

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

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