.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  border: 1px solid #ccc;
  padding: 8px;
}

.tile,
.tile::before {
  box-sizing: border-box;
}

.tile {
  min-width: 0;
}

.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;

  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;

  background-image: var(--bg);
  background-size: cover;
  background-position: center;

  text-decoration: none;
  color: #fff;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Play-Button im Normalzustand unsichtbar */
.tile-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background: rgba(0, 0, 0, 0.35);

  width: 76px;
  height: 76px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 28px;
  padding-left: 4px;

  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.tile:hover .tile-play {
  opacity: 1;
}

/* Beim Hover Text ausblenden */
.tile:hover .tile-text {
  opacity: 0;
}

/* Beim Hover Play-Button einblenden */
.tile:hover .tile-play {
  opacity: 1;
}

/* Hover: Abdunklung entfernen */
.tile:hover::before {
  opacity: 0;
}

/* Text beim Hover ausblenden */
.tile-text {
  position: relative;
  z-index: 1;
  padding: 20px;
  font-size: 75%;
/*  transition: opacity 0.3s ease;*/
}

.tile:hover .tile-text {
  opacity: 0;
}

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

@media (max-width: 600px) {
  .tile-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }

  .tile-text {
    font-size: 18px;
  }
}
