/* =========================================
   Equipment Kacheln
========================================= */

.tile-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.tile {
  position: relative;
  display: block;
  width: 100%;

  /* 16:9 Seitenverhältnis (9 / 16 = 56.25%) */
  height: 0;
  padding-top: 56.25%;

  border-radius: 18px;
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  text-decoration: none;
  color: #fff;

  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, .08) 0%,
    rgba(0, 0, 0, .55) 85%
  );
}

/* Inhalt innerhalb der Kachel */
.tile .inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem 1.25rem;
  z-index: 1;
  display: grid;
  gap: .25rem;
}

.tile-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.tile-sub {
  margin: 0;
  opacity: .95;
  line-height: 1.35;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

/* Responsive Layout */
@media (max-width: 1024px) {
  .tile-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .tile-grid {
    grid-template-columns: 1fr;
  }
  .tile-title {
    font-size: 1.2rem;
  }
}
