/* Counter im Pop-up-Stil */
#object-counter {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  border-radius: 10px;
  padding: 1em 2em;
  font-size: 1.5em;
  font-weight: bold;
  background: #fdf6e3;
  color: #222;
  text-align: center;
  min-width: 120px;
  border: 2px solid #2aa198;
  font-family: 'Courier New', Courier, monospace;
}

#counter-container {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1010;
}

/* Auflistung am rechten Rand */
#collected-bar {
  position: fixed;
  top: 120px;
  right: 20px;
  left: auto;
  bottom: auto;
  transform: none;
  background: rgba(253,246,227,0.95);
  border-radius: 12px;
  padding: 12px;
  border: 2px solid #2aa198;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  z-index: 1010;
}

#info-button {
  position: fixed;
  top: 0;
  right: 0;
  background: #2aa198;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 0 0 0 8px;
  cursor: pointer;
  font-weight: bold;
  line-height: 1.2;
  z-index: 1100;
}

#info-button:hover {
  background: #268bd2;
}

#collected-title {
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  color: #000;
  text-align: center;
  margin-bottom: 8px;
}

.collected-bar-hidden {
  display: none;
}

#collected-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 170px;
  font-family: 'Courier New', Courier, monospace;
}

.collected-slot {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  border-radius: 10px;
  border: 2px dashed #bbb;
  color: #bbb;
  font-size: 1.5em;
  overflow: hidden;
}

.collected-slot.collected {
  border: 2px solid #4caf50;
  background: #fff;
  color: #222;
}

.collected-slot model-viewer,
.collected-slot img {
  width: 64px;
  height: 64px;
}



.object-slot {
  width: 60px;
  height: 60px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  border-radius: 8px;
  border: 2px dashed #bbb;
  font-size: 2em;
  color: #bbb;
}
.object-slot.filled {
  border: 2px solid #4caf50;
  background: #fff;
  color: #222;
}
model-viewer {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

.Hotspot {background: transparent;
  border: none;
  width: 8px; /* Groß genug, um das Objekt zu decken */
  height: 8px;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  cursor: grab; 
}
.HotspotAnnotation {
    display: none; /* Versteckt den Text standardmäßig */
}

.Hotspot:hover .HotspotAnnotation {
    display: none; /* Zeigt den Text nur beim Drüberfahren */
}
/* Der dunkle Hintergrund, der alles andere sperrt */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Abgedunkelt */
  backdrop-filter: blur(5px); /* Macht den Hintergrund unscharf (sehr modern!) */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Das eigentliche Fenster */
.modal-content {
  background: #fdf6e3; /* Ein warmer, gemütlicher Beigeton */
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  font-family: 'Courier New', Courier, monospace; /* Tech-Vibe */
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 2px solid #2aa198;
}


/* Der Button */
button {
  background: #2aa198;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 20px;
}

.modal-cancel-btn {
  display: block;
  margin: 24px auto 0 auto;
  background: #2aa198;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  position: static;
}
.modal-cancel-btn:hover {
  background: #268bd2;
}
#modal-buttons {
  width: 100%;
  text-align: right;
  position: relative;
}


