/* =========================================================
   Video Widget – Reset Version (YouTube / Vimeo only)
   ========================================================= */

/* Root */
.fsb-widget--video {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

/* Aspect Ratio Container */
.fsb-video__ratio {
  position: relative;
  width: 100%;
  overflow: hidden;
}
/* =========================================
   Placeholder
   ========================================= */

.fsb-video__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 0px;
  cursor: default;
}

/* Poster Image */
.fsb-video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
}

/* Empty Poster Fallback */
.fsb-video__poster--empty {
  background: #eee;
  width: 100%;
  height: 100%;
}

/* Play Button */
.fsb-video__play {
  appearance: none;
  border: 0;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: rgba(0,0,0,.65);
  color: #fff;
  border-radius: 8px;
  line-height: 1;
}

/* CSS Play Icon */
.fsb-video__play::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 12px solid currentColor;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.fsb-video__play:hover {
  background: rgba(0,0,0,.75);
}
.fsb-video__play:focus {
  outline: 2px solid rgba(255,255,255,.8);
  outline-offset: 2px;
}

/* Datenschutz Hinweis */
.fsb-video__hint {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.7;
}

/* Error */
.fsb-video__error {
  margin-top: 10px;
  font-size: 13px;
}

/* =========================================
   Loaded State
   ========================================= */

.fsb-widget--video.is-loaded .fsb-video__placeholder {
  display: none;
}

/* =========================================
   Embedded iframe
   ========================================= */

.fsb-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* Overlay muss über dem Poster liegen */
.fsb-video__play,
.fsb-video__hint,
.fsb-video__error {
  position: relative;
  z-index: 2;
}

/* Privacy Hinweis im Overlay (unten angedockt) */
.fsb-video__privacy{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.30);
  border-radius: 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}

.fsb-video__privacy-link{
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
