#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 15px;
  z-index: 1000;
  animation: popupEnter 0.2s ease-in-out;
}

@keyframes popupEnter {
  from {
    transform: translate(-50%, -60%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.popupTextType {
  font-size: 1.5rem;
}

.popupOpen {
  overflow: hidden;
}

.popup-content {
  text-align: center;
}

.close {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  border: none;
  font-size: 1.5rem;
  transition: 0.3s ease, transform 0.2s ease, color 0.3s ease;
  padding: 5px;
  border-radius: 50%;
  background-color: transparent;
}

.close:hover {
  transform: scale(1.3);
  border-radius: 50%;
  color: blanchedalmond;
}

/*Pfeile*/

.navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
}

.arrow {
  font-size: 40px;
  cursor: pointer;
  vertical-align: middle;
  margin: 0 10px;
}

.arrow:hover {
  transform: scale(1.3);
}

.arrow.left {
  position: absolute;
  left: 10px;
}

.arrow.right {
  position: absolute;
  right: 50px;
}

@media (max-width: 1280px) and (max-height: 800px) {
  .popupImage {
    height: 400px;
  }
}

@media (max-width: 1024px) and (max-height: 600px) {
  .popupImage {
    height: 200px;
  }
}

@media (max-width: 1050px) {
  .popup {
    max-height: 90%;
    max-width: 85%;
  }

  .popupImage {
    max-height: 220px;
  }
}

@media (max-width: 650px) {
  .arrow.right {
    right: 30px;
  }

  .arrow.left {
    left: -10px;
  }
}

@media (max-width: 816px) and (max-height: 400px) {
  .popupImage {
    max-height: 100px;
  }

  .popupHeadline {
    font-size: 18px;
  }

  .popupText {
    font-size: 14px;
  }

  .popupTextType {
    font-size: 16px;
  }
}

@media (max-width: 375px) and (max-height: 667px) {
  .popupImage {
    max-height: 200px;
  }
}
