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

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

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

a {
    color: #0166b4;
}


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

b,
strong {
    font-weight: 600;
}

.newsticker {
    color: #0166b4;
}

.newsticker a {
    color: #0166b4;
    text-decoration: none;
}

.newsticker a:is(:hover, :focus) {
    color: #0166b4;
    text-decoration: underline;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
    max-width: 270px;
    width: 100%;
}

@media (max-width: 991px) {
    #logo {
        z-index: 12;
        position: relative;
    }
}

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

/* ------------------------------------------- stylerBox --------------------------------------------- */

@media (max-width: 991px) {
    #stylerBox {
        padding: 10px 5px;
        background-color: #f2f8fa;
        margin-top: 10px;
        margin-bottom: 5px;
    }
}

#stylerBox span {
    color: #444444;
    font-weight: 500;
    font-size: 15px;
    margin-right: 10px;
}

@media (max-width: 991px) {
    #stylerBox span {
        display: block;
        margin: 0 auto 7px auto;
    }

    #stylerBox>* {
        flex-grow: 1;
    }
}


@media (min-width: 992px) {
    #stylerBox>*+* {
        margin-left: 30px;
    }

    #stylerBox {
        padding-top: 14px;
        padding-bottom: 24px;
    }
}

/* ------------------------------------------- contrast_style --------------------------------------------- */

#contrast_style,
#style{
    gap: 5px;
}

#contrast_style button {
    color: #000000;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.6);
    display: inline-block;
        width: 30px;
        height: 30px;
    border-radius: 50%;
    font-weight: 400;
    text-align: center;
    background: #ffffff;
    position: relative;
    z-index: 1;
    font-size: 0;
}

@media (max-width: 991px) {
    #contrast_style {
        justify-content: center;
    }
}

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

/* ------------------------------------------- styler --------------------------------------------- */


#style button {
    font-size: 20px;
    background: transparent;
    padding: 1px 5px;
    border: none;
    color: #444444;
    border: 1px solid rgba(0, 0, 0, 0.6);
    display: inline-block;
    font-weight: 600;
    font-family: "Poppins", serif;
    text-align: center;
    position: relative;
    border-radius: 50px;
    line-height: 1;
    width: 30px;
    height: 30px;
}

#style button:is(:hover, :focus) {
    text-decoration: none;
    color: #0166b4;
}

#style button:focus-visible {
    outline: 2px auto;
}

@media (max-width: 991px) {
    .donate a {
        width: 100%;
        margin-top: 15px;
    }
}

.donate a {
    background: linear-gradient(to right, #0166b4 0%, #105586 100%);
    padding: 8px 30px 8px 67px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    position: relative;
    transition: all 300ms linear;
    display: inline-block;
}

.donate a::after {
    content: '';
    position: absolute;
    background: url(../img/icon-spenden.png) no-repeat;
    width: 28px;
    height: 30px;
    left: 28px;
    top: 0;
    margin: auto 0;
    bottom: 0;
}

.donate a:is(:hover, :focus) {
    background: linear-gradient(to left, #0166b4 0%, #105586 100%);
    text-decoration: none;
}

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

nav.horizontally {
    background: #ffffff;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        padding: 10px 0;
        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: #0166b4;
        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;
    }

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

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

/* menu desktop */

@media (min-width: 992px) {

    #stickyWrapper {
        left: 50% !important;
        transform: translate(-50%) !important;
        position: relative;
    }

    .is-sticky .navbar-nav {
        margin: auto !important;
        max-width: 1200px;

    }

    .is-sticky #stickyWrapper {
        background-color: rgba(255, 255, 255, 0.95);
        width: 100vw !important;
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.15);
    }

    .is-sticky a[class*="toplevel"] {
        padding: 24px 0 !important;
    }

    nav.horizontally {
        transition: box-shadow 300ms linear, padding 300ms linear;
        padding-top: 10px;
    }

    .is-sticky nav.horizontally {
        padding-top: 4px;
        padding-bottom: 4px;
        box-shadow: 0px 5px 5px 0px rgba(11, 47, 57, 0.15);
        -webkit-box-shadow: 0px 5px 5px 0px rgba(11, 47, 57, 0.15);
        -moz-box-shadow: 0px 5px 5px 0px rgba(11, 47, 57, 0.15);
    }

    nav.horizontally .navbar-nav {
        margin: 10px 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        justify-content: end !important;
        align-items: center !important;
        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;
        transition: opacity 300ms linear;
    }

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

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

    nav.horizontally .dropdown-menu {
        min-width: 307px;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #444444;
    font-weight: 600;
    font-family: "Poppins", serif;
    text-align: left;
    padding: 10px 35px 10px 10px;
    position: relative;
    font-size: 1.125rem;
    text-transform: uppercase;
    line-height: 1.2;
    text-decoration: none;
    hyphens: auto;
}

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

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

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

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    background: #0166b4;
    width: 0;
    transition: width 300ms linear;
}

/* 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: #0166b4;
}

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 {
    width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

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

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"] ul {
        padding: 15px 0;
        border-radius: 10px;
        box-shadow: 0px 5px 5px 0px rgba(11, 47, 57, 0.15);
        -webkit-box-shadow: 0px 5px 5px 0px rgba(11, 47, 57, 0.15);
        -moz-box-shadow: 0px 5px 5px 0px rgba(11, 47, 57, 0.15);
    }

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

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

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

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

    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: #136eb0;
    text-align: left;
    padding: 10px 40px 10px 20px;
    font-weight: 400;
    font-family: "Poppins", serif;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (min-width: 992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
        content: "\00BB";
        position: absolute;
        right: 20px;
        font-family: 'Merriweather', sans-serif;
        top: 50%;
        font-weight: 400;
        margin-top: -12px;
        font-size: 18px;
        line-height: 1;
    }
}

/* 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: linear-gradient(to right, #0166b4 0%, #105586 100%);
    color: #ffffff;
}

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

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

#slider {
    max-height: clamp(300px, 46vw, 450px);
    overflow: hidden;
    position: relative;
}

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(450px, 78vw, 800px);
    }
}

#headerpic {
    padding: 0;
    overflow: hidden;
    position: relative;
}

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

.slider-mask {
    display: block;
    background: url('../img/banner-welle.png') bottom -1px center / 100% auto no-repeat;
}

#bannerOverlay {
    margin-top: 30px;
}

@media (max-width: 991px) {
    #bannerOverlay {
        padding: 30px 15px;
        background: linear-gradient(to top, #fbf0cc, rgba(251, 240, 204, 0));
    }
}

@media (min-width: 992px) {

    .slider-mask {
        display: block;
        background: url('../img/banner-welle-oben.png') top -1px center / 100% auto no-repeat,
            url('../img/banner-welle.png') bottom -1px center / 100% auto no-repeat;
    }

    #bannerOverlay {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 65px;
        z-index: 51;
        pointer-events: none;
    }

    #headerpic .nivo-controlNav {
        bottom: 15px;
    }
}

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

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

#content {
    text-align: left;
    padding-top: clamp(30px, 4vw, 45px);
    padding-bottom: clamp(30px, 8vw, 115px);
}


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

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

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.575rem, 4.5vw, 2.1875rem);

}

h3,
.h3,
.legacy_h3 {
    font-size: 1.4rem;
}

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

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

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

/* ----------------------------------------------- @2f footer ----------------------------------------------- */

#footer {
    color: #444444;
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: #e9f1f9;
}

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

@media (max-width: 767px) {
    #footer .row>.col-xs-12:not(:first-child)::before {
        background: #000000;
        content: " ";
        display: block;
        height: 1px;
        margin: 25px 0;
        opacity: 0.2;
        width: 100%;
    }

    #footer .row>.col-xs-12.hidden-xs~.col-xs-12::before,
    #footer .row>.col-xs-12.hidden-sm~.col-xs-12::before {
        display: none;
    }
}

/* --------------------------------------------- footerTab -------------------------------------------- */

#footerTab {
    font-size: 1.0625rem;
    margin-top: 18px;
    padding-top: 15px;
}

#footerTab .tabHeadline {
    color: #0166b4;
    font-size: 1.625rem;
    font-family: 'Raleway', sans-serif;
    font-style: italic;
    font-weight: 800;
}

#footerTab #contact a {
    color: #0166b4;
    text-decoration: underline;
}

.socialMedia a {
    text-decoration: none;
}

.socialMedia a:is(:hover, :focus) {
    text-decoration: none;
}

/* ----------------------------------------------- scrollTop ----------------------------------------------- */

#scrollTop {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    opacity: 1 !important;
    max-width: 170px;
    padding: 2px 20px 2px 0;
    margin: 0 auto 25px auto;
    border-radius: 10px;
    background: linear-gradient(to right, #0166b4 0%, #105586 100%);
}

@media (min-width: 768px) {
    #scrollTop {
        margin: auto 0 85px auto;
    }
}

#scrollTop:hover,
#scrollTop:focus {
    background: linear-gradient(to left, #0166b4 0%, #105586 100%);
    text-decoration: none;
}

#scrollTop span {
    position: relative;
    display: inline-block;
    font-size: 0;
    height: 35px;
    width: 18px;
    margin-right: 4px;
    transition: border-radius 300ms linear;
}

#scrollTop span::after {
    content: "";
    position: absolute;
    display: inline-block;
    margin-top: -1px;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 1px;
    border-right: 2px solid #ffffff;
    border-top: 2px solid #ffffff;
    transform: rotate(-45deg);
}

@media (max-width: 991px) {
.iframe-wrapper-manual-enabling,
iframe {
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}
}

@media (min-width: 992px) {

    .iframe-wrapper-manual-enabling,
    iframe {
        min-width: 100% !important;
        min-height: 179px !important;
        max-width: 100% !important;
        max-height: 179px !important;
    }
}


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

#vernetzt {
    gap: 12px;
    text-align: right;
    font-size: 0.9375rem;
    color: #444444;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

#vernetzt b {
    color: #0166b4;
}

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

#innerfooter {
    font-size: 1rem;
    color: #ffffff;
    padding-top: 15px;
    padding-bottom: 4px;
    background-color: #0364af;
}

#innerfooter ul {
    padding: 0 !important;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
}

#innerfooter a:hover,
#innerfooter a:focus {
    color: #ffffff;
    text-decoration: underline;
}

#innerfooter li+li::before {
    content: "•";
    margin: 0 10px;
}

@media (min-width: 992px) {
    #innerfooter li+li::before {
        margin: 0 15px;
    }
}

@media (max-width: 767px) {
    #innerfooter li {
        display: block;
        text-align: center;
        padding: 5px;
        margin: 0;
    }

    #innerfooter li+li::before {
        display: none;
    }
}