body {
  font-family: system-ui, sans-serif;
  background-color: #fff8f0;
  color: #1f2937;
  margin: 0;
}

a {
  color: white;
}

a:visited {
  color: white;
}

a:hover {
  color: white;
}


.bg-gray-50 { background-color: #f9fafb; }
.text-gray { color: #4b5563; }
.text-red { color: #dc2626; }

.flex-center { display: flex; justify-content: center; align-items: center; }
.text-center { text-align: center; }



.card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin: 1rem;
}

.input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}

.btn {
  background-color: #ca8a04;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn:hover { background-color: #b45309; }

.btn-blue {
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
}

.btn-red {
  color: #dc2626;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
}

.hero {
  height: 90vh;
  background-image: url('img/St Andreas1976 Salzgitter.jpg');
  background-size: cover;
  background-position:  right top;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
}

.hero-text {
  position: relative;
  z-index: 10;
  color: white;
  padding: 1rem;
}

.flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.py-12 { padding-top:3rem; padding-bottom:3rem; }
.px-6 { padding-left:1.5rem; padding-right:1.5rem; }

.guest-block { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; margin-bottom:1rem; border-bottom:1px solid #d1d5db; padding-bottom:0.5rem; }

.hidden { display: none; }

#einladung-box {
  position: relative;
  background-color: #fff8f0;
  padding: 80px 20px;
  text-align: center;
}

/* Container für Box + Bilder */
.invite-wrapper {
  display: inline-block;
  position: relative;
}

/* Kasten */
.invite-box {
  background-color: #b58900;
  color: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  max-width: 600px;
  position: relative;
  z-index: 1;
}

/* Bilder */
.image-slider {
  position: absolute;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #fff8f0;
}

.tall-slider {
  width: 250px;
  height: 300px;
  top: 0px;   /* nach oben verschoben */
  left: -280px;  /* links neben Kasten */
}

.square-slider {
  width: 200px;
  height: 200px;
  bottom: 0px; /* nach unten verschoben */
  right: -230px; /* rechts neben Kasten */
 }

.image-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.image-slider img.active {
  opacity: 1;
}

/* Desktop/Mobil anzeigen */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

#tagesablauf {
  background-color: #fff8f0;
  padding: 60px 20px;
  text-align: center;
}

#tagesablauf h2 {
  font-size: 2rem;
  color: #b58900;
  margin-bottom: 40px;
  font-family: 'Georgia', serif;
}

/* Timeline Container */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Mittellinie */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #b58900;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Timeline-Items */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* Punkt auf der Linie */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border: 4px solid #b58900;
  border-radius: 50%;
  z-index: 2;
}

.timeline-item.left::before {
  right: -8px;
}

.timeline-item.right::before {
  left: -8px;
}

/* Event-Box */
.timeline-item .event {
  background-color: #b58900;
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  max-width: 300px;
  position: relative;
}

.timeline-item .event p {
  margin: 0;
}

/* Foto in der Box */
.timeline-photo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 10px;
}

.timeline-item.left .timeline-photo {
  order: 2; /* Bild rechts, Text links */
  margin-left: 10px;
  margin-right: 0;
}

.timeline-item.right .timeline-photo {
  order: 0; /* Bild links, Text rechts */
}

/* Zeit */
.timeline-item .time {
  font-weight: bold;
  margin-bottom: 5px;
  color: #b58900;
}

/* Responsive */
@media (max-width: 768px) {
    .invite-wrapper {
    flex-direction: column;
    align-items: center;
	padding-bottom: 250px;
  }
    .invite-box {
    max-width: 100%;
  }
  .tall-slider,
  .square-slider {
    display: none; /* Desktop-Slider ausblenden */
  }
  .mobile-only {
    display: block;
    width: 100%;
    height: 300px;
    margin: 0px auto 0 auto;
     }
	 
  .mobile-only img {
    object-position: top -5px; /* Bild oben ausrichten */
  }


  	.time-box {
      min-width: 70px;
      padding: 15px;
    }
    .time-box span {
      font-size: 1.5rem;
    }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    text-align: left !important;
    margin-bottom: 40px;
  }
  .timeline-item.right {
    left: 0px; /* Punkt auf der Linie */
    right: 0px;
  }
  .timeline-item.left::before,
  .timeline-item.right::before {
    left: 10px; /* Punkt auf der Linie */
    right: 0px;
  }
  .timeline-item .event {
    flex-direction: row; /* Bild links, Text rechts */
  }
  .timeline-photo {
    order: 0;
    margin-right: 10px;
    margin-left: 0;
  }

  }
  #countdown {
    background-color: #fff8f0;
    padding: 20px 20px;
    text-align: center;
  }

  #countdown h2 {
    font-size: 2rem;
    color: #b58900;
    margin-bottom: 30px;
    font-family: 'Georgia', serif;
  }

  .timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .time-box {
    background-color: #b58900;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    min-width: 90px;
    transition: transform 0.3s ease;
  }

  .time-box span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
  }

  .time-box p {
    margin: 0;
    font-size: 1rem;
  }

  .time-box.flip {
    transform: scale(1.1);
  }

