body {
  font-family: sans-serif;
  margin: 0;
  display: flex;
  height: 100vh;
}

#controls {
  width: 280px;
  padding: 10px;
  border-right: 1px solid #ccc;
  box-sizing: border-box;
}

#canvas {
  flex: 1;
  position: relative;
  background-color: white;
  overflow: hidden;
}

/* DH‑Modus Hintergrund */
.dh-background {
  background-image:
    linear-gradient(to right, transparent 0%, transparent 30%, #ddd 30%, #ddd 31%, transparent 31%, transparent 70%, #ddd 70%, #ddd 71%, transparent 71%),
    linear-gradient(#eee 1px, transparent 1px),
    linear-gradient(90deg, #eee 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
}

.dh-label {
  position: absolute;
  top: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #999;
  pointer-events: none;
}

.dh-left  { left: 10%; transform: translateX(-50%); }
.dh-mid   { left: 50%; transform: translateX(-50%); }
.dh-right { left: 90%; transform: translateX(-50%); }

/* EIMER */

.bucket {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 12px;
  border: 2px solid #333;
  box-sizing: border-box;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #000;
  font-size: 14px;
  user-select: none;
  padding-top: 6px;
}

.bucket.selected {
  outline: 4px solid #ff8800;
}

.bucket-label {
  font-weight: bold;
  margin-bottom: 4px;
}

.bucket-sliders {
  width: 90%;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bucket-sliders input[type=range] {
  width: 100%;
}

.bucket-values {
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
}

/* Drag-Icon oben links */
.drag-btn {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 20px;
  height: 20px;
  background: #666;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  border: 2px solid #333;
}

/* Verbinden-Icon oben rechts */
.connect-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #ff8800;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid #333;
}

.connect-btn:hover {
  background: #ff6600;
}

/* SVG */

svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.arrow-delete {
  fill: #ff4444;
  stroke: #333;
  stroke-width: 1;
  cursor: pointer;
  pointer-events: all;
}

button {
  margin-bottom: 6px;
}
