@import url("https://fonts.verwaltungsportal.de/css/?family=Open+Sans:400,700,400i,700i");
@import url("https://fonts.verwaltungsportal.de/css/?family=Sniglet:400,800,400i,800i");


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

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

a {
    color: #246ba2;
}

#content a {
    text-decoration: underline;
}

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

b,
strong {
    font-weight: 600;
}

#overflow {
    overflow: hidden;
}

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

#topbar {
    padding: 26px 0;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}


@media (min-width: 992px) {
    #logo {
        position: absolute;
        top: 0;
        left: 15px;
        z-index: 103;
    }
}

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

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

#search {
    background: #ffffff;
    display: inline-flex;
    width: 100%;
}

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

#search_submit {
    min-width: 33px;
    flex-shrink: 0;
    background: url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    border: none;
    font-size: 0;
    transition: background-color 300ms linear;
}

#search_submit:is(:hover, :focus) {
    background-color: #eecac2;
}

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

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

/* burgermenu for tablet */

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

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

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

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 34px 0;

    }

    .is-sticky nav.horizontally {
        padding: 20px 0;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
        background: #ffffff;
    }

    .is-sticky nav div.offset-lg-5 {
        margin-left: 0;
        flex: 0 0 100%;
        max-width: 100%;
        transition:
            margin-left 500ms cubic-bezier(0.4, 0, 0.2, 1),
            flex 500ms cubic-bezier(0.4, 0, 0.2, 1),
            max-width 500ms cubic-bezier(0.4, 0, 0.2, 1);
        will-change: margin-left, flex, max-width;
    }

    #sticky-wrapper.is-sticky {
        z-index: 130 !important;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        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: #303030;
    font-weight: 400;
    text-align: left;
    padding: 12px 15px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "Sniglet", system-ui;
}

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

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

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

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



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

/* toplevel-over */

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

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



/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
}

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

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

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

/* secondlevel + thirdlevel */

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

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

    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: #246ba2;
    color: #ffffff;
}

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

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

header {
    position: relative;
}

#slider {
    height: clamp(300px, 42vw, 400px);
    position: relative;
    background: #fff;
}

#headerpic .slider-wrapper {
    z-index: 12;
    position: relative;
}

#headerpic .slider-wrapper::before {
    content: '';
    background: url(../img/dekor-banner-top.png) no-repeat top center / 100% auto;
    height: 384px;
    position: absolute;
    top: -41px;
    left: -50px;
    pointer-events: none;
    right: -50px;
    z-index: -1;
}

#headerpic .slider-wrapper::after {
    content: '';
    background: url(../img/dekor-banner-bottom.png) no-repeat bottom center / 100% auto;
    height: 384px;
    position: absolute;
    bottom: -78px;
    left: -80px;
    pointer-events: none;
    right: -50px;
    z-index: -1;
}

@media (min-width: 992px) {
    body.index #slider {
        height: clamp(400px, 63vw, 749px);
    }

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

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

#headerpic {
    padding: clamp(20px, 3vw, 2.5rem) 0 0 0;
    position: relative;
}

@media (max-width: 768px) {
    #headerpic {
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.08);

    }
}

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

@media (min-width: 992px) {

    #headerpic {
        margin-top: -20px;
        margin-bottom: -70px;
    }

}

.slider-wrapper,
.nivo-main-image,
#slider>a>div {
    height: 100% !important;
}

.slider-mask {
    display: none;
}

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

/* -------------------------------------------- buttons ----------------------------------------- */

.buttonStyle a,
#events .tab_link_mehr2 a {
    display: inline-block;
    color: #246ba2;
    border: 2px solid #246ba2;
    padding: 5px 15px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 400;
    text-decoration: none;
    transition: color 300ms linear, background 300ms linear;
    margin-top: clamp(20px, 3vw, 40px);
    font-family: "Sniglet", system-ui;
}

#topbar .buttonStyle a {
    margin-top: 0;
    padding-left: 40px;
    padding-right: 40px;
}

.buttonStyle a:is(:hover, :focus),
#events .tab_link_mehr2 a:is(:hover, :focus) {
    color: #ffffff;
    background: #246ba2;
}

#events .tab_link_mehr2 a {
    background: #ffffff;
}

/* ------------------------------------------ events + news ------------------------------------- */

:is(#events, #news) .tab_link_title a {
    font-weight: 400;
}

:is(#events, #news) .tab_link_entries a {
    color: inherit;
}

@media (min-width: 768px) {
    :is(#events, #news) .tab_link {
        font-size: 1.125rem;
    }
}

:is(#events, #news) .tab_link_entry:not(:last-child) {
    margin-bottom: clamp(15px, 2vw, 25px);
    padding-bottom: clamp(15px, 2vw, 25px);
    border-bottom: 1px solid rgba(133, 97, 40, 0.3) !important;
}

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

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

#events {
    background: #f1f3f5;
    padding: 60px 0;
}

#events .bannerElement {
    z-index: 12;
    position: relative;
}


#events .bannerElement::after {
    content: '';
    background: url(../img/dekor-banner-events.png) no-repeat center center / 100% 100%;
    position: absolute;
    top: -16px;
    left: -30px;
    right: -30px;
    bottom: -18px;
    display: block;
    pointer-events: none;
    z-index: -1;
}

@media (min-width: 992px) {

    #events {
        padding: 180px 0 80px 0;
    }

    #events>.row::after {
        width: 473px;
        height: 520px;
        right: 60px;
        bottom: -110px;
    }

    #events>.row::before {
        content: '';
        background: url(../img/dekor-banner-element.png) no-repeat bottom center / 100% auto;
        width: 1044px;
        height: 383px;
        pointer-events: none;
        display: block;
        position: absolute;
        left: -361px;
        text-align: 0;
        top: -407px;
    }

    #events>.row::after {
        content: '';
        display: block;
        position: absolute;
        width: 1px;
        height: 100%;
        background: #b7b8ba;
        content: '';
        pointer-events: none;
        left: 50%;
        top: 0;
    }
}


#events .tab_link_mehr {
    display: none;
}

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

#news {
    padding: clamp(40px, 6vw, 80px) 0;
}

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

@media (min-width: 768px) {
    #news>.row>div:last-child {
        padding-top: 60px;
    }
}

#news .tab_link_entry {
    position: relative;
    padding-left: 140px;
    min-height: 120px;
}

#news .tab_link_title {
    margin-bottom: 10px;
}

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

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

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

#news .tab_link .tab_link_mehr {
    display: none;
}

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

body:not(.index) main {
    background: linear-gradient(to bottom, rgba(19, 77, 121, 0.10), rgba(19, 77, 121, 0.10) 30px, rgba(255, 255, 255, 0) 30px);
}

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

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #303030;
    font-weight: 400;
    line-height: 1.2;
    font-family: "Sniglet", system-ui;
}

.headline-large-margin :is(h1, h2, h3, h4, h5, h6) {
    margin-bottom: 0;
}

:is(#headerpic, #teaser) :is(h1, h2, h3, h4, h5, h6) :is(i, em) {
    font-style: normal;
    font-family: "Sniglet", system-ui;
    color: #303030;
    font-size: 1.125rem;
    font-weight: 400;
    display: block;
    margin: 6px 0 8px 0;
}

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


@media (min-width: 768px) {
    #headerpic .headline-large-margin {
        margin-bottom: 150px;
    }
}


:is(#headerpic, #events, #news .headline-large-margin, #teaser) :is(h1, h2),
h2,
.h2,
.legacy_h2 {

    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

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

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

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

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

/* -------------------------------------------- teaser ------------------------------------------ */

#teaser {
    background: #f1f3f5 url(../img/dekor-first-breaker.png) no-repeat bottom right 50px / 41vw auto;
    padding: clamp(40px, 6vw, 80px) 0;
}

@media (min-width: 1921px) {
    #teaser {
        background-size: auto auto !important;
    }
}


@media (min-width: 576px) {
    #teaser>.row {
        min-height: 268px;
    }
}

@media (min-width: 992px) {
    #teaser>.row::after {
        width: 432px;
        height: 469px;
        left: 48%;
        bottom: -120px;
    }
}



/* #region ------------------------------------- quote ------------------------------------------ */

#quoteBox {
    position: relative;
    z-index: 0;
    background: url(../img/dekor-events.png) no-repeat top center;
}

#quoteBox h2 {
    font-size: 1.75rem;
    z-index: 12;
    position: relative;
}

#quoteBox h2 strong {
    font-size: 3rem;
    font-weight: 400;
}

#quoteBox::before {
    content: '';
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #f1f3f5;
    height: 300px;
    width: 266px;
    display: block;
    position: absolute;
}

@media (max-width: 767px) {
    #quoteBox::before {
        content: '';
        background-color: #f1f3f5;
        display: block;
        position: absolute;
        opacity: 0.9;
        z-index: -1;
        left: -15px;
        right: -15px;
        width: unset;
        height: unset;
        top: -15px;
        bottom: -15px;
    }
}

#quoteBox em {
    font-size: 1.75rem;
    font-weight: 800;
    font-style: normal;
}

@media (min-width: 576px) {
    #quoteBox {
        min-height: 320px;
    }
}

@media (min-width: 992px) {
    #quoteBox {
        min-height: 450px;
    }
}


#quote {
    color: #483f3b;
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    line-height: 1.2;
    font-family: "Merriweather", sans-serif;
    font-weight: 700;
}


@media (min-width: 576px) {
    #quote {
        padding-left: 200px;
        padding-bottom: 25px;
    }
}

@media (min-width: 768px) {
    #quote {
        padding-left: 0;
    }
}

@media (min-width: 992px) {
    #quote {
        padding-left: 150px;
        margin-right: -60px;
    }
}

#quote :is(b, strong) {
    color: #292421;
    font-size: clamp(1.75rem, 4vw, 2.1875rem);
}

#quote::before {
    content: "\00BB";
    color: #246ba2;
    font-size: 60px;
    text-align: left;
    display: block;
    position: relative;
    z-index: 2;
    line-height: 1;
    font-weight: 800;
    font-family: "Sniglet", system-ui;
}

@media (min-width: 576px) {
    #quote::before {
        padding-left: 40px;
    }
}

#quote::after {
    content: "\00AB";
    color: #246ba2;
    font-size: 30px;
    font-family: "Sniglet", system-ui;
}

/* #endregion ---------------------------------- quote ------------------------------------------ */

/* --------------------------------------------- footer ----------------------------------------- */

footer {
    background: #134d79;
    padding: clamp(40px, 6vw, 80px) 0;
    color: #ffffff;
}

@media (min-width: 768px) {
    footer {
        font-size: 1.125rem;
    }
}

@media (min-width: 992px) {
    footer {
        background: #134d79 url('../img/dekor-footer.png') bottom left no-repeat;
    }
}

@media (min-width: 1200px) {
    footer {
        background-position: center left;
    }
}

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

.footerHeadline {
    color: #ffffff;
    font-size: 1.375rem;
    margin: 0;
}

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

#innerfooter {
    padding-bottom: 20px;
    margin-bottom: 20px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

@media (min-width: 992px) {
    #innerfooter {
        margin-left: 27%;
    }
}

#innerfooter ul {
    padding: 0;
    line-height: 1.8;
}

#innerfooter a {
    color: #ffffff;
}

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

#vernetzt {
    gap: 12px;
    text-align: right;
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 auto;
    font-weight: 300;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}