/* ==========================================================================
   Video-Fallstudie (Vorher/Nachher-Video im Projekte-Abschnitt)
   Genutzt auf /webdesign-koeln, /lp/webdesign, /lp/webdesign-koeln.
   YouTube lädt erst beim Klick (Vorschaubild vom eigenen Server, siehe datenschutz.html).
   Farben nur aus den CI-Variablen in style.css.
   ========================================================================== */
.vf { max-width: 1040px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.vf-kopf { text-align: center; margin-bottom: 1.4rem; }
.vf-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-neon-1);
}
.vf-kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-neon-1); box-shadow: 0 0 0 4px rgba(61,224,41,.18);
}
.vf-kopf h3 { margin: .55rem auto 0; max-width: 760px; font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.2; }
.section-dark .vf-kopf h3 { color: #fff; }
.section-light .vf-kicker, .vf--hell .vf-kicker { color: var(--color-dark-2); }

/* Player-Karte */
.vf-player {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 2px solid rgba(61,224,41,.55); border-radius: 18px; overflow: hidden;
  background: var(--color-dark-1); cursor: pointer;
  box-shadow: 0 0 0 6px rgba(61,224,41,.08), 0 0 48px rgba(61,224,41,.28), 0 24px 60px rgba(0,0,0,.45);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.vf-player:hover, .vf-player:focus-visible {
  transform: translateY(-4px); border-color: var(--color-neon-1); outline: none;
  box-shadow: 0 0 0 6px rgba(61,224,41,.16), 0 0 72px rgba(61,224,41,.45), 0 30px 70px rgba(0,0,0,.5);
}
.vf-player img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, filter .35s ease; }
.vf-player:hover img { transform: scale(1.025); filter: brightness(.92); }
.vf-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  width: clamp(64px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--color-neon-1); color: var(--color-dark-1);
  box-shadow: 0 0 0 10px rgba(61,224,41,.22), 0 10px 30px rgba(0,0,0,.45);
  transition: transform .3s ease;
}
.vf-play::before { /* ruhiges Pulsieren */
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(61,224,41,.6); animation: vf-puls 2.4s ease-out infinite;
}
.vf-play svg { width: 38%; height: 38%; margin-left: 8%; fill: currentColor; }
.vf-player:hover .vf-play { transform: scale(1.08); }
@keyframes vf-puls { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }

.vf-schilder { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 2; display: flex; flex-wrap: wrap; gap: .45rem; }
.vf-schild {
  padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.2;
  background: rgba(13,43,26,.82); color: #fff; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px);
}
.vf-schild--neon { background: var(--color-neon-1); color: var(--color-dark-1); border-color: transparent; }
.vf-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vf-player.vf-laeuft { cursor: default; transform: none; }

/* Fakten */
.vf-fakten { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.vf-fakten li {
  display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 14px;
  font-size: .95rem; line-height: 1.45;
  background: rgba(255,255,255,.06); border: 1px solid rgba(61,224,41,.22); color: var(--color-light-2);
}
.section-light .vf-fakten li, .vf--hell .vf-fakten li { background: #fff; color: var(--color-text, #1A1A1A); border-color: rgba(27,122,74,.18); box-shadow: 0 6px 20px rgba(13,43,26,.06); }
.vf-fakten li::before {
  content: "✓"; flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .85rem; background: var(--color-neon-1); color: var(--color-dark-1);
}
.vf-fakten b { color: #fff; }
.section-light .vf-fakten b, .vf--hell .vf-fakten b { color: var(--color-dark-1); }

/* Transkript */
.vf-transkript { margin-top: 1rem; border-radius: 14px; border: 1px solid rgba(61,224,41,.22); background: rgba(255,255,255,.04); }
.section-light .vf-transkript, .vf--hell .vf-transkript { background: #fff; border-color: rgba(27,122,74,.18); }
.vf-transkript > summary {
  cursor: pointer; list-style: none; padding: .95rem 1.2rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center;
  color: var(--color-neon-1); min-height: 44px;
}
.section-light .vf-transkript > summary, .vf--hell .vf-transkript > summary { color: var(--color-dark-2); }
.vf-transkript > summary::-webkit-details-marker { display: none; }
.vf-transkript > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; transition: transform .25s ease; }
.vf-transkript[open] > summary::after { transform: rotate(45deg); }
.vf-transkript-text { padding: 0 1.2rem 1.2rem; font-size: .95rem; line-height: 1.7; color: var(--color-light-2); }
.section-light .vf-transkript-text, .vf--hell .vf-transkript-text { color: #3b4a42; }
.vf-transkript-text p { margin: 0 0 .8rem; }

.vf-weiter { text-align: center; margin: 0 0 1.4rem; font-weight: 700; color: var(--color-light-2); }
.section-light .vf-weiter { color: var(--color-dark-1); }

@media (max-width: 767px) {
  .vf-player { border-radius: 14px; }
  .vf-fakten { grid-template-columns: 1fr; gap: .6rem; }
  .vf-schilder { left: .6rem; right: .6rem; bottom: .55rem; }
  .vf-schild { font-size: .7rem; padding: .25rem .55rem; }
  .vf-schild--optional { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vf-play::before { animation: none; }
  .vf-player, .vf-player img, .vf-play { transition: none; }
}
