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

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

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

a {
    color: #a8382d;
}

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

b,
strong {
    font-weight: 600;
}

#overflow {
    overflow: hidden;
    position: relative;
}

/* ------------------------------------- contrast+styler+suche ---------------------------------- */

#topbar {
    background: url('../img/klimastreifen-blau.jpg') top -4px left repeat-x;
}

.search {
    background-color: #6baed6;
    padding: 9px 25px 6px;
    position: relative;
    display: block;
}

.search:is(:hover, :focus) {
    background: #deebf7;
}

@media (min-width: 992px) {
    #contrast_styler_wrapper {
        margin-top: -4px;
        line-height: 1;
        font-size: 20px;
    }

    #contrast_styler_wrapper button {
        border: none;
        background: transparent;
        padding: 0;
    }

    #style {
        background-color: #9ecae1;
        color: #191919;
        padding: 8px 15px;
    }

    #style h2 {
        font-size: 0.875rem;
        font-weight: 600;
        color: inherit;
        margin: 0 5px 0 0;
        width: unset;
    }

    #style button {
        padding: 0 8px;
        font-weight: 600;
        box-shadow: -3px 1px 0 -2px rgba(19, 19, 19, 0.7);
    }

    #style button:first-of-type {
        box-shadow: unset;
    }

    #style button:is(:hover, :focus) {
        text-decoration: underline;
    }

    .search::after {
        content: "";
        width: 400px;
        height: 100%;
        right: -400px;
        top: 0;
        background: #6baed6;
        display: inline-block;
        position: absolute;
        pointer-events: none;
    }
}

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

#logo {
    display: inline-block;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #444444;
}

a#logo {
    text-decoration: none;
}

#logo :is(b, strong) {
    display: inline-block;
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    color: #2e7ba8;
}


.is-sticky #logo {
    padding-top: 10px;
}
/* #region ---------------------------------- navigation ---------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        background: url('../img/klimastreifen-rot.jpg') center top repeat-x;
        padding: 12px 0;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.15);
    }

    #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: #2e7ba8;
        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: 11px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 0 0 21px 0;
        transition: all, 300ms;
        margin-top: -10px;
        background: url('../img/klimastreifen-rot.jpg') center bottom repeat-x;
    }

    .is-sticky nav.horizontally {
        background-color: rgba(255, 255, 255, 0.95);
    }

    nav.horizontally .navbar-nav {
        margin-top: 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        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;
        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: #444444;
    font-weight: 600;
    text-align: left;
    padding: 15px 15px;
    position: relative;
    font-size: 1.0625rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

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

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


nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 0;
    height: 4px;
    display: block;
    position: absolute;
    left: 0;
    transform: translateX(-50%);
    bottom: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%,rgba(107,174,214,1) 35%,rgba(107,174,214,1) 65%,rgba(255,255,255,1) 100%);
    opacity: 0;
    transition: opacity 300ms linear, width 300ms linear;
}

@media (min-width: 992px) {
    .navbar-default .navbar-nav>li>a::before {
        left: 50%;
    }
}

/* 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: #2e7ba8;
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

nav.horizontally [class*="toplevel"]>ul {
    padding: 10px 0;
}

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

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

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 10px;
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
    }

    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"]>ul {
        margin-top: -10px;
        border-radius: 3px;
        margin-left: 10px;
    }

    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: #444444;
    font-weight: 400;
    text-align: left;
    padding: 9px 25px 9px 35px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    position: relative;
}

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

nav.horizontally a:is([class*="secondlevel"])::before {
    content: "";
    display: block;
    position: absolute;
    left: 20px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #deebf7;
    transition: background 300ms linear;
}

nav.horizontally a:is([class*="thirdlevel"])::before {
    content: "";
    display: block;
    position: absolute;
    left: 20px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fcbba1;
    transition: background 300ms linear;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])+li:not(:nth-child(2)) {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* secondlevel + thirdlevel over */

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

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

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

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

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

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

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

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(400px, 45vw, 730px);
    }

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

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

    .index #headerpic .nivo-controlNav {
        top: 10px;
        bottom: unset;
    }
}

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

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

.slider-mask {
    display: none;
}

/* -------------------------------------------- overlay ----------------------------------------- */

#overlay {
    background: rgba(222, 235, 247, 0.9);
    color: #191919;
    padding: 22px 0 30px 0;
    font-size: 1rem;
}

@media (min-width: 992px) {
    #overlay {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 12;
        padding-bottom: 22px;
    }
}

#overlay>.row {
    row-gap: 22px;
}

#overlay .tab {
    padding-left: 100px;
    line-height: 1.7;
    background: url(../img/icon-telefon.png) center left 15px no-repeat;
    min-height: 58px;
}

#overlay>.row>.tab:nth-of-type(2) {
    background-image: url(../img/icon-mail.png);
}

#overlay>.row>.tab:nth-of-type(3) {
    background-image: url(../img/icon-Krankmelden.png);
}

#overlay .tabHeadline {
    color: #191919;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 0 3px 0;
}

#overlay a {
    color: #191919;
    font-style: italic;
    text-decoration: underline;
}

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

#content {
    text-align: left;
    padding-bottom: 30px;
    padding-top: 40px;
}

#information {
    padding-bottom: clamp(30px, 4vw, 60px);
}

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

#information .headline {
    margin-bottom: 25px;
}

#information::before {
    content: "";
    margin: clamp(30px, 4vw, 60px) auto;
    height: 10px;
    background: url('../img/klimastreifen-trenner.jpg');
    display: block;
    max-width: 1170px;
    width: 100%;
}

/* ----------------------------------------- events + news -------------------------------------- */

:is(#events, #news) .tab_link {
    font-size: 1rem;
}

:is(#events, #news) .tab_link a {
    color: inherit;
}

:is(#events, #news) .tab_link_title a {
    font-weight: 600;
}

:is(#events, #news) .tab_spacer,
:is(#events, #news) .tab_link .tab_link_mehr {
    display: none;
}

#events .tab_link_mehr a {
    display: inline-block;
    font-size: 1rem;
    color: #191919;
    background: url('../img/button-deko-rot.png') right center repeat-y, #fcbba1;
    padding: 9px 32px 10px 25px;
    text-decoration: none;
    transition: all, 200ms;
    font-weight: 600;
    margin-top: 15px;
}

#news .tab_link_mehr a {
    display: inline-block;
    font-size: 1rem;
    color: #191919;
    background: url('../img/button-deko-blau.png') right center repeat-y,#deebf7;
    padding: 9px 32px 10px 25px;
    text-decoration: none;
    transition: all, 200ms;
    font-weight: 600;
    margin-top: 15px;
}

#events .tab_link_mehr a:is(:hover, :focus) {
    outline: 2px solid #a8382d;
}

#news .tab_link_mehr a:is(:hover, :focus) {
    outline: 2px solid #6baed6;
}

:is(#events, #news) .tab_link_mehr a::after {
    content: "\00BB";
    margin-left: 3px;
}

/* ------------------------------------------- events ------------------------------------------- */

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

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

#events .headline {
    color: #a8382d;
}

#bg-events {
    background-size: cover;
    background-position: center;
    color: #191919;
}

#events .tab_link_entry:not(:last-of-type) {
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.50);
}

@media (min-width: 576px) {
    #events .tab_link_entry:nth-last-of-type(2) {
        padding-bottom: 0;
        border-bottom: 0;
    }
}




#eventsKalender #clr-events-hide,
#eventsKalender .tab_link_mehr {
    display: none;
    height: 0;
}

#eventsKalender .eventclndr-tab {
    margin-bottom: 0;
    margin-top: 0px;
}

@media (max-width: 767px) {
    #eventsKalender .eventclndr-tab {
        margin-top: 0;
        margin-bottom: 15px;
    }
}

#eventsList {
    position: relative;
    color: #444444;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

#eventsList .tab_spacer {
    height: 0;
    display: none;
}

#eventsList .tab_link_entries {
    display: grid;
    gap: clamp(20px, 2vw, 30px);
}

#eventsList .tab_link_title a {
    color: #444444;
    font-weight: 700;
}

#eventsList .tab_link_mandat a {
    color: #444444;
}



/* ------------------------------------------- 3nw news------------------------------------------ */

#news .tab_link_entry {
    position: relative;
    border-bottom: none !important;
    padding: 20px;
    background: #deebf7;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

#news .tab_link_entry+.tab_link_entry {
    margin-top: 25px;
}

#news .tab_link_entry .tab_preview_picture {
    margin-bottom: 20px;
    display: block;
}

@media (min-width: 576px) {
    #news .tab_link_entry {
        margin-left: 185px;
        min-height: 120px;
    }

    #news .tab_link_entry .tab_link_title a::before,
    #news .tab_link_entry .tab_preview_picture {
        position: absolute;
        display: block;
        top: 0;
        left: -185px;
        bottom: 0;
        width: 170px;
        overflow: hidden;
        margin: 0;
    }

    #news .tab_link_entry .tab_link_title a::before {
        content: "";
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    #news .tab_preview_picture img {
        margin: 0 !important;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #2e7ba8;
    font-weight: 700;
    line-height: 1.2;
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 1px;
}

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

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.5625rem, 3vw, 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 {
    background: #deebf7;
    color: #191919;
    font-size: 1rem;
}

.footerTab :is(i, em) {
    display: inline-block;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #444444;
    font-style: normal;
}

.footerTab :is(b, strong) {
    display: inline-block;
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    color: #191919;
}

footer hr {
    border-color: #ffffff;
    height: 1px;
    margin: 18px 0;
    opacity: 0.5;
}

footer .template-page a {
    color: #191919;
    text-decoration: underline;
}

footer>.row>div:nth-of-type(1) {
    padding-top: clamp(30px, 4vw, 40px);
    padding-bottom: clamp(30px, 4vw, 40px);
}

@media (max-width: 767px) {
    footer>.row>div:nth-of-type(2) {
        background: #9ecae1;
    }
}

@media (min-width: 768px) {
    footer>.row>div:nth-of-type(2)::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: -370px;
        pointer-events: none;
        height: 100%;
        display: inline-block;
        background: #9ecae1 url('../img/klimastreifen-blau.jpg') right top no-repeat;
    }
}

@media (min-width: 992px) {
    footer>.row>div:nth-of-type(2)::before {
        left: -100px;
    }
}

footer .tabWrapper {
    padding-top: clamp(30px, 4vw, 60px);
    padding-bottom: 20px;
}

@media (max-width: 767px) {
    footer .tabWrapper+.tabWrapper {
        padding-top: 0;
    }
}

.iframeTab :is(iframe, .iframe-wrapper-manual-enabling) {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
    max-height: 160px;
}

#innerfooter nav li > a {
  display: inline-block;
}

#innerfooter ul {
    padding:30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #191919;
    text-decoration: none;
    position: relative;
}

#innerfooter a::after {
    content: "";
    width: 0;
    height: 4px;
    height: 4px;
    display: block;
    position: absolute;
    right: 0;
    bottom: -9px;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(47,124,168,1) 35%,rgba(47,124,168,1) 65%,rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 300ms linear, width 300ms linear;
}

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

#innerfooter a:is(:hover, :focus)::after {
    opacity: 1;
    width: 100%;
}

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

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

#vernetzt {
    font-size: 0.9375rem;
    color: #191919;
    line-height: 1.3;
    font-weight: 400;
    display: flex;
    text-decoration: none;
    text-align: right;
}

#vernetzt span {
    display: block;
}

#vernetzt img {
    margin-left: 10px;
}