/* WEDF Videos 1.3.0: Videoraster und Video-Hinweiskasten. 1 Spalte Handy, 2 Tablet, 4 PC. Farben ggf. ans Designsystem anpassen. */
.wedf-videogrid { margin-block: 1rem 2rem; }

.wedf-video-consent {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  padding: .8rem 1rem; margin-bottom: 1.25rem;
  border: 1px solid var(--wedf-border, #d9dee4); border-radius: 10px;
  background: var(--wedf-note-bg, #f3f6fb);
}
.wedf-video-consent p { margin: 0; flex: 1 1 260px; font-size: .95rem; line-height: 1.4; }
.wedf-video-accept {
  appearance: none; cursor: pointer; border: 0; border-radius: 999px;
  padding: .6rem 1.2rem; font: inherit; font-weight: 600;
  background: var(--wedf-accent, #1b4fd8); color: #fff;
}
.wedf-video-accept:hover, .wedf-video-accept:focus-visible { filter: brightness(1.1); }
.wedf-video-accept:focus-visible, .wedf-video-revoke:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.wedf-videogrid.is-consented .wedf-video-consent { display: none; }

.wedf-video-revoke {
  display: none; appearance: none; background: none; border: 0; padding: 0;
  font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; opacity: .7; margin: 0 0 .75rem auto;
}
.wedf-videogrid.is-consented .wedf-video-revoke { display: block; }

.wedf-video-list { display: grid; gap: 1.5rem 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px)  { .wedf-video-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .wedf-video-list { grid-template-columns: repeat(4, 1fr); } }

.wedf-video-item { margin: 0; min-width: 0; }
.wedf-video-frame { position: relative; aspect-ratio: 16 / 9; background: #14171c; border-radius: 10px; overflow: hidden; }
.wedf-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wedf-video-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
}
.wedf-video-ph::before {
  content: "▶"; display: flex; align-items: center; justify-content: center;
  width: 3.2rem; height: 2.3rem; border-radius: .7rem; background: rgba(255, 255, 255, .16); font-size: 1.1rem;
}
.wedf-video-ph:hover::before, .wedf-video-ph:focus-visible::before { background: rgba(255, 255, 255, .3); }
.wedf-video-frame.is-loaded .wedf-video-ph { display: none; }

.wedf-video-item figcaption { margin-top: .5rem; font-size: .95rem; line-height: 1.35; }
.wedf-video-item figcaption a {
  color: inherit; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wedf-video-item figcaption a:hover { text-decoration: underline; }

/* Video-Hinweiskasten im Beitrag (steht hinter "Stell es dir so vor"). Ganze Fläche ist klickbar. */
.wedf-video-hint {
  position: relative; display: flex; align-items: center; gap: 1rem;
  margin: 1.75rem 0; padding: 1rem 1.25rem;
  background: #fff1ee; color: #1f2937;
  border: 1px solid #f3c6bd; border-left: 6px solid #d93025; border-radius: 10px;
}
.wedf-video-hint::before {
  content: "\25B6"; flex: 0 0 48px; width: 48px; height: 48px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; padding-left: 3px;
  border-radius: 50%; background: #d93025; color: #fff; font-size: 1.15rem; line-height: 1;
}
.wedf-video-hint p { margin: 0; flex: 1 1 auto; line-height: 1.45; }
.wedf-video-hint strong { display: block; font-size: 1.05em; }
.wedf-video-hint a { color: #b3261e; font-weight: 600; text-decoration: underline; }
.wedf-video-hint a::after { content: ""; position: absolute; inset: 0; }
.wedf-video-hint:hover { background: #ffe7e2; }
.wedf-video-hint a:focus-visible { outline: 3px solid #d93025; outline-offset: 4px; }

/* Klickfläche über dem Player im Raster (Klick öffnet das große Fenster; Maus-Vorschau läuft darunter weiter) */
.wedf-video-open {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  appearance: none; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer;
}
.wedf-video-open:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }

/* Großes Videofenster */
html.wedf-vmodal-open { overflow: hidden; }
.wedf-vmodal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.wedf-vmodal[hidden] { display: none; }
.wedf-vmodal-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 14, .86); }
.wedf-vmodal-box { position: relative; width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: .6rem; color: #fff; }
.wedf-vmodal-close {
  align-self: flex-end; appearance: none; border: 0; cursor: pointer; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.7rem; line-height: 1; padding: 0;
}
.wedf-vmodal-close:hover, .wedf-vmodal-close:focus-visible { background: rgba(255, 255, 255, .32); }
.wedf-vmodal-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.wedf-vmodal-player { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 10px; overflow: hidden; }
.wedf-vmodal-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wedf-vmodal-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.25rem; text-align: center; background: #14171c; }
.wedf-vmodal-consent p { margin: 0; max-width: 34rem; line-height: 1.45; }
.wedf-vmodal-accept {
  appearance: none; cursor: pointer; border: 0; border-radius: 999px; padding: .7rem 1.4rem; font: inherit; font-weight: 600;
  background: var(--wedf-accent, #1b4fd8); color: #fff;
}
.wedf-vmodal-accept:hover, .wedf-vmodal-accept:focus-visible { filter: brightness(1.15); }
.wedf-vmodal-accept:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.wedf-vmodal-title { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.wedf-vmodal-yt { color: #fff; font-size: .9rem; opacity: .8; text-decoration: underline; align-self: flex-start; }
.wedf-vmodal-yt:hover, .wedf-vmodal-yt:focus-visible { opacity: 1; }
