/* ==========================================================================
   BÜHNEN-STANDARD (gemeinsame Stilquelle, 13.11.2026)
   Gilt für alle Seiten mit Vorschaufenster (index, leistungen, kontakt, faq, empfehlungen, Mini-Seiten):
   - Grösse Desktop: Höhe min(100vh - 110px, 760px), min. 420px, sticky top 88px, Spalten 1,618fr : 1fr, Radius var(--radius-lg), Rand 1px var(--line-strong)
   - Grösse Handy (3D-Bühnen): Höhe 62svh, min. 420px (Klasse .sb-3d, bei den Mini-Seiten inline gleich)
   - Drehung: gegen den Uhrzeigersinn, 15 Grad/s (zentral window.DVDD_DREHUNG_GRAD_S in js/main.js; model-viewer rotation-per-second, OrbitControls autoRotateSpeed 2,5)
   - Auswahl: Karussell (data-karussell am .lp-reiter, Logik in js/seiten-buehne.js), Pfeile rund 44 px wie .mc-pfeil
   - Schalter: Pillen .mc-klein-btn / .mm3-btn (min-height 44px, Radius 999px, Rand var(--line-strong))
   Die Grundregeln stehen in leistungen-buehne.css und in den Inline-Styles der Mini-Seiten; hier nur Zusätze und Angleichungen.
   ========================================================================== */

/* ==========================================================================
   seiten-buehne.css — Zusatz für index.html, kontakt.html, faq.html, empfehlungen.html
   Gleicher Hero-Aufbau wie leistungen.html: Grundregeln (.mc-wrap, .mc-hero, .mc-head, .mc-stage,
   .mc-controls, .lp-reiter, .lp-feld, .lp-info) kommen aus leistungen-buehne.css und werden hier nicht neu definiert.
   Hier nur das, was diese vier Seiten zusätzlich brauchen (Präfix .sb-):
   Titelmarkierung, Hinweis im Feld, Kontakt-Bühne, FAQ-Bühne, Empfehlungs-Bühne, Formular in schmaler Spalte.
   ========================================================================== */

.mc-hero { scroll-margin-top:80px; }
.mc-head h1 .hl { color:var(--brand); }
.mc-head .hero-trust { margin:0 0 29px; padding:0; list-style:none; }

/* ---------- Hinweiszeile unten im Bühnenfeld ---------- */
.sb-hinweis { flex:none; margin:10px 0 0; font-size:.82rem; color:var(--ink-mute); text-align:center; max-width:none; }

/* 3D-Modell in der Bühne: Hintergrund wie die Bühne, kein eigener Rahmen-Doppler */
.lp-feld model-viewer.viewer3d { --poster-color:transparent; background:transparent; }

/* ---------- Kontakt: Bild oben, Direktwege unten ---------- */
.sb-kontakt { justify-content:space-between; gap:13px; }
.sb-bild { flex:1 1 auto; min-height:0; display:flex; align-items:center; justify-content:center; }
.sb-bild img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; filter:drop-shadow(0 18px 28px rgb(0 0 0 / .38)); }
.sb-wege { flex:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.sb-weg { padding:14px 16px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--bg-2); min-width:0; }
.sb-weg h2 { font-size:.74rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-mute); font-weight:600; margin:0 0 6px; line-height:1.3; }
.sb-weg p { margin:0; font-size:.95rem; max-width:none; overflow-wrap:anywhere; }
.sb-weg small { display:block; margin-top:3px; font-size:.8rem; color:var(--ink-mute); }
.sb-weg a { color:var(--brand); font-weight:600; }
.sb-weg a:hover { text-decoration:underline; text-underline-offset:3px; }
.sb-weg a:focus-visible { outline:2px solid var(--brand); outline-offset:2px; border-radius:3px; }

/* Formular in der schmalen rechten Spalte: Name und E-Mail untereinander */
.mc-controls .form .row-2 { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; }

/* ---------- FAQ: Bild je Kategorie ---------- */
.sb-faqfeld { padding:13px; }
.sb-faqbild { position:relative; flex:1 1 auto; min-height:0; border-radius:var(--radius-sm); border:1px solid var(--line); overflow:hidden; background:var(--bg-2); display:flex; align-items:flex-end; }
.sb-faqbild > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.sb-faqbild.is-cutout > img { object-fit:contain; padding:21px 21px 90px; }
.sb-faqbild figcaption { position:relative; width:100%; padding:44px 21px 18px; background:linear-gradient(to top, rgba(8,14,19,.92) 40%, rgba(8,14,19,0)); }
.sb-faqbild figcaption b { display:block; font-size:clamp(1.3rem,2vw,1.7rem); line-height:1.15; color:var(--ink); }
.sb-faqbild figcaption span { display:block; margin-top:4px; font-size:.9rem; color:var(--ink-soft); }
.lp-info .faq { margin-top:0; }
.mc-controls > .notice { margin-top:21px; }

/* ---------- Empfehlungen: gewählte Empfehlung gross in der Bühne ---------- */
.sb-rec { --c:var(--brand); align-items:center; justify-content:center; text-align:center; padding:clamp(21px,4vw,55px); background:radial-gradient(ellipse 70% 55% at 50% 38%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); }
.sb-rec-logo { width:clamp(96px,14vw,136px); height:clamp(96px,14vw,136px); border-radius:28px; background:var(--bg-3); border:1px solid var(--line-strong); display:grid; place-items:center; color:var(--c); }
.sb-rec-logo svg { width:56%; height:56%; }
.sb-rec h2 { margin:26px 0 0; font-size:clamp(1.6rem,2.8vw,2.4rem); line-height:1.12; }
.sb-rec .quote { margin:26px auto 0; max-width:34ch; text-align:left; border-left:2px dashed var(--brand); padding-left:16px; font-style:italic; font-size:clamp(1rem,1.4vw,1.15rem); color:var(--ink-soft); }
.lp-info .sb-link { margin-top:6px; }

/* ---------- Schmal ---------- */
@media (max-width:980px) {
  .sb-kontakt { gap:13px; }
  .sb-bild { flex:none; }
  .sb-bild img { max-height:46svh; }
  .sb-faqfeld .sb-faqbild { flex:none; height:min(52svh,420px); }
  .sb-rec { padding:34px 21px; }
}
@media (max-width:640px) {
  .sb-wege { grid-template-columns:minmax(0,1fr); }
}

/* Empfehlungen: Logo bzw. Bild der Empfohlenen statt Icon */
.sb-rec-logo.is-bild { width:auto; height:auto; max-width:100%; background:none; border:0; border-radius:0; display:block; }
.sb-rec-logo.is-bild img { display:block; max-width:100%; height:auto; }
.sb-rec-logo.is-rund img { width:clamp(120px,16vw,170px); border-radius:50%; box-shadow:0 14px 34px -12px rgba(0,0,0,.6); }
.sb-rec-logo.is-wide { width:min(100%,400px); padding:clamp(18px,3vw,28px); background:var(--bg-3); border:1px solid var(--line-strong); border-radius:20px; }
.sb-rec-logo.is-wide img { width:100%; }
.sb-rec-logo.is-hell { background:#f4efe6; border-color:transparent; }
.sb-rec-logo.is-foto { width:min(100%,420px); }
.sb-rec-logo.is-foto img { width:100%; aspect-ratio:4 / 3; object-fit:cover; object-position:70% 50%; border-radius:20px; border:1px solid var(--line-strong); }

/* ---------- Karussell-Wähler (js/seiten-buehne.js, Attribut data-karussell am .lp-reiter) ---------- */
.sb-kar { flex:none; position:relative; padding:13px 13px 0; }
.sb-karussell { position:relative; display:block; height:60px; padding:0; margin:0 50px; overflow:hidden; touch-action:pan-y; }
.sb-karussell button { position:absolute; left:50%; top:50%; flex:none; min-width:0; padding:0 8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transform-origin:center; will-change:transform,opacity; transition:transform .45s cubic-bezier(.23,1,.32,1), opacity .45s ease, border-color .15s ease, color .15s ease, background-color .15s ease; }
.sb-kar-pfeil { position:absolute; top:21px; width:44px; height:44px; display:flex; align-items:center; justify-content:center; padding:0; border-radius:50%; border:1px solid var(--line-strong); background:rgba(8,14,19,.78); color:var(--ink); cursor:pointer; transition:border-color .15s ease, transform .12s ease; z-index:20; }
.sb-kar-pfeil:hover { border-color:var(--brand); }
.sb-kar-pfeil:active { transform:scale(.97); }
.sb-kar-pfeil:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.sb-kar-zu { left:13px; }
.sb-kar-vor { right:13px; }
@media (max-width:980px) { .sb-kar { padding:10px 10px 0; } .sb-kar-pfeil { top:18px; } .sb-kar-zu { left:10px; } .sb-kar-vor { right:10px; } }
@media (prefers-reduced-motion:reduce) { .sb-karussell button { transition:none; } }

/* ---------- 3D-Bühne auf dem Handy: gleiche Höhe wie die Mini-Seiten (62svh, min. 420px) ---------- */
@media (max-width:980px) {
  .mc-stage.sb-3d { height:62vh; height:62svh; min-height:420px; }
  .mc-stage.sb-3d .lp-feld { flex:1 1 auto; min-height:0; }
  .mc-stage.sb-3d .lp-feld model-viewer.viewer3d { flex:1 1 auto; height:auto; min-height:0; }
}

/* ---------- mini-staedte.html: Bühne auf die Mini-Standardmasse bringen (Layout bleibt: Auswahl über der Bühne, Panel rechts) ---------- */
.ms-viewer { grid-template-columns:minmax(0,1.618fr) minmax(340px,1fr); column-gap:clamp(21px,3vw,42px); }
.ms-viewer .ms-buehne { position:sticky; top:88px; height:min(calc(100vh - 110px),760px); min-height:420px; border-radius:var(--radius-lg); }
@media (max-width:900px) {
  .ms-viewer { grid-template-columns:minmax(0,1fr); }
  .ms-viewer .ms-buehne { position:relative; top:auto; height:62vh; height:62svh; min-height:420px; }
}

/* ---------- Spiegel-Karussell in den Mini-Bühnen (js/seiten-buehne.js, Attribut data-spiegel an der Bühne) ---------- */
.sb-kar[hidden] { display:none; }
.sb-spiegel { position:absolute; left:0; right:0; top:0; z-index:8; pointer-events:none; }
.sb-spiegel .sb-kar { pointer-events:auto; padding:10px 13px 0; }
.sb-spiegel .sb-karussell { height:48px; margin:0 50px; }
.sb-spiegel .sb-kar-pfeil { top:12px; }
.sb-spiegel .sb-kar-zu { left:13px; }
.sb-spiegel .sb-kar-vor { right:13px; }
.sb-spiegel .sb-karussell button { font:inherit; font-size:.92rem; font-weight:600; min-height:44px; color:var(--ink-soft); background:var(--bg-2); border:1.5px solid var(--line-strong); border-radius:var(--radius-sm); cursor:pointer; }
.sb-spiegel .sb-karussell button:hover { border-color:var(--ink-mute); }
.sb-spiegel .sb-karussell button[aria-checked="true"] { color:var(--brand); border-color:var(--brand); background:rgba(255,200,46,.1); }
.sb-spiegel .sb-karussell button:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
/* Beschriftung, Luftbild-Knopf und Motiv rutschen unter das Karussell (Höhe setzt das Skript als --sb-oben) */
.mc-stage .mc-tag, .mm3-stage .mm3-tag { top:calc(var(--sb-oben,0px) + 13px); }
.mc-stage .mc-sicht { top:calc(var(--sb-oben,0px) + 55px); }
.mc-stage .mc-motiv { padding-top:calc(var(--sb-oben,0px) + 54px); }
@media (max-width:980px) { .sb-spiegel .sb-kar { padding:8px 10px 0; } .sb-spiegel .sb-kar-zu { left:10px; } .sb-spiegel .sb-kar-vor { right:10px; } }
@media (max-width:640px) {
  .sb-spiegel .sb-kar { padding:6px 8px 0; }
  .sb-spiegel .sb-karussell { height:42px; margin:0 44px; }
  .sb-spiegel .sb-karussell button { min-height:40px; font-size:.88rem; }
  .sb-spiegel .sb-kar-pfeil { top:7px; width:40px; height:40px; }
  .sb-spiegel .sb-kar-zu { left:8px; } .sb-spiegel .sb-kar-vor { right:8px; }
}
