@import url("https://fonts.verwaltungsportal.de/import/?family=Raleway:300,400,500,600,700,300i,400i,500i,600i,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Poppins:300,400,500,600,700,300i,400i,500i,600i,700i");

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

body {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  color: #636363;
  background: #ffffff;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.5;
}

a {
  color: #028812;
}

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

b,
strong {
  font-weight: 600;
}

.overflow {
  overflow: clip;
  position: relative;
}
/* ------------------------------------------- logo --------------------------------------------- */

#logo {
  display: inline-block;
}

@media (min-width: 992px) {
  #logo {
    margin-bottom: -26px;
  }
}

#logo img {
  display: block;
}

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

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

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

/* menu desktop */

nav.horizontally {
  border-top: solid 3px #02d41b;
  padding: 3px 0 clamp(13px, 2vw, 25px);
  transition: all 0.3s 0s ease;
}

.is-sticky nav.horizontally {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
  padding-bottom: 26px;
}
@media (max-width: 991px) {
  .is-sticky nav.horizontally {
    padding-bottom: 15px;
  }
}

@media (min-width: 992px) {
  nav.horizontally,
  .sticky-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 54;
  }

  nav.horizontally .navbar-nav {
    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: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: #636363;
  font-weight: 600;
  text-align: left;
  padding: 10px 35px;
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: 1.5px;
}

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

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

@media (max-width: 991px) {
  nav.horizontally a[class*="toplevel"] {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    padding-left: 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: #028812;
}

.navbar-default .navbar-nav > li:is(:hover, :focus) > a:is([href*="mailto"], [href*="formulare"]) {
  transform: scale(1.2);
}

/* secondlevel + thirdlevel dropdown-box */

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

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

@media (min-width: 992px) {
  nav.horizontally [class*="toplevel"] > ul {
    margin-top: 12px;
    left: 50%;
    transform: translate(-50%, 0);
  }

  nav.horizontally [class*="toplevel"] > ul::after,
  nav.horizontally :is([class*="toplevel"], [class*="secondlevel"]) > ul::before {
    content: "";
    position: absolute;
    display: block;
  }

  nav.horizontally [class*="toplevel"] > ul::after {
    top: -12px;
    left: calc(50% - 14px);
    width: 28px;
    height: 12px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: #ffffff;
  }

  nav.horizontally [class*="toplevel"] > ul::before {
    height: 12px;
    left: 0;
    right: 0;
    top: -12px;
  }

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

  nav.horizontally [class*="secondlevel"] > ul::before {
    width: 15px;
    top: 0;
    bottom: 0;
    left: -15px;
  }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #636363;
  font-weight: 500;
  text-align: left;
  padding: 9px 35px;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
}

@media (min-width: 992px) {
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    padding: 9px 25px;
    text-align: center;
  }
}
@media (max-width: 991px) {
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    padding-left: 20px;
  }
}
/* 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: transparent;
  color: #028812;
}

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

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

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

@media (min-width: 992px) {
  body.index #slider {
    max-height: clamp(300px, 70vw, 720px);
  }

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

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

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

@media (min-width: 1200px) {
  #bannerOverlay {
    position: absolute;
    right: 0;
    bottom: 40px;
    left: 0;
    z-index: 53;
    pointer-events: none;
  }
}

#slogan {
  padding: 20px 0 10px 0;
  color: #028812;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: auto;
}

@media (min-width: 1200px) {
  #slogan {
    margin: 10px 0;
  }
}

#slogan p {
  background: rgba(255, 255, 255, 0.75);
  display: inline-block;
  padding: 10px 0;
  letter-spacing: 2px;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

@media (min-width: 1200px) {
  #slogan p {
    padding: 6px 20px;
  }
}

#slogan :is(h1, h2, h3, h4, h5, h6) {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 4px solid #02d41b;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  padding: 20px 20px;
  margin: 0;
  display: inline-block;
  width: auto;
  color: #028812;
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 1200px) {
  #slogan :is(h1, h2, h3, h4, h5, h6) {
    padding: 20px 20px 20px 25px;
    letter-spacing: 3px;
  }
}

#sloganLinks {
  pointer-events: auto;
}

@media (max-width: 575px) {
  #sloganLinks a + a {
    margin-top: 15px;
  }
}

#sloganLinks a {
  line-height: 1;
  display: inline-block;
  font-size: clamp(0.875rem, 3vw, 1rem);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #ffffff;
  background: #028812;
  padding: 11px 35px 11px 15px;
  position: relative;
  margin-top: 0px;
  margin-right: 20px;
  backface-visibility: hidden;
  transition: transform 100ms linear;
  font-family: "Poppins", sans-serif;
}

#sloganLinks a:is(:hover, :focus) {
  transform: scale(1.2);
}

#sloganLinks a:nth-of-type(2) {
  background: rgba(2, 136, 18, 0.9);
}

#sloganLinks a::after,
#sloganLinks a::before {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
}

#sloganLinks a::after {
  margin-top: -5px;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: rotate(45deg);
}

#sloganLinks a::before {
  margin-top: -2px;
  display: inline-block;
  height: 2px;
  background: #ffffff;
  width: 9px;
}

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

.slider-mask {
  display: none;
}

@media (min-width: 992px) {
  .slider-mask {
    display: block;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 16%, rgba(255, 255, 255, 0) 34%), linear-gradient(180deg, rgba(255, 255, 255, 0.8) 6%, rgba(255, 255, 255, 0) 30%);
  }
}

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

/* #region --------------------------------- scroll bottom -------------------------------------- */

#scrollBottom a {
  position: relative;
  font-size: 0;
  display: block;
  width: 30px;
  height: 30px;
  margin: clamp(30px, 7vw, 50px) auto 10px auto;
  text-align: center;
  background: rgba(2, 136, 18, 0.6);
  border: 2px solid #deeaf3;
  pointer-events: auto;
  animation: bounceAni 2s infinite 2s;
  transition: all 0.2s ease-in;
}

#scrollBottom a:is(:hover, :focus) {
  background-color: #006f0d;
  animation-play-state: paused;
}

#scrollBottom a::after,
#scrollBottom a::before {
  position: absolute;
  content: "";
}

#scrollBottom a::after {
  left: 8px;
  top: 9px;
  width: 8px;
  height: 8px;
  display: inline-block;
  border-left: 2px solid #deeaf3;
  border-bottom: 2px solid #deeaf3;
  transform: rotate(-45deg);
  transition: border 300ms linear;
}

#scrollBottom a::before {
  left: 12px;
  top: 7px;
  width: 2px;
  height: 12px;
  background-color: #deeaf3;
}

@keyframes bounceAni {
  0%,
  100%,
  20%,
  50%,
  80% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* #endregion ------------------------------ scroll bottom -------------------------------------- */

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

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

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

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

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

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

h3,
.h3,
.legacy_h3 {
  font-size: 1.875rem;
}

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

h5,
.h5,
.legacy_h5 {
  font-size: 1.625rem;
}

h6,
.h6,
.legacy_h6 {
  font-size: 1.5rem;
}

/* ------------------------------------------------ @1tab ----------------------------------------------- */

#tab1 {
  padding: 60px 0;
  background-color: #cee7d1;
}

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

@media (max-width: 575px) {
  #tab1 > .row {
    row-gap: 30px;
  }
}
@media (max-width: 991px) {
  #tab1 {
    padding: 30px 0;
  }
}

#tab1 .tab {
  padding: 20px;
  font-size: 1rem;
  min-height: 100%;
  background-color: #ffffff;
  box-shadow: 0px 10px 51px 0px rgba(43, 43, 43, 0.1);
  -webkit-box-shadow: 0px 10px 51px 0px rgba(43, 43, 43, 0.1);
  -moz-box-shadow: 0px 10px 51px 0px rgba(43, 43, 43, 0.1);
}

#tab1 .tab :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.25rem;
  font-weight: 600;
  color: #028812;
}

#tab1 .tab a {
  text-decoration: none;
  display: inline-block;
  color: #028812;
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  font-weight: 400;
  transition: background 300ms linear;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  display: block;
  width: 100%;
  margin-top: 30px;
  margin-bottom: 6px;
}
#tab1 .tab a::before {
  content: "";
  position: absolute;
  background: url(../img/pfeil.png) center no-repeat;
  background-color: rgba(0, 0, 0, 0);
  width: 17px;
  height: 17px;
  bottom: 4px;
  z-index: 0;
  pointer-events: none;
  right: 15px;
  display: block;
  background-color: #028812;
  padding: 11.5px;
  transition: background-color 300ms linear;
}

#tab1 .tab a:is(:hover, :focus)::before {
  background-color: #006f0d;
}

#tab1 .tab img {
  margin: -20px -20px 10px -20px;
  display: block;
  width: calc(100% + 40px) !important;
  min-width: calc(100% + 40px) !important;
}
/* --------------------------------------------- footer ----------------------------------------- */

#footer {
  background-color: #ffffff;
  padding: 30px 0 18px 0;
  color: #636363;
  border-top: solid 3px #02d41b;
}
@media (max-width: 991px) {
  #footer {
    padding: 20px 0;
  }
}

#innerfooter ul {
  padding: 0;
}

@media (min-width: 500px) {
  #innerfooter li {
    display: inline-block;
  }

  #innerfooter li + li {
    margin-left: clamp(20px, 3vw, 40px);
  }
}

@media (max-width: 767px) {
  #innerfooter {
    border-bottom: 1px solid #028812;
    margin-bottom: 20px;
    padding-bottom: 15px;
  }
  #innerfooter a {
    line-height: 1.8;
  }
}

#innerfooter a {
  color: #636363;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9375rem;
}

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

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

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

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

#vernetzt span span {
  display: block;
}
