/* Gemeinsames Aussehen der 3D-Seiten (30.08.2026)
 *
 * Wird vom Maschinenraum und von der Zweitakt-Hauptmaschine benutzt. Eigene
 * Klassen statt Tailwind: engines liefert ein GEPURGTES Subset aus, eine
 * erfundene Tailwind-Klasse waere wirkungslos.
 */
.mr-kopf { max-width: 860px; margin: 0 auto 20px; }
.mr-kopf h1 { font-size: 1.65rem; font-weight: 800; color: #0f2236; margin: 0 0 8px; }
.mr-kopf p.sub { color: #475569; font-size: .98rem; line-height: 1.6; margin: 0 0 10px; }
.mr-hinweis { background: #f8fafc; border: 1px solid #e2e8f0;
  border-left: 4px solid #c9a227; border-radius: 10px; padding: 10px 14px;
  font-size: .84rem; color: #475569; margin: 12px 0 0; }

.mr-rahmen { display: grid; grid-template-columns: 250px 1fr;
  border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden;
  background: #0f2236; box-shadow: 0 10px 30px rgba(15,34,54,.16);
  position: relative; }
#mr-liste { border-right: 1px solid #1e3a52; max-height: 680px;
  overflow-y: auto; padding: 12px 10px; background: #12283e; }
.mr-block { margin-bottom: 16px; }
.mr-block h4 { margin: 0 0 6px; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .08em; color: #9fb3c8; border-left: 3px solid #c9a227;
  padding-left: 7px; }
.mr-teil { display: flex; align-items: center; gap: 7px; width: 100%;
  text-align: left; background: none; border: 0; padding: 5px 8px;
  border-radius: 7px; font-size: .83rem; color: #d7e2ec; cursor: pointer;
  font-family: inherit; line-height: 1.3; }
.mr-teil:hover { background: rgba(255,255,255,.07); }
.mr-teil.akt { background: #c9a227; color: #1a1206; font-weight: 700; }
.mr-punkt { width: 9px; height: 9px; border-radius: 50%;
  display: inline-block; flex: 0 0 auto; }

#mr-buehne { position: relative; height: 680px; background: #0f2236;
  cursor: grab; }
#mr-buehne:active { cursor: grabbing; }
#mr-buehne canvas { display: block; }

#mr-etagen { position: absolute; top: 12px; left: 12px; display: flex;
  gap: 7px; z-index: 5; flex-wrap: wrap; max-width: calc(100% - 24px); }
.mr-etage { display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.93); border: 1px solid #cbd5e1;
  border-radius: 9px; padding: 6px 12px; font-size: .8rem; cursor: pointer;
  font-family: inherit; color: #0f2236; }
.mr-etage:hover { background: #fff; }
.mr-etage.akt { background: #c9a227; border-color: #a8871f; color: #1a1206;
  font-weight: 700; }

/* Aussenhaut-Schalter (31.08.2026): steht bei den Bereichs-Schaltflaechen,
 * aber sichtbar ABGESETZT durch den Trenner und eine eigene Farbe - er
 * waehlt keinen Bereich, er entscheidet, ob man durch die Huelle sieht.
 * Wird nur eingefuegt, wenn ein Modell das anfordert (siehe
 * static/js/maschinenraum.js, aussenhautBereich). */
.mr-haut-trenner { width: 1px; align-self: stretch; margin: 2px 3px;
  background: rgba(255,255,255,.4); }
.mr-haut-schalter { display: flex; align-items: center;
  background: rgba(122,50,38,.92); border: 1px solid #5c2519;
  border-radius: 9px; padding: 6px 13px; font-size: .8rem; cursor: pointer;
  font-family: inherit; color: #fff; font-weight: 700; }
.mr-haut-schalter:hover { background: #8f3c2c; }
.mr-haut-schalter.akt { background: #c9a227; border-color: #a8871f;
  color: #1a1206; }

.mr-werkzeug { position: absolute; bottom: 12px; left: 12px; display: flex;
  gap: 7px; z-index: 5; flex-wrap: wrap; align-items: center; }
.mr-knopf { background: rgba(255,255,255,.93); border: 1px solid #cbd5e1;
  border-radius: 9px; padding: 6px 13px; font-size: .8rem; cursor: pointer;
  font-family: inherit; color: #0f2236; }
.mr-knopf:hover { background: #fff; }
.mr-knopf.akt { background: #0f2236; color: #fff; border-color: #0f2236; }
#mr-etagentext { background: rgba(15,34,54,.72); color: #cfe0ee;
  font-size: .78rem; padding: 6px 11px; border-radius: 8px; }

#mr-tafel { position: absolute; top: 0; right: 0; width: 372px;
  max-width: 88%; height: 100%; overflow-y: auto;
  background: rgba(255,255,255,.985); border-left: 1px solid #e2e8f0;
  padding: 20px 22px 28px; transform: translateX(102%);
  transition: transform .26s ease; z-index: 6;
  box-shadow: -6px 0 22px rgba(0,0,0,.16); }
#mr-tafel.auf { transform: translateX(0); }
.mr-tafel-zu { position: absolute; top: 10px; right: 12px; background: none;
  border: 0; font-size: 1.5rem; line-height: 1; color: #94a3b8;
  cursor: pointer; padding: 2px 6px; }
.mr-tafel-gruppe { margin: 0 0 3px; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .07em; font-weight: 800; }
#mr-tafel h3 { margin: 0 0 6px; font-size: 1.14rem; font-weight: 800;
  color: #0f2236; }
.mr-tafel-kurz { margin: 0 0 13px; font-weight: 600; color: #1e4a6d;
  font-size: .92rem; line-height: 1.45; }
.mr-tafel-text p { margin: 0 0 11px; font-size: .88rem; line-height: 1.66;
  color: #334155; }

.mr-etagen-tabelle { width: 100%; border-collapse: collapse;
  margin: 22px 0 8px; font-size: .88rem; }
.mr-etagen-tabelle th { text-align: left; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .06em; color: #64748b;
  border-bottom: 1px solid #e2e8f0; padding: 7px 10px; }
.mr-etagen-tabelle td { border-bottom: 1px solid #eef2f6; padding: 9px 10px;
  vertical-align: top; color: #334155; }
.mr-etagen-tabelle td.n { font-weight: 700; color: #0f2236;
  white-space: nowrap; }
.mr-balken { display: inline-block; width: 10px; height: 10px;
  border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.mr-reg { color: #64748b; font-size: .8rem; }

@media (max-width: 900px) {
  .mr-rahmen { grid-template-columns: 1fr; }
  #mr-liste { max-height: 190px; border-right: 0;
    border-bottom: 1px solid #1e3a52; display: flex; flex-wrap: wrap; gap: 10px; }
  .mr-block { min-width: 180px; margin-bottom: 0; }
  #mr-buehne { height: 470px; }
  #mr-tafel { width: 100%; max-width: 100%; }
}

/* Bedienhinweis unter dem Modell - leise, aber auffindbar. */
.mr-bedienhinweis{margin-left:14px;font-size:.78rem;color:#8fa3b8;align-self:center;letter-spacing:.01em}
