/* VRSteidl Viewer */
.vrs {
  --acc: #efd500; --ink: #0a0b0d; --glass: rgba(10, 11, 13, .72);
  position: relative; overflow: hidden; background: #111; color: #fff; user-select: none; -webkit-user-select: none;
  font-family: "Gilroy", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  touch-action: none; outline: none;
}
.vrs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.vrs:active .vrs-canvas { cursor: grabbing; }
.vrs-layer { position: absolute; inset: 0; pointer-events: none; }
.vrs-layer > * { position: absolute; left: 0; top: 0; pointer-events: auto; }

/* Gehen-Pfeil */
.vrs-link { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); }
.vrs-link-ring {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); border: 3px solid var(--acc);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35), 0 0 0 6px rgba(239, 213, 0, .25);
  transition: transform .2s, background .2s;
}
.vrs-link-ring svg { width: 24px; height: 24px; }
.vrs-link:hover .vrs-link-ring, .vrs-link:focus-visible .vrs-link-ring { transform: scale(1.12); background: var(--acc); }
.vrs-link-label {
  font-size: 13px; font-weight: 700; color: #fff; background: var(--glass); padding: 4px 10px; border-radius: 999px;
  white-space: nowrap; backdrop-filter: blur(6px); opacity: .9;
}
/* Bodenpunkte (wie Matterport) */
.vrs-floor { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.vrs-spot { pointer-events: auto; cursor: pointer; outline: none; }
.vrs-spot-disc { fill: rgba(255, 255, 255, .22); stroke: rgba(255, 255, 255, .95); stroke-width: 2.5; transition: fill .2s, stroke .2s; }
.vrs-spot-core { fill: rgba(255, 255, 255, .85); transition: fill .2s; }
.vrs-spot:hover .vrs-spot-disc, .vrs-spot:focus-visible .vrs-spot-disc { fill: rgba(239, 213, 0, .4); stroke: var(--acc); }
.vrs-spot:hover .vrs-spot-core, .vrs-spot:focus-visible .vrs-spot-core { fill: var(--acc); }
.vrs-layer > .vrs-spot-label {
  pointer-events: none; font-size: 12px; font-weight: 700; color: #fff; background: var(--glass); padding: 3px 9px; border-radius: 999px;
  white-space: nowrap; opacity: 0; transition: opacity .2s; backdrop-filter: blur(6px);
}
.vrs-layer > .vrs-spot-label.is-hover { opacity: 1; }
@media (hover: none) { .vrs-layer > .vrs-spot-label { opacity: .9; } }

.vrs-wire { fill: none; stroke: var(--acc); stroke-width: 2; stroke-dasharray: 6 4; pointer-events: none; }
.vrs-edit input[type=number] { width: 70px; margin-left: 6px; padding: 4px 6px; border-radius: 6px; background: #000; color: #fff; border: 1px solid #444; }

/* Info-Punkt */
.vrs-dot {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--acc); color: var(--ink);
  font: 800 15px/1 Georgia, serif; font-style: italic; cursor: pointer; box-shadow: 0 0 0 0 rgba(239, 213, 0, .6);
  animation: vrsPulse 2.2s infinite;
}
@keyframes vrsPulse { 50% { box-shadow: 0 0 0 10px rgba(239, 213, 0, 0); } }

/* Kopfzeile */
.vrs-top {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); pointer-events: none;
}
.vrs-top > * { pointer-events: auto; }
.vrs-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vrs-brand img { height: 32px; width: auto; }
.vrs-tour-title { font-size: 14px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrs-scene-title {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  background: var(--glass); backdrop-filter: blur(8px); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.vrs-tools { display: flex; gap: 8px; }
.vrs-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: var(--glass); color: #fff;
  font-size: 18px; cursor: pointer; backdrop-filter: blur(8px);
}
.vrs-btn { display: grid; place-items: center; padding: 0; }
.vrs-btn svg { width: 20px; height: 20px; }
.vrs-btn:hover { background: var(--acc); color: var(--ink); }
@media (max-width: 640px) { .vrs-tour-title { display: none; } .vrs-scene-title { top: 64px; } }

.vrs-hint {
  position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); font-size: 13px; padding: 7px 14px; border-radius: 999px;
  background: var(--glass); pointer-events: none; transition: opacity .6s;
}
.vrs.is-touched .vrs-hint { opacity: 0; }

/* Raumleiste */
.vrs-strip {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 16px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .65)); scrollbar-width: none; transition: transform .3s;
}
.vrs-strip::-webkit-scrollbar { display: none; }
.vrs.strip-hidden .vrs-strip { transform: translateY(110%); }
.vrs.strip-hidden .vrs-hint { bottom: 24px; }
.vrs-thumb {
  flex: 0 0 auto; width: 120px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer;
  background: #222; color: #fff; text-align: left; position: relative;
}
.vrs-thumb img { width: 100%; height: 66px; object-fit: cover; display: block; opacity: .8; }
.vrs-thumb span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 12px; font-weight: 700; padding: 14px 8px 5px; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.8)); }
.vrs-thumb:hover img { opacity: 1; }
.vrs-thumb.is-active { border-color: var(--acc); }
.vrs-thumb.is-active img { opacity: 1; }

/* Grundriss-Minikarte */
.vrs-map {
  position: absolute; right: 16px; bottom: 118px; width: 230px; border-radius: 12px; overflow: hidden; cursor: zoom-in;
  background: #f4f2ec; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: width .3s ease, bottom .3s ease;
}
.vrs-map.is-large { width: min(560px, calc(100% - 32px)); cursor: zoom-out; }
.vrs-map.is-placing { cursor: crosshair; outline: 3px solid var(--acc); }
.vrs-map-inner { position: relative; width: 100%; }
.vrs-map-img, .vrs-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vrs-cone { fill: rgba(239, 213, 0, .45); stroke: #c9a800; stroke-width: 3; pointer-events: none; }
.vrs-map-dot { cursor: pointer; }
.vrs-map-dot circle { fill: #1b1d21; stroke: #fff; stroke-width: 5; transition: r .2s; }
.vrs-map-dot:hover circle { fill: var(--acc); }
.vrs-map-dot.is-active circle { fill: var(--acc); stroke: #1b1d21; }
.vrs.strip-hidden .vrs-map { bottom: 16px; }
@media (max-width: 640px) {
  .vrs-map { width: 150px; bottom: 112px; right: 10px; }
  .vrs-map.is-large { width: calc(100% - 20px); }
  .vrs-hint, .vrs.strip-hidden .vrs-hint { bottom: auto; top: 112px; white-space: nowrap; }
}

/* Info-Fenster */
.vrs-info {
  position: absolute; right: 16px; top: 70px; width: min(320px, calc(100% - 32px)); background: rgba(16, 18, 21, .92);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 18px 20px; backdrop-filter: blur(10px);
}
.vrs-info h3 { margin: 0 0 6px; font-size: 18px; color: var(--acc); }
.vrs-info p { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.vrs-info-close { position: absolute; right: 10px; top: 8px; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

/* Editor */
.vrs-edit {
  position: absolute; left: 16px; top: 70px; width: 250px; background: rgba(16, 18, 21, .94); border: 1px solid var(--acc);
  border-radius: 12px; padding: 14px; font-size: 13px; display: grid; gap: 10px;
}
.vrs-edit b { color: var(--acc); font-size: 14px; }
.vrs-edit-pos { font-family: ui-monospace, Consolas, monospace; background: #000; padding: 6px 8px; border-radius: 6px; }
.vrs-edit select { width: 100%; margin-top: 4px; padding: 6px; border-radius: 6px; background: #000; color: #fff; border: 1px solid #444; }
.vrs-edit-row { display: flex; gap: 6px; }
.vrs-edit-row button { flex: 1; padding: 8px 6px; border-radius: 6px; border: 0; background: var(--acc); color: var(--ink); font-weight: 700; cursor: pointer; font-size: 12px; }
.vrs-edit small { color: #999; }
.vrs-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; }
