/* ------------------------------------------- /bms/mathematik (Präfix bmm-)
   Fragenraster (94 Kästchen) und Beispiel mit Lösungsweg. Themen-Kacheln
   kommen aus seite-bms-fach.css (bf-). Farben nur über die Variablen aus
   stil.css (--akzent, --r-…), damit Hell und Dunkel stimmen. */

/* Hoch- und Tiefzahlen aus fein() */
.r-band sup.bmm-s { font-size: 0.7em; line-height: 0; font-weight: inherit; }
.r-band sup.bmm-s { vertical-align: 0.55em; }
.bmm-bildtitel { margin: 0 0 16px; text-align: center; font: 700 12.5px/1.3 "Work Sans", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--akzent); }

/* Fragenraster: 94 Kästchen */
.bmm-raster { margin: 8px 0 36px; padding: 26px 28px 20px; border-radius: 22px; background: var(--r-hell); }
.bmm-kaestchen { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 5px; }
.bmm-kaestchen i, .bmm-legende i { display: block; aspect-ratio: 1; border-radius: 4px; }
.bmm-raster .f-biologie { background: color-mix(in srgb, var(--akzent) 16%, var(--r-weiss)); }
.bmm-raster .f-chemie { background: color-mix(in srgb, var(--akzent) 28%, var(--r-weiss)); }
.bmm-raster .f-physik { background: color-mix(in srgb, var(--akzent) 42%, var(--r-weiss)); }
.bmm-raster .f-mathematik { background: var(--akzent); }
.bmm-legende { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.r-band .bmm-legende li { display: inline-flex; align-items: center; gap: 8px; font: 400 15px/1.2 "Work Sans", sans-serif; color: var(--r-text); }
.bmm-legende i { width: 14px; }
.r-band .bmm-legende a { color: var(--r-kopf); font-weight: 500; text-decoration: none; }
.r-band .bmm-legende a:hover { color: var(--akzent-tief); text-decoration: underline; }
.bmm-legende span { font: 800 15px/1 "Manrope", sans-serif; color: var(--r-kopf); font-variant-numeric: tabular-nums; }
.bmm-legende .hier span { color: var(--akzent-tief); }
.r-band .bmm-fuss { margin: 14px 0 0; text-align: center; font-size: 13.5px; line-height: 1.4; color: var(--r-leise); }

/* Beispielfrage */
.r-testblatt .bmm-stamm { margin: 0 0 20px !important; font: 600 19px/1.5 "Work Sans", sans-serif !important; color: #1d1916 !important; }
.bmm-weg { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: bmm; }
.r-band .bmm-weg li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: var(--r-weiss); font-size: 16px; line-height: 1.4; }
.grau .bmm-weg li { background: var(--r-hell); }
.bmm-weg span { font: 600 12px/1.3 "Work Sans", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--r-leise); }
.r-band .bmm-weg b { font: 600 17px/1.4 "Work Sans", sans-serif; color: var(--r-kopf); font-variant-numeric: tabular-nums; }
.r-band .bmm-weg li:last-child { background: var(--akzent-hauch); }
.r-band .bmm-weg li:last-child b { color: var(--akzent-tief); font-weight: 700; }

@media (max-width: 760px) {
  .bmm-raster { padding: 20px 14px 16px; }
  .bmm-kaestchen { grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; }
  .bmm-legende { gap: 8px 18px; }
  .r-testblatt .bmm-stamm { font-size: 17px !important; }
  .r-band .bmm-weg li { grid-template-columns: 1fr; gap: 2px; }
}
