/* 360°-Rundgang (User 24.11.2026) – Vollbild-Dialog + Knopf «360° Rundgang» auf den Studio-Bildern */

/* Knopf auf dem Studio-Bild (Audio-Seite und Studios-Seite) */
.pano-pill { position: absolute; left: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 5px; border-radius: 99px; border: 1px solid rgba(255,255,255,.32); background: rgba(10,10,10,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: 700 13px/1 var(--font, system-ui); letter-spacing: .02em; white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.pano-pill:hover { background: rgba(10,10,10,.82); border-color: rgba(255,255,255,.6); }
.pano-pill:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pano-th { width: 30px; height: 30px; border-radius: 50%; background: #222 center/cover no-repeat; box-shadow: 0 0 0 1px rgba(255,255,255,.35); flex: none; }
.pano-pill b { font-weight: 800; }
@media (max-width: 760px) { .pano-pill { left: 10px; bottom: 36px; height: 38px; } } /* über den Punkten der Galerie */

/* Vollbild-Dialog */
html.pano-open { overflow: hidden; }
.pano-dlg { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
.pano-dlg::backdrop { background: #000; }
.pano-stage { position: absolute; inset: 0; }
.pano-cv { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; outline: none; transition: opacity .35s; user-select: none; -webkit-user-select: none; }
.pano-cv.grab { cursor: grabbing; }
.pano-cv.fade { opacity: 0; }
.pano-hs-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* Pfeil zum nächsten Standort */
.pano-hs { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; will-change: transform; }
.pano-hs-ic { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(10,10,10,.55); border: 2px solid #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .2s, background .2s; }
.pano-hs-ic::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); animation: panoPulse 2.2s ease-out infinite; }
.pano-hs:hover .pano-hs-ic, .pano-hs:focus-visible .pano-hs-ic { transform: scale(1.12); background: rgba(10,10,10,.8); }
.pano-hs:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 12px; }
.pano-hs-t { padding: 5px 11px; border-radius: 99px; background: rgba(10,10,10,.72); font: 700 12px/1.2 var(--font, system-ui); white-space: nowrap; letter-spacing: .02em; }
@keyframes panoPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }

/* Kopf: Titel links, Schliessen rechts */
.pano-top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px clamp(14px, 3vw, 28px) 44px; background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,0)); pointer-events: none; }
.pano-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pano-code { padding: 5px 9px; border-radius: 8px; background: #fff; color: #0a0a0a; font: 800 13px/1 var(--mono, ui-monospace, monospace); letter-spacing: .04em; }
.pano-name { font: 800 clamp(17px, 2.4vw, 22px)/1.15 var(--font, system-ui); letter-spacing: .005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pano-x { pointer-events: auto; display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(10,10,10,.6); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, border-color .2s; }
.pano-x:hover { background: rgba(10,10,10,.9); border-color: #fff; }
.pano-x:focus-visible, .pano-z:focus-visible, .pano-scenes button:focus-visible, .pano-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Fuss: Standort-Wahl, Zoom, Anfrage */
.pano-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 46px clamp(14px, 3vw, 28px) clamp(14px, 3vw, 24px); background: linear-gradient(0deg, rgba(0,0,0,.66), rgba(0,0,0,0)); pointer-events: none; }
.pano-bottom > * { pointer-events: auto; }
.pano-scenes { display: inline-flex; gap: 6px; padding: 4px; border-radius: 99px; background: rgba(10,10,10,.6); border: 1px solid rgba(255,255,255,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pano-scenes[hidden] { display: none; }
.pano-scenes button { height: 38px; padding: 0 16px; border-radius: 99px; border: 0; background: transparent; color: rgba(255,255,255,.78); font: 700 13px/1 var(--font, system-ui); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.pano-scenes button:hover { color: #fff; background: rgba(255,255,255,.12); }
.pano-scenes button[aria-current="true"] { background: #fff; color: #0a0a0a; }
.pano-tools { display: inline-flex; gap: 6px; margin-left: auto; }
.pano-z { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(10,10,10,.6); color: #fff; font: 600 22px/1 var(--font, system-ui); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, border-color .2s; }
.pano-z:hover { background: rgba(10,10,10,.9); border-color: #fff; }
.pano-cta { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 99px; background: #fff; color: #0a0a0a; font: 800 14px/1 var(--font, system-ui); text-decoration: none; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.pano-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
@media (max-width: 640px) { .pano-tools { display: none; } .pano-cta { margin-left: auto; } } /* Handy: zwei Finger zum Zoomen */

/* Hinweis und Laden */
.pano-hint { position: absolute; left: 50%; top: 74px; transform: translateX(-50%); margin: 0; padding: 8px 16px; border-radius: 99px; background: rgba(10,10,10,.62); border: 1px solid rgba(255,255,255,.22); font: 600 13px/1.3 var(--font, system-ui); color: rgba(255,255,255,.9); text-align: center; max-width: calc(100vw - 32px); pointer-events: none; transition: opacity .6s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pano-hint.off { opacity: 0; }
.pano-load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 99px; background: rgba(10,10,10,.7); font: 600 13px/1 var(--font, system-ui); pointer-events: none; }
.pano-load.on { display: inline-flex; }
.pano-load i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: panoSpin .8s linear infinite; }
@keyframes panoSpin { to { transform: rotate(360deg); } }

/* Rückfall ohne WebGL */
.pano-flat { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 80px 0 70px; background: #000; }
.pano-flat[hidden] { display: none; }
.pano-flat p { margin: 0; padding: 0 20px; font-size: 14px; color: rgba(255,255,255,.85); }
.pano-flat-sc { flex: 1; overflow: auto; }
.pano-flat-sc img { height: 100%; width: auto; max-width: none; display: block; }

@media (prefers-reduced-motion: reduce) { .pano-hs-ic::after, .pano-load i { animation: none; } .pano-cv { transition: none; } }
