#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

#loader-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Gedankenblasenbox */
.loader-bubble {
  background: #1f1f2a;
  color: #fff;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  min-width: 320px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 204, 255, 0.4);
  position: relative;
  font-size: 1.1rem;
}

.loader-bubble::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: #1f1f2a;
}

/* Kopfzeile mit Bild + Ladebalken */
.bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Bild links */
.bubble-image {
  width: 25%;
  height: 25%;
  border-radius: 8px;
  object-fit: contain;
}

/* Ladebalken rechts */
.loading-bar {
  flex: 1;
  height: 10px;
  background-color: #333;
  border-radius: 5px;
  overflow: hidden;
  min-width: 150px;
}

.loading-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #00ccff, #0077aa);
  animation: loading-progress 2s infinite;
  border-radius: 5px;
}

@keyframes loading-progress {
  0% { width: 0%; }
  50% { width: 80%; }
  100% { width: 0%; }
}

/* Lade-Text */
.bubble-text {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 0.5rem;
}
