* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background: #fff;
  color: #111;
  overflow-x: hidden;
}

/* Titelbereich */
.hero {
  height: 100vh;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.2)), url('bilder/love.jpeg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 2rem;
  position: relative;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

#timer {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  opacity: 0.8;
  flex-wrap: wrap;
  justify-content: center;
}

#timer div {
  text-align: center;
}

#timer strong {
  font-size: 1.4rem;
  display: block;
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bildkarussell */
.carousel-container {
  max-width: 1000px;
  margin: auto;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 2rem 1rem;
  gap: 2rem;
  -webkit-overflow-scrolling: touch;
  justify-content: start;
}

.carousel-track img {
  scroll-snap-align: center;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.4;
  transform: scale(0.85);
}

.carousel-track img.active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 1;
}

.carousel-buffer {
  width: 50%;
  flex-shrink: 0;
}

.carousel-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel-buttons button {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  background: #ff6b81;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.carousel-buttons button:hover {
  background: #ff8597;
}

/* Überschriften über Karussells */
.slider-heading {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.slider-heading h2 {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 0.3rem;
  font-family: 'Playfair Display', serif;
}

.slider-heading p {
  font-size: 1.1rem;
  color: #666;
}

/* Zitate */
.quote-section {
  padding: 8rem 2rem;
  background: #fff;
  text-align: center;
}

.quote-container blockquote {
  font-size: 1.8rem;
  font-style: italic;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  font-family: 'Playfair Display', serif;
}

.animated-footer {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.1rem;
  color: #d54f73;
  background: #fff0f5;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  border-top: 2px dashed #ffd3e2;
  font-family: 'Playfair Display', serif;
  border-radius: 12px 12px 0 0;
}

.animated-footer.visible {
  opacity: 1;
  transform: translateY(0);
}

.animated-footer .footer-icon {
  font-size: 2rem;
  animation: heartbeat 1.8s infinite ease-in-out;
  margin-bottom: 0.6rem;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.1); }
}

/* Popup-Overlay */
#popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: contrast(200%) saturate(150%) brightness(0.7) blur(2px);
}


/* Popup-Box (Grundzustand) */
#popup-box {
  background: rgba(255, 255, 255, 0.98); /* sichtbar, aber nicht grell */
  opacity: 0;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* mehr Kontrast */
  transform: scale(0.95);
  transition: transform 0.6s ease, opacity 0.6s ease;
  color: #111;
}


/* Sichtbar machen mit Animation */
#popup-box.visible {
  transform: scale(1);
  opacity: 1;
}

#popup-box p {
  font-size: 1.3rem;
  color: #222; /* dunkler für besseren Kontrast */
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
}


#popup-close {
  background: #ff6b81;
  color: white;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 600;
}

#popup-close:hover {
  background: #ff8597;
}

/* Inhalt unscharf, wenn Popup aktiv */
.blur-content {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 1.5rem;
    background-position: center;
    background-size: cover;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  #timer {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  #timer strong {
    font-size: 1.2rem;
  }

  .carousel-track {
    padding: 1rem 0.5rem;
    gap: 1rem;
  }

  .carousel-track img {
    height: 300px;
    border-radius: 8px;
  }

  .carousel-buttons {
    gap: 0.5rem;
  }

  .carousel-buttons button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .slider-heading h2 {
    font-size: 1.5rem;
  }

  .slider-heading p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .quote-section {
    padding: 4rem 1.5rem;
  }

  .quote-container blockquote {
    font-size: 1.3rem;
    line-height: 1.5;
  }

  footer {
    font-size: 0.9rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .quote-container blockquote {
    font-size: 1.1rem;
  }

  .carousel-track img {
    height: 220px;
  }
}
