/*! SonoMedical Detail-Bühne 1.3.1 */

/* Größere Bühne im Hochformat (nur auf Geräteseiten mit eingeschalteter Detail-Bühne geladen) */
.sx-gallery .sx-gallery-main {
  aspect-ratio: 4 / 5 !important;
  max-height: max(480px, min(780px, calc(100vh - 210px)));
  container: smdb / inline-size;
}
.sx-gallery .sx-gallery-main > img.js-gal-main {
  inset: 4% 5% !important;
  width: 90% !important;
  height: 92% !important;
}
.sx-gallery .sx-gallery-main .sm-gal-badge { z-index: 4; pointer-events: none; }
/* Handy: während der Tour höhere Bühne */
.sx-gallery .sx-gallery-main.smdb-tall {
  aspect-ratio: auto !important;
  height: min(640px, calc(100vh - 100px));
  height: min(640px, calc(100svh - 100px));
  max-height: none;
}

.smdb-stage {
  position: absolute; inset: 0; z-index: 2;
  background: var(--surface, #fff);
  opacity: 0; transition: opacity .35s ease;
  outline: none; cursor: zoom-in;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}
.smdb-stage.is-ready { opacity: 1; }
.smdb-stage.is-zoom { cursor: zoom-out; }
.smdb-stage:focus-visible { box-shadow: inset 0 0 0 3px var(--focus, #225b90); border-radius: inherit; }
.sx-gallery-main.smdb-off .smdb-stage,
.sx-gallery-main.sym-on .smdb-stage { display: none; }
.sx-gallery-main.smdb-off + .smdb-lenses { display: none; }

.smdb-vp, .smdb-fs-vp { position: absolute; inset: 0; overflow: hidden; }
.smdb-cam { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.smdb-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; display: block;
  pointer-events: none; -webkit-user-drag: none; user-select: none;
}
.smdb-hi { opacity: 0; transition: opacity .45s ease; }
.smdb-hi.is-on { opacity: 1; }
.smdb-floor {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(closest-side, rgba(11, 35, 59, .34), rgba(11, 35, 59, .14) 55%, rgba(11, 35, 59, 0));
  mix-blend-mode: multiply;
}
.smdb-floor.is-on { opacity: 1; }

/* Hotspots */
.smdb-dots { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.smdb-dot {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  pointer-events: auto; transition: opacity .3s ease; -webkit-tap-highlight-color: transparent;
}
.smdb-dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px;
  border-radius: 50%; background: rgba(54, 118, 174, .38);
  animation: smdb-pulse 2.8s cubic-bezier(.2, .6, .35, 1) infinite; animation-delay: var(--d, 0s);
}
.smdb-dot-c {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px;
  border-radius: 50%; background: var(--sono-blue-700, #225b90);
  box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(11, 35, 59, .38);
  transition: transform .2s ease, background .2s ease;
}
.smdb-dot:focus-visible .smdb-dot-c, .smdb-dot.is-hot .smdb-dot-c { transform: scale(1.3); }
@media (hover: hover) { .smdb-dot:hover .smdb-dot-c { transform: scale(1.3); } }
.smdb-dot:focus-visible { outline: none; }
.smdb-dot:focus-visible .smdb-dot-c { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--focus, #225b90); }
.smdb-dot-l {
  position: absolute; left: 34px; top: 50%; transform: translate(-4px, -50%);
  white-space: nowrap; pointer-events: none; opacity: 0;
  padding: 7px 11px; border-radius: 999px; background: #fff; color: var(--navy, #0b233b);
  font: 600 13px/1 var(--font-display, system-ui, sans-serif);
  box-shadow: 0 4px 16px rgba(11, 35, 59, .18); transition: opacity .18s ease, transform .18s ease;
}
.smdb-dot.is-left .smdb-dot-l { left: auto; right: 34px; transform: translate(4px, -50%); }
.smdb-dot:focus-visible .smdb-dot-l, .smdb-dot.is-hot .smdb-dot-l { opacity: 1; transform: translate(0, -50%); }
@media (hover: hover) { .smdb-dot:hover .smdb-dot-l { opacity: 1; transform: translate(0, -50%); } }
.is-tour .smdb-dot { opacity: .5; }
.is-tour .smdb-dot.is-act { opacity: 1; }
.is-tour .smdb-dot .smdb-dot-l { display: none; }
.smdb-dot.is-act::before { animation: none; transform: scale(2.4); background: rgba(122, 203, 200, .45); }
.smdb-dot.is-act .smdb-dot-c { background: var(--aqua-700, #21716e); }
.is-zoom .smdb-dot::before { animation: none; opacity: 0; }
@keyframes smdb-pulse {
  0% { transform: scale(1); opacity: .95; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}

/* Detail-Kacheln (Linsen) */
.smdb-lenses { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .3s ease; }
.smdb-lens {
  position: absolute; left: 0; top: 0; width: 120px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 0; border: 0; background: none; color: inherit; font: inherit;
  cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent;
}
.smdb-lens-i {
  display: block; width: var(--ls, 80px); height: var(--ls, 80px); border-radius: 50%;
  background-color: #fff; background-repeat: no-repeat;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line, #dde4eb), 0 8px 22px rgba(11, 35, 59, .14);
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) { .smdb-lens:hover .smdb-lens-i { transform: scale(1.06); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sono-blue, #3676ae), 0 12px 28px rgba(11, 35, 59, .2); } }
.smdb-lens:focus-visible .smdb-lens-i, .smdb-lens.is-hot .smdb-lens-i {
  transform: scale(1.06);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sono-blue, #3676ae), 0 12px 28px rgba(11, 35, 59, .2);
}
.smdb-lens:focus-visible { outline: none; }
.smdb-lens-l {
  max-width: 120px; text-align: center;
  font: 600 12.5px/1.25 var(--font-display, system-ui, sans-serif); color: var(--navy, #0b233b);
}
.is-zoom .smdb-lenses, .is-tour .smdb-lenses { opacity: 0; pointer-events: none; }
.is-zoom .smdb-lens, .is-tour .smdb-lens { pointer-events: none; }
.smdb-lenses.is-row {
  position: static; display: flex; gap: 6px; padding: 4px 0 6px; min-width: 0; width: 100%;
  pointer-events: auto; justify-content: space-between;
}
.smdb-lenses.is-row .smdb-lens { position: static; flex: 1 1 0; min-width: 0; width: auto; --ls: 56px; transform: none; }
.smdb-lenses.is-row .smdb-lens-l { font-size: 11.5px; max-width: 100%; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.smdb-lens.is-act .smdb-lens-i { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--aqua-700, #21716e), 0 10px 26px rgba(11, 35, 59, .18); }

/* Verbindungslinie Kachel → Punkt */
.smdb-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.smdb-lines path {
  fill: none; stroke: var(--sono-blue, #3676ae); stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: smdb-draw .35s ease-out forwards;
}
.smdb-lines circle { fill: var(--sono-blue, #3676ae); }
@keyframes smdb-draw { to { stroke-dashoffset: 0; } }

/* Bedienelemente der Bühne */
.smdb-fsbtn {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line, #dde4eb); background: rgba(255, 255, 255, .94); color: var(--navy, #0b233b);
  box-shadow: 0 2px 10px rgba(11, 35, 59, .1); transition: transform .2s ease, border-color .2s ease;
}
.smdb-fsbtn:hover { transform: scale(1.07); border-color: var(--sono-blue, #3676ae); }
.smdb-fsbtn svg { width: 18px; height: 18px; }
.smdb-bar { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; transition: opacity .25s ease; }
.is-tour .smdb-bar { opacity: 0; pointer-events: none; }
.smdb-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 1px solid var(--line, #dde4eb); background: rgba(255, 255, 255, .94);
  color: var(--navy, #0b233b); font: 600 13.5px/1 var(--font-display, system-ui, sans-serif);
  white-space: nowrap; box-shadow: 0 2px 10px rgba(11, 35, 59, .08);
}
.smdb-pill svg { width: 16px; height: 16px; flex: 0 0 auto; }
.smdb-pill[hidden] { display: none; }
.smdb-tourbtn { cursor: pointer; color: #fff; background: var(--sono-blue-700, #225b90); border-color: transparent; transition: background .2s ease, transform .2s ease; }
.smdb-tourbtn:hover { background: var(--sono-blue-800, #184470); transform: translateY(-1px); }
.smdb-hint { color: var(--ink-muted, #576574); font-weight: 500; background: rgba(255, 255, 255, .86); box-shadow: none; }

@container smdb (max-width: 400px) { .smdb-hint { display: none; } }

/* Infokarte der Tour – Navigation unten fest, springt nicht */
.smdb-card {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5;
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  padding: 14px 14px 12px; border-radius: 16px; border: 1px solid var(--line, #dde4eb);
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 2px 4px rgba(14, 42, 63, .08), 0 18px 44px rgba(14, 42, 63, .16);
  opacity: 0; transform: translateY(12px); pointer-events: none; cursor: default;
  transition: opacity .3s ease, transform .3s ease;
}
.smdb-card.is-on { opacity: 1; transform: none; pointer-events: auto; }
.smdb-card-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; padding-right: 36px; }
.smdb-card-main.is-swap { animation: smdb-swap .38s ease both; }
@keyframes smdb-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.smdb-card-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sono-blue-100, #e7f2fc) 0%, var(--aqua-100, #def6f4) 100%); box-shadow: inset 0 0 0 1px rgba(34, 91, 144, .08); color: var(--sono-blue-700, #225b90); }
.smdb-card-ic svg { width: 24px; height: 24px; }
.smdb-card-b { min-width: 0; }
.smdb-card-k { margin-bottom: 3px; font: 700 11px/1 var(--font-display, system-ui, sans-serif); letter-spacing: .08em; color: var(--ink-muted, #576574); }
.smdb-card-t { font: 700 17px/1.25 var(--font-display, system-ui, sans-serif); color: var(--navy, #0b233b); }
.smdb-card-x { margin-top: 3px; font: 400 15px/1.4 var(--font-body, system-ui, sans-serif); color: var(--ink, #1c2735); }
.smdb-card-s { margin-top: 3px; font: 400 13.5px/1.4 var(--font-body, system-ui, sans-serif); color: var(--ink-muted, #576574); }
.smdb-card-cta {
  display: block; margin-top: 8px; padding: 0; border: 0; background: none;
  color: var(--sono-blue-700, #225b90); font: 700 14px/1.35 var(--font-display, system-ui, sans-serif); cursor: pointer; text-align: left;
}
.smdb-card-cta svg { display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; transition: transform .2s ease; }
.smdb-card-cta:hover svg { transform: translateX(3px); }
.smdb-card-close {
  /* z-index: liegt sonst unter dem Karteninhalt (Überblend-Animation bildet eigene Ebene) – Klick/Tippen kam nicht an */
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: var(--ink-muted, #576574); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, color .2s ease;
}
@media (pointer: coarse) {
  .smdb-card-close { top: 4px; right: 4px; width: 46px; height: 46px; }
}
.smdb-card-close:hover { background: var(--sono-blue-50, #f5fafe); color: var(--navy, #0b233b); }
.smdb-card-close svg { width: 18px; height: 18px; }
.smdb-card-foot { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line, #dde4eb); }
.smdb-card-steps { flex: 1 1 auto; min-width: 40px; display: flex; gap: 4px; }
.smdb-card-steps i { flex: 1 1 0; height: 4px; border-radius: 4px; background: var(--line, #dde4eb); transition: background .35s ease; }
.smdb-card-steps i.is-done { background: var(--sono-blue, #3676ae); }
.smdb-card-steps i.is-cur { background: linear-gradient(90deg, var(--sono-blue, #3676ae), var(--aqua, #7acbc8)); }
.smdb-prev {
  flex: 0 0 auto; width: 46px; height: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--line, #dde4eb); background: #fff; color: var(--navy, #0b233b);
  transition: border-color .2s ease, transform .15s ease, opacity .2s ease;
}
.smdb-prev:hover:not(:disabled) { border-color: var(--sono-blue, #3676ae); color: var(--sono-blue-700, #225b90); }
.smdb-prev:active:not(:disabled) { transform: scale(.94); }
.smdb-prev:disabled { opacity: .35; cursor: default; }
.smdb-prev svg { width: 20px; height: 20px; }
.smdb-next {
  flex: 0 0 auto; width: 136px; height: 46px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--sono-blue-700, #225b90); color: #fff; font: 700 15px/1 var(--font-display, system-ui, sans-serif);
  box-shadow: 0 6px 16px rgba(34, 91, 144, .28); transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.smdb-next:hover { background: var(--sono-blue-800, #184470); box-shadow: 0 8px 20px rgba(24, 68, 112, .32); }
.smdb-next:active { transform: scale(.97); }
.smdb-next svg { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .2s ease; }
.smdb-next:hover svg { transform: translateX(3px); }
.smdb-next.is-done { background: var(--aqua-700, #21716e); box-shadow: 0 6px 16px rgba(33, 113, 110, .28); }
.smdb-next.is-done:hover svg { transform: none; }
.smdb-nb {
  width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line, #dde4eb); background: #fff; color: var(--navy, #0b233b); transition: border-color .2s ease, transform .2s ease;
}
.smdb-nb:hover { border-color: var(--sono-blue, #3676ae); }
.smdb-nb:active { transform: scale(.94); }
.smdb-nb svg { width: 18px; height: 18px; }
.smdb-prev:focus-visible, .smdb-next:focus-visible, .smdb-card-close:focus-visible { outline: 3px solid var(--focus, #225b90); outline-offset: 2px; }

/* Während der Tour schwebende Knöpfe des Themes (WhatsApp, nach oben) ausblenden */
.sx-float { transition: opacity .25s ease, visibility .25s ease; }
html.smdb-touring .sx-float { opacity: 0; visibility: hidden; pointer-events: none; }

/* Vollbild */
html.smdb-lock, html.smdb-lock body { overflow: hidden !important; }
.smdb-fs {
  position: fixed; inset: 0; z-index: 2147483000;
  background: #fff;
  opacity: 0; transition: opacity .22s ease;
  touch-action: none; overscroll-behavior: contain;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.smdb-fs.is-open { opacity: 1; }
.smdb-fs-vp { cursor: grab; }
.smdb-fs.is-drag .smdb-fs-vp { cursor: grabbing; }
.smdb-fs .smdb-dots { z-index: 2; }
.smdb-fs-top {
  position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 4;
  background: linear-gradient(rgba(255, 255, 255, .92) 45%, rgba(255, 255, 255, 0));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 14px 0 20px; pointer-events: none;
}
.smdb-fs-title { min-width: 0; pointer-events: auto; font: 700 16px/1.25 var(--font-display, system-ui, sans-serif); color: var(--navy, #0b233b); }
.smdb-fs-sub { display: flex; align-items: center; gap: 8px; margin-top: 2px; min-height: 0; }
.smdb-fs-count { font: 500 12.5px/1.3 var(--font-body, system-ui, sans-serif); color: var(--ink-muted, #576574); }
.smdb-fs-count:empty, .smdb-fs-q:empty { display: none; }
.smdb-fs-q {
  padding: 2px 8px; border-radius: 999px; background: var(--aqua-100, #def6f4); color: var(--aqua-700, #21716e);
  font: 700 10.5px/1.45 var(--font-display, system-ui, sans-serif); letter-spacing: .03em; white-space: nowrap;
}
.smdb-fs-close, .smdb-fs-nav {
  pointer-events: auto; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line, #dde4eb); background: rgba(255, 255, 255, .95); color: var(--navy, #0b233b);
  box-shadow: 0 2px 10px rgba(11, 35, 59, .1); transition: transform .2s ease, border-color .2s ease;
}
.smdb-fs-close:hover, .smdb-fs-nav:hover { transform: scale(1.06); border-color: var(--sono-blue, #3676ae); }
.smdb-fs-close svg, .smdb-fs-nav svg { width: 20px; height: 20px; }
.smdb-fs-nav { position: absolute; top: 50%; margin-top: -22px; z-index: 4; }
.smdb-fs-prev { left: 16px; }
.smdb-fs-next { right: 16px; }
.smdb-fs-zoom { position: absolute; right: 16px; bottom: 20px; z-index: 4; display: flex; flex-direction: column; gap: 8px; }
.smdb-fs-zoom .smdb-nb { width: 40px; height: 40px; box-shadow: 0 2px 10px rgba(11, 35, 59, .1); }
.smdb-fs-strip {
  position: absolute; left: 50%; bottom: 14px; z-index: 4; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 10px 10px 8px; border-radius: 22px;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line, #dde4eb); box-shadow: 0 10px 30px rgba(11, 35, 59, .12);
  transition: opacity .3s ease, transform .3s ease; max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none;
}
.smdb-fs-strip[hidden] { display: none; }
.smdb-fs-strip .smdb-lens { position: static; width: 92px; flex: 0 0 auto; --ls: 52px; }
.smdb-fs-strip .smdb-lens-l { font-size: 11.5px; max-width: 90px; }
.smdb-fs.is-tour .smdb-fs-strip { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.smdb-fs .smdb-card { left: 50%; right: auto; bottom: 16px; width: min(480px, calc(100% - 24px)); transform: translate(-50%, 12px); }
.smdb-fs .smdb-card.is-on { transform: translate(-50%, 0); }
.smdb-fs-hint {
  position: absolute; left: 50%; bottom: 128px; z-index: 4; transform: translateX(-50%);
  padding: 9px 14px; border-radius: 999px; background: rgba(11, 35, 59, .8); color: #fff;
  font: 500 13px/1.2 var(--font-body, system-ui, sans-serif); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .45s ease;
}
.smdb-fs-hint.is-on { opacity: 1; }

@media (max-width: 600px) {
  .smdb-fs-top { height: 58px; padding-left: 16px; }
  .smdb-fs-title { font-size: 15px; }
  .smdb-fs-nav, .smdb-fs-zoom { display: none; }
  .smdb-fs-strip { gap: 2px; padding: 8px 8px 6px; }
  .smdb-fs-strip .smdb-lens { width: 64px; --ls: 44px; }
  .smdb-fs-strip .smdb-lens-l { font-size: 10.5px; }
  .smdb-fs-hint { bottom: 100px; white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 32px); }
  .smdb-card { padding: 12px 12px 10px; gap: 10px; }
  .smdb-card-ic { width: 36px; height: 36px; border-radius: 10px; }
  .smdb-card-ic svg { width: 21px; height: 21px; }
  .smdb-card-t { font-size: 16px; }
  .smdb-card-x { font-size: 14.5px; }
  .smdb-card-foot { padding-top: 10px; }
  .smdb-next { width: 124px; }
  .smdb-pill { height: 34px; font-size: 13px; padding: 0 12px 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .smdb-dot::before { animation: none; opacity: .5; transform: scale(1.8); }
  .smdb-lines path { animation: none; stroke-dashoffset: 0; }
  .smdb-stage, .smdb-card, .smdb-fs, .smdb-hi, .smdb-lens-i, .smdb-floor { transition-duration: .01s; }
}

/* 17.11.2026: Etikett „Top-Offerte“ blendet bei Zoom und Geräte-Tour aus (stand sonst mitten auf der Nahaufnahme) und kommt danach weich zurück */
.sx-gallery .sx-gallery-main > .sm-gal-badge { transition: opacity .3s ease, visibility 0s linear 0s; }
html.smdb-touring .sx-gallery .sx-gallery-main > .sm-gal-badge,
.sx-gallery .sx-gallery-main:has(> .smdb-stage.is-zoom) > .sm-gal-badge,
.sx-gallery .sx-gallery-main:has(> .smdb-stage.is-tour) > .sm-gal-badge { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
