/* =========================================================
   RESET & BASIS
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: "Georgia", serif;
  color: #333;
  background: #ffffff;
  line-height: 1.7;
  opacity: 0;
  animation: pageFade 1.2s ease forwards;
}

@keyframes pageFade {
  to { opacity: 1; }
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* =========================================================
   FADE-IN (SCROLL ANIMATION)
   ========================================================= */

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}


/* =========================================================
   LAYOUT BASICS
   ========================================================= */

.section {
  padding: 90px 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

@media (max-width: 768px) {
  .section {
    padding: 70px 20px;
  }
}

.section.light {
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f8f8f8 15%,
    #f8f8f8 85%,
    #ffffff 100%
  );
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  font-weight: 400;
}

.section-intro {
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.85;
}

.divider {
  height: 120px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f8f8f8 50%,
    #ffffff 100%
  );
}

@media (max-width: 768px) {
  .divider {
    height: 80px;
  }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  opacity: 0;
  transition: opacity 2.5s ease;
}

.slide.active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.85);
  padding: 50px 40px;
  border-radius: 2px;
  text-align: center;
  animation: float 12s ease-in-out infinite;
  will-change: transform, opacity;
  transition: opacity 0.2s linear;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 400;
}

.subtitle {
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 10px;
}

.date {
  font-size: 1.2rem;
  margin-top: 10px;
}

.scroll {
  display: block;
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 480px) {
  .hero-content {
    padding: 36px 26px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 0.8rem;
  }

  .date {
    font-size: 1rem;
  }
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.nav ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  padding: 14px 20px;
}

.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #444;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.nav a:hover {
  border-color: #aaa;
}

.nav a.active {
  font-weight: 600;
  color: #000;
  position: relative;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 18px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav ul {
    justify-content: flex-start;
    white-space: nowrap;
    gap: 24px;
  }

  .nav a {
    font-size: 0.85rem;
    padding: 8px 4px;
  }
}

section {
  scroll-margin-top: 100px;
}

@media (max-width: 768px) {
  section {
    scroll-margin-top: 80px;
  }
}

/* =========================================================
   COUNTDOWN
   ========================================================= */

#countdown {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

#countdown div {
  text-align: center;
}

#countdown span {
  font-size: 2.5rem;
  display: block;
  font-weight: 400;
}

#countdown label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
}

@media (max-width: 768px) {
  #countdown {
    gap: 28px;
  }

  #countdown span {
    font-size: 2rem;
  }
}


/* =========================================================
   LOCATIONS
   ========================================================= */

.locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  margin-top: 60px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.location-card {
  background: #ffffff;
  padding: 40px 30px;
  text-align: center;
}

.location-type {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
}

.location-card h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.location-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.85;
}

.location-card iframe {
  width: 100%;
  height: 260px;
  border: none;
}

.map {
  width: 100%;
  height: 350px;
  border: none;
}

@media (max-width: 768px) {
  .locations {
    grid-template-columns: 1fr;
  }

  .location-card {
    padding: 36px 24px;
  }
}

/* =========================
   SCHEDULE
   ========================= */

:root {
  --schedule-icon-size: 80px;
}

.schedule {
  margin-top: 100px;
}

.schedule-title {
  text-align: center;
  margin-bottom: 80px;
}

/* 3 Spalten: Text | Linie | Text */
.schedule-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  margin-bottom: 90px;
}

/* Mittellinie */
.schedule-line {
  position: relative;
  display: flex;
  justify-content: center;
}

.schedule-line::before {
  content: "";
  position: absolute;
  top: calc(var(--schedule-icon-size) / -2);
  bottom: calc(var(--schedule-icon-size) / -2);
  width: 1px;
  background: rgba(0,0,0,0.08);
}

/* Icon */
.schedule-icon {
  width: var(--schedule-icon-size);
  height: var(--schedule-icon-size);
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.schedule-icon img {
  width: 50%;
  height: 50%;
  object-fit: contain;
}

/* Text */
.schedule-text {
  max-width: 360px;
  line-height: 1.4;
}

.schedule-row.right .schedule-text {
  text-align: left;
  justify-self: start;
}

.schedule-row.left .schedule-text {
  text-align: right;
  justify-self: end;
}

.schedule-text h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 400;
}

.schedule-text p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Leere Gegenspalte */
.schedule-spacer {
  width: 100%;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {
  .schedule-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .schedule-line::before {
    display: none;
  }

  .schedule-line {
    margin-bottom: 16px;
  }

  .schedule-text {
    max-width: 420px;
    margin: 0 auto;
  }
}



/* =========================================================
   FORMS (RSVP / UPLOAD)
   ========================================================= */

.rsvp-form {
  max-width: 500px;
  margin: 40px auto 0;
  display: grid;
  gap: 15px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.rsvp-form button {
  padding: 12px;
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
}

.rsvp-success {
  display: none;
  margin-top: 40px;
  text-align: center;
  font-size: 1.1rem;
  opacity: 0;
}

.rsvp-success.visible {
  display: block;
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   GALLERY
   ========================================================= */

.gallery-placeholder {
  border: 1px solid rgba(0,0,0,0.08);
  padding: 60px 20px;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.7;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-grid img:hover {
  transform: scale(1.04);
}

/* =========================================================
   STORY TIMELINE
   ========================================================= */

.story-timeline {
  margin-top: 60px;
  display: grid;
  gap: 60px;
  position: relative;
}

.story-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0,0,0,0.06);
  transform: translateX(-50%);
}

.story-item {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  background: #ffffff;
}

.story-year {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
}

.story-item h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .story-timeline {
    gap: 50px;
  }

  .story-timeline::before {
    display: none;
  }
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f2f2f2 60%,
    #e9e9e9 100%
  );
}

.login-intro > * {
  background: rgba(255, 255, 255, 0.85);
  padding: 60px 50px;
  border-radius: 2px;
}

.login-intro h1 {
  font-size: 2.5rem;
  font-weight: 400;
}

.login-intro p {
  max-width: 400px;
  margin: 18px auto;
}

.login-intro .small {
  font-size: 0.85rem;
  opacity: 0.7;
}

.login-button {
  margin-top: 30px;
  padding: 12px 28px;
  border: 1px solid #333;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  letter-spacing: 1.2px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  padding: 60px 20px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer span {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
}
