/* ---------------------------------------------------------------------------
   Vectral 2.0 — Einbettung der 3D-Ansicht (Sprint B11 §3.3)
   Umschalter „2D | 3D“ in Wireframe-Optik (.pills aus bausteine.css),
   iframe-Fläche, Hinweiszeile und Fallback-Hinweis. Keine Fachwerte.
--------------------------------------------------------------------------- */

.vis-umschalter a { min-width: 96px; }

.vis-flaeche {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius, 10px);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.vis-iframe {
  display: block;
  width: 100%;
  height: min(78vh, 900px);
  min-height: 520px;
  border: 0;
  background: #f6f7f9;
}

/* B15: Vollbild der 3D-Fläche (Knopf „Vollbild“ am Umschalter, Esc beendet) */
.vis-flaeche.is-vollbild {
  position: fixed;
  inset: 0;
  z-index: 60;
  border-radius: 0;
  border: 0;
}

.vis-flaeche.is-vollbild .vis-iframe {
  height: 100vh;
  min-height: 0;
}

.vis-vollbild-schliessen {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 61;
}

body.vis-vollbild-aktiv {
  overflow: hidden;
}

.vis-hinweis {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.vis-hinweis.vis-geladen { color: var(--ink); }

.vis-hinweis.vis-fallback {
  color: var(--ink);
  border-color: #E4C48A;
  background: #FFF8E8;
}

.vis-hinweis .vis-grund { color: var(--muted); }
