/* 3D-Leistungsmodell (optional je Demo, Profil-Flag showcase3d) */
.s3d { margin: 6px 0 34px; }
.s3d-stage {
  position: relative;
  height: min(62vh, 540px);
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #e9eef5 60%, #dfe5ee 100%);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  touch-action: pan-y;
}
.s3d-stage canvas { display: block; width: 100%; height: 100%; outline: none; cursor: grab; }
.s3d-stage canvas.dragging { cursor: grabbing; }
.s3d-stage canvas.pointing { cursor: pointer; }
.s3d-poster {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-soft, #64748b); font-size: 0.9rem;
  transition: opacity .4s ease; pointer-events: none;
}
.s3d-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.72); color: #fff;
  padding: 7px 14px; border-radius: 999px; font-size: 0.8rem;
  pointer-events: none; transition: opacity .4s ease; white-space: nowrap;
}
.s3d-tip {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: 260px; max-width: calc(100% - 24px);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-top: 3px solid var(--accent);
  border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.18);
  opacity: 0; transform: translateY(6px) scale(.98);
  transition: opacity .22s ease, transform .22s ease, left .35s ease, top .35s ease;
  pointer-events: none; text-align: left;
}
.s3d-tip.show { opacity: 1; transform: none; pointer-events: auto; }
.s3d-tip h3 { margin: 0 0 4px; font-size: 1.02rem; }
.s3d-tip p { margin: 0 0 10px; font-size: 0.86rem; color: var(--ink-soft, #64748b); line-height: 1.45; }
.s3d-tip a {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-size: 0.84rem; font-weight: 700; padding: 8px 14px; border-radius: 999px;
}
.s3d-hotspots { position: absolute; inset: 0; pointer-events: none; }
.s3d-hotspot {
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 0; padding: 0; background: none; cursor: pointer;
  pointer-events: auto; transition: opacity .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.s3d-hotspot .dot {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(15,23,42,.35);
}
.s3d-hotspot .dot::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid var(--accent); animation: s3d-ping 1.9s ease-out infinite;
}
@keyframes s3d-ping { 0% { transform: scale(.55); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.s3d-hotspot .lbl {
  position: absolute; left: 30px; top: 50%; transform: translate(-4px, -50%);
  background: rgba(15, 23, 42, 0.86); color: #fff; font-size: 0.76rem; font-weight: 600;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  opacity: 0; transition: opacity .18s ease, transform .18s ease; pointer-events: none;
}
.s3d-hotspot:hover .lbl, .s3d-hotspot.on .lbl { opacity: 1; transform: translate(0, -50%); }
.s3d-hotspot.lbl-left .lbl { left: auto; right: 30px; transform: translate(4px, -50%); }
.s3d-hotspot.lbl-left:hover .lbl, .s3d-hotspot.lbl-left.on .lbl { transform: translate(0, -50%); }
.s3d-hotspot.on .dot { transform: scale(1.25); }
.s3d-hotspot.on .dot::after { animation: none; opacity: 0; }
.s3d-hotspot.hidden { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .s3d-hotspot .dot::after { animation: none; } }
.s3d-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.s3d-chip {
  border: 1.5px solid var(--line, #e2e8f0); background: #fff; color: var(--ink, #16202e);
  font: inherit; font-size: 0.86rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.s3d-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.s3d-chip-all { border-style: dashed; border-color: var(--accent); color: var(--accent); }
.s3d.no-3d { display: none; }
@media (max-width: 640px) {
  .s3d { margin-bottom: 26px; }
  .s3d-stage { height: 92vw; max-height: 460px; min-height: 300px; border-radius: 14px; }
  .s3d-tip { position: static; width: auto; max-width: none; margin-top: 12px; display: none; transform: none; box-shadow: 0 6px 20px rgba(15,23,42,.1); background: #fff; }
  .s3d-tip.show { display: block; }
}
