.image-comparison-container {
  position: relative;
  margin: auto;
  width: auto;
  height: 45vh;
  max-width: 100%;
  overflow: hidden;
  transition: transform 0.5s ease;
  margin-top: 50px;
  margin-left: 0;
  margin-right: auto;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

#before-image, #after-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1vw;
}

#after-image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0;
}

.image-comparison-container:hover {
  transform: scale(1.1);
}

.image-wrapper:hover #before-image {
  opacity: 0;
}

.image-wrapper:hover #after-image {
  opacity: 1;
}

@media (max-width: 768px) {
  .image-comparison-container {
    width: 94%;
    height: auto;
    justify-content: center;
    align-items: center;
  }

  #before-image, #after-image {
    width: 94%;
    height: auto;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .image-comparison-container {
    width: 94%;
    height: auto;
    justify-content: center;
    align-items: center;
  }

  #before-image, #after-image {
    width: 94%;
    height: auto;
  }
}

@media (min-width: 1024px) and (max-width: 1200px) {
  .image-comparison-container {
    width: 94%;
    height: auto;
    justify-content: center;
    align-items: center;
  }

  #before-image, #after-image {
    width: 94%;
    height: auto;
  }
}

.zwischenbilder {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 50px;
    margin: 20px 0;
}

.zwischenbilder img {
    height: 35vh;
    border-radius: 1vw;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.zwischenbilder img:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .zwischenbilder {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .zwischenbilder img {
        width: 90%;
        height: auto;
        border-radius: 2vw;
    }
}

@media (max-width: 480px) {
    .zwischenbilder {
        gap: 20px;
    }
    
    .zwischenbilder img {
        width: 95%;
        border-radius: 3vw;
    }
}

.video-container {
  position: relative;
  max-width: 50%;
  border-radius: 1vw;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.5s ease;
  margin-left: 0;
  margin-right: auto;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1vw;
}

.video-container:hover {
  transform: scale(1.1);
}

.pause-button {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 10;
}

.pause-button img {
  width: 35px !important;
  height: 35px !important;
}

.pause-button:hover {
  transform: translateX(-50%) scale(1.15);
}

.video-container:hover .pause-button {
  display: block;
}

@media (max-width: 768px) {
  .pause-button {
    bottom: 10px !important;
  }

  .pause-button img {
    width: 30px !important;
    height: 30px !important;
  }

  .video-container {
    width: 94%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .pause-button {
    bottom: 12px !important;
  }

  .pause-button img {
    width: 32px !important;
    height: 32px !important;
  }

  .video-container {
    width: 94%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}
