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

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

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

a {
    color: #1d7356;
}

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

b,
strong {
    font-weight: 600;
}

@media (min-width: 992px) {
    .row {
        max-width: 1600px;
        width: 100%;
    }
}


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

#logo {
    display: inline-block;
    position: absolute;
        top: 0;
        z-index: 55;
        left: 50%;
        transform: translateX(-50%);
}

#logo img {
    display: block;
}

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

    #logo {
        top: 70px;
    }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        width: 46px;
        height: 40px;
        cursor: pointer;
        background-color: #ffffff;
        padding: 6px 8px;
        margin: 6px 0 0 auto;
        position: relative;
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #1d7356;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 3px;
        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: 10px;
    }

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

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

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

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 70px;
        background: #1d7356;
        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 {
        height: 70px;
        line-height: 1;
        border-radius: 2px;
        padding: 10px 15px;
        background-color: #ffffff;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 101;
        box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.navbar {
        border-right: unset;
        background-color: #1d7356;
        border-radius: 10px;
    }

    nav.navbar li:is([class*="_over"], [class*="open"])>ul {
        display: block;
    }
}

/* toplevel */

nav.navbar a[class*="toplevel"] {
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 8px 15px 8px 15px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "Newsreader", serif;
}

@media (min-width: 992px) {
    nav.navbar a[class*="toplevel"] {
        padding: 13px clamp(15px, 2vw, 28px);
    }
    @media (min-width: 992px) {
        .navbar-default .navbar-nav>li>a.dropdown-toggle {
            padding-right: 20px;
        }
        .navbar-default .navbar-nav>li>a.dropdown-toggle::after {
            content: "+";
            position: absolute;
            display: block;
            right: 10px;
            top: 50%;
            margin-top: -12px;
            -webkit-transition: border 300ms linear;
            -moz-transition: border 300ms linear;
            -ms-transition: border 300ms linear;
            -o-transition: border 300ms linear;
            transition: border 300ms linear;
        }
    }
}

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

nav.navbar li[class*="toplevel"]+li {
    border-top: 1px solid #dbe2e1;
}

/* toplevel-over */

nav.navbar li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.navbar li[class*="toplevel"]>a:is(:hover, :focus),
nav.navbar li[class*="toplevel"].open>a,
nav.navbar li[class*="toplevel"].open>a:is(:hover, :focus),
nav.navbar li[class*="toplevel"][class*="_over"]>a,
nav.navbar li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    background: #fffbdb;
    color: #191919;
}

/* secondlevel + thirdlevel dropdown-box */

nav.navbar [class*="toplevel"]>ul {
    border-top: 1px solid #fffbdb;
    padding: 12px 0 12px 14px;
    position: relative;
    background-color: #fffbdb;
}

@media (min-width: 1200px) {
    nav.navbar [class*="toplevel"]>ul {
        padding-left: 30px;
    }
}

nav.navbar [class*="toplevel"]>ul::after {
    content: "";
    display: block;
    position: absolute;
    top: 28px;
    left: 20px;
    bottom: 28px;
    width: 1px;
    background: #191919;
}

@media (min-width: 1200px) {
    nav.navbar [class*="toplevel"]>ul::after {
        left: 35px;
    }
}

/* secondlevel + thirdlevel */

nav.navbar a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #191919;
    font-weight: normal;
    text-align: left;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

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

nav.navbar a[class*="secondlevel"] {
    padding: 9px 15px 9px 30px;
}

nav.navbar a[class*="secondlevel"]::before {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    left: 0;
    top: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #1d7356;
    transition: background 300ms linear;
}

nav.navbar a[class*="thirdlevel"] {
    padding: 7px 15px 7px 45px;
}

/* secondlevel + thirdlevel over */

nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus),
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus),
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus) {
    color: #191919;
}

nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::before,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::before,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::before,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::before,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::before,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::before {
    background: #1d7356;
}

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

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

#headerpic {
    position: relative;
    border-top: 30px solid #1d7356;
}

@media (max-width: 991px) {
    #headerpic {
        position: relative;
        border-top: 30px solid #1d7356;
        margin-top: 70px;
    }
}

#headerpic .row {
    width: 100%;
    max-width: 100%;
}

#headerpic .row > div {
    padding: 0;
}

@media (min-width: 768px) {
    #headerpic::after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 251px;
        height: 205px;
        background: url('../img/deko-welle-oben.png') no-repeat;
        z-index: 50;
        pointer-events: none;
    }
}


#headerpic::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 194px;
    height: 168px;
    background: url('../img/deko-welle-unten.png') no-repeat;
    z-index: 50;
    pointer-events: none;
}

#headerpic .banner {
    line-height: 0;
}
/* ------------------------------------------- content ------------------------------------------ */

main {
    text-align: left;
    padding-top: clamp(30px, 4vw, 60px);
    padding-bottom: clamp(30px, 4vw, 60px);
}


#options {
    background-color: #1d7356;
}

#counter {
    padding: 21px 20px;
    color: #191919;
    background-color: #fffbdb;
    display: inline-block;
    font-size: 1rem;
}

#counter-l {
    display: inline-block;
    font-family: "Newsreader", serif;
}

#counter-r {
    display: inline-block;
}
/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

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

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

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

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

/* ----------------------------------------------- @12ev events -------------------------------------------- */

#ev12 {
    color: #191919;
    font-size: 1rem;
    position: relative;
    background: #ffffff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 30px;
    max-width: 370px;
}

@media (min-width: 992px) {
    #ev12 {
        position: relative;
        margin-top: -127px;
        z-index: 55;
    }
}

#ev12 .tabHeadline {
    margin-bottom: 0;
    text-align: center;
    color: #191919;
    font-size: 1.5625rem;
    font-weight: 600;
    padding: 19px 25px;
    background: #fffbdb;
}

#ev12 .tabContent .box,
#ev12 #clr-events-hide {
    padding: 20px;
}

#ev12 #clr-events-hide>P:first-of-type {
    display: none;
}

#ev12 .tab_link_title a {
    font-weight: 600;
    color: #1d7356;
    font-family: "Newsreader", serif;
}

#ev12 .tab_link_mandat a {
    color: #191919;
    font-style: italic;
}

#ev12 .tab_link_mehr {
    font-size: 0;
    text-align: right !important;
    padding: 0 !important;
}

#ev12 .tab_link_mehr a {
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 400;
    color: #fff;
    padding: 5px 15px;
    background: #1d7356;
    border-top-left-radius: 10px;
}

#ev12 .tab_link_mehr a:hover,
#ev12 .tab_link_mehr a:focus {
    color: #191919;
    background: #fffbdb;
}

/* ----------------------------------------------- @12nw news -------------------------------------------- */

#nw12 {
    color: #191919;
    font-size: 1rem;
    position: relative;
    padding: 0;
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(43, 43, 43, 0.15);
    margin: 0 auto;
    margin-bottom: 30px;
    max-width: 370px;
}

#nw12 .tabHeadline {
    margin-bottom: 0;
    text-align: center;
    color: #191919;
    font-size: 1.5625rem;
    font-weight: 600;
    padding: 19px 25px;
    background: #fffbdb;
}

#nw12 .tabContent {
    padding: 30px 20px 45px 20px;
}

#nw12 .tab_link_title a {
    font-weight: 600;
    color: #1d7356;
    font-family: "Newsreader", serif;
}

#nw12 .tab_link_mandat a {
    color: #191919;
    font-style: italic;
}

#nw12 .tab_date,
#nw12 .tab_link_date {
    font-style: italic;
}

#nw12 .tab_link_mehr {
    font-size: 0;
    position: relative;
}

#nw12 .tab_link_mehr a {
    text-decoration: none;
    display: block;
    position: absolute;
    right: -20px;
    bottom: -45px;
    font-size: 0.875rem;
    font-weight: 400;
    color: #fff;
    padding: 5px 15px;
    border-top-left-radius: 10px;
    background: #1d7356;
}

#nw12 .tab_link_mehr a:hover,
#nw12 .tab_link_mehr a:focus {
    color: #191919;
    background: #fffbdb;
}

.tab {
    color: #191919;
    font-size: 1rem;
    position: relative;
    background: #ffffff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    margin-bottom: 30px;
    max-width: 370px;
}

.tab .tabHeadline {
    margin-bottom: 0;
    text-align: center;
    color: #191919;
    font-size: 1.5625rem;
    font-weight: 600;
    padding: 19px 25px;
    background: #fffbdb;
}

.tab .tabContent {
    padding: 30px 20px;
}
/* #region ----------------------------------- footer ------------------------------------------- */

footer {
    background-color: #1d7356;
    padding: 20px 0;
    color: #ffffff;
}

@media (max-width: 767px) {
    footer>.row>.col-xs-12+* {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 15px;
        padding-top: 15px;
    }
}

@media (max-width: 991px) {
    footer>.row>.col-xs-12:last-child {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 15px;
        padding-top: 15px;
    }
}

#innerfooter ul {
    padding: 0;
}

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

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

@media (min-width: 576px) {
    #innerfooter li+li::before {
        content: "•";
        margin: 0 clamp(15px, 2vw, 25px);
        color: #ffffff;
    }

    #innerfooter li {
        display: inline-block;
    }
}

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

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

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

#vernetzt span span {
    display: block;
}