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

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

body {
    font-family: "Poppins", sans-serif;
    color: #616161;
    background: #f2f2f2;
    font-size: 1rem;
    /* 1rem = 16px */
    line-height: 1.5;
}

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

a {
    color: #2c659b;
}

#content a,
a:hover,
a:focus {
    color: #2c659b;
    text-decoration: underline;
}

#content a {
    font-weight: 500;
    font-style: italic;
}

b, strong {
    font-weight: 600;
}

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

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

#topbar {
    padding: 15px 0;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

/* burgermenu for tablet */

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

    #burgerButton {
        font-size: 0;
        border: none !important;
        position: relative;
        z-index: 1002;
        display: block;
        width: 46px;
        height: 40px;
        border-radius: 2px;
        cursor: pointer;
        background-color: #ffffff;
        padding: 3px;
    }

    #burgerButton::before, #burgerButton::after, #burgerButtonInner {
        background-color: #2c659b;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 2px;
        -webkit-transition: transform 200ms linear, opacity 200ms linear;
        -moz-transition: transform 200ms linear, opacity 200ms linear;
        -ms-transition: transform 200ms linear, opacity 200ms linear;
        -o-transition: transform 200ms linear, opacity 200ms linear;
        transition: transform 200ms linear, opacity 200ms linear;
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner {
        -webkit-transform: rotate(-45deg) translate(-6px, 6px);
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    #burgerButton[aria-expanded="true"]::before {
        opacity: 0;
    }

    #burgerButton[aria-expanded="true"]::after {
        -webkit-transform: rotate(45deg) translate(-4px, -6px);
        transform: rotate(45deg) translate(-4px, -6px);
    }

    #burgerButtonInner {
        top: 10px;
    }

    #burgerButton::before {
        top: 18px;
    }

    #burgerButton::after {
        top: 26px;
    }

    #burgerButton::before, #burgerButton::after {
        content: "";
        display: block;
    }

    .navbar-nav {
        margin: 20px 0;
    }

    .navbar-collapse {
        top: 0;
        background: #ffffff;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 100;
        height: auto !important;
        -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        overflow-y: auto;
        -webkit-transition: left 300ms linear, opacity 300ms linear;
        -moz-transition: left 300ms linear, opacity 300ms linear;
        -ms-transition: left 300ms linear, opacity 300ms linear;
        -o-transition: left 300ms linear, opacity 300ms linear;
        transition: left 300ms linear, opacity 300ms linear;
    }

    .navbar-collapse.collapse.in {
        left: 0;
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-header {
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        background-color: #ffffff;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
        -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    .navbar-collapse.in::after {
        content: "";
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
        display: block;
        width: 90px;
        background-color: rgba(0, 0, 0, 0.5);
    }
}

@media (min-width: 575px) and (max-width: 991px) {
    .navbar-collapse {
        width: 60%;
    }

    .navbar-collapse.collapse.in::after {
        width: 40%;
    }
}

/* menu desktop */

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

    .horizontally {
        padding-top: 21px;
        padding-bottom: 20px;
        transition: background 300ms linear, box-shadow 300ms linear;
    }

    .is-sticky .horizontally {
        background: rgba(242, 242, 242, 0.92);
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
    }

    nav.horizontally .navbar-nav {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify !important;
        -ms-flex-pack: justify !important;
        justify-content: space-between !important;
        -webkit-box-align: center !important;
        -ms-flex-align: center !important;
        align-items: center !important;
    }

    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;
        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: #616161;
    font-weight: 400;
    text-align: left;
    padding: 10px 35px;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

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

    nav.horizontally a[class*="toplevel"] {
        padding: 10px 0;
        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: #2c659b;
}

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

nav.horizontally [class*="toplevel"] ul {
    padding: 20px 0;
    background-color: #ffffff;
    filter: drop-shadow(0px 1px 5px rgba(0, 0, 0, 0.08));
}

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

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

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

    nav.horizontally [class*="toplevel"]>ul::after {
        top: -12px;
        left: 50%;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 14px 12px 14px;
        border-color: transparent transparent #ffffff transparent;
        transform: translate(-50%, 0);
    }

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

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

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

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

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

@media (min-width:992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding: 9px 25px;
        text-align: center;
    }
}

/* ------------------------------------------ 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: transparent;
    color: #2c659b;
}

/* ----------------------------------------------- banner ----------------------------------------------- */

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

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

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

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

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

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

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

.slider-mask {
    display: block;
    background: linear-gradient(to bottom, #f2f2f2 0%, rgba(242, 242, 242, 0.85) 15%, rgba(242, 242, 242, 0) 40%, rgba(242, 242, 242, 0) 100%);
}

.index .slider-mask {
    display: block;
    background: linear-gradient(to bottom, #f2f2f2 0%, rgba(242, 242, 242, 0.85) 15%, rgba(242, 242, 242, 0) 55%, rgba(242, 242, 242, 0) 100%);
}

/* ------------------------------------------------ bannerOverlay ----------------------------------------------- */

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

#bannerOverlay .tab {
    color: #616161;
    font-weight: 500;
    line-height: 1.2;
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    padding: 40px 30px;
    pointer-events: all;
    border: 1px solid rgba(242, 242, 242, 0.92);
    background: rgba(219, 230, 240, 0.92);
}

#bannerOverlay .tab :is(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    color: #2c659b;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

@media (min-width: 992px) {
    #bannerOverlay {
        position: absolute;
        pointer-events: none;
        bottom: 70px;
        left: 0;
        right: 0;
        z-index: 12;
    }
}

@media (min-width: 1200px) {
    #bannerOverlay {
        bottom: 150px;
    }
}

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

#content {
    text-align: left;
    padding-top: 30px;
    padding-bottom: 30px;
}

@media (min-width: 992px) {
    #content {
        padding-top: 55px;
        padding-bottom: 60px;
    }
}

/* ------------------------------------------------ tabsBox ----------------------------------------------- */

#tabsBox {
    position: relative;
    background: #dbe6f0;
}



#tabsBox .tab {
    color: #636363;
    padding: clamp(30px, 6vw, 80px) 0;
}

#tabsBox .tab :is(h1, h2, h3, h4, h5, h6) {
    font-size: clamp(1.75rem, 4vw, 2.375rem);
    margin-bottom: clamp(15px, 3vw, 45px);
}

#tabsBox .tab :is(h1, h2, h3, h4, h5, h6) :is(em, i) {
    font-style: normal;
    display: block;
    color: #636363;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.625rem, 3vw, 1.875rem);
}

#tabsBox .tab a {
    margin-top: 5px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 24px;
    border: 1px solid #ffffff;
    background: #2c659b;
    transition: color 300ms linear, background 300ms linear, border 300ms linear;
}

#tabsBox .tab a::after {
    content: ' \00BB';
}

#tabsBox .tab a:hover,
#tabsBox .tab a:focus {
    color: #2c659b;
    background: #ffffff;
    border-color: #2c659b;
}

#tabsBox .tabsImg {
    line-height: 0;
    font-size: 0;
    height: 100%;
    min-height: 100%;
}

#tabsBox .tabsImg * {
    height: 100%;
    min-height: 100%;
}

#tabsBox .tabsImg img {
    display: block;
    object-fit: cover;
    object-position: center;
}

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

.h4link a:link, .h4link a:hover, .h4link a:focus, .h4link a:visited, H6, H5, H4, H3, H2, H1 {
    color: #2c659b;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Playfair Display", sans-serif;
}

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

.index h1, .index .h1, .index .legacy_h1 {
    text-align: center;
}

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

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

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

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

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

#newslinks, #newsmandate {
    border: 1px solid #2c659b;
}

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

footer {
    color: #ffffff;
    position: relative;
    padding: clamp(25px, 4vw, 45px) 0 clamp(25px, 4vw, 50px) 0;
    background: #757575;
}

@media (max-width: 991px) {
    footer>.row>.col-xs-12+* {
        border-top: 1px solid rgba(242, 242, 242, 0.25);
        margin-top: 25px;
        padding-top: 25px;
    }
}

@media (min-width: 768px) {
    footer>.row>.col-xs-12:nth-child(2) {
        border: none;
        margin-top: unset;
        padding-top: unset;
    }
}

@media (min-width: 992px) {
    footer::after {
        content: "";
        background: #ffffff;
        position: absolute;
        left: 50%;
        top: 50px;
        bottom: 50px;
        width: 1px;
        display: block;
        opacity: 0.25;
    }

    footer>.row>div {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    footer>.row>div:nth-child(2) {
        padding-right: 30px;
    }

    footer>.row>div:nth-child(3) {
        padding-left: 30px;
    }
}

#innerfooter {
    line-height: 1.7;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    font-size: 1rem;
}

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

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

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

#vernetzt {
    gap: 18px;
    text-align: left;
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.4;
    font-weight: 400;
    text-decoration: none;
}

#vernetzt b {
    font-weight: 500;
}

#vernetzt span span {
    display: block;
}

/* ------------------------------------------- kontakt ------------------------------------------ */

#kontakt {
    font-size: 1rem;
}

#kontakt .tabHeadline {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 0 20px 0;
}

#kontakt a {
    color: #ffffff;
    font-weight: 500;
    font-style: italic;
    text-decoration: underline;
}

/* ------------------------------------------ scroll top ---------------------------------------- */

#scrollTop {
    font-size: 0;
    border: 1px solid #ffffff;
    border-radius: 3px;
    width: 40px;
    height: 40px;
    display: block !important;
    position: relative;
    margin: 0 auto;
}

@media (min-width: 992px) {
    #scrollTop {
        margin-right: 0;
    }
}

#scrollTop::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-top: 10px;
    display: inline-block;
    border-right: 3px solid #ffffff;
    border-top: 3px solid #ffffff;
    transform: rotate(-45deg);
    transition: border 300ms linear;
}

#scrollTop:is(:hover, :focus) {
    background: rgba(0, 0, 0, 0.2);
}