@import url("https://fonts.verwaltungsportal.de/css/?family=Lato:400,400i,700,700i,900,900i");

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

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

a {
  color: #607a1f;
}

#content a {
  font-style: italic;
  position: relative;
  text-decoration: none;
}

#content a::after {
  content: "";
  display: block;
  position: absolute;
  left: -10px;
  right: 0;
  bottom: -4px;
  background: #b7d865;
  opacity: 0;
  transition: opacity 300ms linear;
  height: 3px;
  width: 30px;
}

#content a:is(:hover, :focus)::after {
  opacity: 1;
}

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

#content a::after {
  content: "";
  display: block;
  position: absolute;
  left: -5px;
  right: 0;
  bottom: -2px;
  background: #b7d865;
  opacity: 0;
  transition: opacity 300ms linear;
  height: 3px;
  width: 30px;
}

#content a:is(:hover, :focus)::after {
  opacity: 1;
}

b,
strong {
  font-weight: 900;
}

.overflow {
  overflow: hidden;
}

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

#logo {
  display: inline-block;
  margin: 18px 0;
}

#logo img {
  display: block;
}

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

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

nav.horizontally {
  border-bottom: 5px solid #b7d865;
  background-color: #fff;
}

/* 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 !important;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
  }

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

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally .navbar-nav {
    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;
    visibility: hidden;
    transition: opacity 300ms linear;
    margin-top: 20px;
  }

  nav.horizontally .navbar-nav [class*="secondlevel"]>ul {
    left: 100%;
    top: 0;
    margin-left: 20px;
  }

  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: #666666;
  font-weight: 600;
  text-align: left;
  padding: 12px 15px 16px 15px;
  position: relative;
  font-size: 1.25rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Lato", sans-serif;
}

nav.horizontally a[class*="toplevel"]::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  bottom: 0px;
  transition: all 300ms ease;
  background: #b7d865;
  left: 0;
  margin: auto;
  right: 0;
}

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

@media (min-width: 992px) {
  nav.horizontally a[class*="toplevel"] {
    padding: 30px 10px 33px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
  }

  .navbar-default .navbar-nav>li>a::after {
    bottom: -5px;
  }
}

/* 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: #333333;
  background-color: transparent;
}

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

/* secondlevel + thirdlevel dropdown-box */

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

nav.horizontally [class*="secondlevel"]>ul {
  background-color: #ffffff;
}

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

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

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

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

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

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

/* secondlevel + thirdlevel */

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

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

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  background: #b7d865;
  z-index: -1;
  opacity: 0;
  transition: opacity 300ms linear;
  max-width: 60px;
  height: 6px;
  width: 100%;
}

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

/* secondlevel + thirdlevel over */

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, 62vw, 450px);
  position: relative;
}

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

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

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

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

.slider-mask {
  display: none;
}

/* ------------------------------------------ tab buttons --------------------------------------- */

.buttonStyle a:not(:is([href*="mailto"], [href*="tel"])),
#tabs .tab_link_mehr a {
  color: #333333;
  background: #b7d865;
  font-size: 0.875rem;
  font-weight: 900;
  border-radius: 4px;
  padding: 10px 25px;
  text-decoration: none;
  display: inline-block;
  font-family: "Lato", sans-serif;
}

.buttonStyle a:not(:is([href*="mailto"], [href*="tel"])):is(:hover, :focus),
#tabs .tab_link_mehr a:is(:hover, :focus) {
  background: #c8db97;
}

.buttonStyle2 a:not(:is([href*="mailto"], [href*="tel"])) {
  background: #333333;
  color: #b7d865;
  font-size: 0.875rem;
  font-weight: 900;
  border-radius: 4px;
  padding: 10px 25px;
  text-decoration: none;
  display: inline-block;
  font-family: "Lato", sans-serif;
}

.buttonStyle2 a:not(:is([href*="mailto"], [href*="tel"])):is(:hover, :focus) {
  background: #4f4f4f;
}

#tab1 .buttonStyle2 a {
  margin-top: 17px;
}

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

#teaser {
  color: #333333;
}

@media (min-width: 1200px) {
  #teaser>.row {
    max-width: 1170px;
    width: 100%;
  }
}

#teaser a:is([href*="mailto"], [href*="tel"]) {
  color: inherit;
  text-decoration: underline;
}

#teaser .tabHeadline {
  color: #333333;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

#teaser :is(b, strong) {
  font-weight: 600;
  font-size: 1.5rem;
  color: #333333;
}

#teaser>.row>* {
  padding: 25px 15px;
}

#teaser>.row>*:nth-child(1) {
  background: #b7d865;
}

#teaser>.row>*:nth-child(2) {
  background: #dadada;
}

@media (min-width: 1200px) {
  #teaser>.row>*:nth-child(1) {
    padding: 45px 50px 50px 60px;
  }

  #teaser>.row>*:nth-child(2) {
    padding: 50px 50px 50px 60px;
  }
}

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

/* ------------------------------------------- ticker ------------------------------------------- */

.newsticker {
  padding: 30px 0;
  color: #607a1f;
  font-weight: 400;
  margin: 0;
}

.newsticker a {
  color: #607a1f;
  font-weight: 400;
  text-decoration: underline;
}

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

main {
  text-align: left;
  padding-top: clamp(20px, 5vw, 30px);
  padding-bottom: clamp(40px, 6vw, 90px);
}

main>.row #content::after {
  content: "";
  position: absolute;
  background: url(../img/dotline-gruen.png) no-repeat;
  width: 259px;
  height: 254px;
  bottom: -90px;
  z-index: 12;
  pointer-events: none;
  right: -434px;
  display: block;
}

/* ------------------------------------------- tab, tab1 ---------------------------------------- */

#tab,
#tab1 {
  padding: clamp(35px, 6vw, 80px) 0;
  color: #333333;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #b7d865;
  overflow: hidden;
}

#tab {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  box-shadow: inset 0 0 0 50vw rgba(183, 216, 101, 0.9);
}

#tab1 {
  padding: clamp(35px, 6vw, 55px) 0;
}

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

#tab ul {
  margin: 0;
  list-style: none;
}

:is(#tab, #tab1) :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 600;
  color: #333333;
  font-size: clamp(1.875rem, 4vw, 2.125rem);
}

#tab1 :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 4px;
}

@media (min-width: 1200px) {
  #tab1>.row::after {
    content: "";
    position: absolute;
    pointer-events: none;
    display: block;
    z-index: 12;
    bottom: clamp(-55px, -6vw, -35px);
    left: -365px;
    width: 303px;
    height: 245px;
    background: url(../img/dotline.png) no-repeat;
  }
}

#tab1 .tab {
  color: #333333;
  height: 100%;
  padding: 35px 30px;
  background: #ffffff;
  box-shadow: 0px 0px 15px 0px rgba(25, 25, 25, 0.2);
}

#tab1 .tab :is(h1, h2, h3, h4, h5, h6) {
  color: #333333;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
}

#tab1 .tab.tab1 {
  background: #b7d865;
}

#tab1 .tab.tab2 {
  background: #dadada;
}

#tab1 .tab.tab3 {
  background: #f3f3f3;
}

#tab1 :is(b, strong) {
  font-weight: 600;
  font-size: 1.5rem;
  color: #333333;
}

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

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

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

h2,
.h2,
.legacy_h2 {
  font-size: clamp(1.75rem, 2vw, 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;
}

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

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

@media (max-width: 767px) {
  #footer>.row>div+div {
    border-top: 1px solid #eff1f3;
    margin-top: 20px;
    padding-top: 20px;
  }
}

#footer {
  padding: 10px 0;
  color: #666666;
  font-size: 1rem;
}

#innerfooter ul {
  padding: 0;
}

#innerfooter a {
  color: #666666;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

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

#innerfooter a::after {
  content: "";
  display: block;
  position: absolute;
  left: -10px;
  right: 0;
  bottom: -2px;
  background: #b7d865;
  opacity: 0;
  transition: opacity 300ms linear;
  height: 3px;
  width: 30px;
}

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

.footerContactTab a:is([href*="mailto:"]) {
  font-style: italic;
}

.footerContactTab a[href*="tel:"] {
  color: #333333;
}

#footer .tabHeadline {
  font-size: 1.5rem;
}

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

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

#vernetzt {
  gap: 12px;
  text-align: left;
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.3;
  text-decoration: none;
}

#vernetzt b:is(:hover, :focus) {
  text-decoration: underline;
}

#vernetzt span span {
  display: block;
}

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

#scroll-top {
  font-size: 0;
  background-color: #b7d865;
  color: #333333;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: block !important;
  position: relative;
  margin: 0 0 0 auto;
}

#scroll-top:is(:hover, :focus) {
  background-color: #c8db97;
}

#scroll-top::after {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
  left: 9px;
  top: 12px;
  border-style: solid;
  border-width: 0 6px 6px 6px;
  border-color: transparent transparent #333333 transparent;
  transform: none;
}