.mm-video .video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  cursor: pointer;
}

.mm-video .video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mm-video .video-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(128, 128, 128, 0.8);
  text-align: center;
  font-size: 20px;
  color: #fff;
  padding: 5px 0;
  z-index: 1;
  /* pointer-events: none;  Falls nötig, kann man hier versuchen, aber in diesem Ansatz übernimmt das Cover die Klickkontrolle */
}

.mm-video .play-button {
  position: relative;
  z-index: 2;
  width: 136px;
  height: 100px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.6s;
}

.mm-video .play-button svg {
  width: 68px;
  height: 48px;
  fill: #ff0000;
}

.mm-video .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 0;               /* Anfangs unsichtbar */
  pointer-events: none;     /* Klicks werden nicht angenommen */
  transition: opacity 0.8s ease; /* Sanfter Übergang */
}


.mm-video .video-overlay.active {
  opacity: 1;               /* Sichtbar */
  pointer-events: auto;     /* Reagiert wieder auf Klicks */
}


.mm-video .video-overlay-content {
  background-color: white;
  padding: 25px;
  border-radius: 5px;
  max-width: 80%;
  text-align: center;
}

.mm-video .btn-group {
  margin-top: 20px;
}

.mm-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Neue Regel für das transparente Cover */
.mm-video .video-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5; /* Liegt über dem Placeholder, aber unter dem Overlay (z-index: 10) */
  background: transparent;
}

  @media (max-width: 575.98px) {
    /* Overlay-Content anpassen */
    .mm-video .video-overlay-content {
      padding: 15px;         /* weniger Padding */
      max-width: 90%;        /* breitere Darstellung */
      font-size: 12px;       /* Schriftgröße im Overlay */
      line-height: 1;
    }

    .mm-video h4 {
      padding-bottom: 0px;
      margin-bottom: 3px;       /* etwas kleinere Überschrift */
    } 

    
    /* Text am unteren Rand */
    .mm-video .video-text {
      font-size: 16px;       /* etwas kleinere Schrift */
      padding: 3px 0;        /* weniger vertikaler Abstand */
    }
    
    /* Button-Abstände verkleinern */
    .mm-video .btn-group {
      margin-top: 10px;      /* weniger Abstand oberhalb der Buttons */
    }

    .mm-video .video-text {
      pointer-events: none;
    }

  }


  @media (min-width: 576px) {
    .mm-video .video-cover {
      pointer-events: none;
    }

    .btn-group .accept-btn {
      border-top-left-radius: 0.25rem !important;
      border-bottom-left-radius: 0.25rem !important;
      border-top-right-radius: 0.25rem !important;
      border-bottom-right-radius: 0.25rem !important;
    }
  }
  
  