/* Hero-Video: Video liegt deckungsgleich über dem Produktfoto und blendet erst
   beim Abspielen ein. Ohne JS / ohne Video bleibt einfach das Bild. */
.heroVidWrap { position: relative; }
.heroVidWrap .heroVid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .25s ease;
  pointer-events: none; background: transparent;
}
.heroVidWrap.isPlaying .heroVid { opacity: 1; }

/* Landingpages (/einzelkarte, /xl-karte): gleiche Maße/Rundung wie das Bild */
.lpFigure .heroVidWrap { max-width: 420px; margin: 0 auto; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.lpFigure .heroVidWrap img { border: 0; box-shadow: none; border-radius: 0; max-width: none; }
@media (max-width: 820px) {
  .lpFigure .heroVidWrap { max-width: 340px; }
}

/* Startseite: Slide als Container (Bild füllt, Video darüber) */
.heroImageWrap .heroSlideVid { position: relative; overflow: hidden; }
.heroImageWrap .heroSlideVid > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Handy: Video direkt unter die Überschrift ziehen (sonst erst nach ~1000 px sichtbar).
   Reihenfolge: Überschrift → Video → Text → Kaufbox. */
@media (max-width: 820px) {
  .lpHeroVideo .lpHeroGrid { gap: 0; }
  .lpHeroVideo .lpHeroCopy { display: contents; }
  .lpHeroVideo .lpHeroCopy h1 { order: 1; margin-bottom: 14px; }
  .lpHeroVideo .lpFigure { order: 2; margin-bottom: 18px; }
  .lpHeroVideo .lpHeroCopy > p { order: 3; }
  .lpHeroVideo .pdBuy { order: 4; }
  .lpHeroVideo .lpFigure .heroVidWrap { max-width: 260px; }
  .lpHeroVideo .lpFigure figcaption { margin-top: 6px; }
}

/* Kartenseiten: ganze Szene im Hochformat 2:3 (Titel oben + Sprechblasen unten sichtbar).
   Das Foto wird wie das erste Videobild mittig auf 2:3 zugeschnitten. */
/* Nur für Seiten mit 2:3-Video (Klasse heroVid23) – so passt eine alte, zwischengespeicherte
   Seite (4:5-Video) nie zu dieser Regel und umgekehrt. */
.lpHeroVideo .lpFigure .heroVidWrap.heroVid23 { max-width: 360px; aspect-ratio: 2 / 3; }
.lpHeroVideo .lpFigure .heroVidWrap.heroVid23 img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; height: 100%; }
@media (max-width: 820px) {
  .lpHeroVideo .lpFigure .heroVidWrap.heroVid23 { max-width: 280px; }
}

/* ---------- Preisschild (Anhänger an der oberen rechten Ecke des Videos) ---------- */
.szStage { position: relative; max-width: 360px; margin: 0 auto; }
@media (max-width: 820px) { .szStage { max-width: 280px; } }
.szPriceTag {
  position: absolute; top: -12px; right: -26px; z-index: 6; display: block; text-decoration: none;
  transform: rotate(9deg); transform-origin: 14px 50%;
  filter: drop-shadow(0 8px 14px rgba(120, 20, 60, .32));
  animation: szTagSwing 2.6s ease-in-out .8s 2;
}
.szPriceTag::before {               /* Schnur zum Loch */
  content: ""; position: absolute; left: -16px; top: 18px; width: 34px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(140, 100, 70, 0), rgba(140, 100, 70, .85));
  transform: rotate(-38deg); transform-origin: right center;
}
.szPtBody {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 122px; height: 72px; padding-left: 16px; box-sizing: border-box; color: #fff; line-height: 1;
  background: linear-gradient(135deg, #e94b7d 0%, #ff6f9f 55%, #ffb36b 100%);
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
  -webkit-mask: radial-gradient(circle at 13px 50%, transparent 4.5px, #000 5px);
          mask: radial-gradient(circle at 13px 50%, transparent 4.5px, #000 5px);
}
.szPtBody::after {                  /* feine gestrichelte Innenkante */
  content: ""; position: absolute; inset: 5px 6px 5px 24px; border: 1.5px dashed rgba(255, 255, 255, .55); border-radius: 7px;
}
.szPtTop { font-size: 9.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; opacity: .92; }
.szPtPrice { font-size: 23px; font-weight: 900; letter-spacing: -.5px; margin: 3px 0 2px; text-shadow: 0 1px 0 rgba(150, 30, 70, .35); }
.szPtNote { font-size: 9.5px; font-weight: 800; opacity: .95; }
.szPriceTag:hover .szPtBody { filter: brightness(1.05); }
.szPriceTag:focus-visible { outline: 3px solid rgba(233, 75, 125, .5); outline-offset: 3px; border-radius: 8px; }
@keyframes szTagSwing { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .szPriceTag { animation: none; } }
@media (max-width: 420px) {
  .szPriceTag { right: -18px; top: -10px; }
  .szPtBody { width: 104px; height: 62px; }
  .szPtPrice { font-size: 19px; }
  .szPtTop, .szPtNote { font-size: 8.5px; }
}

/* ---------- Pause-Taste (unten links im Video; hält alle Hero-Videos der Seite an) ---------- */
.heroPauseBtn {
  position: absolute; left: 10px; bottom: 10px; z-index: 5;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: #fff; background: rgba(25, 20, 35, .42);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18); opacity: .8;
  transition: opacity .2s ease, background .2s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.heroPauseBtn:hover { opacity: 1; background: rgba(25, 20, 35, .6); }
.heroPauseBtn:active { transform: scale(.92); }
.heroPauseBtn:focus-visible { opacity: 1; outline: 3px solid rgba(233, 75, 125, .6); outline-offset: 2px; }
.heroPauseBtn svg { display: block; }
.heroVidWrap.heroDone .heroPauseBtn { display: none; }
@media (max-width: 420px) { .heroPauseBtn { width: 30px; height: 30px; left: 8px; bottom: 8px; } }
