/* ---------- 3D iFrames (Desktop = 16:9) ---------- */

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
}

/* ---------- Haupt-Tabs (Highlights / 3D Ansicht) ---------- */

.tabs-main {
  width: 100%;
  margin: 0 auto;
}

.tab-buttons-main {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-bottom: 0;
  margin-bottom: 15px;
}

.tab-btn-main {
  padding: 10px 10px;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.tab-btn-main:hover {
  border-bottom-color: #3c9;
}

.tab-btn-main.active {
  border-bottom-color: #3c9;
}

.tab-content-main {
  display: none;
  opacity: 0;
  animation: fade 0.25s ease forwards;
}

.tab-content-main.active {
  display: block;
}

/* ---------- Innere 3D-Dropdown-Tabs ---------- */

.tab-container {
  position: relative;
}

/* Dropdown schwebend oben rechts über dem Content */
.tab-dropdown-wrapper {
  position: absolute;
  top: 2em;
  left: 2em;
  z-index: 10;
}
.name-wrapper {
border-left: 2px solid #48efb7;
padding-left: 10px;
color: white;
}
.name-wrapper h2{
color: white;
line-height: 1,0;
}
/* Select wie transparenter Button mit weißem Rand */
#tab-select {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  border-radius: 999px;
  cursor: pointer;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  position: relative;
  backdrop-filter: blur(6px);
}

/* Inhalte der inneren Tabs */
.tab-content-inner {
  display: none;
  opacity: 0;
  animation: fade 0.25s forwards ease;
}

.tab-content-inner.active {
  display: block;
}

/* ---------- Animation ---------- */
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ===========================================================
   = MOBILE: Iframes quadratisch + Cropping links / rechts =
   =========================================================== */
@media (max-width: 767px) {

  .video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;      /* → 1:1 Quadrat */
    overflow: hidden;
  }

  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 177.78%;         /* → 16:9 Bild wird in 1:1 gecropped */
    transform: translateX(-50%);
    aspect-ratio: auto;     /* → vorheriges 16:9 überschreiben */
  }

}