/* OMION Produkt-Videos – scoped, click-to-load, nicht automatisch laden.
   Farben/Schriften wie omion.eu: Montserrat, Text #596277, Überschriften #242020,
   Akzent/Button #f7c643, Radius 10px. */
.omion-pvideos {
  --omion-pvideos-text: #596277;
  --omion-pvideos-heading: #242020;
  --omion-pvideos-accent: #f7c643;
  --omion-pvideos-dark: #222c39;
  --omion-pvideos-bg: #f4f5f7;
  --omion-pvideos-card: #ffffff;
  --omion-pvideos-radius: 10px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 36px 0 44px;
  background: var(--omion-pvideos-bg);
  font-family: Montserrat, Helvetica, Arial, Lucida, sans-serif;
  color: var(--omion-pvideos-text);
}
.omion-pvideos *,
.omion-pvideos *::before,
.omion-pvideos *::after { box-sizing: border-box; }

.omion-pvideos__inner {
  width: 80%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.omion-pvideos .omion-pvideos__title {
  font-family: Montserrat, Helvetica, Arial, Lucida, sans-serif;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  font-style: normal;
  color: var(--omion-pvideos-heading);
  margin: 0 0 8px;
  padding: 0;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
}

.omion-pvideos__note,
.omion-pvideos__hint {
  margin: 0 0 20px;
  padding: 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--omion-pvideos-text);
}
.omion-pvideos__hint {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
}

.omion-pvideos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: start;
  gap: 20px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.omion-pvideos__card {
  margin: 0;
  padding: 0;
  background: var(--omion-pvideos-card);
  border-radius: var(--omion-pvideos-radius);
  box-shadow: 0 4px 16px rgba(36, 32, 32, 0.08);
  overflow: hidden;
  min-width: 0;
}

.omion-pvideos button.omion-pvideos__media,
.omion-pvideos__media {
  position: relative;
  display: block !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 9 / 16;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: #11161e !important;
  box-shadow: none !important;
  cursor: pointer;
  font: inherit;
  color: inherit;
  line-height: 0 !important;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
}
.omion-pvideos__media:focus-visible {
  outline: 3px solid var(--omion-pvideos-accent);
  outline-offset: 3px;
}

/* hqdefault ist 4:3 / 16:9 mit unscharfen Shorts-Rändern.
   object-fit: cover in 9:16 schneidet auf den Mittelteil (das eigentliche Video).
   position:absolute + !important, damit Divi/WooCommerce img{height:auto} nicht greift. */
.omion-pvideos .omion-pvideos__thumb,
.omion-pvideos img.omion-pvideos__thumb {
  position: absolute !important;
  inset: 0;
  top: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.omion-pvideos__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.omion-pvideos__play svg {
  display: block;
  margin-left: 4px;
  width: 28px;
  height: 28px;
}
.omion-pvideos__media:hover .omion-pvideos__play,
.omion-pvideos__media:focus-visible .omion-pvideos__play {
  background: var(--omion-pvideos-accent);
  transform: scale(1.06);
}

.omion-pvideos__iframe-wrap {
  position: absolute;
  inset: 0;
  background: #111;
}
.omion-pvideos__iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.omion-pvideos__card.is-playing .omion-pvideos__play,
.omion-pvideos__card.is-playing .omion-pvideos__thumb {
  display: none;
}

.omion-pvideos__caption {
  margin: 0;
  padding: 12px 14px 14px;
}
.omion-pvideos__vtitle {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--omion-pvideos-heading);
}

@media (max-width: 767px) {
  .omion-pvideos {
    padding: 28px 0 32px;
  }
  .omion-pvideos__inner {
    width: auto;
    max-width: none;
    margin: 0 16px;
    padding: 0;
  }
  .omion-pvideos .omion-pvideos__title {
    font-size: 22px;
  }
  .omion-pvideos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    justify-content: stretch;
  }
  .omion-pvideos__play {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
  }
  .omion-pvideos__play svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
  }
  .omion-pvideos__caption {
    padding: 10px 10px 12px;
  }
  .omion-pvideos__vtitle {
    font-size: 13.5px;
  }
  .omion-pvideos__hint,
  .omion-pvideos__note {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .omion-pvideos__play { transition: none; }
}
