/* Video ohne Cookie ------------------------------------------------------------------------------------------------------------------------*/


/* Youtube-Video-Block */
.videoohnecookie {
  position: relative;
  overflow: hidden;
  background-color: var(--wp--preset--color--blue-dark);
}
.videoohnecookie:has(.videoohnecookie-thumbnail.videoohnecookie-not-visible) {
  z-index: 2;
}
.videoohnecookie-thumbnail {
  padding:6rem 0;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.autoplay > .videoohnecookie-thumbnail {
  display: none;
}
.videoohnecookie-thumbnail-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.videoohnecookie-thumbnail-image picture{
  display: flex;
  width: 100%;
  height: 100%;
}
.videoohnecookie-thumbnail-image picture img{
  object-fit: cover;
  width: 100%;
  height: auto;
}
.videoohnecookie-thumbnail-entry-content {
  z-index: 2;
  width: 90%;
  max-width: 900px;
  margin:0 auto;
}
.videoohnecookie-content {
  display: flex;
  align-items: center;
}
.videoohnecookie-content.is-overlay:not(.videoohnecookie-not-visible) {
  display: flex;
  align-items: center;
}
.videoohnecookie .videoohnecookie-content iframe{
  width: 100%;
  display: block;
}
.videoohnecookie-not-visible {
  display:none;
}
.videoohnecookie-content.is-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
}
.overlay_back {
  margin: 0 !important;
  background-color: rgba(0,0,0,0.7);
  width: 100%;
  height: 100%;
  top: 0;
  position: absolute;
  z-index: -2;
  cursor: pointer;
}
.overlay_close {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 0;
  right: 0;
  cursor: pointer;
}
.overlay_close::before, .overlay_close::after {
  height: 2px;
  position: absolute;
  content: "";
  width: 40px;
  background-color: #fff;
  transform: rotate(45deg);
  top: 30px;
  left: 8px;
}
.overlay_close::after {
  transform: rotate(-45deg);
}
.videoohnecookie-button {
  display: block;
}
* + .wp-block-buttons:has(.videoohnecookie-button) {
  margin-top:2rem;
}
.wp-block-buttons:has(.videoohnecookie-button) {
  justify-content: center;
}
.videoohnecookie-button-playbutton > svg {
  width: 100px;
  height: 100px;
}
.videoohnecookie-button-playbutton {
  text-align: center;
}

@media only screen and (min-width: 900px) {
  .videoohnecookie-content.is-overlay iframe {
    width: 80%;
    margin: 0 auto;
    max-height: 100%;
  }
}
