/* =========================
   FONT PRICEDOWN
========================= */
@font-face {
  font-family: "Pricedown";
  src: url("font/Pricedown.otf") format("opentype");
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  background: black;
  color: white;
}

/* =========================
   VIDEO INTRO
========================= */
#video-intro {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 9999;
}

#video-intro video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* LOGO OBEN LINKS */
#logo-fixed {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 80px;
  z-index: 10003;
  filter: drop-shadow(0 0 6px #000);
}

/* =========================
   INTRO TEXT
========================= */
.intro-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  font-family: "Pricedown", Impact, sans-serif;
  font-size: 4.5rem;
  text-align: center;
  max-width: 900px;
  padding: 0 40px;
  color: #000;
  text-shadow:
    0 0 8px #ffd700,
    0 0 16px #ffcc00,
    0 0 28px #ffb700,
    0 0 40px #ffb700;
  z-index: 10001;
}

.intro-text.show {
  opacity: 1;
  animation: introIn 1s forwards;
}

@keyframes introIn {
  from { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* =========================
   BUTTONS INTRO
========================= */
#continue-btn {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10005;
  padding: 16px 40px;
  font-size: 1.8rem;
  font-family: "Pricedown";
  background: linear-gradient(45deg, #ffd700, #ffb700);
  color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 20px #ffd700;
}

#skip-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.6);
  border: 1px solid white;
  color: white;
  border-radius: 5px;
  z-index: 10002;
}

/* =========================
   AUDIO INTRO
========================= */
#audio-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(30,30,30,0.8));
  padding: 15px 25px;
  border-radius: 50px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  z-index: 10002;
}

#toggle-audio {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#toggle-audio:hover {
  transform: scale(1.2);
}

#volume-slider {
  width: 120px;
  height: 6px;
  background: linear-gradient(to right, rgba(255,215,0,0.3), rgba(255,215,0,0.3));
  border-radius: 10px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ffd700, #ffb700);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  transition: all 0.2s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

#volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ffd700, #ffb700);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  transition: all 0.2s ease;
}

#volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* =========================
   SEITE 2 BACKGROUND
========================= */
#skip-screen {
  position: fixed;
  inset: 0;
  background: url("hintergrund/hintergrund.jpg") center/cover no-repeat;
}

#skip-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

#skip-screen::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 420px;
  height: 90vh;
  background: url("figur/figur.png") bottom right/contain no-repeat;
  pointer-events: none;
}

/* Make the figur fully visible and allow a slide-up animation.
   Start OFF-SCREEN (translateY(100%) + invisible) and slide to 0 when `.figur-up` is set. */
#skip-screen::after {
  z-index: 2;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 1.4s cubic-bezier(.22,.9,.31,1), opacity 0.8s ease;
}

/* When the page has the class `figur-up` the figur slides up into view */
#skip-screen.figur-up::after {
  transform: translateY(0);
  opacity: 1;
}

/* =========================
   GALERIE SLIDER
========================= */
#gallery-slider {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 230px;
  z-index: 10;
}

.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 70px;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-track img {
  width: 320px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 15px black;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  font-size: 28px;
  background: rgba(0,0,0,0.7);
  color: white;
  cursor: pointer;
  z-index: 20;
}

.gallery-btn.left { left: 10px; }
.gallery-btn.right { right: 10px; }

/* =========================
   BUTTON ROW
========================= */
#button-row {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 40px;
  z-index: 10;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  border-radius: 14px;
  font-size: 2rem;
  font-family: "Pricedown", Impact, sans-serif;
  text-decoration: none;
  color: white;
  transition: transform 0.2s ease;
}

.social-btn img {
  width: 50px;
  height: 50px;
}

.social-btn.discord {
  background: linear-gradient(45deg, #7289da, #5865F2);
}

.social-btn.tiktok {
  background: linear-gradient(45deg, #ff0050, #000);
}

.social-btn.highlight {
  background: linear-gradient(45deg, #ffd700, #ffb700);
  color: black;
}

/* =========================
   LOGO + TS
========================= */
#logo-top-right {
  position: fixed;
  top: 30px;
  right: 30px;
  height: 180px;
  z-index: 20;
}

/* Logo auf Highlight Screen oben links */
#highlight-screen #logo-top-right {
  top: 20px;
  left: 20px;
  right: auto;
  height: 100px;
  z-index: 9999;
}

#ts-info {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.65);
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  z-index: 9999;
}

/* =========================
   HIGHLIGHT SCREEN
========================= */
#highlight-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
}

#highlight-bg {
  position: fixed;
  inset: 0;
  background: url("hintergrund/hintergrund.jpg") center/cover no-repeat;
  z-index: 0;
}

#highlight-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.highlight-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.highlight-content h1 {
  font-family: "Pricedown", Impact, sans-serif;
  font-size: 5.5rem;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.highlight-content p {
  font-family: "Pricedown", Impact, sans-serif;
  font-size: 2.2rem;
  color: white;
}


/* =========================
   HIGHLIGHT VIDEO SLIDER (FIX)
========================= */
#highlight-slider {
  width: 100%;
  max-width: 1220px;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.hl-track {
  display: flex;
  align-items: center;
  gap: 40px;
  transition: transform 0.5s cubic-bezier(.2,.9,.2,1);
  flex-shrink: 0;
}

.hl-video {
  flex-shrink: 0;
  width: 380px;
  height: 230px;
  opacity: 1;
  transform: scale(0.8);
  transform-origin: center center;
  pointer-events: auto;
  transition: transform 0.35s cubic-bezier(.2,.9,.2,1), filter 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  filter: brightness(0.75);
}

.hl-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  background: black;
  pointer-events: auto;
}

.hl-video.active {
  transform: scale(1.25);
  opacity: 1;
  pointer-events: auto;
  z-index: 20;
  box-shadow: 0 15px 50px rgba(255, 215, 0, 0.25);
  filter: brightness(1);
}

.hl-video:not(.active):hover {
  filter: brightness(0.85);
  transform: scale(0.9);
}

/* Buttons */
.hl-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  font-size: 32px;
  background: rgba(0,0,0,0.7);
  color: white;
  cursor: pointer;
  z-index: 20;
}

.hl-btn.left { left: 10px; }
.hl-btn.right { right: 10px; }

/* Move the nav arrows closer to the center */
.hl-btn.left { left: 10px; }
.hl-btn.right { right: 10px; }

/* Back Button */
.highlight-back {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 18px 50px;
  font-size: 2rem;
  font-family: "Pricedown", Impact, sans-serif;
  background: linear-gradient(45deg, #ffd700, #ffb700);
  color: black;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  transition: all 0.3s ease;
  z-index: 9999;
}

.highlight-back:hover {
  transform: translateX(-50%) scale(1.08);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
}

/* =========================
   HIDDEN
========================= */
.hidden { display: none; }
/* =========================
   AUDIO SEITE 2 – FIX
========================= */
#skip-audio-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(30,30,30,0.8));
  padding: 15px 25px;
  border-radius: 50px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  z-index: 9999;
}

#skip-toggle-audio {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  transition: transform 0.2s ease;
}

#skip-toggle-audio:hover {
  transform: scale(1.2);
}

#skip-volume-slider {
  width: 120px;
  height: 6px;
  background: linear-gradient(to right, rgba(255,215,0,0.3), rgba(255,215,0,0.3));
  border-radius: 10px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#skip-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ffd700, #ffb700);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  transition: all 0.2s ease;
}

#skip-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

#skip-volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ffd700, #ffb700);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  transition: all 0.2s ease;
}

#skip-volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}
/* =====================================================
   FIXES – NUR ERGÄNZUNGEN, NICHTS ENTFERNT
   ===================================================== */

/* Galerie: Scroll darf NICHT durch html/body blockiert werden */
#gallery-slider,
.gallery-track {
  pointer-events: auto;
}

.gallery-track {
  overflow-x: auto;
  overflow-y: hidden;
}

/* Sicherheit: Galerie liegt über Overlays */
#gallery-slider {
  z-index: 15;
}

/* Logo oben links auch auf Seite 2 sichtbar */
#skip-screen #logo-fixed {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 80px;
  z-index: 10003;
}

/* Audio Controls Seite 2 – nur Fallback */
#skip-audio-controls {
  pointer-events: auto;
}
/* =====================================================
   FIX: Logo oben rechts auf Seite 2 ausblenden
   (HTML bleibt unverändert)
   ===================================================== */

#skip-screen #logo-top-right {
  display: none;
}
/* =====================================================
   FIX: Galerie wieder klick- & ziehbar
   Ursache: skip-screen::before blockiert Pointer Events
   ===================================================== */

#skip-screen::before {
  pointer-events: none;
}

#skip-screen::after {
  pointer-events: none;
}

#gallery-slider,
.gallery-track,
.gallery-track img {
  pointer-events: auto;
  z-index: 10;
}
/* =====================================================
   FINAL FIX: Galerie Pfeile + Ziehen repariert
   (nur Ergänzungen, nichts entfernt)
   ===================================================== */

/* Mehr Platz für Pfeile */
#gallery-slider {
  padding-left: 90px;
  padding-right: 90px;
}

/* Pfeile IMMER über Bildern */
.gallery-btn {
  z-index: 50;
  pointer-events: auto;
}

/* Bilder dürfen Drag & Scroll */
.gallery-track {
  pointer-events: auto;
  cursor: grab;
}

.gallery-track:active {
  cursor: grabbing;
}

/* Bilder dürfen angeklickt werden */
.gallery-track img {
  pointer-events: auto;
  cursor: pointer;
}

/* =========================
   VOICE AUDIO CONTROLS
========================= */
#voice-audio-controls {
  position: fixed;
  bottom: 60px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#toggle-voice-audio {
  background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(30,30,30,0.8));
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  cursor: pointer;
  color: white;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#toggle-voice-audio:hover {
  transform: scale(1.15);
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.3);
}

/* =========================
   GALLERY IMAGE LIGHTBOX MODAL
========================= */
#gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

#gallery-modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#modal-image {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

.modal-controls {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.modal-btn {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 183, 0, 0.8));
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  color: black;
  transition: all 0.2s ease;
  font-weight: bold;
}

.modal-btn:hover {
  transform: scale(1.2);
  background: linear-gradient(135deg, rgba(255, 215, 0, 1), rgba(255, 183, 0, 1));
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* =========================
   HIGHLIGHT VIDEO LIGHTBOX MODAL
========================= */
#video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

#video-modal.hidden {
  display: none;
}

.video-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#modal-video {
  max-width: 85vw;
  max-height: 75vh;
  border-radius: 15px;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
  background: black;
}

/* =========================
   BESUCHER COUNTER
========================= */
#visitor-counter {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(20,0,0,0.9), rgba(40,10,0,0.9));
  border: 2px solid rgba(255, 69, 0, 0.5);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 
    0 4px 20px rgba(0,0,0,0.7), 
    0 0 20px rgba(255, 69, 0, 0.3),
    inset 0 0 15px rgba(255, 40, 0, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

#visitor-counter:hover {
  border-color: rgba(255, 69, 0, 0.8);
  box-shadow: 
    0 6px 30px rgba(0,0,0,0.8), 
    0 0 30px rgba(255, 69, 0, 0.5),
    0 0 50px rgba(255, 20, 0, 0.3),
    inset 0 0 20px rgba(255, 40, 0, 0.2);
  transform: translateY(-2px);
}

.counter-label {
  font-family: 'Pricedown', sans-serif;
  font-size: 16px;
  color: #ff4500;
  text-shadow: 
    0 0 8px rgba(255, 69, 0, 0.8),
    0 0 15px rgba(255, 40, 0, 0.6),
    0 0 25px rgba(255, 0, 0, 0.4);
  letter-spacing: 1px;
}

/* Counter iframe Styling */
#visitor-counter iframe {
  border-radius: 6px;
  filter: drop-shadow(0 2px 10px rgba(255, 69, 0, 0.4));
}