/* OMION / SMD Adventsblock 1.0.0 – keine externen Fonts/Skripte, CLS-arm */
.oab {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

.oab *,
.oab *::before,
.oab *::after {
  box-sizing: border-box;
}

.oab-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem 2.75rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.oab-media {
  flex: 0 0 auto;
  flex-shrink: 0;
}

.oab-player {
  position: relative;
  aspect-ratio: 9 / 16;
  width: min(280px, calc(56vh * 9 / 16));
  min-width: 200px;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.oab-video,
.oab-poster,
.oab-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.oab-play picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.oab-video,
.oab-poster {
  display: block;
  object-fit: cover;
  object-position: center top;
}

.oab-play {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.oab-play:focus-visible {
  outline: 3px solid #f7c643;
  outline-offset: -3px;
}

.oab-theme-smd .oab-play:focus-visible {
  outline-color: #F7BE16;
}

.oab-play-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(247, 198, 67, 0.95);
  color: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.oab-theme-smd .oab-play-icon {
  background: rgba(247, 190, 22, 0.96);
  color: #1B1606;
}

.oab-play:hover .oab-play-icon,
.oab-play:focus-visible .oab-play-icon {
  transform: scale(1.06);
}

.oab-play-icon svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
  fill: currentColor;
}

.oab-player.is-playing .oab-play {
  display: none;
}

.oab-body {
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 36rem;
}

.oab-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.oab-body h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.2;
  font-weight: 800;
}

.oab-text,
.oab-note {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.oab-note {
  font-size: 0.98rem;
  opacity: 0.92;
}

.oab-cta-wrap {
  margin: 1.1rem 0 0.7rem;
}

.oab-cta {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  min-height: 44px;
}

.oab-cta:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.oab-ki {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.72;
}

/* OMION: dunkel + Gelb #f7c643, wie News-Ticker */
.oab-theme-omion {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(247, 198, 67, 0.16), transparent 52%),
    linear-gradient(180deg, #242018 0%, #1c1c1c 100%);
  color: #fff;
  border-top: 3px solid #f7c643;
  border-bottom: 3px solid #f7c643;
}

.oab-theme-omion .oab-kicker {
  color: #f7c643;
}

.oab-theme-omion .oab-cta {
  background: #f7c643;
  color: #1a1a1a;
}

.oab-theme-omion .oab-cta:hover,
.oab-theme-omion .oab-cta:focus-visible {
  background: #ffd56a;
}

/* SMD: Navy + Sonne #F7BE16 aus der Live-Seite */
.oab-theme-smd {
  background:
    radial-gradient(ellipse at 88% 0%, rgba(247, 190, 22, 0.18), transparent 50%),
    linear-gradient(180deg, #12305A 0%, #0B1F3C 100%);
  color: #FFFDF8;
  border-top: 3px solid #F7BE16;
  border-bottom: 3px solid #F7BE16;
}

.oab-theme-smd .oab-kicker {
  color: #F7BE16;
}

.oab-theme-smd .oab-cta {
  background: #F7BE16;
  color: #1B1606;
}

.oab-theme-smd .oab-cta:hover,
.oab-theme-smd .oab-cta:focus-visible {
  background: #ffd34a;
}

@media (max-width: 700px) {
  .oab-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.15rem;
    padding: 1.15rem 1rem 1.35rem;
  }

  .oab-player {
    width: min(200px, 58vw, calc(40vh * 9 / 16));
    min-width: 0;
    margin: 0 auto;
  }

  .oab-body {
    max-width: 36rem;
  }

  .oab-cta-wrap {
    margin-top: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oab-play-icon {
    transition: none;
  }
}

.oab.oab-theme-omion .oab-body h2,
.oab.oab-theme-omion .oab-text,
.oab.oab-theme-omion .oab-note,
.oab.oab-theme-omion .oab-ki {
  color: #fff !important;
}
.oab.oab-theme-omion .oab-kicker {
  color: #f7c643 !important;
}
.oab.oab-theme-omion .oab-cta {
  background: #f7c643 !important;
  color: #1a1a1a !important;
}

.oab.oab-theme-smd .oab-body h2,
.oab.oab-theme-smd .oab-text,
.oab.oab-theme-smd .oab-note,
.oab.oab-theme-smd .oab-ki {
  color: #FFFDF8 !important;
}
.oab.oab-theme-smd .oab-kicker {
  color: #F7BE16 !important;
}
.oab.oab-theme-smd .oab-cta {
  background: #F7BE16 !important;
  color: #1B1606 !important;
}

@media (max-width: 400px) {
  .oab-inner {
    gap: 0.7rem;
    padding: 0.85rem 0.85rem 1.05rem;
  }
  .oab-player {
    width: min(168px, 50vw, calc(34vh * 9 / 16));
    min-width: 0;
  }
  .oab-text,
  .oab-note {
    margin-bottom: 0.4rem;
  }
  .oab-cta-wrap {
    margin-top: 0.55rem;
  }
}

/* Schwebende Buttons: SMD .wa-fab ist 58×58 px, right/bottom 24 px.
   Abstand = Buttonhöhe + Rand + etwas Luft. Gilt auch für OMION (Scroll-nach-oben). */
@media (max-width: 767px) {
  .oab {
    padding-bottom: 112px;
  }
  .oab-inner {
    padding-bottom: 0.75rem;
    padding-right: 112px;
  }
}
