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

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

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

a {
    color: #017a70;
}

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

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

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

@media (max-width: 991px) {
    #bannerOverlay {
        padding-bottom: 10px;
        background: #212121;
    }
}

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

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

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

.index #slider {
    max-height: clamp(300px, 62vw, 700px);
}

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

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

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

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

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

.slider-mask {
    display: block;
    background: linear-gradient((to bottom, rgba(41, 41, 41, 0.35) 74%, rgba(41, 41, 41, 0) 100%));
}

/* -------------------------------------------- bannerTab ------------------------------------------ */

@media (max-width: 991px) {
    #bannerTab {
        padding: 20px 0;
        background: #191919;
    }
}

#bannerTab .tab {
    position: relative;
    color: #ffffff;
    padding: 35px 40px 35px 40px;
    background: rgba(33, 33, 33, 0.9);
}

#bannerTab .tab::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 16px;
    left: 18px;
    right: 18px;
    bottom: 16px;
    border: 2px solid #f1a20e;
    opacity: 0.5;
}

#bannerTab .tab a {
    color: #ffffff;
}

#bannerTab .tab :is(h1, h2, h3, h4, h5, h6) {
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    font-size: clamp(1.875rem, 6vw, 2.8125rem);
}

#bannerTab .tab :is(h1, h2, h3, h4, h5, h6) :is(em, i) {
    font-style: normal;
    color: #f1a20e;
    font-size: clamp(2.1875rem, 6vw, 3.4375rem);
}

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

    #bannerTab .tab {
        padding: 40px 55px 50px 55px;
        pointer-events: all;
    }
}

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

/* burgermenu for tablet */

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

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

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #f1a20e;
        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: #191919;
        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: 6px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    .sticky-wrapper {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
    }

    nav.horizontally {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        right: 0;
        bottom: 0;
        max-width: 1930px;
        width: 100%;
        z-index: 101;
        background-color: rgba(25, 25, 25, 0.65);
        transition: all 0.3s 0s linear;
    }

    .is-sticky nav.horizontally {
        background-color: #191919;
        bottom: unset;
    }

    nav.horizontally .navbar-nav {
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
    }

    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: #1f1f1f;
    background: #f1a20e;
    font-weight: 500;
    text-align: left;
    padding: 12px 15px;
    text-transform: uppercase;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "Oswald", sans-serif;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"] {
        border-bottom: 2px solid #191919;
    }

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

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

    nav.horizontally a[class*="toplevel"] {
        padding: 19px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
    }
}

/* 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) {
    background: #ffd586;
    color: #1f1f1f;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #f6f6f6;
}

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

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

@media (max-width: 991px) {
    nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
        padding-right: 35px;
    }
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])+li:not(:nth-child(2)) {
    border-top: 2px solid rgba(0, 0, 0, 0.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: #ffd586;
    color: #1e1e1e;
}

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

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

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

/* ---------------------------------------------- 6nw aktuelles ---------------------------------------------- */

#aktuelles {
    padding-top: clamp(30px, 4vw, 40px);
    padding-bottom: clamp(30px, 6vw, 55px);
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll, fixed;
    background-size: cover;
}

#aktuelles .tabHeadline {
    color: #ffffff;
    font-size: clamp(1.75rem, 4vw, 2.1875rem);
    font-weight: 500;
    margin: 0;
    background: #212121;
    display: block;
    width: fit-content;
    position: relative;
    padding: 18px 30px;
}

#aktuelles .tabHeadline::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 8px;
    left: 10px;
    right: 10px;
    bottom: 8px;
    border: 2px solid #f1a20e;
    opacity: 0.5;
}

#aktuelles .tab_link {
    margin-top: 12px;
}

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

    #aktuelles .tab_link_entries {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #aktuelles .tab_link_entries {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    #aktuelles .tab_link_entries+div {
        width: 50% !important;
        text-align: right;
        margin-left: 50%;
        margin-top: -80px;
    }
}

#aktuelles .tab_link_entry {
    border-bottom: none !important;
    text-align: center;
    position: relative;
    background: #ffffff;
    width: 100%;
    font-size: 1rem;
    padding: 185px 20px 20px 20px;
    -webkit-box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) and (max-width: 991px) {
    #aktuelles .tab_link_entry {
        width: calc(50% - 15px);
    }

    #aktuelles .tab_link_entry:nth-child(2n+1) {
        margin-right: 15px;
    }

    #aktuelles .tab_link_entry:nth-child(2n+2) {
        margin-left: 15px;
    }
}

@media (min-width: 992px) {
    #aktuelles .tab_link_entry {
        width: calc(33.33% - 20px);
    }

    #aktuelles .tab_link_entry:nth-child(3n+1) {
        margin-right: 15px;
    }

    #aktuelles .tab_link_entry:nth-child(3n+2) {
        margin-right: 15px;
        margin-left: 15px;
    }

    #aktuelles .tab_link_entry:nth-child(3n+3) {
        margin-left: 15px;
    }
}

#aktuelles .tab_link_entry+.tab_link_entry {
    margin-top: 30px;
}

@media (min-width: 768px) {
    #aktuelles .tab_link_entry:nth-child(2) {
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    #aktuelles .tab_link_entry:nth-child(3) {
        margin-top: 0;
    }
}

#aktuelles .tab_link_entry::before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: #dbdbdb;
    background: url("../img/Platzhalterbild-Aktuelles.jpg") center / cover no-repeat;
}

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

#aktuelles .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;
    -ms-interpolation-mode: bicubic;
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

#aktuelles .tab_link_date {
    font-size: 0.9375rem;
    position: absolute;
    left: 50%;
    top: 134px;
    z-index: 1;
    display: inline-block;
    padding: 4px 10px;
    background: #f1a20e;
    color: #1f1f1f;
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    font-weight: 700;
}

#aktuelles .tab_link_title a {
    color: #017a70;
    font-weight: 600;
    font-family: "Oswald", sans-serif;
    font-size: clamp(1.25rem, 4vw, 1.375rem);
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

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

#aktuelles .tab_link_entry>div:nth-last-child(2)>a {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(4, 150, 138, 0.8), rgba(1, 122, 112, 1) 150px);
    z-index: 1;
    color: #ffffff;
    text-align: center;
    font-size: 0;
    font-weight: 400;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-line-pack: center;
    align-content: center;
    opacity: 0;
    -webkit-transition: opacity 200ms linear;
    -moz-transition: opacity 200ms linear;
    -ms-transition: opacity 200ms linear;
    -o-transition: opacity 200ms linear;
    transition: opacity 200ms linear;
}

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

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

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

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

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

.tab_link_mehr {
    font-size: 0;
}

#aktuelles .tab_link_mehr_main {
    color: transparent;
    font-size: 0;
    text-align: right;
    margin-top: clamp(30px, 4vw, 40px);
}

#aktuelles .tab_link_mehr_main a {
    background: #212121;
    font-weight: 700;
    color: #ffffff;
    padding: 8px 30px;
    position: relative;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

#aktuelles .tab_link_mehr_main a::after {
    content: " \203A";
}

#aktuelles .tab_link_mehr_main a:hover,
#aktuelles .tab_link_mehr_main a:focus {
    color: #f1a20e;
}

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

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

h1,
.h1,
.legacy_h1 {
    font-size: clamp(1.875rem, 4vw, 2.125rem);
    text-transform: uppercase;
}

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

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

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

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

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

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

#innerfooter {
    color: #ffffff;
    font-size: 0.9375rem;
    padding: 25px 0;
    background: #212121;
}

#innerfooter>.row {
    row-gap: 25px;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter ul a {
    color: #ffffff;
    text-decoration: none;
}

@media (min-width: 576px) {
    #innerfooter ul li {
        display: inline-block;
    }

    #innerfooter ul li+li::before {
        content: "•";
        margin: 0 clamp(15px, 2vw, 25px);
        color: #ffffff;
    }
}

#innerfooter ul a:is(:hover, :focus) {
    color: #f1a20e;
}

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

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

#vernetzt span span {
    display: block;
}

#vernetzt b {
    color: #f1a20e;
}