/* FS Rundgang – Frontend CSS */

.fsr-root {
  --fsr-accent: #15A6A3;
  --fsr-dark:   #0f172a;
  --fsr-text:   #1f2937;
  --fsr-shadow: 0 10px 30px rgba(0,0,0,.10);
  max-width: 1300px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  color: var(--fsr-text);
}

/* ── Layout ── */
.fsr-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
}

/* ── Stage ── */
.fsr-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--fsr-shadow);
  user-select: none;
}

.fsr-stage-inner { position: relative; }

/* ── Scenes ── */
.fsr-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity .4s ease, transform .4s ease, visibility .4s ease;
}
.fsr-scene.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}
.fsr-scene img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ── Caption ── */
.fsr-caption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 5;
  color: #fff;
  max-width: 65%;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
  pointer-events: none;
}
.fsr-caption small {
  display: block;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 11px;
  opacity: .9;
  margin-bottom: 4px;
}
.fsr-caption strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

/* ── Arrows ── */
.fsr-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.9);
  cursor: pointer;
  font-size: 18px;
  z-index: 9;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: opacity .2s, transform .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fsr-arrow:hover { transform: translateY(-50%) scale(1.08); }
.fsr-arrow.left  { left: 12px; }
.fsr-arrow.right { right: 12px; }

/* ── Hotspots ── */
.fsr-hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--fsr-accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 10;
  animation: fsrPulse 2.2s infinite;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fsrPulse {
  0%   { box-shadow: 0 0 0 0 rgba(21,166,163,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(21,166,163,0); }
  100% { box-shadow: 0 0 0 0 rgba(21,166,163,0); }
}

/* ── Tooltip ── */
.fsr-tip {
  position: absolute;
  min-width: 210px;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--fsr-text);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s;
  z-index: 20;
  text-align: left;
  font-weight: normal;
}
.fsr-tip.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.fsr-tip strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--fsr-accent);
}
.fsr-tip p { margin: 0 0 6px; line-height: 1.35; }

.fsr-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--fsr-accent);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border: none;
  cursor: pointer;
}

/* ── Grundriss ── */
.fsr-map {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 220px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  z-index: 8;
  background: #fff;
  opacity: .88;
}
.fsr-map img { width: 100%; display: block; }

.fsr-map-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--fsr-accent);
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(21,166,163,.5);
  animation: fsrPulse 2.2s infinite;
  z-index: 10;
  pointer-events: none;
  transition: left .38s ease, top .38s ease;
}

/* ── Progress dots ── */
.fsr-progress {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  z-index: 8;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 60%;
}

.fsr-progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.fsr-progress-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ── Panel ── */
.fsr-panel {
  background: #fff;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Chapter tabs */
.fsr-chapter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fsr-tab {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #374151;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.fsr-tab:hover { background: #f0fffe; border-color: var(--fsr-accent); }
.fsr-tab.active { background: var(--fsr-accent); border-color: var(--fsr-accent); color: #fff; }

/* Counter */
.fsr-counter {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  letter-spacing: .03em;
}

.fsr-panel-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: var(--fsr-dark);
}

.fsr-panel-desc {
  font-size: 14px;
  line-height: 1.35;
  color: #4b5563;
  flex: 1;
}

/* Footer */
.fsr-footer {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.fsr-btn-nav {
  flex: 1;
  min-height: 40px;
  border: none;
  border-radius: 8px;
  background: #f3f4f6;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: background .15s;
}
.fsr-btn-nav:hover:not(:disabled) { background: #e5e7eb; }
.fsr-btn-nav:disabled { opacity: .35; cursor: default; }

/* ── Vollbild-Button ── */
.fsr-fullscreen-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 15;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background .15s;
  line-height: 1;
}
.fsr-fullscreen-btn:hover { background: rgba(0,0,0,.7); }

/* Vollbildmodus: Panel ausblenden, Stage füllt alles */
.fsr-root:fullscreen,
.fsr-root:-webkit-full-screen {
  max-width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fsr-root:fullscreen .fsr-wrap,
.fsr-root:-webkit-full-screen .fsr-wrap {
  grid-template-columns: 1fr;
  height: 100vh;
  gap: 0;
}
.fsr-root:fullscreen .fsr-panel,
.fsr-root:-webkit-full-screen .fsr-panel {
  display: none;
}
.fsr-root:fullscreen .fsr-stage,
.fsr-root:-webkit-full-screen .fsr-stage {
  border-radius: 0;
  height: 100vh;
}
.fsr-root:fullscreen .fsr-scene img,
.fsr-root:-webkit-full-screen .fsr-scene img {
  aspect-ratio: unset;
  height: 100vh;
  object-fit: contain;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .fsr-wrap { grid-template-columns: 1fr; }
  .fsr-map  { width: 180px; right: 10px; bottom: 10px; }
}

@media (max-width: 600px) {
  .fsr-caption strong { font-size: 18px; }
  .fsr-map { width: 140px; }
  .fsr-tip { min-width: 175px; max-width: 220px; font-size: 12px; }
  .fsr-panel { padding: 16px; }
  .fsr-panel-title { font-size: 18px; }
}
