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

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

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

a {
    color: #0d8387;
}

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

#content a {
    font-weight: 700;
    font-style: italic;
    text-decoration: underline;
}

b,
strong {
    font-weight: 600;
}

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

#topbar {
    padding: 12px 0;
    border-bottom: 5px solid #e1eaea;
}

@media (min-width: 992px) {
    #topbar {
        padding: 15px 0 20px 0;
    }
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    .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: #0d8387;
        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 15px;
    }

    .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: 7px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    .horizontally {
        padding-top: clamp(10px, 2vw, 20px);
        padding-bottom: clamp(10px, 2vw, 20px);
        background: #ffffff;
    }

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

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

    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: #494949;
    font-weight: 600;
    text-align: left;
    padding: 12px 35px 12px 15px;
    border-radius: 3px;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.2;
    text-decoration: none;
    transition: border 300ms linear;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 8px 15px 10px 15px;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
    }

    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 5px;
    }
}

/* 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: #0d8387;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    padding: 18px;
    border-radius: 5px;
    background-color: #ffffff;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2);
}

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

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

    nav.horizontally [class*="toplevel"] ul::before {
        content: "";
        position: absolute;
        display: block;
    }

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #6f6f6f;
    font-weight: 400;
    text-align: center;
    padding: 8px 6px;
    background-color: #ffffff;
    position: relative;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.2;
    text-decoration: none;
}

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

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before,
nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
    content: "";
    display: block;
    position: absolute;
    background-color: #0d8387;
    height: 1px;
    top: 50%;
    width: 0;
    transition: width 200ms linear;
}

@media (min-width: 992px) {

    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before,
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
        z-index: -1;
    }
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    left: -18px;
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
    right: -18px;
}

/* 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) {
    color: #0d8387;
    background-color: #ffffff;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::after {
    width: clamp(15px, 2vw, 25px);
}

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

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

#slider {
    height: 250px;
    overflow: hidden;
    position: relative;
}

#slider>* {
    height: 100% !important;
}

@media (min-width: 768px) {
    #slider {
        height: 100% !important;
    }

    #headerpic .slider-wrapper {
        height: auto;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 50%;
    }

    #headerpic .nivo-directionNav a {
        z-index: 61;
    }

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

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

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

.slider-mask {
    display: none;
}

@media (min-width: 768px) {
    .slider-mask {
        display: block;
        top: 0;
        left: 0;
        bottom: 0;
        width: 40%;
        background: linear-gradient(to right, #0d8387 0%, transparent 100%);
    }
}

#bannerOverlay {
    background: #0d8387;
    color: #ffffff;
    padding-top: 25px;
    padding-bottom: 35px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 1200px) {
    #bannerOverlay {
        background: #0d8387 url('../img/wasserzeichen-logo-header.png') left center no-repeat;
    }
}

#bannerOverlay>.row>div {
    position: relative;
    z-index: 61;
}

@media (max-width: 767px) {
    body:not(.index) #bannerOverlay {
        display: none;
    }
}

@media (min-width: 768px) {
    #bannerOverlay {
        padding-top: clamp(50px, 8vw, 80px);
        padding-bottom: clamp(50px, 8vw, 80px);
    }

    #headerpic .nivo-controlNav {
        text-align: right;
        padding-right: clamp(20px, 5vw, 56px);
        font-size: 0;
        bottom: 10px;
    }
}

@media (min-width: 1200px) {
    #bannerOverlay {
        height: 580px;
        overflow: hidden;
    }
}

#bannerOverlay a {
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
    color: #0d8387;
    font-size: 1rem;
    text-shadow: none;
    border-radius: 3px;
    margin-top: clamp(20px, 4vw, 45px);
    padding: 7px clamp(10px, 2vw, 30px) 6px clamp(10px, 2vw, 30px);
    background: #ffffff;
    backface-visibility: hidden;
    transition: box-shadow 300ms linear;
}

#bannerOverlay a:is(:hover, :focus) {
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.4);
}

#bannerOverlay a+a {
    margin-left: 15px;
}

#bannerOverlay a::before {
    content: "";
    display: inline-block;
    margin-right: 8px;
    width: 15px;
    height: 15px;
    position: relative;
    bottom: -1px;
    background: url('../img/mehr-erfahren-icon.png') center / contain no-repeat;
}

#bannerOverlay .tabHeadline {
    margin: 0;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.75rem);
    color: #ffffff;
}

#bannerOverlay .tabHeadline::after {
    content: "";
    display: block;
    height: 1px;
    width: 50px;
    background-color: #ffffff;
    margin: 16px 0;
}

@media (min-width: 768px) {
    #bannerOverlay .tabHeadline::after {
        margin: 10px 0 24px 0;
    }
}

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

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

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

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

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

h1, .h1, .legacy_h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

h2, .h2, .legacy_h2 {
    font-size: clamp(1.9375rem, 4vw, 2.25rem);
}

h3, .h3, .legacy_h3 {
    font-size: clamp(1.875rem, 4vw, 2.0625rem);
}

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

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

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

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

.footerFirst {
    overflow: hidden;
    padding: clamp(25px, 4vw, 50px) 0;
    color: #ffffff;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #0d8387;
}

@media (min-width: 1200px) {
    .footerFirst>.row::after {
        content: '';
        position: absolute;
        pointer-events: none;
        right: -16.5vw;
        top: 0;
        bottom: 0;
        margin: auto;
        width: 259px;
        height: 258px;
        background: url('../img/wasserzeichen-logo-footer.png') center no-repeat;
    }
}

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

@media (min-width: 992px) {
    .footerFirst>.row>* {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .footerFirst>.row>*:nth-child(2) {
        padding-right: 30px;
        padding-left: 30px;
        border-left: 1px solid rgba(255, 255, 255, 0.25);
    }

    .footerFirst>.row>*:nth-child(1) {
        padding-right: 30px;
    }
}

.footerFirst .tabHeadline {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.5625rem;
}

.footerFirst a {
    color: #ffffff;
}

.footerFirst .tab a {
    text-decoration: underline;
}

.iframetab iframe,
.iframetab .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
}

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

/* ------------------------------------------ footerLast ------------------------------------------ */

.footerLast {
    color: #2c5e52;
    padding: clamp(20px, 4vw, 35px) 0 20px 0;
    background: #ffffff;
}

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

@media (max-width: 767px) {
    #innerfooter {
        padding-top: 15px;
        margin-top: 15px;
        border-top: 1px solid #0d8387
    }
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

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

#innerfooter a:hover,
#innerfooter a:focus {
    color: #248f94;
}

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

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

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

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

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

#vernetzt {
    text-align: left;
    font-size: 0.875rem;
    color: #2c5e52;
    line-height: 1.3;
    margin: 0 auto;
    text-decoration: none;
    display: inline-block;
}

@media (min-width: 992px) {
    #vernetzt {
        font-size: 1rem;
    }
}

#vernetzt b {
    color: #2c5e52;
    font-weight: 600;
}

#vernetzt span {
    color: #2c5e52;
}

#vernetzt span span {
    display: block;
}

#vernetzt img {
    margin-right: 12px;
}

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