/* Importing Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,600;0,700;1,500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  /* Light Theme Colors */
  --sidebar-bg: #F5F5F5;
  --primary-color: #4F46E5;
  --secondary-color: #3B82F6;
  --background-color: #FFFFFF;
  --border-color: #E5E7EB;
  --text-color: #111827;
  --text-secondary: #6B7280;
}

body.dark-theme {
  /* Dark theme colors */
  --sidebar-bg: #374151;
  --primary-color: #8B5CF6;
  --secondary-color: #60A5FA;
  --background-color: #0d111b;
  --border-color: #374151;
  --text-color: #F9FAFB;
  --text-secondary: #9CA3AF;
}

/* Jonas */
.main-view {
  display: flex;
  flex-direction: column;
}

/* WILLKOMMEN */

.welcome {
    text-align: center;
    gap: 5px;
    color: var(--color-text-primary);
}

.welcome span {
    position: relative;
    top: 5px;
    color: #348fcf;
    display: inline-block;
    animation: bounce 0.4s ease infinite alternate;
}
.welcome h2 span:nth-child(2) {
    animation-delay: 0.06s;
}
.welcome h2 span:nth-child(3) {
    animation-delay: 0.12s;
}
.welcome h2 span:nth-child(4) {
    animation-delay: 0.18s;
}
.welcome h2 span:nth-child(5) {
    animation-delay: 0.24s;
}
.welcome h2 span:nth-child(6) {
    animation-delay: 0.3s;
}
.welcome h2 span:nth-child(7) {
    animation-delay: 0.36s;
}
.welcome h2 span:nth-child(8) {
    animation-delay: 0.42s;
}
.welcome h2 span:nth-child(9) {
    animation-delay: 0.48s;
}
.welcome h2 span:nth-child(10) {
    animation-delay: 0.54s;
}
@keyframes bounce {
    100% {
        top:-5px;
    }
}

/* SLIDESHOW */

.hero-header {
  position: relative;
  width: 100%;
  height: 50vh; /* Höhe des Headers, ca. 60% vom Viewport */
  min-height: 350px;
  max-height: 600px;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  color: white;
  border-radius: 16px;
  margin-bottom: 1.4rem;
}

.slideshow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slideshow .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
  user-select: none;
}

.slideshow .slide.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45); /* dunkler Overlay für bessere Lesbarkeit */
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1.5rem;
  text-align: center;
}

.available-spots {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  text-align: center;
  color: white;
  font-family: 'Poppins', sans-serif;
  z-index: 5; /* über dem Overlay */
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  user-select: none;
  min-width: 80px;
}

.available-spots .number {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.available-spots .label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .available-spots {
    top: 12px;
    right: 12px;
    padding: 0.4rem 0.8rem;
    min-width: 70px;
  }
  .available-spots .number {
    font-size: 1.8rem;
  }
  .available-spots .label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .available-spots {
    top: 8px;
    right: 8px;
    padding: 0.3rem 0.6rem;
    min-width: 60px;
  }
  .available-spots .number {
    font-size: 1.5rem;
  }
  .available-spots .label {
    font-size: 0.7rem;
  }
}


.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 6rem;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

/* CTA Button style (wie gehabt) */
.cta-button {
  background-color: #ffca28;
  color: #1e2a47;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(255, 202, 40, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #e6b820;
  box-shadow: 0 8px 20px rgba(230, 184, 32, 0.9);
  outline: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-header {
    height: 50vh;
    min-height: 300px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 4rem;
  }

  .cta-button {
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
  }
}

@media (max-width: 480px) {
  .hero-header {
    height: 45vh;
    min-height: 250px;
  }

  .hero-content h1 {
    margin-top: 1.6rem;
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }

  .cta-button {
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
  }
}

/* VIDEO */

.video-section {
  max-width: 740px;
  margin: 20px auto;
  padding: 0 10px;
  font-family: 'Poppins', sans-serif;
  color: white;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.video-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  z-index: 1;
}

/* ---------- TEXT OVERLAY ---------- */
.video-description {
  position: absolute;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  text-align: center;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.4s ease;
}

.video-description.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ---------- PLAY OVERLAY ---------- */
.play-overlay {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.play-overlay .play-icon {
  width: 0;
  height: 0;
  border-left: 18px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* Animiertes Ausblenden */
.play-overlay.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
}

/* ---------- RESPONSIVE TEXT FIX ---------- */
@media (max-width: 480px) {
  .video-description {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }

  .play-overlay {
    width: 56px;
    height: 56px;
  }

  .play-overlay .play-icon {
    border-left: 14px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }
}


/* COUNTDOWN */

.countdown-section {
  position: relative;
  padding: 60px 20px;
  max-width: 90%;
  margin: 20px 20%;
  color: white;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.4rem;

  /* Hintergrundbild anpassen */
  background-image: url('images/sonnenuntergang.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Overlay für Lesbarkeit */
  background-color: rgba(0,0,0,0.5);
  background-blend-mode: overlay;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.countdown-wrapper h2 {
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.countdown-item {
  flex: 1 1 0;
  min-width: 70px;
  max-width: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.8rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  user-select: none;
  transition: background-color 0.3s ease;
  text-align: center;
}

.countdown-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.countdown-item span {
  display: block;
}

.countdown-item span:first-child {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  transition: transform 0.2s;
}

/* Label unter der Zahl */
.countdown-item .label {
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  margin-top: 0.3rem;
  text-transform: uppercase;
  color: #ddd;
}

/* Pop-Animation bei Änderung */
@keyframes pop {
  0% {
    transform: scale(1);
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  }
  50% {
    transform: scale(1.3);
    color: #ffca28;
    text-shadow: 0 0 12px #ffca28;
  }
  100% {
    transform: scale(1);
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  }
}

.countdown-item span.pop {
  animation: pop 0.4s ease forwards;
}

/* Mobile Optimierung */
@media (max-width: 1024px) {
.countdown-section {
  max-width: 100%;
  margin: 10px;
}
}
@media (max-width: 480px) {
  .countdown {
    gap: 0.6rem;
  }

  .countdown-item {
    min-width: 55px;
    max-width: 70px;
    padding: 0.5rem 0;
  }

  .countdown-item span:first-child {
    font-size: 1.8rem;
  }

  .countdown-item .label {
    font-size: 0.65rem;
  }
}

/* VERGLEICHSBOX */


.cta-comparison {
  background: #1e2a47;
  color: white;
  padding: 40px 20px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.vgl-container {
  max-width: 900px;
  margin: 0 auto;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* zwei flexible Seiten + Meme in der Mitte */
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.2rem;
}

.comparison-side {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: .8rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  width: 300px; /* feste Breite auf Desktop */
  box-sizing: border-box;
}

.comparison-side h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ffca28;
  padding-bottom: 0.3rem;
  font-weight: 700;
}

/* Liste mit 2 Spalten */
.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 2rem; /* vertikal & horizontal Abstand */
  text-align: left;
}

.comparison-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.before .comparison-list li::before {
  content: '✗';
  color: #e74c3c;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.2rem;
}

.after .comparison-list li::before {
  content: '✓';
  color: #27ae60;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.2rem;
}

.meme-container {
  max-width: 280px;
  justify-self: center;
}

.meme-container img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  display: block;
  margin: 0 auto;
}

.cta-button-container {
  text-align: center;
}

.cta-button {
  background-color: #ffca28;
  color: #1e2a47;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(255, 202, 40, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #e6b820;
  box-shadow: 0 8px 20px rgba(230, 184, 32, 0.9);
  outline: none;
}

/* Responsive */
@media (max-width: 640px) {
  .comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .meme-container {
    order: 3;
    max-width: 240px;
    margin: 0 auto;
  }

  .comparison-side {
    width: 100%; /* volle Breite mobil */
  }

  .comparison-list {
    grid-template-columns: repeat(2, 1fr); /* 2 Spalten bleiben erhalten */
    gap: 0.6rem 1.5rem;
  }

  .comparison-list li {
    font-size: 1rem;
    line-height: 1.25;
  }

  .cta-button {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
  }
}

/* NÄCHSTE TERMINE */

.timeline {
    width: 100%;;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.timeline h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--text-color);
}

/* Zeitstrahl-Linie */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  height: 4px;
  background: #348fcf;
  z-index: 1;
}

.timeline-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  position: relative;
  gap: 20px;
  z-index: 2;
}

.timeline-item {
  position: relative;
  width: 220px;
  z-index: 2;
}

.timeline-content {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-content img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.timeline-content .text {
  padding: 15px;
  text-align: center;
}

.timeline-content .date {
  font-weight: bold;
  color: #348fcf;
  margin-bottom: 5px;
}

.timeline-content .title {
  font-size: 1rem;
  color: #333;
}

/* ---------- MOBILE ---------- */
@media (max-width: 1024px) {
  .timeline-container {
    flex-direction: column;
    align-items: center;
  }

  .timeline-container::before {
    width: 4px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 90%;
  }
}
