/* ==========================================================================
   Kanäle & Videos (Bausteine folgeUns, videoListe – scripts/lib/blocks/medien.mjs)
   Funktioniert auf hellen und dunklen Sektionen (.on-dark).
   ========================================================================== */

/* ---------- Folge uns ---------- */
.folge { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.folge__titel { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.on-dark .folge__titel { color: var(--muted-on-dark); }
.folge__liste { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
/* Startseite: alle Kanäle nach Bereich (kanalUebersicht) */
.folge--uebersicht { margin-top: clamp(28px, 3vw, 40px); padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--line, rgba(0, 0, 0, .1)); }
.folge__gruppen { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.folge__gruppe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.folge__bereich { font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.folge__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--paper);
  color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease);
}
.folge__link svg { width: 20px; height: 20px; flex: none; }
.folge__link:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.folge__link--youtube svg { color: #e00; }
.on-dark .folge__link { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
.on-dark .folge__link:hover { border-color: var(--red-bright); color: #fff; background: rgba(255, 255, 255, .12); }
/* helle Kästen in dunklen Sektionen (Team-Details auf /mixed/: .bx-team__box) behalten die hellen Knöpfe */
.on-dark .bx-team__box .folge__link { background: var(--paper, #fff); border-color: var(--border); color: var(--ink); }
.on-dark .bx-team__box .folge__link:hover { border-color: var(--red); color: var(--red); background: var(--paper, #fff); }

/* ---------- Videos ---------- */
.videos { margin-top: clamp(24px, 3vw, 36px); }
.videos__kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.videos__titel { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); text-transform: uppercase; }
/* 4 Videos: 1 · 2×2 · 4 Spalten – nie ein einzelnes Video in der letzten Reihe */
.videos__raster { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .videos__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .videos__raster { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vid { min-width: 0; }
.vid__media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg, #1d1d22, #0f0f12); box-shadow: var(--shadow-sm);
}
.vid__media img, .vid__leer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); pointer-events: none; }
.vid__play {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%;
  border: 0; background: none; color: #fff; cursor: pointer; text-decoration: none;
}
/* Kennzeichen „Short“ (öffnet hochkant in der Lightbox) */
.vid__short {
  position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: var(--red);
  color: #fff; font: 800 .72rem/1.3 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
}
.vid__play svg {
  width: 64px; height: 64px; padding: 18px 16px 18px 20px; border-radius: 50%;
  background: var(--red); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .25s var(--ease), background-color .2s;
}
.vid__play:hover svg { transform: scale(1.08); background: var(--red-bright); }
.vid__play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: var(--radius); }
.vid__meta { margin: 10px 0 2px; font-size: .82rem; color: var(--muted); }
.vid__meta a { color: inherit; }
.vid__titel { margin: 0; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.videos__hinweis { margin: 14px 0 0; font-size: .8rem; color: var(--muted); max-width: 70ch; }
.on-dark .vid__meta, .on-dark .videos__hinweis { color: var(--muted-on-dark); }
.on-dark .videos__hinweis a { color: #fff; }
/* helle Karten in dunklen Sektionen (aufgeklappte Team-Details auf /mixed/) – Farben wie auf hellem Grund */
.on-dark .tk-detail .videos__titel { color: var(--ink); }
.on-dark .tk-detail .vid__meta, .on-dark .tk-detail .videos__hinweis { color: var(--muted); }
.on-dark .tk-detail .vid__meta a, .on-dark .tk-detail .videos__hinweis a { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .vid__play svg, .folge__link { transition: none; } }
