.animation-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: flex-start;
  overflow: unset;
}

.animation-container img {
  width: 100%;
  height: auto;
  filter: brightness(95%);
}

.animation-container-flip {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: unset;
  width: 100%;
}

.animation-sub-container-flip {
  height: unset;
  display: flex;
  justify-content: flex-start;
  z-index: 1;
  animation: animation-sub-container-flip 2s forwards ease-in-out;
  background: #fff;
}

@keyframes animation-sub-container-flip {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(50%, 0);
  }
}

.animation-modal-flip {
  display: grid;
  place-items: center;
  height: unset;
  perspective: 2000px;
  z-index: 2;
}

.front-flip,
.back-flip,
.open-flip {
  grid-area: 1 / 1;
  height: unset;
  box-sizing: border-box;
}

.front-flip {
  cursor: pointer;
  z-index: 3;
  backface-visibility: hidden;
  transform-origin: 0% 50%;
  transform: rotateY(-180deg);
  animation: front-flip 2s forwards ease-in-out;
}

.back-flip {
  transform-origin: 0% 50%;
  transform: rotateY(-180deg);
  animation: back-flip 2s forwards ease-in-out;
}

.back-flip img {
  transform: scaleX(-1);
  width: 100%;
}

.open-flip {
  background: #f2f2f2;
}

@keyframes front-flip {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(-180deg);
  }
}

@keyframes back-flip {
  from {
    transform: rotateY(0deg);
    background: transparent;
  }

  to {
    transform: rotateY(-180deg);
    background: #f2f2f2;
  }
}

@media (max-width: 848px) {
  .animation-sub-container-flip,
  .front-flip,
  .back-flip {
    /* Deaktiviert die Animationen komplett */
    animation: none !important;
    /* Verhindert ungewollte Transformationen im Ausgangszustand */
    transform: none !important;
  }
}

.animation-container img {
  width: 100%;
  height: auto;
}

@media (max-width: 1048px) {
  .animation-sub-container-flip {
    max-width: 300px;
    width: 80%;
    height: unset;
  }
}
