/* Videokarten (akademie.ts): Raster, Zoom beim Ueberfahren, Play-Symbol, Overlay-Player */
.vcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 2rem 0 1rem;
}
@media only screen and (max-width: 64em) {
  .vcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media only screen and (max-width: 40em) {
  .vcards { grid-template-columns: 1fr; }
}
.vcards > div { margin: 0; }
.vcards .vcard {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  transition: box-shadow .3s ease;
}
.vcard:hover,
.vcard:focus-within {
  box-shadow: 0 6px 22px rgba(132, 35, 131, .28);
}
.vcard-link { display: block; height: 100%; }
.vcard-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3e8f3;
}
.vcard-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.vcard:hover .vcard-img,
.vcard:focus-within .vcard-img {
  transform: scale(1.2);
}
.vcard-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .9);
  transition: color .6s ease, transform .6s ease;
  pointer-events: none;
}
.vcard-play svg {
  width: clamp(3.5rem, 7vw, 5rem);
  height: auto;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .55));
}
.vcard:hover .vcard-play,
.vcard:focus-within .vcard-play {
  color: #842383;
  transform: scale(1.08);
}
.vcard-duration {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  padding: .15rem .5rem;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: .75rem;
  line-height: 1.4;
}
.vcard-body {
  padding: 1.1rem 1.25rem 1.4rem;
}
.vcards .vcard-title {
  margin: 0 0 .6rem;
  font-size: 1.3rem;
  line-height: 1.25;
}
.vcards .vcard-title a {
  color: #842383;
  text-decoration: none;
}
/* ganze Karte klickbar */
.vcards .vcard-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.vcards .vcard-text {
  margin: 0;
  color: #555;
  font-size: .9rem;
  line-height: 1.45;
}
.vcards-note {
  margin: 0 0 2rem;
  color: #777;
  font-size: .8rem;
}
.vcards-note a { color: #842383; }
@media (prefers-reduced-motion: reduce) {
  .vcard-img, .vcard-play { transition: none; }
}

/* Overlay-Player */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 0, 20, .85);
}
.vmodal[hidden] { display: none; }
.vmodal-frame {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.vmodal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vmodal-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.vmodal-close:hover,
.vmodal-close:focus { color: #f2c9ef; }
