/* ============================================================
   MacBook-Display (js/argus-konsole.js): macOS-Menüleiste und Safari-Fenster (dunkler Modus), darin die echte
   Argus24-Konsole mit Beispieldaten als iframe (public/argus24-demo/). Logisch 1280 × 831 Punkte (MacBook Pro 14" mit
   größerer Darstellung, Ben 09.11.2026; vorher 1512 × 982); Menüleiste so hoch wie die Notch (27).
   ============================================================ */
.mac {
  position: relative;
  width: 1280px;
  height: 831px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.mac svg { display: block; flex-shrink: 0; }
.mac-menu { height: 27px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 18px;
  background: #000; color: rgba(255,255,255,.92); font-size: 13px; font-weight: 500; }
.mac-menu-l, .mac-menu-r { display: flex; align-items: center; gap: 20px; }
.mac-menu-l .b { font-weight: 700; }
.mac-apple { margin-right: 2px; }
.mac-menu-r { gap: 16px; }
.mac-clock { white-space: pre; font-variant-numeric: tabular-nums; }

.saf { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #1e1e1e; }
.saf-bar { position: relative; height: 52px; flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 0 14px 0 20px;
  background: #2b2b2d; border-bottom: 1px solid #0a0a0a; box-shadow: inset 0 -1px 0 rgba(255,255,255,.05); color: rgba(255,255,255,.62); }
.saf-lights { display: flex; gap: 8px; margin-right: 14px; }
.saf-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); }
.saf-lights i:nth-child(2) { background: #febc2e; }
.saf-lights i:nth-child(3) { background: #28c840; }
.saf-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: inherit; cursor: default; }
button.saf-ic { cursor: pointer; transition: background .12s, color .12s; }
button.saf-ic:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
button.saf-ic:focus { outline: none; }
button.saf-ic:focus-visible { box-shadow: 0 0 0 2px #0a84ff; }
.saf-addr { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 560px; height: 30px; display: flex; align-items: center;
  justify-content: center; border-radius: 8px; background: #3a3a3c; color: rgba(255,255,255,.88); font-size: 13px; }
.saf-url { display: flex; align-items: center; gap: 6px; }
.saf-url svg { color: rgba(255,255,255,.55); }
.saf-url b { font-weight: 500; }
.saf-reload { position: absolute; right: 2px; top: 1px; color: rgba(255,255,255,.55); }
.saf-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.saf-views { position: relative; flex: 1; min-height: 0; background: #0B0F14; }
.saf-view { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #0B0F14; }

/* ============================================================
   MacBook-Szene (#konsole). Grundzustand ohne WebGL/mit reduzierter Bewegung: Text und flache Konsole
   im Rahmen untereinander bzw. nebeneinander. html.ag-on: klebende Bühne, MacBook in 3D, Konsole auf dem Display.
   ============================================================ */
.mb-tour { position: relative; background: radial-gradient(ellipse 70% 55% at 50% 55%, rgba(47, 103, 198, 0.09), transparent 70%), var(--ink-0); }
.mb-stage { position: relative; padding: clamp(80px, 10vw, 160px) 0; }
.mb-canvas { display: none; }
.mb-texts { display: grid; gap: 48px; }
.mb-text h2 { max-width: 16ch; }
.mb-text .lede { margin-top: 24px; max-width: 44ch; color: var(--text-2); }
.mb-cue { margin-top: 20px; font-family: var(--f-mono); font-size: 13px; color: var(--accent); }
/* flacher Rahmen um die Konsole (Grundzustand) */
.mb-flat { margin-top: 40px; padding: 2.2% 2.2% 2.6%; background: #0c0c0e; border: 1px solid #2a2a2e; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.mb-flat .mb-fit { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 1280 / 831; }
.mb-flat .mac { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--mb-s, 1)); }

html.ag-on .mb-tour { height: calc((100svh - 68px) * (1.6 + 1.1 * (var(--mb-steps, 1) - 1) + var(--mb-outro, 0))); }   /* Einflug 0,3 früher (Ben 09.11.2026) */
/* Ausflug (Ben 09.11.2026): nach der letzten Station fliegt das MacBook hinaus, der Identitäten-Kasten (vom Skript aus
   #identitaeten in die Bühne geholt) erscheint in der Mitte. Ohne 3D bleibt er als eigener Abschnitt stehen. */
.mb-outro { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; pointer-events: none; opacity: 0; visibility: hidden; }
.mb-outro > .wrap { width: 100%; }
html.ag-on .mb-stage { position: sticky; top: 68px; height: calc(100svh - 68px); padding: 0; overflow: hidden; }
html.ag-on .mb-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
html.ag-on .mb-flat { display: none; }
/* Display: die Konsole liegt per matrix3d genau auf der Bildschirmfläche (js/argus-macbook.js) */
.mb-screen { display: none; }
html.ag-on .mb-screen { display: block; position: absolute; left: 0; top: 0; z-index: 2; transform-origin: 0 0; opacity: 0; visibility: hidden;
  border-radius: 30px 30px 0 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
html.ag-on .mb-screen.is-on { visibility: visible; }
/* Notch und ein Hauch Spiegelung auf dem Glas */
html.ag-on .mb-screen::before { content: ""; position: absolute; z-index: 20; top: 0; left: 50%; width: 152px; height: 27px; margin-left: -76px;
  background: #000; border-radius: 0 0 9px 9px; pointer-events: none; }
html.ag-on .mb-screen::after { content: ""; position: absolute; z-index: 21; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,0) 38%); }
/* Textebene = Inhaltsspalte (.wrap, mittig, höchstens 1360 px); left/right: var(--gutter) = Kante des Inhalts */
html.ag-on .mb-texts { position: absolute; inset: 0; z-index: 3; display: block; pointer-events: none; }
html.ag-on .mb-text { position: absolute; top: 50%; width: min(36%, 460px); opacity: 0; transform: translateY(calc(-50% + 24px)); }
html.ag-on .mb-text[data-side="left"] { left: var(--gutter); }     /* Text links, MacBook rechts */
html.ag-on .mb-text[data-side="right"] { right: var(--gutter); }
html.ag-on .mb-text a { pointer-events: auto; }
@media (max-width: 759px) {
  html.ag-on .mb-text { top: auto; bottom: 7%; left: var(--gutter) !important; right: var(--gutter) !important; width: auto; transform: translateY(24px); }
  html.ag-on .mb-text .lede { margin-top: 14px; font-size: 16px; }
}

/* Rundgang-Knopf neben dem Text, Zoom aufs Display (Ben 09.11.2026) */
.mb-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mb-actions .mb-cue { margin: 0; }
.mb-tour-btn svg, .mb-close svg { flex-shrink: 0; }
.mb-tour-btn, .mb-close { display: inline-flex; align-items: center; gap: 10px; }
.mb-close { display: none; }
html.ag-on .mb-text button { pointer-events: auto; }
/* Klickfläche über dem Display (nur ohne Zoom): fängt den ersten Klick ab und zoomt heran */
.mb-hit { display: none; }
html.ag-on .mb-hit { display: flex; position: absolute; inset: 0; z-index: 30; align-items: flex-end; justify-content: center; padding: 0 0 64px;
  border: 0; background: transparent; cursor: zoom-in; }
/* Hinweis immer sichtbar (Ben 09.11.2026), beim Darüberfahren gelb gefüllt und etwas größer */
html.ag-on .mb-hit span { padding: 14px 28px; border-radius: 999px; background: rgba(11, 15, 20, .88); border: 2px solid var(--accent);
  color: var(--text-1); font: 600 30px/1 var(--f-body); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: background .18s, color .18s, transform .18s cubic-bezier(.2, 0, .2, 1); }
html.ag-on .mb-hit:hover span, html.ag-on .mb-hit:focus-visible span { background: var(--accent); color: var(--ink-0); transform: scale(1.06); }
html.ag-on .mb-hit:focus-visible { outline: none; }
html.ag-on .mb-tour.is-zoomed .mb-hit { display: none; }
html.ag-on .mb-tour.is-zoomed .mb-texts { visibility: hidden; }
html.ag-on .mb-close { display: inline-flex; position: absolute; z-index: 4; top: 20px; right: var(--gutter); opacity: 0; pointer-events: none;
  background: var(--ink-0); }
html.ag-on .mb-tour.is-zoomed .mb-close { pointer-events: auto; }
