/* YouTube-Platzhalter: Video lädt erst nach Klick (rh-video.js) */
.rh-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 210px;
  overflow: hidden;
  border-radius: 8px;
  background: #000F42;
  color: #fff;
}

.rh-video.is-loaded {
  background: #000;
}

/* Die Galerie von fluid_styled_content richtet sich nach der Breite ihres
   Inhalts (float/table). Der Platzhalter hat keine eigene Breite, ohne diese
   Regeln fällt der Videorahmen nach dem Klick auf 0 x 0 Pixel zusammen. */
.ce-gallery:has(.rh-video) .ce-outer,
.ce-gallery:has(.rh-video) .ce-inner,
.ce-gallery:has(.rh-video) .ce-row,
.ce-gallery:has(.rh-video) .ce-column,
.ce-gallery:has(.rh-video) figure.video,
.ce-gallery:has(.rh-video) .video-embed {
  display: block;
  float: none;
  position: static;
  right: auto;
  width: 100%;
  max-width: 100%;
}

.rh-video > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rh-video__consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  text-align: center;
}

.rh-video__title {
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rh-video__play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: #a4c339;
  color: #000F42;
  font-weight: 700;
  cursor: pointer;
}

.rh-video__play:hover {
  background: #b7d64a;
}

.rh-video__play:focus-visible,
.rh-video__link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.rh-video__hint {
  margin: 0;
  font-size: .8rem;
  line-height: 1.35;
}

.rh-video__link,
.rh-video__link:visited {
  color: #fff;
  font-size: .8rem;
  text-decoration: underline;
}

.rh-video__link:hover {
  color: #a4c339;
}
