/* Chemie-Module II (Photometrie, Kinetik, Thermochemie, Phasenübergänge, Elektrochemie): Bedienfelder.
   Raster, Felder, Segmente, Knopfzeilen und Abschnitte teilen sie mit module.css; hier nur die eigenen Bausteine. */
.m2 { display: grid; grid-template-columns: minmax(0, 1fr); }

/* Bereich aus der Graph-Auswahl: Beschriftung | Bereich, darunter die Knöpfe */
.m2-bereich { display: grid; grid-template-columns: var(--m-lab) minmax(0, 1fr); gap: 4px 10px; align-items: center; min-height: var(--m-zeile); margin: 0 0 6px; }
.m2-bereich .zeile { grid-column: 1 / -1; margin: 2px 0 4px; }
.m2-bereichname { min-width: 0; color: var(--muted); font-size: var(--gr-panel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-bereichtext { min-width: 0; font-family: var(--schrift-mono); font-size: var(--gr-klein); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ergebnisse: Raster in module.css (.m-ergebnis, .m-erg-zeile) */
.m2-ergebnis { margin: 0 0 8px; }

/* Kleiner Graph */
.m2-graph { position: relative; margin: 2px 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.m2-graph canvas { position: absolute; inset: 0; display: block; }
.m2-graphen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0 0 10px; }
.m2-graphen > button { display: grid; gap: 2px; min-width: 0; text-align: left; padding: 6px 8px 2px; border-radius: 10px; }
.m2-graphen > button[aria-pressed="true"] { border-color: var(--btn-on-edge); background: var(--btn-on); }
.m2-graphen > button .m2-graph { margin: 2px 0 4px; pointer-events: none; }
.m2-graphkopf { display: flex; justify-content: space-between; gap: 8px; font-size: var(--gr-klein); min-width: 0; }
.m2-graphkopf b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-graphkopf span { font-family: var(--schrift-mono); color: var(--muted); white-space: nowrap; }
.m2-graphen > button[aria-pressed="true"] .m2-graphkopf span { color: var(--btn-on-text); }

/* Wertetabelle zum Eintippen */
.m2-tabelle { margin: 0 0 6px; }
.m2-werte { width: 100%; border-collapse: collapse; font-size: var(--gr-klein); table-layout: fixed; }
.m2-werte th { text-align: left; font-weight: 500; color: var(--muted); padding: 2px 4px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-werte th:last-child, .m2-werte td:last-child { width: 34px; }
.m2-werte td { padding: 2px; }
.m2-werte td:last-child { text-align: center; }
.m2-werte input { width: 100%; min-height: 30px; padding: 4px 6px; }
.m2-werte .icon.klein { width: 28px; height: 28px; color: var(--muted); }

/* Plateaus (Abkühlkurven) */
.m2-plateaus { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.m2-plateaus li { min-width: 0; border: 1px solid var(--line); border-left: 4px solid var(--m2-farbe, var(--accent)); border-radius: 10px; padding: 6px 10px; font-size: var(--gr-panel); display: grid; gap: 2px; background: var(--btn); }
.m2-plateaus b { font-family: var(--schrift-mono); font-weight: 600; font-size: var(--gr-text); }
.m2-plateaus small { color: var(--muted); font-size: var(--gr-klein); line-height: 1.4; }

@media (pointer: coarse) {
  .m2-werte input { min-height: 44px; }
  .m2-werte th:last-child, .m2-werte td:last-child { width: 48px; }
  .m2-werte .icon.klein { width: 44px; height: 44px; }
}
