* {
  margin: 0;
  padding: 0;
  color: #D8F7D5;
}

body {
  background-image: url(./bilder/Titel_bilder/Videos.jpg);
  background-repeat: no-repeat;
  background-size: 80%;
  background-position: top;
  background-color: #22983D;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS';
  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;
}

.pageT4 {
  position: absolute;
  font-size: 5rem;
  top: 10%;
  left: 30.5%;
  animation: colorChange 6s infinite alternate;
}

@keyframes colorChange {
  0% {
    color: #08160b;
  }
  50% {
    color: #22983D;
  }
  100% {
    color: #b4e7c0;
  }
}

.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:8%;
  height: 7%;
  background-image: url('../bilder/Icon/Hamburger-Icon.png');
  background-size: 90%;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  z-index: 21;
}

.logo {
  max-height: 60px;
  height: auto;
}

@keyframes infiniteScroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.carousel-container {
  position: absolute;
  overflow: hidden;
  height: 100vh;
  top: 22%;
  left: 51%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 70%;
  z-index: 3;
}

.carousel-container video {
  width: auto;
  height: 45%;
  object-fit: contain;
  max-width: 100%;
}

.carousel {
  display: flex;
  justify-content: first baseline;
  transition: transform 0.3s ease-in-out;
}

.carousel-slide {
  font-size: 49px;
  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: 4%;
}

.next {
  right: 4%;
}

.back {
  position: fixed;
  left: 2%;
  bottom: 2%;
  z-index: 100;
}

.footer {
  position: fixed;
  bottom: 0;
  color: #D8F7D5;
  text-align: right;
  width: 97%;
  padding: 2em;
  z-index: 6;
  font-size: 14px;
  cursor: url('../bilder/Icon/MausZombie.png'), pointer;
}

@media (max-width:1300px) {

  body {
    overflow-x: hidden;
    font-size: 16px;
    background-image: url(../bilder/Titel_bilder/Privat.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/Privat.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/Privat.jpg);
    background-size: cover;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header img {
      max-height: 40px;
  }

  .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/Privat.jpg);
    background-size: cover;
    background-position: 0 2%;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header img {
    height: auto;
    padding: 0;
  }

  .schieb2 {
    font-size: 12px;
    position: absolute;
    color: rgb(6, 36, 6);
    top: 15%;
    left: 4%;
    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;
  }

}