.timeline-floating-container {
    position: fixed;
    bottom: 0;
    left: 300px;
    right: 0;
    height: auto; /* Ändern Sie dies von einer festen Höhe zu auto */
    max-height: 70vh; /* Setzen Sie eine maximale Höhe, z.B. 50% der Viewport-Höhe */
    min-height: 50px; /* Setzen Sie eine Mindesthöhe */
    background-color: #fff;
    border-top: 1px solid #ccc;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.timeline-resize-handle {
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 10px;
    cursor: ns-resize;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-resize-handle i {
    opacity: 1.0;
    transition: opacity 0.3s ease;
	font-size: 1.6em;
}

.timeline-container {
    height: calc(100% - 10px);
}

#timelineContainer.full-width {
    left: 0;
    right: 0;
    width: 100%;
}


/* Header mit Controls */
.timeline-header {
    position: sticky;
    top: 0;
    display: flex;
    background-color: #000000;
    z-index: 10;
    border-bottom: 1px solid #000000;
    height: 50px;
}

/* Container für Play-Button und Zoom-Kontrolle */
.timeline-controls {
    flex: 1;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    font-size: 0.8em !important;
}

/* Container für Track-Namen und Timeline */
.timeline-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Container für Track-Namen */
.track-labels {
    width: 150px;
    background-color: #1b7ffc;
    position: sticky;
    left: 0;
    padding-top: 30px !important;
    z-index: 5;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    align-content: center;
    justify-content: flex-start;
    color: white;
    font-size: 0.8em !important;
    margin-right: 10px;
}

.track-label {
    position: absolute;
    left: 5px;
    top: 5px;
    font-size: 0.7em;
    font-weight: 400;
    color: #8f8f8f;
}

/* Track-Namen-Stil */
.track-name {
    padding: 10px;
    border-bottom: 2px solid #ffffff;
    height: 46px !important;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    font-weight: bold;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-end;
    justify-content: flex-end;
}

.track-labels .track-name:first-child {
    border-top: 2px solid #ffffff;
}

/* Scrollbarer Bereich für die Timeline */
.timeline-scroll-container {
  flex: 1;
  height: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  position: relative;
  padding-bottom: 30px !important;
}

/* Inhalt der Timeline */
.timeline-content {
  position: relative;
  height: 100%;
  min-width: 100%;
  transition: width 0.3s, transform 0.3s;
}

/* Zeitlinie-Stil */
.timeline-ruler {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: flex-end;
}

/* Zeitmarker-Stil */
.time-marker {
  position: relative;
  width: 1px;
  height: 10px;
  background-color: #999;
  font-size: 10px;
  text-align: center;
}

.time-marker::after {
  content: attr(data-time);
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #333;
}

/* Tracks-Stil */
.timeline-tracks {
  position: relative;
  top: 30px; /* Unter der Time Ruler */
  height: calc(100% - 30px);
}

/* Einzelner Track */
.timeline-track {
    height: 40px;
    margin-bottom: 5px;
    background-color: #f9f9f9;
    position: relative;
    border: 1px solid #e7e7e7;
}

/* Clip-Stil */
.timeline-clip {
  position: absolute;
  height: 40px;
  top: 0 !important;
  background-color: #087bfa;
  border-radius: 4px;
  font-size: 12px;
  color: white;
  padding: 2px;
  overflow: hidden;
  box-sizing: border-box;
  cursor: move;
  text-align: center;
}


.timeline-clip.highlighted {
    background-color: #93c4ff !important;
    color: #ffffff !important;
}

.timeline-clip::before,
.timeline-clip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    transition: width 0.3s;
}

.timeline-clip::before {
    left: 0;
    background: linear-gradient(to right, #000000d9, rgba(255, 255, 255, 0));
}

.timeline-clip::after {
    right: 0;
    background: linear-gradient(to left, #000000d9, rgba(255, 255, 255, 0));
}

.timeline-clip:not(.highlighted)::before {
    width: var(--fade-in-width, 0%);
}

.timeline-clip:not(.highlighted)::after {
    width: var(--fade-out-width, 0%);
}

.timeline-clip.highlighted::before {
    width: var(--fade-in-width, 0%);
    background: linear-gradient(to right, black, rgba(255, 255, 0, 0));
}

.timeline-clip.highlighted::after {
    width: var(--fade-out-width, 0%);
    background: linear-gradient(to left, black, rgba(255, 255, 0, 0));
}


/* Playhead-Stil */
.timeline-playhead {
  position: absolute;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: red;
  z-index: 20;
}

/* Spezifische Stile für den Volume Slider */
.timeline-clip .volume-slider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    -webkit-appearance: none; /* Entfernt die Standardanzeige */
    appearance: none;
    background: linear-gradient(to right, #000000 0%, #000000 var(--slider-value, 50%), #ffffff var(--slider-value, 50%), #ffffff 100%);
    border-radius: 1.5px;
    outline: none;
    transition: background 0.3s;
}

/* Track für Webkit (Chrome, Safari) */
.timeline-clip .volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 3px;
    cursor: pointer;
    background: transparent; /* Hintergrund wird durch die Haupt-Elementbackground gesetzt */
    border-radius: 1.5px;
}

/* Thumb für Webkit (Chrome, Safari) */
.timeline-clip .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: #ff0000; /* rot */
    border-radius: 50%;
    cursor: pointer;
    margin-top: -1px; /* Vertikale Ausrichtung */
    box-shadow: 0 0 2px rgba(255,255,255,0.5);
    position: relative;
    z-index: 2;
}

/* Track für Firefox */
.timeline-clip .volume-slider::-moz-range-track {
    width: 100%;
    height: 3px;
    cursor: pointer;
    background: transparent; /* Hintergrund wird durch die Haupt-Elementbackground gesetzt */
    border-radius: 1.5px;
}

/* Thumb für Firefox */
.timeline-clip .volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #ff0000; /* rot */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 2;
}


/* Clip-Text */
.clip-text {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 0.7em;
  z-index: 2;
}

/* Fade-Handles */
.fade-handle {
  position: absolute;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: #ff0000;
  cursor: ew-resize;
  opacity: 0.7;
  z-index: 5;
}

.fade-in-handle {
  left: 0;
}

.fade-out-handle {
  right: 0;
}

/* Löschen-Button für Clips */
.delete-clip-button {
  position: absolute;
  top: 5px;
  right: 10px;
  background-color: transparent;
  color: white;
  border: none;
  width: 8px;
  height: 8px;
  font-size: 8px;
  line-height: 0.1;
  cursor: pointer;
  z-index: 10;
}

.delete-clip-button:hover {
    background-color: #00000000;
    color: #ff0000;
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    flex-direction: column;
}

/* Responsives Design */
@media (max-width: 768px) {
  .track-labels {
    width: 100px;
  }

  .track-name {
    font-size: 0.8em;
  }

  .timeline-controls {
    padding: 5px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .timeline-play-button,
  .timeline-zoom-control {
    width: 100%;
    margin-bottom: 5px;
  }

  .timeline-container {
    height: 400px; /* Anpassung der Höhe für kleinere Bildschirme */
  }

  .timeline-zoom-control {
    width: 100%;
  }
  
}
  
.waveform-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}