html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
}

.responsive-ad {
  width: auto;
  height: auto;
  max-height: 100vh;
  max-width: 100%;
  aspect-ratio: 1 / 2;
  background: #0d0d0d;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
}

.responsive-ad * { box-sizing: border-box; }

video {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  width: 100%;
  height: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 8; /* Click-Layer über dem Video */
}

.logo {
  position: absolute;
  right: 0;
  top: 0;
  width: 25vh;
  height: auto;
  z-index: 10;
}

/* Globaler Click-Layer */
#clickLayer {
  position: absolute;
  inset: 0;
  z-index: 9; /* unter UI (z>=10), über Video (z=8) */
  display: block;
  text-decoration: none;
}

/* Product Overlay */
.product-overlay {
  position: absolute;
  bottom: 4.5vh;
  left: 10%;
  display: flex;
  flex-direction: column;
  border-radius: 1vh;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  width: 80%;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-overlay.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.product {
  position: relative;
  width: 100%;
  display: flex;
  flex-flow: column;
  justify-content: center;
  gap: 1vh;
  padding-bottom: 1vh;
  align-content: stretch;
}

.productInfo {
  padding: 2vh 2vh 0 2vh;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  color: white;
  width: 100%;
  position: relative;
}

.product-overlay h3 {
  margin: 0 0 1vh;
  font-size: 2.5vh;
  line-height: 1;
  color: #fff;
}

.product-description {
  font-size: 2vh;
  color: #fff;
  line-height: 1;
  margin-bottom: 1.5vh;
}

.product-image {
  position: relative;
  width: 100%;
  border-radius: 5px;
  margin-bottom: 2vh;
}

.product-overlay button {
  background: #e60012;
  border: none;
  display: inline-block;
  color: white;
  padding: 1.5vh 3vh;
  font-size: 2vh;
  font-weight: 600;
  border-radius: 0.8vh;
  cursor: pointer;
  transition: background .2s;
}
.product-overlay button:hover { background: #a30a14; }

/* Controls */
.controls {
  position: absolute;
  width: calc(100% - 2vh);
  height: 3vh;
  display: block;
  margin-top: 17vh;
  z-index: 10;
  box-sizing: border-box;
  margin-left: 1vh;
  margin-right: 1vh;
}
.controls button {
  position: absolute;
  background: #1c1c1c;
  color: white;
  width: 3vh;
  padding: .2vh;
  line-height: 0;
  border: 1px solid #3f3f3f;
  border-radius: 5px;
  cursor: pointer;
  background-size: cover;
  background-position: center center;
  display: block;
}
#prevBtn { left: 0; }
#nextBtn { right: 0; left: auto; }
.controls button img { width: 100%; }

/* Timeline */
.timeline-container {
  position: relative;
  z-index: 10; /* über Click-Layer */
  display: flex;
  justify-content: space-between;
  align-content: center;
  padding: 1vh 2vh 2vh 2vh;
}

.progress-bar {
  width: 100%;
  height: 0.6vh;
  background: #232323;
  border-radius: 5px;
  position: relative;
  align-self: center;
}

.progress-fill {
  height: 100%;
  background: #e60012;
  border-radius: 5px;
  width: 0%;
  transition: width 0.2s linear;
}

.dot {
  position: absolute;
  top: -.6vh;
  width: 2vh;
  height: 2vh;
  background: #fff;
  border: 1px solid #0d0d0d;
  border-radius: 50%;
  cursor: pointer;
  transform: translateX(-50%);
  transition: background .2s;
}
.dot.active { background: #d70c19; }

/* Mute */
.mute-btn {
  width: 3vh;
  height: 3vh;
  margin-left: 1vh;
  background: none;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
}
.mute-btn.muted   { background-image: url('btn_mute.png'); }
.mute-btn.unmuted { background-image: url('btn_unmute.png'); }

/* Legal */
.legal-note {
  position: absolute;
  right: 1vh;
  bottom: 1vh;
  font-size: 1.2vh;
  color: #999;
  cursor: pointer;
  z-index: 10; /* über Click-Layer */
}
.legal-box {
  position: absolute;
  bottom: 3vh;
  right: 1vh;
  width: 30vh;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 1.5vh;
  font-size: 1.3vh;
  border-radius: 1vh;
  display: none;
  z-index: 20; /* sicher über allen */
}
.legal-note:hover + .legal-box,
.legal-note:focus + .legal-box {
  display: block;
}