/* Erklärvideo auf der Startseite: Vorschaubild mit Play-Knopf und Dialog */

.fg-video { margin: 0 0 25px 0; }

.fg-video-teaser {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #1a3a52;
  box-shadow: 0 4px 14px rgba(26, 58, 82, 0.25);
  text-decoration: none;
}

.fg-video-teaser img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.fg-video-teaser:hover img,
.fg-video-teaser:focus-visible img { transform: scale(1.03); }

.fg-video-teaser:focus-visible { outline: 3px solid #f26b1d; outline-offset: 3px; }

.fg-video-play {
  /* In der freien Lücke zwischen Logo und Figuren des Vorschaubilds;
     die Größe folgt der Breite, damit es auch schmal passt. */
  position: absolute;
  left: 50%;
  top: 39%;
  width: 12%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #f26b1d;
  border: 4px solid #fff;
  box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.fg-video-teaser:hover .fg-video-play,
.fg-video-teaser:focus-visible .fg-video-play { transform: translate(-50%, -50%) scale(1.1); }

.fg-video-play svg { width: 40%; height: 40%; margin-left: 8%; fill: #fff; }

.fg-video-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 34% 10px 14px;
  background: linear-gradient(rgba(10, 20, 40, 0), rgba(10, 20, 40, 0.85));
  color: #fff;
  font-weight: bold;
  font-size: 0.95em;
  text-align: left;
}

.fg-video-dialog {
  width: min(92vw, 1100px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #000;
  overflow: visible;
}

.fg-video-dialog::backdrop { background: rgba(5, 12, 25, 0.85); }

.fg-video-dialog video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.fg-video-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1a3a52;
  font-size: 28px;
  line-height: 40px;
  cursor: pointer;
}

.fg-video-close:focus-visible { outline: 3px solid #f26b1d; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .fg-video-teaser img,
  .fg-video-play { transition: none; }
}
