/* Standort-Video: Buttons + Lightbox auf den Standortseiten.
   Wird nur bei template == "standort" geladen (layout.antlers.html).
   Farben aus site.scss: $blue #5dc3e6, $dark #074154. */

/* Pill-Button auf dem Titelbild (gleicher Ort/Look wie der Zoom-Button) */
.stage-video-btn {
  position: absolute;
  bottom: 94px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 18px;
  color: #074154;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
}
.stage-video-btn:hover {
  background: rgba(255, 255, 255, 0.95);
}
.stage-video-btn svg {
  flex-shrink: 0;
}

/* Button-Zeile im Info-Bereich: nimmt zwei Buttons nebeneinander auf */
.standort--main .btn--wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Outline-Variante neben .btn--blue (Maße von .btn: 14px/33px Padding,
   hier minus 2px Rahmen = gleiche Außenhöhe) */
.btn--video-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-style: normal;
  font-weight: 600;
  font-size: 15px;
  line-height: 100%;
  border-radius: 10px;
  color: #074154;
  padding: 12px 31px;
  background: transparent;
  border: 2px solid #5dc3e6;
  cursor: pointer;
  transition: ease 0.1s;
}
.btn--video-ghost:hover {
  background: #5dc3e6;
  color: white;
}
.btn--video-ghost svg {
  flex-shrink: 0;
}

/* Video-Lightbox (analog zur Bilder-Lightbox .type-info-lightbox) */
.standort-video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 19999;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Fester 16:9-Rahmen (Format-Vorgabe der Videos), Breite zusätzlich über
   die Höhe gedeckelt — so entstehen nie seitliche schwarze Balken */
.standort-video-lightbox video {
  width: min(92vw, 1100px, calc(82vh * 16 / 9));
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
  outline: none;
}
.standort-video-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}
.standort-video-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Buchungsseite: Video-Kachel im Standort-Info-Popup
   (erste Slider-Kachel = Cover mit Play-Overlay; Video läuft im selben Feld) */
.standort-info-slide--video .standort-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #074154;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.standort-info-slide--video .standort-video-play:hover {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.06);
}
.standort-info-slide--video .standort-video-play svg {
  margin-left: 3px;
}
.standort-info-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
  outline: none;
}
.standort-info-slide--playing img,
.standort-info-slide--playing .standort-video-play {
  display: none;
}

/* Mobil/Tablet: rechts unten, knapp über der Welle. Die Welle ist ein
   volle-Breite-SVG mit Ratio 77/1440 (≈5.35vw hoch, translateY 10px) und
   mobil 80px unter dem Inhalt — bottom an die Wellenhöhe gekoppelt ergibt
   auf jeder Breite ~14px Luft zur Welle und ~40px zum Preis-Text. */
@media (max-width: 990px) {
  .stage-video-btn {
    bottom: calc(5.35vw + 4px);
    right: 16px;
  }
}

@media (max-width: 600px) {
  .standort-video-lightbox video {
    width: 100vw;
    border-radius: 0;
  }
  .stage-video-btn {
    font-size: 13px;
    padding: 0 14px;
  }
  /* Kurzform "▶ Video" — der volle Text macht den Button mobil zu breit */
  .stage-video-btn__long {
    display: none;
  }
  /* Popup-Kachel wird schmaler als 16:9 — ganzes Video zeigen,
     Balken oben/unten statt seitlichem Beschnitt */
  .standort-info-slide video {
    object-fit: contain;
  }
}
