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

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

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

a {
  color: #398235;
}

a:hover,
a:focus {
  color: #398235;
  text-decoration: underline;
}

#content a {
  text-decoration: underline;
}

b,
strong {
  font-weight: 700;
}

/* LOGO -------------------------------------------------------- */

#logo {
  display: inline-block;
}

@media (min-width: 992px) {
  #logo {
    padding: 25px;
    background-color: #fff;
    box-shadow: -60px 68px 70px 0px rgba(0, 0, 0, 0.06);
    -webkit-box-shadow: -60px 68px 70px 0px rgba(0, 0, 0, 0.06);
    -moz-box-shadow: -60px 68px 70px 0px rgba(0, 0, 0, 0.06);
    position: absolute;
    top: -57px;
  }

  #logo img {
    max-width: 100%;
    transition: 300ms max-width linear;
  }
  .is-sticky #logo img {
    max-width: 72%;
  }
  .is-sticky #logo {
    padding: 10px;
  }
}

#logo img {
  display: block;
}

@media (max-width: 991px) {
  #logo {
    position: relative;
  }
  #logo img {
    max-width: 300px;
    width: 100%;
  }
}

/* LOGO -------------------------------------------------------- */

/* ------------------------------------------ contact ------------------------------------------- */

#topbar,
nav address {
  background-color: rgba(44, 44, 44, 0.9);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 300;
}

nav address {
  padding: 10px 15px;
  hyphens: auto;
}

@media (max-width: 991px) {
  #topbar {
    padding: 10px 0;
  }
  .social {
    background-color: rgba(44, 44, 44, 0.9);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 300;
  }
}

@media (min-width: 992px) {
  #topbar > .row {
    row-gap: 10px;
  }
  #topbar address {
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .contactMail + .contactPhone {
    margin-left: 30px;
  }
}

#topbar a,
nav address a,
.social a {
  color: #fff;
  text-decoration: underline;
}

.contactMail,
.contactPhone {
  padding-left: 20px;
  background-position: center left;
  background-repeat: no-repeat;
}

@media (max-width: 991px) {
  .social,
  .contactMail,
  .contactPhone {
    background-position: center left 10px;
  }

  .social {
    padding-top: 10px;
    padding-left: 20px;
    background-position: center left;
    background-repeat: no-repeat;
  }
}

nav address {
  background-position-x: 7px;
}

.social {
  line-height: 1;
}

.social a + a,
.social img + img {
  margin-left: 10px;
}

/* ------------------------------------------ search -------------------------------------------- */

@media (min-width: 1200px) {
  #search {
    padding-left: 40px;
    margin-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
  }
}

#search label {
  text-transform: uppercase;
  font-weight: 400;
  margin-right: clamp(10px, 2vw, 20px);
  padding: 7px 0;
}

#search {
  display: inline-flex;
}

#search_input {
  color: #fff;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 300;
  background: transparent;
  padding: 7px 5px;
  border: 0;
  width: 140px;
}

#search_submit {
  min-width: 30px;
  flex-shrink: 0;
  border: none;
  background: url("../img/lupe-icon.png") center no-repeat;
  padding: 0;
  cursor: pointer;
  font-size: 0;
}

#search_submit:is(:hover, :focus) {
  background-color: #398235;
}

#search_input::placeholder {
  color: #fff !important;
  opacity: 1 !important;
  font-style: normal !important;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
  .sticky-wrapper {
    position: relative;
    z-index: 101;
    height: fit-content !important;
  }
  nav.horizontally {
    position: static !important;
  }

  #burgerButton {
    font-size: 0;
    display: block;
    height: 50px;
    width: 60px;
    border-radius: 2px;
    padding: 6px 8px;
    cursor: pointer;
    background: #ffffff;
    border: none !important;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
  }

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

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    padding-top: 15px;
    background-color: #ffffff;
box-shadow: 0px 5px 16px 0px rgba(44,44,44,0.25);
-webkit-box-shadow: 0px 5px 16px 0px rgba(44,44,44,0.25);
-moz-box-shadow: 0px 5px 16px 0px rgba(44,44,44,0.25);
  }

  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    flex-wrap: wrap;
  }

  nav.horizontally .navbar-nav ul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    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;
    transform: none;
  }

  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: #2c2c2c;
  font-weight: 700;
  text-align: left;
  padding: 12px 35px 12px 15px;
  position: relative;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  hyphens: auto;
  font-family: "Noto Sans", sans-serif;
}

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

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

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

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: rgb(255, 255, 255, 0.9);
  box-shadow: 3.078px 3.94px 15px 0px rgba(44, 44, 44, 0.25);
}

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

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

@media (min-width: 992px) {
  nav.horizontally [class*="toplevel"] > ul::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 0;
    height: 0;
    border-style: solid;
    border-right: 20px solid transparent;
    border-left: 20px solid transparent;
    border-bottom: 20px solid rgba(255, 255, 255, 0.9);
    border-top: 0;
  }

  nav.horizontally [class*="toplevel"] ul {
    padding-top: 25px;
    padding-bottom: 25px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
  }

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

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

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

  nav.horizontally [class*="secondlevel"] > ul {
    margin-top: -25px;
    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: #2c2c2c;
  font-weight: 400;
  text-align: left;
  padding: 8px 20px;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  position: relative;
  font-family: "Noto Sans", sans-serif;
}

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

/* 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) {
  color: #2c2c2c;
  background-color: #5ebe5c;
}

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

/* #region ------------------------------------ banner ------------------------------------------ */
#headerpic {
  position: relative;
}

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

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

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

  #headerpic a.nivo-nextNav {
    right: 65px;
  }
  #headerpic {
    border-bottom: solid 4px #f4ea4a;
  }
}

#overlay .tab {
  background: rgba(255, 255, 255, 0.85);
  padding: 15px 17px;
  margin-left: -10px;
}

#overlay .tab :is(h1, h2, h3) {
  font-size: clamp(1.25rem, 7vw, 2.5rem);
  color: #2c2c2c;
  font-family: "Poppins", sans-serif;
}
#overlay .tab :is(h1, h2, h3) :is(b, strong) {
  color: #398235;
  text-transform: uppercase;
}

#overlay a {
  display: inline-block;
  line-height: 1;
  background: #2c2c2c;
  color: #ffffff;
  font-size: 0.9375rem;
  text-decoration: none;
  text-transform: uppercase;
  padding: 12px 15px;
  font-weight: 400;
  font-family: "Noto Sans";
}

#overlay a:is(:hover, :focus) {
  background: #5ebe5c;
  color: #2c2c2c;
}

@media (min-width: 992px) {
  #overlay {
    position: absolute;
    bottom: 40px;
    width: 100%;
    z-index: 20;
  }
}

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

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

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

body.index #content > .row {
  padding-bottom: 60px;
  border-bottom: solid 2px rgba(44, 44, 44, 0.05);
}
@media (min-width: 992px) {
  #content {
    padding-bottom: 60px;
    padding-top: 60px;
  }
}

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

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

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

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

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

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

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

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

/* ---------------------------------------------- bildTabs ---------------------------------------------- */

.bildTabs {
  padding-bottom: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px 0;
}

.bildTabs .tabHeadline {
  margin: 0;
}

.bildTabs .tab {
  background: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
  line-height: 0;
  height: 100%;
  position: relative;
  box-shadow: 2px 2px 5px 0px rgba(44, 44, 44, 0.15);
  -webkit-box-shadow: 2px 2px 5px 0px rgba(44, 44, 44, 0.15);
  -moz-box-shadow: 2px 2px 5px 0px rgba(44, 44, 44, 0.15);
}

.bildTabs .tab:has(a):has(img, .arrow)::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  background: linear-gradient(180deg, rgba(94, 190, 92, 1) 0%, rgba(57, 130, 53, 1) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms;
}

.bildTabs .tab:has(a:hover):has(img, .arrow)::after {
  opacity: 0.75;
}

.bildTabs .tab:has(a:hover):has(img, .arrow) h3 {
  color: #398235;
}

.bildTabs .template-page {
  font-size: 0;
}

.bildTabs .template-page :is(.row, .row > div) {
  position: static;
}

.bildTabs h3 {
  text-align: center;
  line-height: 1.2;
  font-size: 1.125rem;
  margin: 0;
  display: inline-block;
  padding: 5px 30px 5px 30px;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  hyphens: inherit;
  min-height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.bildTabs :is(img, .arrow),
.bildTabs .tab:has(a):has(img, .arrow)::after {
  box-shadow: 1.204px 1.597px 5px 0px rgba(44, 44, 44, 0.15);
  height: 270px;
  width: 100%;
}

@media (max-width: 767px) {
  .bildTabs :is(img, .arrow),
  .bildTabs .tab:has(a):has(img, .arrow)::after {
    height: 150px;
  }
}

.bildTabs img {
  object-fit: cover;
  object-position: center;
}

/* ------------------------------------------------ footerTabs ---------------------------------------------- */

.Footertab {
  color: #fff;
  font-weight: 400;
  font-size: 1rem;
}

.Footertab a {
  color: #fff;
  font-weight: 400;
  text-decoration: underline;
}

.Footertab :is(h1, h2, h3, h4, h5, h6, .FooterHeadline) {
  color: #ffffff;
  padding-bottom: 10px;
  font-weight: 700;
  font-size: 1.5625rem;
  font-family: "Poppins", sans-serif;
}

.Footertab :is(b, strong) {
  font-weight: 700;
}

@media (max-width: 767px) {
  .Footertab {
    margin-bottom: 30px;
  }
}



@media (min-width: 576px) {
  .spendenTab {
    padding-left: 42px;
    position: relative;
    background: url(../img/icon-spendenhand-mit-herz.png) left top / auto no-repeat;
  }
}

.spendenTab a {
  display: inline-block;
  line-height: 1;
  background: #5ebe5c;
  color: #2c2c2c;
  font-size: 0.9375rem;
  text-decoration: none;
  text-transform: uppercase;
  padding: 12px 15px;
  font-weight: 400;
  font-family: "Noto Sans";
}

.spendenTab a:is(:hover, :focus) {
  background: #fff;
  color: #2c2c2c;
}

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

footer > .row {
  padding-top: 10px;
  padding-bottom: 30px;
}

#footer > .row {
  position: relative;
}

footer {
  background: #2c2c2c;
  padding-top: 25px;
  color: #fff;
  background-attachment: fixed;
}

#footer {
  background: #2c2c2c;
  background-size: cover;
  border-top: solid 2px #f4ea4a;
}

#footer > .row {
  gap: 30px 0;
}

@media (min-width: 992px) {
  #footer > .row {
    align-content: center;
    align-items: center;
  }

  footer > .row {
    padding-bottom: 30px;
  }
}

#innerfooter {
  padding: 20px;
  font-size: 1rems;
}

#innerfooter > .row {
  row-gap: 20px;
}

#innerfooter ul {
  padding: 0;
}

#innerfooter ul a {
  color: #ffffff;
  font-size: 1rem;
}

#innerfooter ul :is(a:hover, a:focus) {
  color: #5ebe5c;
  text-decoration: none !important;
}

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

  #innerfooter li {
    display: inline-block;
  }
}
/* vernetzt */

#vernetzt {
  text-align: right;
  font-size: 0.9375rem;
  color: #fff;
  line-height: 1.3;
  font-weight: 300;
  display: inline-block;
  text-decoration: none;
}

#vernetzt span {
  display: block;
}

#vernetzt img {
  margin-bottom: 15px;
}
