/* Riegel 5 — Stethoskop. Wärmeanzeige für den anderen oben, eigene Drehscheibe unten. */
:root {
  --stahlblau: #4f83a8;
  --stahlblau-hell: #8fc1e3;
}

.lock5-mitte {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: clamp(20px, 5vh, 40px);
  width: 100%;
}

/* ── Wärmeanzeige des anderen ──────────────────────────────────────────── */
.hoer {
  width: min(86vw, 340px);
  display: grid;
  justify-items: center;
  gap: 6px;
}
.hoer-titel {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--creme-60);
}
.stufe {
  font-size: clamp(56px, 14vw, 80px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transition: color 0.25s ease;
}
.stufe[data-stufe='eiskalt'] { color: var(--stahlblau-hell); }
.stufe[data-stufe='kalt'] { color: #a9cbe0; }
.stufe[data-stufe='lau'] { color: var(--messing); }
.stufe[data-stufe='warm'] { color: var(--messing-hell); }
.stufe[data-stufe='heiss'] { color: var(--warn); }

.skala {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--stahlblau) 0%, var(--messing) 50%, var(--warn) 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.06);
}
.skala::before {
  /* Trennlinien der fünf Segmente. */
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), rgba(0, 0, 0, 0.4) calc(20% - 1px) 20%);
}
.nadel {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 10%;
  width: 5px;
  border-radius: 3px;
  transform: translateX(-50%);
  background: var(--creme);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.7), 0 0 10px rgba(241, 233, 214, 0.6);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Eigene Drehscheibe ────────────────────────────────────────────────── */
.scheibe-wrap {
  position: relative;
  width: min(64vw, 250px);
  aspect-ratio: 1;
}
.scheibe {
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  overflow: visible;
}
.scheibe:active { cursor: grabbing; }
.scheibe:focus-visible { outline: 3px solid var(--creme); outline-offset: 6px; border-radius: 50%; }
.scheibe-fass {
  fill: var(--panel);
  stroke: var(--messing-dunkel);
  stroke-width: 3;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.55));
}
.scheibe:active .scheibe-fass { fill: var(--panel-tief); }
.rast { stroke: var(--creme-60); stroke-width: 1; }
.rast-lang { stroke: var(--messing-hell); stroke-width: 1.6; }
.scheibe-nabe { fill: var(--messing-dunkel); }

.zahl {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-size: clamp(46px, 12vw, 68px);
  color: var(--creme);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ── Haltezeile ────────────────────────────────────────────────────────── */
.halte {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--messing-hell);
}
.halte-balken {
  display: inline-block;
  width: 120px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel-tief);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}
.halte-fuellung {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--messing), var(--messing-hell));
}

@media (prefers-reduced-motion: reduce) {
  .nadel { transition: none; }
}
