.torten {
  padding: 120px 20px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #fdfbfd 18%,
    #f7f2f8 100%
  );
}

.torten .text-info-inner {
  max-width: 760px;
  margin: 0 auto 70px;
  text-align: center;
}

.torten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.torten-card {
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(77, 57, 84, 0.1);
  border: 1px solid rgba(77, 57, 84, 0.08);

  display: flex;            /* 🔥 wichtig */
  flex-direction: column;   /* 🔥 wichtig */
}

.torten-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(77, 57, 84, 0.16);
}

.torten-card-visual {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(77, 57, 84, 0.08) 0%,
    rgba(77, 57, 84, 0.02) 100%
  );
}

/* Hintergrundbild */
.torten-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1);
  z-index: 1;
}

/* Optionales Overlay für bessere Tiefe */
.torten-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(77, 57, 84, 0.08) 0%,
    rgba(77, 57, 84, 0.35) 100%
  );
  z-index: 2;
}

/* Torte vorne */
.torten-front {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  max-width: 78%;
  max-height: 88%;
  object-fit: contain;
  z-index: 3;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
  transition: transform 0.35s ease;
}

.torten-card:hover .torten-front {
  transform: translateX(-50%) translateY(-6px) scale(1.03);
}

.torten-card-body {
  padding: 28px 26px 30px;
  text-align: center;

  display: flex;           
  flex-direction: column;   
  flex-grow: 1;             
}

.torten-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: rgb(77, 57, 84);
  margin-bottom: 14px;
}

.torten-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #6a5c70;
  margin-bottom: 22px;
}

.torten-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: #e6a96d;
  color: #2b1f30;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;   
}

.torten-btn:hover {
  background: #d79658;
  color: #2b1f30;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .torten-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .torten {
    padding: 90px 20px;
  }

  .torten-grid {
    grid-template-columns: 1fr;
  }

  .torten-card-visual {
    height: 280px;
  }
}