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

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

a {
    color: #25611f;
}

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

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

#overflow {
    overflow: hidden;
}

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

#topbar {
    padding: 6px 0 20px 0;
}

#topbar > .row {
    position: relative;
}

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

.standort, .mail {
    position: relative;
    font-size: 0.875rem;
    color: #444444;
    padding-left: 60px;
    margin-bottom: 15px;
}

@media (min-width: 992px) {
    .standort, .mail {
        margin-left: 30px;
        font-size: 1rem;
        margin-bottom: 0;
    }
}

.standort::before, .mail::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 54px;
    height: 54px;
    background: #e5e5e5; 
}

.standort::before {
    background: url('../img/icon-position.png') center no-repeat; 
}

.mail::before {
    background: url('../img/icon-contact.png') center no-repeat; 
}

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

/* 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: #25611f;
        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: #f9cd7b;
        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: 4px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background-color: #f9cd7b;
        padding: 14px 0;
        position: relative;
    }

    nav.horizontally::before {
        content: '';
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 55px;
    background: rgba(0, 0, 0, 0);
    border-top: 1px dashed #baaa62;
    border-bottom: 1px dashed #baaa62;
    }

    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;
        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: #25611f;
    font-weight: 400;
    text-align: left;
    padding: 10px 15px 15px 15px;
    position: relative;
    font-size: 1.375rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    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"] {
        text-align: center;
        padding: 12px 0;
    }
}

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 20px;
    height: 9px;
    display: block;
    position: absolute;
    left: 30px;
    bottom: -14px;
    border-top-left-radius: 90px;
    border-top-right-radius: 90px;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 300ms linear;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::before {
        left: calc(50% - 15px);
    }
}

/* 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: #2e3c48;
    background-color: #fff;
}

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

/* secondlevel + thirdlevel dropdown-box */

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

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

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

    nav.horizontally [class*="toplevel"]>ul {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        left: 50%;
        transform: translate(-50%, 0);
    }

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

    nav.horizontally [class*="secondlevel"]>ul::before {
        content: "";
        position: absolute;
        display: block;
        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: center;
    padding: 10px 38px;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 2px;
    width: 47px;
    height: 28px;
    background: url('../img/strichmaennchen-am-lesen-hover.png') no-repeat; 
    opacity: 0;
    transition: opacity 300ms;
}

@media (min-width: 992px) {
    .navbar-default .navbar-nav > li > .dropdown-menu::before {
        content: "";
        position: absolute;
        display: block;
        height: 20px;
        left: 0;
        right: 0;
        top: -18px;
    }
}

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

/* 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: #51814c;
    color: #fff;
}

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

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

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

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

@media (min-width: 992px) {
    #slider {
        max-height: 460px;
    }

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

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

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

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

.slider-mask {
    display: none;
}

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

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

.index #content > .row>div:first-child {
    padding-top: 20px;
}

#content > .row {
    position: relative;
}



#tickerWrapper {
    margin-top: 20px;
    color: #25611f;
    font-size: 1.125rem;
}

#tickerWrapper > .row {
    border-top: 1px solid #dbe2e1;
    border-bottom: 1px solid #dbe2e1;
    padding: 20px 0 0 0;
}
/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

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

h1,
.h1,
.legacy_h1 {
    font-size: 1.875rem;
}

@media (min-width: 992px) {
    h1,
.h1,
.legacy_h1 {
    font-size: 2.5rem;
}
}

h2,
.h2,
.legacy_h2 {
    font-size: 1.75rem;
}

@media (min-width: 992px) {
    h2,
.h2,
.legacy_h2 {
    font-size: 1.875rem;
}
}

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


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

.events {
    background-color: #fff;
    padding: 0px 0px 20px 0px;
    color: #444444;
    font-size: 1rem;
    position: relative;
    box-shadow: 0 0 5px rgba(0,0,0,0.15);
    max-width: 370px;
    margin: 0 auto;
}

.events .tabHeadline {
    background: #f9cd7b;
    color: #25611f;
    font-size: 1.5625rem;
    font-weight: 700;
    padding: 18px 25px;
    text-align: center;
    margin-bottom: 0;
}

.events .tabContent {
    padding: 25px;
}

.eventclndr-tab {
    margin-left: -25px;
    margin-right: -25px;
    margin-top: -25px;
  }

.events .tab_link_title a {
    font-weight: 600;
    color: #25611f;
}

.events .tab_link_mandat a {
    color: #444444;
    font-style: italic;
}

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

.events::after {
    width: 0px;
    height: 0px;
    -webkit-transform: rotate(360deg);
    border-style: solid;
    border-width: 0 0 50px 50px;
    border-color: transparent transparent #f9cd7b transparent;
    position: absolute;
    bottom: 0;
    right: 0px;
    z-index: 2;
    display: block;
    content: "";
}

.events .tab_link_mehr a::before {
    content: "+";
    font-size: 1.25rem;
    font-weight: 600;
    color: #25611f;
    z-index: 3;
    display: block;
    position: absolute;
    right: -17px;
    bottom: -45px;
}

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

#footer {
    background-color: #235c1d;
    padding: clamp(30px, 4vw, 55px) 0;
    color: #ffffff;
    margin-top: 50px;
    position: relative;
}

#footer::before {
    content: '';
display: block;
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 0;
right: 0;
height: 84%;
background: rgba(0, 0, 0, 0);
border-top: 1px dashed rgba(255, 255, 255, 0.3);
border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

#footer > .row {
    position: relative;
}

#footer > .row::after {
    content: '';
    display: block;
    position: absolute;
    top: -53px;
    left: 50%;
    width: 272px;
    height: 168px;
    background: url('../img/strichmaennchen-am-lesen.png') no-repeat; 
}

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

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

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

#footer a:not(#vernetzt) {
    color: #fff;
    text-decoration: underline;
}

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

#footer .footerSlogan {
    font-size: clamp(1.375rem, 2vw, 1.75rem);
    font-weight: 400;
    position: relative;
    padding-left: 90px;
}

.footerSlogan::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    margin-top: -40px;
    left: 0px;
    width: 77px;
    height: 81px;
    background: url('../img/herz.png') no-repeat;
}

#innerfooter {
    background-color: #235c1d;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 1rem;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: block;
}

#innerfooter a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
}

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

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

    #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: 400;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}