/* body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
} */


.container {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 10px;
  justify-content: center;
  margin-top: 5%;
  margin-left: 15%;
  
}
.card {
  position: relative;
  width: 300px;
  height: 350px;
  background-color: #f3f3f3;
  border: 1px solid #5a5958;
  filter: drop-shadow(0.3rem 0.3rem 0.2rem  #5a5958);
  border-radius: 10px;
  transition: transform 0.3s ease, z-index 0.3s ease;
  margin-left: -15%; /* Überlappung */
}

.card img {
  /* width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover; */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.card1 {
   
  z-index: 1;
}

.card2 {
  z-index: 2;
}

.card3 {
  z-index: 3;
}

.card4 {
    z-index: 4;
  }

.card:hover {
  transform: translateY(-10px) rotate3d(1, 1, 1, 5deg);
  margin-right: 5%;
  /* z-index: -10;  */
}

.card3:hover {
  transform: translateY(-10px) rotate3d(1, 1, 1, 5deg);

  /* z-index: 1; Karte nach vorne bringen */
}
.card a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card .text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border-radius: 5px;
}
