/* =========================================================
   LEISTUNGEN – 6 Kacheln (3x2 Desktop), komplett responsive
   ========================================================= */

.leistungen-section {
  background: var(--white);
}

/* Grid: 3 Spalten Desktop */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Kachel */
.leistung-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* sorgt für gleich große Boxen */
  overflow: hidden;
  border-radius: 10px;
  display: block;
  text-decoration: none;
  background: #000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateZ(0);
}

.leistung-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild füllt Kachel */
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

/* Overlay Text */
.leistung-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.05)
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.2rem;
  transition: opacity 0.35s ease;
}

.leistung-overlay h3 {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Hover Effekt Desktop */
@media (hover:hover) {
  .leistung-card:hover img {
    transform: scale(1.05);
  }
  .leistung-card:hover .leistung-overlay {
    opacity: 0.95;
  }
}

/* Tablet: 2 Spalten */
@media (max-width: 1024px) {
  .leistungen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 Spalte */
@media (max-width: 600px) {
  .leistungen-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .leistung-card {
    aspect-ratio: 16 / 9; /* etwas breiter fürs Handy */
  }
}
