* {
  margin: 0;
  padding: 0;
  color: #D8F7D5;
}

body {
  background-image: url(../bilder/Titel_bilder/Lehre.jpg);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center 1%;
  background-color: #31ae4e;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS';
  line-height: 1.6;
  cursor: url('../bilder/Icon/MausZombie.png'), auto;
}

.header {
  position: fixed;
  top: 0;
  display: flex;
  align-items: center;
  background: #22983D;
  padding: 1em 2em;
  width: 100%;
  z-index: 10;
}

.header img {
  max-height: 60px;
  display: block;
  margin-right: 1em;
}

.schieb {
  position: absolute;
  color: rgb(134, 232, 134);
  top: 20%;
  left: 15%;
}

.navbar {
  margin-left: auto;
  z-index: 10;
}

.nav-links {
  border: 3px solid #0c310c;
  border-radius: 5%;
  position: fixed;
  list-style: none;
  display: none;
  flex-direction: column;
  background-color: #22983D;
  top: 70px;
  right: 2em;
  width: 160px;
  padding: 10px;
  z-index: 20;
}

.nav-links.active {
  display: flex;
}

.nav-links li {
  font-size: 18px;
  text-align: center;
  margin: 10px 0;
}

.nav-links a {
  color: #D8F7D5;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

.menu-toggle {
  position: fixed;
  right: 2em;
  top: 1.5em;
  width: 40px;
  height: 40px;
  background-image: url('../bilder/Icon/Hamburger-Icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  z-index: 21;
}

.logo {
  max-height: 60px;
  height: auto;
}

.schleife {
  position: relative;
  width: auto;
  height: 180vh;
  overflow: hidden;
  z-index: 2;
}

.image-wrapper {
  position: absolute;
  left: 93.5%;
  width: 100%;
  animation: infiniteScroll 140s linear infinite;
  z-index: 2;
}

.moving-image {
  width: 6.3em;
  height: auto;
  display: block;
  opacity: 0.65;
}

@keyframes infiniteScroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.carousel-container {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 50%;
  margin: 6px;
  z-index: 3;
  overflow: hidden;
}

.carousel-container img {
  width: auto;
  height: 45%;
  object-fit: contain;
  max-width: 100%;
}

.carousel {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
}

.prev,
.next {
  position: absolute;
  top: 70%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  z-index: 4;
}

.prev {
  left: 12%;
}

.next {
  right: 11%;
}

.back {
  position: fixed;
  left: 2%;
  bottom: 2%;
  z-index: 100;
}

.footer {
  position: fixed;
  bottom: 0;
  background: #22983D;
  color: #D8F7D5;
  text-align: center;
  width: 100%;
  z-index: 5;
  cursor: url('../bilder/Icon/MausZombie.png'), pointer;
}

@media (max-width:1300px) {

  body {
    overflow-x: hidden;
    font-size: 16px;
    background-image: url(../bilder/Titel_bilder/Lehre.jpg);
    background-size: cover;
    background-position: 0 2%;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header img {
    height: auto;
    padding: 0;
  }

  .schleife {
    position: relative;
    width: auto;
    height: 180vh;
    overflow: hidden;
  }

  .carousel-container {
    left: 49.4%;
  }

  .menu-toggle {
    width: 5%;
    height: 5%;
    top: 3%;
    right: 3%;
    background-size: contain;
  }

  .nav-links {
    width: 12%;
    top: 5%;
    right: 6.5%;
    padding: 10px 0;
  }

  .nav-links li {
    font-size: 18px;
  }

  .prev img,
  .next img {
    width: 60%;
    height: auto;
  }

  .prev {
    left: 8%;
  }

  .next {
    right: 8%;
  }

  .back {
    position: fixed;
    left: 2%;
    bottom: 2%;
    z-index: 100;
  }

  .footer {
    position: fixed;
    bottom: 0;
    font-size: 14px;
    padding: 1%;
    max-width: 100%;
    margin-top: 1%;
    z-index: 5;
  }

}

@media (max-width:970px) {

  body {
    overflow-x: hidden;
    font-size: 16px;
    background-image: url(../bilder/Titel_bilder/Lehre.jpg);
    background-size: cover;
    background-position: 0 2%;

  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header img {
    height: auto;
    padding: 0;
  }

  .menu-toggle {
    width: 5%;
    height: 5%;
    top: 0.3%;
    right: 3%;
    background-size: contain;
  }

  .nav-links {
    width: 12%;
    top: 5%;
    right: 6.5%;
    padding: 10px 0;
  }

  .nav-links li {
    font-size: 18px;
  }

  .schleife {
    position: relative;
    width: auto;
    height: 180vh;
    overflow: hidden;
  }

  .moving-image {
    width: 7%;
    height: 25vh;
    display: block;
  }

  .footer {
    position: fixed;
    bottom: 0;
    font-size: 14px;
    padding: 1%;
    max-width: 100%;
    margin-top: 1%;
    z-index: 5;
  }
}

@media (max-width:700px) {

  body {
    overflow-x: hidden;
    font-size: 16px;
    background-image: url(../bilder/Titel_bilder/Lehre.jpg);
    background-size: 100%;
    background-position: 0 2%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header img {
    height: auto;
    padding: 0;
  }

  .menu-toggle {
    width: 5%;
    height: 5%;
    top: 0.5%;
    right: 10%;
    background-size: contain;
  }

  .nav-links {
    width: 12%;
    top: 5%;
    right: 6.5%;
    padding: 10px 0;
  }

  .nav-links li {
    font-size: 18px;
  }

  .footer {
    position: fixed;
    bottom: 0;
    font-size: 14px;
    padding: 1%;
    max-width: 100%;
    margin-top: 1%;
    z-index: 5;
  }
}

@media (max-width:460px) {

  body {
    overflow-x: hidden;
    font-size: 16px;
    background-image: url(../bilder/Titel_bilder/Lehre.jpg);
    background-size: cover;
    background-position: 0 2%;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header img {
    height: auto;
    padding: 0;
  }

  .schieb {
    font-size: 12px;
    position: absolute;
    color: rgb(164, 247, 109);
    top: 20%;
    left: 20%;
    font-size: x-large;
  }

  .menu-toggle {
    width: 10vw;
    height: 10vw;
    top: 0%;
    right: 4%;
    background-size: contain;
  }

  .nav-links {
    width: 40%;
    top: 5%;
    right: 0;
    padding: 10px 0;
  }

  .nav-links li {
    font-size: 18px;
  }

  .schleife {
    position: relative;
    width: auto;
    height: 212vh;
    overflow: hidden;
  }

  .image-wrapper {
    position: absolute;
    left: 91.8%;
    width: 100%;
    animation: infiniteScroll 140s linear infinite;
  }

  .moving-image {
    width: 7%;
    height: 25vh;
    display: block;
  }

  .carousel-container img {
    height: 68%;
  }

  .carousel-container {
    top: 40%;
    left: 44%;
    max-width: 80%;
  }

  .prev,
  .next {
    top: 88%;
  }

  .prev {
    left: 3%;
  }

  .next {
    right: 11%;
  }

  .footer {
    font-size: 14px;
    max-width: 100vw;
    overflow-x: hidden;
  }

}