/* ==========================================================================
   leistungen-buehne.css — Hero von leistungen.html im Aufbau der Mini-Seiten:
   links grosse Bühne (.mc-stage, sticky, 1,618fr), rechts Infos (.mc-head, .mc-controls).
   Die Grundregeln .mc-wrap/.mc-hero/.mc-stage stehen bei den Mini-Seiten inline, hier gleich benannt
   und mit denselben Variablen (--radius-lg, --line-strong, --brand ...), damit beide Seiten gleich wirken.
   Neu: .lp-* (Projektwähler, Projektfelder). Die Flaschenlicht-Regeln bleiben in flaschenlicht.css.
   ========================================================================== */

.mc-wrap { width:100%; max-width:1360px; margin:0 auto; padding:0 clamp(16px,3vw,34px); }
.mc-hero { display:grid; grid-template-columns:minmax(0,1.618fr) minmax(340px,1fr); grid-template-areas:"stage head" "stage controls"; grid-template-rows:auto 1fr; column-gap:clamp(21px,3vw,42px); padding:clamp(21px,3vw,34px) 0 55px; align-items:start; }
.mc-head { grid-area:head; min-width:0; }
.mc-head h1 { font-size:clamp(2rem,3.3vw,3.1rem); line-height:1.08; text-wrap:balance; margin:0 0 13px; }
.mc-head p { margin:0 0 21px; max-width:46ch; }
.mc-controls { grid-area:controls; min-width:0; }
.mc-stage { grid-area:stage; position:sticky; top:88px; height:min(calc(100vh - 110px),760px); min-height:420px; border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--line-strong); background:#0f1a24; display:flex; flex-direction:column; }

/* ---------- Projektwähler (Reiter, wie .mc-reiter der Mini-Seiten) ---------- */
.lp-reiter { flex:none; display:flex; gap:6px; padding:13px 13px 0; overflow-x:auto; scrollbar-width:thin; }
.lp-reiter button { flex:1 1 0; min-width:max-content; min-height:44px; padding:0 16px; font:inherit; font-size:.92rem; font-weight:600; color:var(--ink-soft); background:var(--bg-2); border:1.5px solid var(--line-strong); border-radius:var(--radius-sm); cursor:pointer; transition:border-color .15s ease, color .15s ease, background-color .15s ease; }
.lp-reiter button:hover { border-color:var(--ink-mute); }
.lp-reiter button:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.lp-reiter button[aria-selected="true"] { color:var(--brand); border-color:var(--brand); background:rgba(255,200,46,.1); }

/* ---------- Bühnenfelder (ein Feld je Projekt) ---------- */
.lp-feld { flex:1 1 auto; min-height:0; position:relative; display:flex; flex-direction:column; padding:13px; gap:0; }
.lp-feld[hidden] { display:none; }

/* 3D-Modell füllt das Feld */
.lp-feld model-viewer.viewer3d { flex:1 1 auto; width:100%; height:100%; min-height:0; aspect-ratio:auto; border-radius:var(--radius-sm); border:1px solid var(--line); }

/* Flaschenlicht-Bühne füllt das Feld, Befehlsleiste und Steuerung darunter */
.lp-feld .fl-stage { flex:1 1 auto; min-height:0; aspect-ratio:auto; }
.lp-feld .fl-cmd, .lp-feld .fl-ctrl { flex:none; }
.lp-feld .fl-cmd-out { height:3.4em; }
.lp-feld .fl-ctrl { margin-top:10px; }

/* ---------- Infos rechts ---------- */
.lp-info[hidden] { display:none; }
.lp-info > h2 { font-size:clamp(1.5rem,2.2vw,2rem); line-height:1.12; margin:0 0 10px; }
.lp-info > p { margin:0 0 18px; max-width:46ch; }
.lp-info h3 { font-size:.92rem; font-weight:600; color:var(--ink); margin:22px 0 8px; }
.lp-daten { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0; padding:0; }
.lp-daten div { padding:10px 12px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--bg-2); }
.lp-daten dt { font-size:.74rem; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-mute); }
.lp-daten dd { margin:2px 0 0; font-size:.95rem; font-weight:600; color:var(--ink); font-variant-numeric:tabular-nums; }
.lp-info ul.check { margin-top:0; }
.lp-info .fl-steps { margin-top:0; }
.lp-info .fl-note { margin:14px 0 0; }
.lp-aktionen { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }

/* Hinweis für neue Projekte: siehe Kommentar in leistungen.html (Vorlage "Neues Projekt"). */

@media (max-width:980px) {
  .mc-hero { grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "stage" "controls"; grid-template-rows:auto; }
  .mc-stage { position:relative; top:auto; height:auto; min-height:0; margin-bottom:21px; }
  .lp-feld { padding:10px; }
  .lp-feld model-viewer.viewer3d { flex:none; height:62svh; min-height:380px; }
  .lp-feld .fl-stage { flex:none; aspect-ratio:4 / 3; }
}
@media (max-width:640px) {
  .lp-feld .fl-stage { aspect-ratio:1 / 1.08; }
}
@media (max-width:420px) {
  .lp-daten { grid-template-columns:minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce) {
  .lp-reiter button { transition:none; }
}
.lp-reiter[hidden] { display:none; }

/* Ruhige Bühne ohne Projekt (Flaschenlicht pausiert, Freigabe Kunde fehlt) */
.lp-ruhe { align-items:center; justify-content:center; text-align:center; gap:14px; }
.lp-ruhe img { width:100%; max-height:100%; height:auto; object-fit:contain; min-height:0; flex:0 1 auto; }
.lp-ruhe p { margin:0; color:var(--ink-soft); font-size:.95rem; }
