@import url("https://fonts.verwaltungsportal.de/import/?family=Red+Hat+Text:300,400,500,600,700,300i,400i,500i,600i,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Rosarivo:300,400,500,600,700,300i,400i,500i,600i,700i");

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

body {
  font-family: "Red Hat Text", sans-serif;
  color: #252525;
  background: #ffffff;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.5;
}

a {
  color: #208320;
}

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

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

b,
strong {
  font-weight: 700;
}
#overflow {
  overflow: clip;
  position: relative;
}

a:focus-visible,
button:focus-visible,
form:focus-visible,
input:focus-visible {
  outline: 3px solid #ff0000 !important;
}
/* ---------------------------------------- innerfooter ----------------------------------------- */

#innerfooter,
.menufooter,
:is(#innerfooter, nav.horizontally .menufooter) :is(a, a[class*="toplevel"]),
#innerfooter button {
  font-size: 1rem;
  color: #252525;
  text-transform: none;
  font-family: "Red Hat Text", sans-serif;
}

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

:is(#innerfooter, .menufooter) a {
  display: inline-block;
  text-decoration: none;
  font-weight: 400;
}

@media (min-width: 768px) {
  #innerfooter > .row > * {
    column-gap: 50px;
  }

  .menufooter li {
    display: inline-block;
  }

  .menufooter li + li::before {
    content: "•";
    margin: 0 clamp(15px, 2vw, 25px);
    color: #252525;
  }
}

@media (max-width: 991px) {
  .menufooter {
    margin: 15px;
  }
  .menufooter a:is(:hover, :focus) {
    text-decoration: underline !important;
  }
}
/* ------------------------------------------- logo --------------------------------------------- */

#logo {
  display: inline-block;
  background-color: #ffffff;
}

#logo img {
  display: block;
  max-width: 104px;
  transition: all 300ms linear;
}
.tabWappen {
  text-align: center;
}

.tabWappen img {
  transition: all 300ms linear;
  max-width: 80px;
}

.logosBG {
  position: relative;
  position: relative;
  display: flex;
  padding: 10px;
  background-color: #fff;
}

@media (max-width: 991px) {
  #logo img {
    width: 100%;
    max-width: 90px;
  }
  .tabWappen img {
    max-width: 70px;
    background-color: #ffffff;
  }
}

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



.is-sticky nav.horizontally {
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
}

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally {
  padding: 0px 0;
  background: #30C430;
  transition: all 0.5s 0s ease;
}
  #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: #30C430;
    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: #30C430;
    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: 3px;
  }

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

/* menu desktop */

@media (min-width: 992px) {
nav.horizontally {
  background: #30C430;
  transition: all 0.5s 0s ease;
}
  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 28px 0;
  }

  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: 15px;
  }

  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:focus-within, :hover) > 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:is(:hover, :focus-within) > ul {
    z-index: 1003;
  }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
  color: #252525;
  font-weight: normal;
  text-align: center;
  padding: 10px 35px;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Rosarivo", cursive;
}

@media (max-width: 991px) {
  nav.horizontally a[class*="toplevel"] {
    text-align: left;
  }
}

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

/* 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-color: #37d637;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  padding: 15px 0;
  background: #30c430;
}

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

@media (min-width: 992px) {
  nav.horizontally [class*="secondlevel"] > ul {
    margin-top: -10px;
    margin-left: 15px;
  }

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  font-weight: 400;
  text-align: left;
  padding: 8px 35px;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Red Hat Text", sans-serif;
}

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

nav.horizontally a[class*="secondlevel"] {
  color: #252525;
}

nav.horizontally a[class*="thirdlevel"] {
  color: #252525;
}

/* secondlevel + thirdlevel over */

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

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

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

/* #region ------------------------------------ banner ------------------------------------------ */

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

@media (min-width: 768px) {
  body.index #headerpic .theme-default .nivo-controlNav {
    bottom: 40px;
  }

  #bannerOverlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100px;
    z-index: 10;
    padding-left: 40px;
    pointer-events: none;
  }
}

@media (min-width: 992px) {
  body.index #slider {
    max-height: clamp(400px, 62vw, 650px);
  }
  #headerpic a.nivo-prevNav {
    left: 65px;
    margin-top: 60px;
  }

  #headerpic a.nivo-nextNav {
    right: 65px;
    margin-top: 60px;
  }
  .theme-nivo .nivo-controlNav {
    bottom: 50px !important;
  }
}

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

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

.slider-mask {
  display: none;
}

/* #endregion --------------------------------- banner ------------------------------------------ */

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

#teaser > .row {
  row-gap: 15px;
}

@media (min-width: 768px) {
  #teaser {
    position: relative;
    z-index: 53;
    margin-top: -40px;
  }
}

#teaser .tab {
  background-color: #ffffff;
  color: #ffffff;
  position: relative;
  color: #30C430;
  padding: 10px;
}

#teaser .tab a {
  color: #30C430;
  text-decoration: underline;
  border-radius: 2px;
  padding: 2px;
}

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

#teaser .tab {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  box-shadow: 7px 7px 10px 0px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 7px 7px 10px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 7px 7px 10px 0px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
  #teaser {
    margin-top: 30px;
  }
  #teaser .tab {
    max-width: 284px;
  }
}

#teaser .tab a::after {
  content: "";
  position: absolute;
  inset: -1000vw;
}

#teaser .tab a {
  position: absolute;
  font-size: 0;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  display: block;
}

#teaser .tab img {
  display: block;
}

#teaser .tab .tabHeadline {
  margin: 0;
  color: #252525;
  position: absolute;
  left: 0;
  bottom: 18px;
  background: #30c430;
  padding: 10px 15px;
  pointer-events: none;
  z-index: 1;
  font-size: clamp(1.125rem, 2vw, 1.4375rem);
  display: inline-block;
  width: auto;
  line-height: 1.2;
  font-family: "Rosarivo", cursive;
}

#teaser .tab:is(:hover, :focus) .tabHeadline {
  background-color: #208320;
  color: #fff;
}

#teaser hr {
  border-top: 2px solid #dcdcdc;
  margin-bottom: 0;
  margin-top: 15px;
  opacity: 1;
}

#bg-right {
  padding-bottom: clamp(30px, 4vw, 60px);
  padding-top: clamp(30px, 4vw, 60px);
}
@media (max-width: 991px) {
  #bg-right {
    padding-top: 30px;
  }
}

#bg-right .tab {
  padding: 30px 25px;
  font-size: 1rem;
  background-color: #208320;
  color: #fff;
  line-height: 1.8;
}

#bg-right .tab a {
  color: #fff;
  text-decoration: underline;
}

#bg-right .tab a:is(:hover, :focus) {
  text-decoration: none;
}

#bg-right .tabHeadline {
  margin: 0 0 8px 0;
  color: #ffffff;
  font-size: 1.375rem;
  font-family: "Rosarivo", cursive;
}
/* #endregion ------------------------------------- tab -------------------------------------------- */

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

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

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
  color: #208320;
  font-weight: 400;
  line-height: 1.2;
  font-family: "Rosarivo", cursive;
}

h1,
.h1,
.legacy_h1 {
  font-size: clamp(2.1875rem, 4vw, 2.375rem);
}

h2,
.h2,
.legacy_h2 {
  font-size: clamp(2rem, 4vw, 2.1875rem);
}

h3,
.h3,
.legacy_h3 {
  font-size: clamp(1.875rem, 4vw, 2rem);
}

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

h5,
.h5,
.legacy_h5 {
  font-size: clamp(1.5rem, 4vw, 1.625rem);
}

h6,
.h6,
.legacy_h6 {
  font-size: clamp(1.375rem, 4vw, 1.5rem);
}

/* --------------------------------------------- footer ------------------------------------------ */

footer {
  background-color: #30C430;
  padding: 25px 0;
}

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

#vernetzt {
  gap: 15px;
  text-align: left;
  font-size: 1rem;
  color: #252525;
  line-height: 1.3;
  text-decoration: none;
}

#vernetzt :is(b, strong) {
  font-weight: 700;
}

#vernetzt span span {
  display: block;
}

/* ------------------------------------------------- counter ------------------------------------------------- */

#counter {
  color: #252525;
  font-size: 1rem;
  padding: 13px 16px;
  margin: 0 auto;
  max-width: 235px;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: space-between;
  background-color: #37d637;
}

@media (min-width: 768px) {
  #counter {
    margin-left: auto;
    margin-right: 0;
  }
}

@media (max-width: 991px) {
  #counter {
    max-width: 400px;
  }
}

@media (max-width: 575px) {
  #counter {
    margin-top: 30px;
  }
}

#counter span {
  font-weight: 700;
  padding-right: 5px;
}
