.videoBox, .videoBox div img {
    width: 100%;
    margin: auto;
    cursor: pointer;
}

.videoBox h2 {
    margin-bottom: 10px;
    text-align: center;
    height: 40px;
    font-size: 120%;
}

.videoBox p {
    margin-top: 10px;
    text-align: center;
}

.videoBoxMore, .videoBoxMore div img {
    width: 80%;
}

.responsive_16-9, .responsive_4-3, .responsive_a4 {
    position: relative;
    /* 16 zu 9 Layout für Videos */
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.responsive_4-3 {
    /* 4 zu 3 Layout für Präsentationen */
    padding-bottom: 75%;
}

.responsive_a4 {
    /* DIN A4 Layout für Dokumente */
    padding-bottom: 142.86%;
}

.responsive_16-9 iframe, 
.responsive_4-3 iframe, 
.responsive_a4 iframe,
.responsive_16-9 object, 
.responsive_4-3 object, 
.responsive_a4 object,
.responsive_16-9 embed, 
.responsive_4-3 embed, 
.responsive_a4 embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tubeFlexTable {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    gap: 20px;
}

.tubeFlexTable div.flex {
    /* Für zwei Spalten: jeweils 50% abzüglich des halben Gaps */
    width: calc(50% - 10px);
    margin-bottom: 20px;
}

.emptyBox .col-md-12:hover .btn.btn-lg.hvr-grow {
    background-color: #48504f !important;
}

.videoBox div {
    text-align: center;
}

/* Playbutton für einzelne Videos (ohne .videoBoxMore): zentriert */
.videoBox:not(.videoBoxMore) .playbutton {
    width: 108px;
    height: 75px;
    background-image: url("../images/play_dark_klein.png");
    background-size: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

/* Playbutton für Mehrfachvideos (mit .videoBoxMore): feste Positionierung mit top: 33% */
.videoBox.videoBoxMore .playbutton {
    width: 50px;
    height: 35px;
    background-image: url("../images/play_dark_klein.png");
    background-size: cover;
    position: absolute;
    top: 33% !important;
    left: 43% !important;
    transform: none !important;
    cursor: pointer;
}

/* Hover-Effekte */
.videoBox:not(.videoBoxMore):hover .playbutton {
    background-image: url("../images/play_color_klein.png");
}
.videoBox.videoBoxMore:hover .playbutton {
    background-image: url("../images/play_color_klein.png");
}

@media (max-width: 600px) {
    .tubeFlexTable div.flex, .videoBox {
        width: 100%;
    }   
}

/* Boxsite Design */

div.siteBoxVideo div img {
    width: 100%;
    height: auto;
}

div.siteBoxVideo div.responsive_16-9,
div.siteBoxVideo div.responsive_4-3,
div.siteBoxVideo div.responsive_a4 {
    padding-bottom: 85%;
}

div.siteBoxVideo div div .playbutton {
    width: 79px;
    height: 55px;
    background-image: url("../images/play_dark_klein.png");
    background-size: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

div.siteBoxVideo div div:hover .playbutton {
    background-image: url("../images/play_color_klein.png");
}

div.siteBoxVideo div.siteBoxVideoMargin {
    margin-bottom: 25px;
}

/* Hinzugefügte Regel für leere Box */
.emptyBox {
    background-color: #f0f0f0;
}

/* Übernahme des Designs der col-md-12 */
.emptyBox .col-md-12 {
    padding: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: #48504F;
}

/* Eigene CSS-Regeln als Ersatz für Font Awesome's fas fa-check-circle */
.fas.fa-check-circle {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #B6202A;
  border-radius: 50%;
  position: relative;
  vertical-align: middle;
}

.fas.fa-check-circle:before {
  content: "\2713";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
}

/* Overlay-Popup Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  position: relative;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  min-width: 45%;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.popup-body p {
  margin: 10px 0;
  font-size: 16px;
  text-align: center;
}

/* Anpassung für mobile Ansichten: In der leeren Box soll der feste Aspekt aufgehoben werden */
@media (max-width: 600px) {
    .emptyBox .responsive_16-9,
    .emptyBox .responsive_4-3 {
        padding-bottom: 0;
        height: auto;
        position: static;
    }
}
