@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap");

/* Grundlegende Einstellungen für den Body */
body {
  padding: 0;
  position: relative;
  min-height: 100vh; /* Seite mindestens so hoch wie der Bildschirm */
  margin: 0;
  color: #fff;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: 1.1em;
  line-height: 1.5;
  --lmu-green: #00883a;
  --darker-green: #013a19;
  --lighter-green: #a1ffca;
}

/* Hintergrundbild für die gesamte Seite, abgedunkelt und leicht entsättigt */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333333;
  background-image: url(../images/background.jpeg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
  filter: brightness(0.4) grayscale(20%);
}

/* Overlay für die Sprachwahl (Modal-Dialog) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #232323;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1em;
}

/* Inhalt des Modals (Sprachauswahl) */
.modal-content {
  background: #000;
  color: #fff;
  padding: 2em 1.5em;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 350px;
}

/* Versteckt ein Element*/
.hidden {
  display: none !important;
}

/* Allgemeine Einstellungen für Buttons */
.btn {
  margin: 10px;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.3s;
}

.lang-btn {
  background: var(--lmu-green);
  color: white;
}
.redirect-btn-yes {
  background: var(--lmu-green);
  color: white;
}
.redirect-btn-no {
  background: #f44336;
  color: white;
}
.btn:hover {
  opacity: 0.9;
}

/* Sprachwechsel-Button oben rechts fixiert */
.lang-switch {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1100;
}

/* Titel und Textbereiche */
#title {
  margin-top: 80px;
  text-align: center;
  font-size: 2em;
  font-weight: bold;
}

#description,
#descriptionAnywhere {
  white-space: pre-line;
  text-align: center;
  margin: 1em auto;
  max-width: 90vw;
}

/* Container für die beiden Haupt-Buttons: nebeneinander mit Abstand */
.button-row {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 1em auto;
  max-width: 350px;
  width: 90vw;
}

/* Styling für die beiden Haupt-Buttons */
.button-row button {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  margin: 0;
  display: block;
  background: var(--lmu-green);
  color: white;
  padding: 1em 2em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}

/* --- Ergänzungen für das scrollbare Bild mit Markern --- */
#content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
}

.scroll-container {
  flex: 1 1 auto;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: auto;
  position: relative;
  background: #222;
}

#scene-selector {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 10000;
}
.scene-button {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  transition: background 0.3s;
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.main-image {
  display: block;
  width: 1854px;
  height: 911px;
  max-width: none;
  max-height: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

.marker {
  position: absolute;
  width: 36px;
  height: 36px;
  background: rgba(255, 0, 0, 0.85);
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  transition: background 0.2s, box-shadow 0.2s;
  z-index: 10;
}

.hamburger-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#menu-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lmu-green, #00883a);
  color: white;
  border: none;
  font-size: 1.8em;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s;
  padding: 0;
}

#menu-toggle:hover,
.hamburger-menu:hover {
  background: var(--lighter-green, #a1ffca);
  color: var(--darker-green, #013a19);
}

.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  background: var(--lmu-green, #00883a);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-size: 1.5em;
  padding: 0;
  z-index: 2000;
}

.back-button:hover {
  background: var(--lighter-green, #a1ffca);
  color: var(--darker-green, #013a19);
}

.back-icon {
  width: 32px;
  height: 32px;
  filter: invert(1);
  display: block;
}

.map-center-btn {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lmu-green, #00883a);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 2000;
}

.map-center-btn:hover {
  background: var(--lighter-green, #a1ffca);
  color: var(--darker-green, #013a19);
}

.menu-nav {
  background: #222;
  position: absolute;
  top: 100%;
  right: 0;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  margin-top: 10px;
  padding: 1em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 1em;
  z-index: 1300;
}

.menu-nav.hidden {
  display: none;
}

.menu-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.2s;
}

.menu-nav .current-page {
  color: var(--lmu-green);
  font-weight: bold;
  pointer-events: none;
  cursor: default;
  text-decoration: underline;
}

#hotspot-popup button {
  margin-top: 1em;
}

model-viewer {
  background: transparent !important;
  width: 100vw;
  height: 100vh;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

#quiz-container {
  max-width: 700px;
  margin: 5vh auto 0 auto;
  background: rgba(0, 0, 0, 0.6);
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.quiz-question {
  font-size: 1.4em;
  margin-bottom: 1.2em;
  color: #fff;
}

.quiz-answers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin-top: 1em;
}

.quiz-answer {
  padding: 0.8em 1.5em;
  font-size: 1.1em;
  border: none;
  border-radius: 6px;
  color: white;
  background-color: var(--lmu-green);
  cursor: pointer;
  transition: background 0.3s;
  flex: 1 1 40%;
  min-width: 100px;
  max-width: 45%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.quiz-stars {
  color: var(--lmu-green);
  font-size: 2em;
}

#quiz-feedback {
  max-width: 700px;
  margin: 2em auto;
  background: rgba(0, 0, 0, 0.6);
  padding: 2em;
  border-radius: 10px;
  font-size: 1.1em;
  text-align: center;
}

#privacy-content {
  padding: 2em;
  margin: 2em auto;
  max-width: 800px;
  font-size: 1.1em;
  line-height: 1.6;
  border-radius: 12px;
  color: white;
}

#privacy-title {
  text-align: center;
  margin-top: 100px;
  font-size: 2em;
  font-weight: bold;
  color: white;
}

.green-link {
  color: var(--lmu-green);
  text-decoration: underline;
}

.quiz-return-btn {
  background-color: var(--lmu-green);
  color: white;
  border: none;
  padding: 0.6em 1.2em;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
}

.popup {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  box-sizing: border-box;
  transition: opacity 0.25s;
}
.popup.hidden {
  display: none !important;
}
.popup-content {
  background: #101010;
  color: #fff;
  padding: 2em 2em 1.5em 2em;
  border-radius: 12px;
  max-width: 600px;
  width: 90vw;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: 1.1em;
}
#hotspot-close {
  align-self: center;
  margin-top: 1em;
  background: var(--lmu-green, #00883a);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  padding: 0.7em 2em;
  cursor: pointer;
  transition: background 0.3s;
}
#hotspot-close:hover {
  background: var(--lighter-green, #a1ffca);
  color: var(--darker-green, #013a19);
}

.map-popup-content {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  max-width: 95vw;
  width: auto;
  position: relative;
  display: inline-block;
}

#map-popup .map-image {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.44);
  margin: 0;
}

#close-map {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--lmu-green, #00883a);
  border: none;
  border-radius: 50%;
  font-size: 1.8em;
  color: white;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.langswitch-btn {
  position: fixed;
  top: 20px;
  right: 60px;
  width: 40px;
  height: 40px;
  font-size: 1.8rem;
  padding: 0;
  background: var(--lmu-green, #00883a);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-size: 1.5em;
  padding: 0;
  z-index: 2000;
}

.inline-icon {
  height: 2em;
  width: auto;
  vertical-align: middle;
  margin: 0 0.15em;
}

form#surveyForm {
  font-family: "Atkinson Hyperlegible", sans-serif;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  margin: 2em auto;
}

/* Überschriften & Texte */
form#surveyForm legend {
  color: #a1ffca;
  font-weight: 700;
  font-size: 1.3em;
  margin-bottom: 0.5em;
}

form#surveyForm p {
  color: white;
  margin-bottom: 1em;
}

label.no-answer {
  color: white;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: 0.9em;
  margin-top: 0.5em;
  user-select: none;
}

/* Slider Styles */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 14px;
  background: transparent;
  cursor: pointer;
  margin: 0 0.5em;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 14px;
  background: #013a19;
  border-radius: 7px;
  border: none;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 14px;
  background: #013a19;
  border-radius: 7px;
  border: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -4px;
  width: 22px;
  height: 22px;
  background: #a1ffca;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 4px #a1ffca;
  transition: background 0.3s;
}

input[type="range"]:hover::-webkit-slider-thumb {
  background: #00cc44;
  box-shadow: 0 0 8px #00cc44;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #a1ffca;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 4px #a1ffca;
  transition: background 0.3s;
}

input[type="range"]:hover::-moz-range-thumb {
  background: #00cc44;
  box-shadow: 0 0 8px #00cc44;
}

input[type="range"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button Styles */
button[type="submit"] {
  background-color: #00883a;
  color: white;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  padding: 0.75em 2em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 136, 58, 0.6);
  transition: background-color 0.3s ease;
  margin-top: 1em;
}

@media (max-width: 600px) {
  body {
    font-size: 1em;
  }
  .modal-content {
    padding: 1.2em 0.5em;
    max-width: 95vw;
  }
  #title {
    font-size: 1.3em;
    margin-top: 80px;
  }
  .button-row {
    flex-direction: column;
    gap: 0.7em;
    max-width: 95vw;
    width: 95vw;
  }
  .lang-switch {
    top: 5px;
    right: 5px;
  }
  .button-row button {
    padding: 1em 0.5em;
    font-size: 1em;
  }
  .quiz-answers {
    flex-direction: column;
  }
  .quiz-answer {
    max-width: 100%;
  }
  #quiz-container {
    margin-top: 2em;
    padding: 1.2em;
  }
  #quiz-feedback {
    padding: 1.2em;
  }
  .back-button,
  .hamburger-menu,
  .map-center-btn {
    top: 10px;
  }
  .back-button {
    left: 10px;
  }
  .hamburger-menu {
    right: 10px;
  }
  .back-icon {
    width: 36px;
    height: 36px;
  }
  .popup-content {
    max-width: 98vw;
    width: 98vw;
    padding: 1.2em 0.5em 1em 0.5em;
  }
  form#surveyForm {
    padding: 1em;
    margin: 1em;
    max-width: 95vw;
  }

  form#surveyForm legend {
    font-size: 1.1em;
  }

  label.no-answer {
    font-size: 0.8em;
  }

  input[type="range"]::-webkit-slider-thumb,
  input[type="range"]::-moz-range-thumb {
    width: 30px;
    height: 30px;
  }

  input[type="range"] {
    height: 18px;
  }

  button[type="submit"] {
    font-size: 1em;
    padding: 1em 1.5em;
    width: 100%;
  }
}
/* 
 * Für fraunhofer-sim
 */
body.aframe {
  position: static !important;
}

.aframe::before {
  /* Entfernt das Hintergrundbild nur für A-Frame Seiten */
  display: none !important;
}

.overlay {
  z-index: 100;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.container {
  position: fixed;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: last baseline;
  left: 0;
  top: 0;
}

#readMore {
  margin-bottom: 50px;
}

button {
  background-color: var(--lmu-green);
  bottom: 50vh;
  color: white;
  border-radius: 0.5em;
  text-align: center;
  text-decoration: none;
  font-size: 20px;
  font-family: "Atkinson Hyperlegible", sans-serif;
  cursor: pointer;
  border: none;
}

button,
.collapsible-menu {
  font-size: 20px;
  padding: 0.35em 0.5em;
  pointer-events: all;
}

button.selected {
  background-color: var(--lighter-green);
  border: white solid 3px;
  color: white;
}

#infoPanelContainer {
  align-items: center;
  z-index: 20000;
}

#infoPanel {
  display: block;
  border: none;
  border-radius: 10px;
  width: 100%;
  width: calc(100% - 50px);
  height: calc(100% - 50px);
  z-index: 200;
  pointer-events: all;
}

#closeInfoPanel {
  position: fixed;
  width: 3em;
  height: 3em;
  top: 60px;
  right: 60px;
  border-radius: 100%;
  z-index: 99999;
}

#objectPicture {
  width: min(500px, 80%);
  border: 5px solid white;
  border-radius: 50px;
}

#objectInfo {
  text-align: center;
  margin: 3em 5%;
}

#objectName {
  line-height: 1.15;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

/* Menü fürs Himmel-Wechsel */
#skySelectorContainer {
  justify-content: flex-start;
  align-items: flex-end;
}

#skySelector {
  margin-bottom: 25px;
  margin-left: 15px;
}

#skySelectorIcon {
  width: 5em;
  border-radius: 10px;
  border: 2px solid white;
  cursor: pointer;
}

input#skySelectorCheckbox {
  display: none;
}

.menu-content {
  padding: 0 0 0 50px;
}

.collapsible-menu ul {
  list-style-type: none;
  padding: 0;
}

.collapsible-menu ul li {
  margin-bottom: 0.5em;
}

.menu-content button {
  min-width: 5em;
}

/* blendet das Menü aus und ein */
.menu-content {
  display: none;
}

.menu-content:has(~ input:checked) {
  display: block;
}
