/* Weichmacher-Animation (Chemie) – nutzt die Farben aus style.css */
.weichmacher {
  --wm-kette: var(--akzent);
  --wm-weichmacher: #16a34a;
  --wm-kraft: #dc2626;
  --wm-flaeche: var(--bg);
  max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  .weichmacher {
    --wm-weichmacher: #4ade80;
    --wm-kraft: #f87171;
  }
}

.weichmacher .einleitung { margin-bottom: 1.5rem; }

.weichmacher h2 {
  margin-top: 2.5rem;
}

.weichmacher ol {
  max-width: 650px;
  margin: .6rem 0 0 1.4rem;
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.7;
}

.weichmacher ol li { margin-bottom: .7rem; }
.weichmacher strong { color: var(--text); }

/* Steuerung */
.wm-steuerung {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wm-steuerung label {
  margin: 0;
  color: var(--text-soft);
}

.wm-steuerung input[type="range"] {
  flex: 1;
  min-width: 140px;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--akzent);
}

.wm-steuerung output {
  min-width: 44px;
  font-weight: 600;
}

.wm-steuerung button { margin: 0; }

/* Zeichenfläche */
#wm-canvas {
  display: block;
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wm-flaeche);
}

/* Legende */
.wm-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: .9rem;
}

.wm-sw {
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.wm-sw-kette { width: 18px; height: 4px; border-radius: 2px; background: var(--wm-kette); }
.wm-sw-weichmacher { width: 10px; height: 10px; border-radius: 50%; background: var(--wm-weichmacher); }
.wm-sw-kraft { width: 18px; border-top: 2px dashed var(--wm-kraft); }

/* Kennzahlen */
.wm-werte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.wm-wert {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.wm-l { color: var(--muted); font-size: .85rem; }
.wm-v { color: var(--text); font-size: 1.5rem; font-weight: 600; }

/* Hinweisfeld */
.wm-hinweis {
  max-width: 650px;
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--hinweis-border);
  border-radius: 6px;
  background: var(--hinweis-bg);
  color: var(--hinweis-text);
  line-height: 1.6;
}

.wm-hinweis strong { color: inherit; }

.weichmacher p.wm-klein {
  color: var(--muted);
  font-size: .9rem;
}
