/* Standardgröße - große Bildschirme */
#panorama {
    width: 100%;
    height: 760px;  /* Standardhöhe für größere Bildschirme */
}

/* Für kleinere Bildschirme (z. B. Tablets) */
@media (max-width: 1024px) {
    #panorama {
        height: 600px;  /* Höhe auf 600px für Tablets und mittlere Geräte */
    }
}

/* Für noch kleinere Bildschirme (z. B. Smartphones im Hochformat) */
@media (max-width: 797px) {
    #panorama {
        height: 480px;  /* Höhe auf 480px für Geräte unter 797px */
    }
}

/* Für sehr kleine Bildschirme (z. B. Smartphones im Querformat oder sehr kleine Geräte) */
@media (max-width: 480px) {
    #panorama {
        height: 360px;  /* Höhe auf 360px für sehr kleine Geräte */
    }
}

/* Für extrem kleine Bildschirme (z. B. sehr kleine Smartphones) */
@media (max-width: 320px) {
    #panorama {
        height: 280px;  /* Höhe auf 280px für die kleinsten Geräte */
    }
}

/* =================================
HERO SECTION – Panorama Header Bereich
================================= */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Pannellum Default Loader deaktivieren */
.pnlm-load-box {
  display: none !important;
}

/* Panorama Initialisierungs-Loader Container */
#panorama-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}

/* Loader Animation (rotierender Würfel) */
.cube-loader {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid #fff;
  animation: panoramaSpin 1s linear infinite;
}

/* Rotation Animation für Panorama Loader */
@keyframes panoramaSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Dunkles Overlay für bessere Textlesbarkeit */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      rgba(0,0,0,0.35),
      rgba(0,0,0,0.25)
  );
  z-index: 2;
  pointer-events: none;   /* verhindert Klickblockierung */
}

/* Container für Hero Text Inhalte */
.hero-content {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%);
  text-align: center;
  color: white;
  z-index: 3;
  width: 90%;
  max-width: 900px;
  pointer-events: none;   /* verhindert Interaktionsprobleme */
}

/* Hauptüberschrift im Hero */
.hero-title {
  font-size: 40px;
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(0,0,0,0.65);
  margin-bottom: 10px;
}

/* Untertitel im Hero */
.hero-subtitle {
  font-size: 23px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.65);
  opacity: 0.9;
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 34px;
  }
  .hero-subtitle {
    font-size: 20px;
  }
}

/* Kleine Tablets / große Smartphones */
@media (max-width: 797px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 17px;
  }
}

/* Smartphone Layout */
@media (max-width: 480px) {
  .hero-title {
    font-size: 22px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
}

/* Sehr kleine Geräte */
@media (max-width: 350px) {
  .hero-title {
    font-size: 18px;
  }
  .hero-subtitle {
    font-size: 13px;
  }
}

/* Ultra kleine Geräte */
@media (max-width: 320px) {
  .hero-content {
    top: 52%;
  }
  .hero-title {
    font-size: 18px;
  }
  .hero-subtitle {
    font-size: 13px;
  }
}

/* Container für Hero Suchleiste */
.hero-search {
  margin-top: 40px;
}

/* =================================
PANORAMA ROTATION CONTROL BUTTON
================================= */

/* Play/Pause Button für Panorama Rotation */
#panorama-rotate-toggle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 20;
  width: 25px;
  height: 20px;
  background: transparent;
  color: #000;
  border: none;
  border-radius: 0;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover Effekt für Panorama Steuerbutton */
#panorama-rotate-toggle:hover {
  color: #fff;
}