.double-slider-wrapper {
  position: relative;
  width: 200px; /* oder wie gewünscht */
  height: 16px;
}

/* Beide Slider übereinander */
.range-slider {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  pointer-events: all;
}

/* Nur der obere Slider bekommt Interaktivität */
.range-max {
  pointer-events: all;
  z-index: 2;
}

/* Thumb bleibt sichtbar */
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #7851a9;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.range-slider::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #7851a9;
  cursor: pointer;
  position: relative;
  z-index: 3;
}
/* Nur den Track des Max-Sliders transparent machen */
.range-max::-webkit-slider-runnable-track {
  background: transparent;
}
.range-max::-moz-range-track {
  background: transparent;
}

/* Tabs */
#device-tabs-wrapper {
  margin-top: 2em;
  font-family: sans-serif;
  display: none;
}

.#device-tab-buttons {
  display: flex;
  gap: 0.5em;
  margin-top: 2em;
  border-bottom: 1px solid #ccc;
}

/* Tab-Buttons */
#device-tab-buttons .tab-btn {
  padding: 6px 12px;
  font-size: 1.1em;
  border: 1px solid #ccc;
  background-color: #ece8e6;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  margin-bottom: -1px; /* Damit Tab und Inhalt ohne Lücke abschließen */
	margin-right: -1px;
}

/* Aktiver Tab visuell verbunden mit dem Content */
#device-tab-buttons .tab-btn.active {
  background-color: #eae6e4;
  border-bottom: 1px solid #eae6e4;  /* Gleiche Farbe wie Hintergrund */
  font-weight: bold;
	/*margin-bottom: -30px;  Damit Tab und Inhalt ohne Lücke abschließen */
}

/* Tab-Inhalt */
.tab-content {
  border: 1px solid #ccc;
  background-color: #eae6e4;
  padding: 1em;
  border-radius: 0 4px 4px 4px;
  margin-top: 0;
}

/* Nur aktive Inhalte anzeigen */
.tab-content:not(.active) {
  display: none;
}

#interfaces {
	margin-bottom: 0;
}
#output-container {
	margin-bottom: 0;
}
h1 {
	margin-bottom: 0;
}
h4 {
	margin-top:1.0em;
	margin-bottom: 0.3em;
}

/* Wrapper für alle Slider */
.slider-container-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;  /*Abstand zwischen den einzelnen Slider-Elementen */
  margin-bottom: 10px;
  width: 400px; /* Die Gesamtbreite der Container für alle Slider */
}

/* Container für jeden einzelnen Slider */
.slider-container {
  display: flex;
  align-items: center; /* Vertikale Zentrierung */
  width: 100%; /* Den gesamten verfügbaren Raum ausnutzen */
}

/* Label für jeden Slider */
.slider-container label {
  width: 100px; /* Fixe Breite für das Label */
  font-size: 1em;
  font-weight: normal;
  margin-right: 15px; /* Abstand zwischen Label und Slider */
  white-space: nowrap; /* Text wird nicht umgebrochen */
  flex-shrink: 0; /* Verhindert, dass das Label schrumpft */
}

/* Slider Styling */
.slider-container input[type="range"] {
  -webkit-appearance: none; /* Entfernt Standarddarstellung */
  /*width: 100%;*/ /* Den Slider auf die gesamte Breite des Containers dehnen */
  flex-grow: 1;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
  transition: background 0.3s ease;
}

/* Slider Thumb Styling */
.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #7851a9;
  border-radius: 50%;
  cursor: pointer;
}

/* Wertanzeige für den Slider */
.slider-value {
  margin-left: 15px;
  width: 40px;
  font-size: 0.9em;
  font-weight: normal;
  color: #333;
  white-space: nowrap;
}

.select-container {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 10px;
}

.select-container label {
  width: 100px; /* gleich wie für Slider-Labels */
  text-align: left !important;
}

.select-container select {
  flex: 1;
  max-width: 250px;
  text-align: left !important;
}
/* Flexbox für den Container von select und text input */
.select-container-add-wrapper {
  display: flex;
  align-items: center;
  gap: 10px; /* Abstand zwischen den Elementen */
	margin-bottom: 10px;
}
/* Container für die MIDI Devices */
.midi-table-wrapper {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  margin-top: 0em;
  background-color: #eae6e4; /* Optional, je nach Theme */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* leichtes Schatten für Tiefe */
  max-width: 100%;
  overflow-x: auto;
}
/* Hilfe-Link */
.help-link {
  display: inline;       /* Der Link nimmt nur so viel Platz wie nötig ein */
  text-align: right;     /* Rechtsbündig */
  margin-bottom: 0;      /* Kein Abstand zwischen Link und Tabelle */
  margin-right: 10px;
  padding: 0;            /* Kein Padding am Link */
  text-decoration: none; /* Keine Unterstreichung */
  font-size: 0.9em;      /* Schriftgröße */
}
/* Container um den Hilfe Link rechts auszurichten */
.midi-table-wrapper-wrapper {
  display: flex;
  justify-content: flex-end;  /* Rechtsbündig */
  margin-bottom: 0px;         /* Abstand unter dem Link */
}
/* Einheitliches Label-Layout */
.midi-controls label {
	font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  white-space: nowrap;
}

/* Select- und Input-Felder */
.midi-controls select,
.midi-controls input[type="number"] {
  height: 28px;
  font-size: 0.9em;
  padding: 2px 6px;
  line-height: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  text-align: right;
}

/* Button-Styling */
.midi-controls button {
  height: 28px;
	
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Container für alle MIDI-Controls */
#clock-channel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;

  margin-top: 0;
  padding: 0.75em 1em;
  border-top: none;
}
/* Gruppe: Channel (links) */
#midi-channel-group {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

/* Gruppe: Clock (rechts) */
#midi-clock-group {
  display: flex;
  align-items: center;
  gap: 0.75em;
}
/* Beat-Indicator (Pulsierende Kugel bei MIDI Clock) */
#beat-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #000;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

@keyframes beat-pulse {
  0%   { transform: scale(1); background-color: #000; }
  50%  { transform: scale(1.5); background-color: white;}
  100% { transform: scale(1); background-color: #000;}
}

.midi-control-row {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: 0.5em;
}
.button-wrapper {
  display: flex;
  gap: 10px; /* Abstand zwischen den Buttons */
  margin-top: 10px;
}

.button-wrapper button {
  padding: 6px 12px;
  font-size: 1em;
  cursor: pointer;
}
.button-margin {
	  margin-bottom: 1em;
}