/* ==================================================================
   Kundenvideos — Raster der Videos aus der YouTube-Playlist
   Gehoert zu mu-plugins/tr-kundenvideos.php
   ================================================================== */

.tr-kv-raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  margin: 40px 0 0;
}

.tr-kv-kachel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---- Vorschaubild mit Abspielknopf ---- */

.tr-kv-bild {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid #1A1A1A;
  border-radius: 6px;
  overflow: hidden;
  background: #111111;
  cursor: pointer;
  appearance: none;
  transition: border-color .2s ease;
}

.tr-kv-bild:hover,
.tr-kv-bild:focus-visible {
  border-color: #8B1A1A;
  outline: none;
}

.tr-kv-bild img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tr-kv-knopf {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  pointer-events: none;
  line-height: 0;
}

.tr-kv-knopf svg {
  display: block;
  width: 62px;
  height: 44px;
}

.tr-kv-knopf-grund {
  fill: #6A160C;
  fill-opacity: .88;
  transition: fill-opacity .2s ease;
}

.tr-kv-knopf-pfeil {
  fill: #FFFFFF;
}

.tr-kv-bild:hover .tr-kv-knopf-grund,
.tr-kv-bild:focus-visible .tr-kv-knopf-grund {
  fill-opacity: 1;
}

.tr-kv-dauer {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .78);
  color: #F0F0F0;
  font-size: 13px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* ---- Beschriftung ---- */

.tr-kv-titel {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.35;
  color: #F0F0F0;
}

.tr-kv-meta {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.4;
  color: #888888;
}

.tr-kv-fahrzeug {
  color: #BBBBBB;
}

/* ---- Nach dem Klick: das eingebettete Video ---- */

.tr-kv-rahmen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #8B1A1A;
  border-radius: 6px;
  overflow: hidden;
  background: #000000;
}

.tr-kv-rahmen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Schmalere Fenster ---- */

@media (max-width: 1000px) {
  .tr-kv-raster {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
  }
}

@media (max-width: 781px) {
  .tr-kv-raster {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 32px;
  }

  .tr-kv-titel {
    font-size: 17px;
  }

  .tr-kv-knopf svg {
    width: 56px;
    height: 40px;
  }
}
