@import url("https://fonts.verwaltungsportal.de/import/?family=Roboto:300,300i,400,400i,500,500i,600,600i,700,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Oswald: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: #007c8a #ffffff;
    scrollbar-width: thin;
}

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

a {
    color: #007c8a;
}

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

#content a,
b,
strong {
    font-weight: 600;
}

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

#innerfooter,
.menufooter,
:is(#innerfooter, nav.horizontally .menufooter) :is(a, a[class*="toplevel"]),
#innerfooter button {
    font-size: 0.875rem;
    color: #ffffff;
    text-transform: none;
}

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

:is(#innerfooter, .menufooter) a {
    display: inline-block;
    text-decoration: none;
    font-weight: 400;
}

.menufooter,
#innerfooter {
    padding-top: 10px;
    padding-bottom: 9px;
    background: #007c8a;
}

@media (min-width: 992px) {
    #innerfooter>.row>* {
        column-gap: 50px;
    }

    .menufooter li {
        display: inline-block;
    }

    .menufooter li+li::before {
        content: "•";
        margin: 0 clamp(15px, 5vw, 50px);
        color: #ffffff;
    }
}

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

#logo {
    display: flex;
    align-items: center;
    align-content: center;
    gap: 8px;
    text-decoration: none;
}

#logo .logoImg img {
    display: block;
}

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

#logo .logoTxt {
    color: #262626;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.2;
}

#logo .logoTxt :is(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    font-size: 1.4375rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

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

nav.horizontally {
    padding: 5px 0;
    background: #ffffff;
    transition: all 0.5s 0s ease;
}

.is-sticky nav.horizontally {
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    #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: #262626;
        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: 3px;
    }

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

/* menu desktop */

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

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

    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: #262626;
    font-weight: 400;
    text-align: left;
    padding: 10px 35px;
    text-transform: uppercase;
    font-family: "Oswald", sans-serif;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

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

    nav.horizontally a[class*="toplevel"] {
        padding: 15px 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: #262626;
    background-color: #fade18;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    padding: 10px 0;
    background: #ffffff;
    box-shadow: 0 0px 10px 0 rgba(0, 0, 0, 0.1);
}

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

    nav.horizontally [class*="toplevel"]>ul::before {
        content: '';
        position: absolute;
        display: block;
        top: -15px;
        height: 15px;
        left: 0;
        right: 0;
    }

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

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

/* secondlevel + thirdlevel */

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

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

/* 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: #fade18;
    color: #262626;
}

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

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

#slider {
    max-height: clamp(300px, 48vw, 470px);
    position: relative;
}

@media (min-width: 768px) {
    body.index #headerpic .theme-default .nivo-controlNav {
        bottom: 40px;
    }
}

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

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

@media (min-width: 768px) {
    .index .theme-nivo .nivo-controlNav {
        bottom: 40px;
    }
}

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

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

.slider-mask {
    display: none;
}

@media (min-width: 768px) {
    .slider-mask {
        display: block;
        background: url('../img/bogen-navigation.png') center top -1px / 100% auto no-repeat
    }
}

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



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

@media (max-width: 767px) {
    #contentBox {
        padding-top: 30px;
    }
}

@media (min-width: 768px) {
    #contentBox {
        position: relative;
        z-index: 53;
        margin-top: -40px;
    }
}

#content {
    text-align: left;
    padding: 35px 50px;
    position: relative;
    background: url('../img/wasserzeichen-tabs.png') bottom right no-repeat, #ffffff;
    border: 5px solid rgba(0, 146, 161, 0.43);
    box-shadow: 0 0px 10px 0 rgba(0, 0, 0, 0.1);
}

/* #region ------------------------------------- teaser -------------------------------------------- */

#teaser {
    padding-top: 30px;
}

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

#teaser .tab {
    font-size: 1rem;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    padding: 25px 45px;
    position: relative;
    background: url('../img/wasserzeichen-tabs.png') bottom right no-repeat, #ffffff;
    border: 5px solid rgba(0, 146, 161, 0.43);
    box-shadow: 0 0px 10px 0 rgba(0, 0, 0, 0.1);
}

#teaser .tabHeadline {
    text-transform: uppercase;
    font-size: clamp(1.25rem, 2vw, 1.375rem);
}

#teaser .tab a {
    text-decoration: underline;
}

#teaser .tab a:is(:hover, :focus) {
    color: #262626;
}

#teaser .tab img {
    display: block;
}

/* #endregion ------------------------------------- teaser -------------------------------------------- */

/* ----------------------------------------------- @6nw news -------------------------------------------- */

#nw6 {
    font-size: 1rem;
    padding-bottom: clamp(30px, 6vw, 95px);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: auto 443px;
}

#nw6::before {
    content: "";
    display: block;
    margin: 0 auto clamp(30px, 5vw, 70px) auto;
    max-width: 1170px;
    width: 100%;
    height: 2px;
    opacity: 0.2;
    background: #0092a1;
}

#nw6 .tabHeadline {
    font-size: clamp(1.875rem, 2vw, 2.25rem);
    margin-bottom: 5px;
}

#nw6>.row {
    row-gap: clamp(30px, 3vw, 40px);
}

#nw6 .tab_link_entries {
    display: grid;
    gap: 30px;
}

@media (min-width: 576px) {
    #nw6 .tab_link_entries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    #nw6 .tab_link {
        margin-top: 18px;
    }

    #nw6 .tab_link_entries {
        grid-template-columns: repeat(3, 1fr);
    }
}

#nw6 .tab_link_entry {
    font-size: 1rem;
    text-align: center;
    position: relative;
    width: 100%;
    padding: 165px 20px 20px 20px;
    background: #ffffff;
    border: 5px solid rgba(0, 146, 161, 0.43);
    box-shadow: 0 0px 10px 0 rgba(0, 0, 0, 0.1);
}

#nw6 .tab_link_entry::before {
    content: "";
    position: absolute;
    display: block;
    left: -5px;
    right: -5px;
    top: -5px;
    height: 150px;
    background: center / cover no-repeat, #ffffff;
}

#nw6 .tab_link_entry .tab_preview_picture {
    position: absolute;
    display: block;
    left: -5px;
    right: -5px;
    top: -5px;
    height: 150px;
    overflow: hidden;
    background: #ffffff;
}

#nw6 .tab_preview_picture img {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
}

#nw6 .tab_date {
    position: absolute;
    display: inline-block;
    z-index: 1;
    left: 50%;
    top: 130px;
    font-weight: 400;
    font-size: 1rem;
    color: #262626;
    padding: 4px 10px;
    background: #d0ebed;
    transform: translateX(-50%);
}

#nw6 .tab_link_title a {
    color: #262626;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
}

#nw6 .tab_link_entry>div:nth-last-child(2) {
    font-size: 0;
    line-height: 0;
}

#nw6 .tab_link_entry>div:nth-last-child(2)>a {
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    z-index: 1;
    text-align: center;
    font-size: 0;
    color: #ffffff;
    font-weight: 400;
    display: flex !important;
    justify-content: center;
    align-items: center;
    align-content: center;
    background: linear-gradient(to bottom, rgba(36, 188, 205, 0.8), #007c8a 150px);
    opacity: 0;
    transition: opacity 200ms linear;
}

#nw6 .tab_link_entry:hover div:nth-last-child(2)>a {
    opacity: 1;
}

#nw6 .tab_link_entry div:nth-last-child(2)>a::before {
    content: "";
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    margin-left: -40px;
    margin-top: -60px;
    width: 80px;
    height: 80px;
    background: url("../img/mehr-erfahren.png") center no-repeat;
}

#nw6 div:nth-last-child(2)>a::after {
    content: "mehr erfahren";
    margin-top: 100px;
    font-size: 1.25rem;
}

#nw6 a:hover,
#nw6 a:focus {
    text-decoration: none;
}

/* ----------------------------------------- @6nw tab_link_mehr_main ---------------------------------------- */

#nw6 .tab_link_mehr_main:not(.has-image):not([href*="mailto"]):not([href*="tel"]) {
    color: transparent;
    font-size: 0;
    text-align: right;
}

#nw6 .tab_link_mehr_main a:not(.has-image):not([href*="mailto"]):not([href*="tel"]) {
    display: inline-block;
    line-height: 1.2;
    color: #262626 !important;
    font-size: 1rem;
    font-weight: 400;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    background: #fade18;
    padding: 12px 58px 11px 20px;
    position: relative;
    text-decoration: none !important;
    text-shadow: none !important;
}

@media (min-width: 992px) {
    #nw6 .tab_link_mehr_main a:not(.has-image):not([href*="mailto"]):not([href*="tel"]) {
        padding: 15px 60px 15px 30px;
    }
}

#nw6 .tab_link_mehr_main a:not(.has-image):not([href*="mailto"]):not([href*="tel"]):is(:hover, :focus) {
    background: #bde3e7;
}

#nw6 .tab_link_mehr_main a:not(.has-image):not([href*="mailto"]):not([href*="tel"])::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    top: 1px;
    right: 16px;
    width: 26px;
    transition: 300ms background linear;
    background: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='m28.15 35.25-1.65-1.6 8.6-8.6H8.6V22.8h26.5l-8.65-8.65 1.65-1.55 11.35 11.3Z' fill='%23262626'/%3E%3C/svg%3E") center left / 26px auto repeat-x;
}

#nw6 .tab_link_mehr_main a:not(.has-image):not([href*="mailto"]):not([href*="tel"]):is(:hover, :focus)::after {
    background-position-x: left 26px;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #007c8a;
    font-weight: 500;
    line-height: 1.2;
    font-family: "Oswald", sans-serif;
}

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

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

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

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

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

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

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

footer {
    padding: 25px 0;
    background-color: #007c8a;
}

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

#vernetzt {
    gap: 18px;
    text-align: left;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

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

#scroll-top {
    text-transform: uppercase;
    color: #ffffff;
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    margin: 30px auto 0 auto;
    width: 140px;
    font-size: 1rem;
    opacity: 1 !important;
    text-decoration: none;
}

@media (min-width: 576px) {
    #scroll-top {
        margin: 0;
        width: auto;
    }
}

#scroll-top span {
    font-size: 0;
    width: 35px;
    height: 35px;
    display: inline-block;
    position: relative;
    margin: 0 auto;
    margin-left: 15px;
    border: 2px solid #ffffff;
    transition: background-color 300ms linear, color 300ms linear;
}

#scroll-top span::after {
    content: "";
    position: absolute;
    border-radius: 1px;
    left: 9px;
    top: 12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #ffffff transparent;
}

#scroll-top:is(:hover, :focus) span {
    background-color: rgba(0, 0, 0, 0.2);
}