
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px;
  background: #eeeeee;
  color: #222222;
  font-family: Arial, sans-serif;
}

header {
  margin-bottom: 24px;
}

h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

header p {
  margin: 0;
  color: #666666;
}

main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
}

#kunstwerk {
  width: min(800px, 100%);
  line-height: 0;
  background: white;
  box-shadow: 0 2px 12px #00000022;
}

#kunstwerk canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.steuerbereich {
  width: 320px;
  max-width: 100%;
  padding: 20px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 12px #00000018;
}

h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

#modulsteuerung {
  margin-bottom: 28px;
}

#modulsteuerung > div {
  margin-bottom: 14px;
}

#modulsteuerung input {
  width: 100%;
  margin-top: 5px;
  padding: 8px;
}

button {
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
  background: #333333;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #555555;
}

#farbverlauf {
  width: 100%;
  height: 44px;
  margin-bottom: 12px;
  touch-action: none;
  user-select: none;
}

.palette-verlauf {
  position: relative;
  display: flex;
  width: 100%;
  height: 30px;
  overflow: visible;
}

.palette-verlauf > div:not(.palette-griffe) {
  flex: 1;
  min-width: 0;
  height: 30px;
}

.palette-griffe {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.palette-griff {
  position: absolute;
  top: -5px;
  width: 5px;
  height: 40px;
  margin-left: -2px;
  background: white;
  border: 2px solid #222222;
  border-radius: 3px;
  pointer-events: none;
}

#farbanteile {
  font-size: 12px;
  line-height: 1.6;
  color: #555555;
}

@media (max-width: 900px) {
  body {
    padding: 12px;
  }

  .steuerbereich {
    width: 100%;
  }
}
