.carousel-wrapper {
  background: var(--yellowLight);
  display: flex;
  margin-top: 40px;
  padding: 10px 0;
  flex-grow: 1;
  max-width: 100%;
}

.carousel {
  text-align: center;
  max-width: 100%;
}
.carousel .scroll-arrow {
  width: 10%;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  padding:0;
  margin:0;
  font-size:34px;
  transition: 0.2s;
  color: rgb(99, 99, 99);
  font-family: 'YetsonMono', sans-serif;
}
.carousel .scroll-arrow:hover {
  transition: 0.2s;
  color: black;
}
.carousel .scrollLeft {
  opacity: 0;
}

.carousel ul {
  width: min(70%, 700px);
  scroll-behavior: smooth;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  text-align: center;
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel  ul::-webkit-scrollbar {
  display: none;
}
.carousel li {
  list-style: none;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  padding: 10px;
  box-sizing: border-box;
  filter: grayscale(100%) sepia(30%);
  transition: 0.2s;

}

.carousel li {
  width: 100%;
}
figure {
  display: inline-block;         /* sorgt dafür, dass figcaption und img zusammenbleiben */
  max-width: 100%;
  text-align: center;            /* optional: Caption mittig ausrichten */
}

.carousel img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}
.carousel:hover li {
  transition: 0.2s;
  filter: grayscale(0);
}

.carousel figure {
  margin: 0;
}

.carousel img {
  display: block;
}

.rect {
  background: var(--yellowLight);
  position: absolute;
  bottom: 0;
  height: 200px;
  width: 100%;
  display: block;
}

footer .wrapper-carousel-bg {
  height: 56px;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  margin-left: calc(130px + 40px);
  margin-right: 250px;
  width: calc(100% - 140px - 40px - 250px);
  min-width: 400px;
}

footer .carousel-bg {
  display: block;
  background-color: var(--yellowLight);
  height: 56px;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

figcaption {
  margin-top: 10px;
  max-width: 100%;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
  white-space: wrap;
  text-align: left;
  font-size: calc(var(--small) - 1.5px);
  font-family: "YetsonMono", serif;
}

@media only screen and (max-width: 900px) {
  footer .wrapper-carousel-bg {
    width: calc(100% - 100px - 40px - 160px - 10px);
    margin-left: calc(100px + 40px) ;
  }
}

@media only screen and (max-width: 710px) {
  footer .wrapper-carousel-bg {
    margin-left: 0;
    min-width: calc(100% - 10px - 250px);
    width: calc(100% - 10px - 160px);
  }
}

@media only screen and (max-width: 500px) {
  footer .wrapper-carousel-bg {
    margin: 0;
    min-width: calc(100% - 10px - 20px);
    width: calc(100% - 10px - 20px);
  }

  .carousel .scroll-arrow {
    font-size: 20px;
  }
}