/* === GRUNDSTIL === */
body {
  background: linear-gradient(to bottom, #1a032d, #0c0014);
  color: #e0d4f7;
  font-family: 'Segoe UI', sans-serif;
}

.glow {
  box-shadow: none;
}

.fantasy-title {
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
}

/* === GALERIE SLIDER STYLES === */
.gallery-section {
  position: relative;
  overflow: hidden;
}

.gallery-slider-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.gallery-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide.active {
  opacity: 1;
  z-index: 2;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.gallery-caption h4 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.gallery-meta {
  font-size: 0.8rem;
  color: #c4b5fd;
  margin-bottom: 0.5rem;
}

.gallery-meta i {
  margin-right: 0.25rem;
}

.gallery-description {
  font-size: 0.9rem;
  color: #e0d4f7;
}

/* Navigation Buttons */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(139, 92, 246, 0.8);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.gallery-nav:hover {
  background: rgba(139, 92, 246, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.gallery-prev {
  left: 15px;
}

.gallery-next {
  right: 15px;
}

/* Dots Navigation */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: #a855f7;
  transform: scale(1.2);
}

.gallery-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Autoplay Indicator */
.gallery-autoplay-indicator {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
}

/* Info Overlay */
.gallery-info-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  max-width: 250px;
  backdrop-filter: blur(10px);
}

.gallery-slide:hover .gallery-info-overlay {
  opacity: 1;
}

.gallery-info-content p {
  margin: 0.25rem 0;
}

/* Loading State */
.gallery-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
}

.gallery-loading-content {
  text-align: center;
  color: #a855f7;
}

.gallery-loading-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Empty State */
.gallery-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
}

.gallery-empty-content {
  text-align: center;
  color: #a855f7;
}

.gallery-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Error State */
.gallery-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 12px;
}

.gallery-error-content {
  text-align: center;
  color: #ef4444;
}

.gallery-error-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.gallery-retry-btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.gallery-retry-btn:hover {
  background: #dc2626;
}

/* Gallery Count Styling */
.gallery-count {
  font-size: 0.9rem;
  color: #c4b5fd;
  font-weight: normal;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .gallery-slider {
    height: 300px;
  }
  
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .gallery-prev {
    left: 10px;
  }
  
  .gallery-next {
    right: 10px;
  }
  
  .gallery-info-overlay {
    display: none;
  }
  
  .gallery-caption {
    padding: 1.5rem 1rem 1rem;
  }
  
  .gallery-caption h4 {
    font-size: 1.1rem;
  }
  
  .gallery-meta {
    font-size: 0.7rem;
  }
  
  .gallery-loading,
  .gallery-empty,
  .gallery-error {
    height: 300px;
  }
}

/* === LISTEN MIT TRENNLINIEN === */
.list-divider li:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

/* === KALENDER === */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 1rem;
}

.calendar div {
  text-align: center;
  padding: 0.5rem;
  background-color: rgba(64, 0, 128, 0.4);
  border-radius: 0.375rem;
  cursor: pointer;
}

.calendar .today {
  background-color: #a855f7;
  font-weight: bold;
  color: white;
}

.calendar .event-day {
  font-weight: bold;
  background-color: rgba(168, 85, 247, 0.5);
}

.calendar-event-panel {
  margin-top: 1rem;
  background-color: rgba(64, 0, 128, 0.3);
  padding: 1rem;
  border-radius: 0.5rem;
  display: none;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(168, 85, 247, 0.5);
  border-radius: 4px;
}

/* === AKTIVER MENÜPUNKT === */
.sidebar-link.active {
  background-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

/* === AKKORDEON: Neueste User === */
.akkordeon-container {
  max-width: 400px;
  margin: auto;
}

.akkordeon-header {
  width: 100%;
  cursor: pointer;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 10px 3px rgba(128, 0, 128, 0.6);
  border-radius: 8px;
}

.akkordeon-header img {
  width: 100%;
  display: block;
  margin: 0 auto;
  background-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;
}

.akkordeon-header-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: bold;
  color: #9950b6f1;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  pointer-events: none;
  text-align: center;
}

.akkordeon-header-text-wrapper {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0);
  padding: 6px 12px;
  border-radius: 4px;
}

.akkordeon.open .akkordeon-content {
  max-height: 300px;
  opacity: 1;
}
.akkordeon-content {
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  max-height: 0;
  opacity: 0;
  background-color: #3e0381;
  border: 1px solid #260353;
  border-top: none;
  padding: 15px;
  box-sizing: border-box;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 90%;
}

.akkordeon.akkordeon-open .akkordeon-content {
  max-height: 5000px; /* Von 300px auf 1500px erhöht */
  opacity: 1;
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

/* === AKKORDEON ÖFFNUNGSSTIL === */
.akkordeon.akkordeon-open .akkordeon-content {
  max-height: 5000px; /* Von 300px auf 1500px erhöht */
  opacity: 1;
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
}

.akkordeon-content ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
  border-radius: 4px;
}

.akkordeon-content li {
  padding: 8px 0;
  position: relative;
}

.akkordeon-content li:not(:last-child)::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 0, 255, 0.4), transparent);
  margin-top: 4px;
}

/* === CUSTOM FRAME === */
.custom-frame {
  border: 12px solid transparent;
  border-image: url('divframe.png') 15 round;
}

/* === HERO ANIMATION MIT 15 BILDERN === */
#hero {
  background-color: #11011e;
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 300px;
  overflow: hidden;
  background-color: #11011e;
  box-sizing: border-box;
}

.hero-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-layer.visible {
  opacity: 1;
}

/* === FADE-IN FÜR ANDERE ELEMENTE === */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* === HERO REPEAT BUTTON === */
.hero-repeat-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(139, 92, 246, 0.8);
    border: 2px solid rgba(168, 85, 247, 0.6);
    color: white;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
    width: 50px;
    height: 50px;
}

.hero-repeat-btn:hover {
    background: rgba(139, 92, 246, 1);
    border-color: rgba(168, 85, 247, 1);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.hero-repeat-btn:active {
    transform: translateY(0) scale(0.95);
}

.hero-repeat-btn:disabled {
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

/* Top-Liste Animationen - Professionell */
.topliste-item {
  padding: 12px 16px;
  margin: 6px 0;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Platz 1 - Gold mit Pop-Out Effekt */
.topliste-item.platz-1 {
  background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
  color: #1a1a1a;
  font-weight: bold;
  animation: goldPopOut 2s ease-out;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  border: 2px solid #ffed4e;
}

@keyframes goldPopOut {
  0% {
    transform: scale(0.3) rotate(-10deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(5deg);
    opacity: 0.8;
  }
  70% {
    transform: scale(0.95) rotate(-2deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Platz 2 - Silber mit Horizontal Flip */
.topliste-item.platz-2 {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8, #c0c0c0);
  color: #1a1a1a;
  font-weight: bold;
  animation: silverFlipHorizontal 1.8s ease-out;
  animation-delay: 0.3s;
  animation-fill-mode: both;
  box-shadow: 0 3px 12px rgba(192, 192, 192, 0.4);
  border: 2px solid #e8e8e8;
}

@keyframes silverFlipHorizontal {
  0% {
    transform: rotateY(-180deg) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: rotateY(-90deg) scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
}

/* Platz 3 - Bronze mit Vertical Flip */
.topliste-item.platz-3 {
  background: linear-gradient(135deg, #cd7f32, #daa520, #cd7f32);
  color: #1a1a1a;
  font-weight: bold;
  animation: bronzeFlipVertical 1.6s ease-out;
  animation-delay: 0.6s;
  animation-fill-mode: both;
  box-shadow: 0 3px 10px rgba(205, 127, 50, 0.4);
  border: 2px solid #daa520;
}

@keyframes bronzeFlipVertical {
  0% {
    transform: rotateX(180deg) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: rotateX(90deg) scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
  }
}

/* Weitere Plätze - Standard Animation */
.topliste-item.platz-other {
  background: linear-gradient(135deg, #4a5568, #6b7280, #4a5568);
  color: #e2e8f0;
  animation: fadeInSlide 1.2s ease-out;
  animation-fill-mode: both;
  border: 2px solid #6b7280;
}

.topliste-item.platz-other:nth-child(4) { animation-delay: 0.9s; }
.topliste-item.platz-other:nth-child(5) { animation-delay: 1.2s; }
.topliste-item.platz-other:nth-child(6) { animation-delay: 1.5s; }
.topliste-item.platz-other:nth-child(7) { animation-delay: 1.8s; }
.topliste-item.platz-other:nth-child(8) { animation-delay: 2.1s; }

@keyframes fadeInSlide {
  0% {
    transform: translateX(-30px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Hover-Effekte */
.topliste-item:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.topliste-item.platz-1:hover {
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.topliste-item.platz-2:hover {
  box-shadow: 0 5px 16px rgba(192, 192, 192, 0.6);
}

.topliste-item.platz-3:hover {
  box-shadow: 0 5px 14px rgba(205, 127, 50, 0.6);
}

/* Platz-Nummern Styling */
.topliste-platz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  margin-right: 12px;
  flex-shrink: 0;
}

.platz-1 .topliste-platz {
  background: #1a1a1a;
  color: #ffd700;
  border: 2px solid #1a1a1a;
}

.platz-2 .topliste-platz {
  background: #1a1a1a;
  color: #c0c0c0;
  border: 2px solid #1a1a1a;
}

.platz-3 .topliste-platz {
  background: #1a1a1a;
  color: #cd7f32;
  border: 2px solid #1a1a1a;
}

.platz-other .topliste-platz {
  background: #374151;
  color: #9ca3af;
  border: 2px solid #374151;
}

/* Layout für Name und Punkte */
.topliste-content-wrapper {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
}

.topliste-name {
  font-size: 16px;
  font-weight: 600;
}

.topliste-punkte {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.topliste-klasse {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

/* Top-Liste Ladebalken */
.topliste-loader {
  padding: 20px;
  text-align: center;
  color: #a855f7;
}

.topliste-loader-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(168, 85, 247, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin: 15px 0;
  position: relative;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.topliste-loader-bar {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #8b5cf6, #7c3aed);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.topliste-loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.topliste-loader-text {
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 500;
}

.topliste-loader-percentage {
  font-size: 12px;
  color: #c4b5fd;
  margin-top: 8px;
  font-weight: bold;
}

.topliste-loader-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  animation: spin 1s linear infinite;
}

/* Animationen */
/* Styling für den Button-Bereich */
.button-wrapper {
  text-align: left; /* Linksbündig ausrichten */
  margin-top: 20px;
  padding-left: 15px;
}

/* Basis-Stil für den Restart Button */
.fade-restart-button {
  background-color: #7c3aed; /* Purpur (Tailwind purple-700) */
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(124, 62, 237, 0); /* Basis ohne Glow */
}

/* Glow Effekt beim Hover */
.fade-restart-button:hover {
  background-color: #9333ea; /* Dunkleres Lila */
  box-shadow: 0 0 12px rgba(124, 62, 237, 0.6); /* Glüheffekt */
  transform: scale(1.03);
}

.model-3d-error {
  text-align: center;
  padding: 1rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.touch-hint,
.ar-button-note {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 10;
  font-size: 0.75rem;
  pointer-events: none;
}

.hidden {
  display: none !important;
}
/* Für sanftes "Pop"-Erscheinen */
.namen-eintrag {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.175);
}

.namen-eintrag.animated {
  opacity: 1;
  transform: scale(1);
}
/* Optional: Schatten oder Glanz auf das Icon */
.namen-eintrag img {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.namen-eintrag img.glow {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 16px rgba(255, 255, 255, 0.4);
}
#floating-chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  background: url('images/chat-icon.png') no-repeat center center;
  background-size: contain;
  z-index: 9999;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  animation: floatEffect 2s ease infinite alternate;
}

@keyframes floatEffect {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* === CHAT-FENSTER === */
.chat-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  background-color: #2d004a;
  border: 1px solid #5b21b6;
  box-shadow: 0 0 15px rgba(100, 0, 200, 0.4);
  border-radius: 10px;
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 99999;
  color: white;
  font-family: sans-serif;
}

.chat-header {
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 14px;
}

.chat-form button {
  background-color: #7c3aed;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.chat-form button:hover {
  background-color: #6d28d9;
}
