@charset "UTF-8";

.video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

video {
  width: 100%;
  display: block;
  object-fit: contain;
}

.controls {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

.controls.hide {
  opacity: 0;
  pointer-events: none;
}

.video-button {
  background: none;
  border: none;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* TIMELINE REGLER EINSTELLUNGEN */

#timeline, #volume {
  cursor: pointer;
}

#timeline {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    #d4a017 0%,
    #d4a017 var(--progress),
    #ffffff var(--progress),
    #ffffff 100%
  );
}

#time {
  color: #ddd;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 13px;
  min-width: 110px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

#timeline::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #d4a017;
  border-radius: 50%;
  border: none;
  margin-top: -4px;
}

/* Andere Browser */
#timeline::-webkit-slider-runnable-track {
  background: transparent;
  height: 6px;
}

/* Für Firefox */
#timeline::-moz-range-thumb {
  background: #d4a017;
  border-radius: 50%;
  border-style: none;
}

#timeline::-moz-range-progress {
  background: #d4a017;
}

#timeline::-moz-range-track {
  background: #fff;
}

/* VOLUME REGLER EINSTELLUNGEN */

.volume-container.ios input[type="range"] {
  display: none !important;
}

.volume-container {
  position: relative;
  flex-shrink: 0;
}

#volume {
  position: absolute;
  background: none;
  bottom: 75px;
  left: 45%;
  transform: translateX(-50%) rotate(-90deg);
  width: 90px;
  height: 5px;
  display: none;


  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d4a017;
  border: none;
  margin-top: -4.5px;
}

/* Andere Browser */
#volume::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(
    to right,
    #d4a017 0%,
    #d4a017 var(--volume-progress, 0%),
    #ffffff var(--volume-progress, 0%),
    #ffffff 100%
  );
}

/* Für Firefox */
#volume::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d4a017;
  border: none;
}
#volume::-moz-range-progress {
  height: 5px;
  background: #d4a017;
  border-radius: 5px;
}
#volume::-moz-range-track {
  height: 5px;
  background: #fff;
  border-radius: 5px;
}

.volume-container:hover #volume,
.volume-container.active #volume {
  display: block;
}

/* iOS FIX: NUR Lautstärke-Slider entfernen */
.volume-container.ios #volume {
  display: none !important;
}

/* iOS: Hover-Regeln komplett ignorieren */
.volume-container.ios:hover #volume {
  display: none !important;
}

/* FULLSCREEN EINSTELLUNGEN */

.video-wrapper:fullscreen {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-wrapper:fullscreen video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  border-radius: 0px;
}

/* TABLET VIEW */
@media (min-width: 48rem) {

}

/* DESKTOP VIEW */
@media (min-width: 64rem) {

.video-wrapper {
  border-radius: 10px;
}

}