* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8f6f3;
  color: #333;
}

.page {
  width: 100%;
}

/* Sections */
.section {
  padding: 3.5rem 1.5rem;
  min-height: 50vh;

  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.section p,
.section li {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Hero */
.hero {
  min-height: 100vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ddd;
}

.hero h2 {
  font-size: 2.4rem;
}

.einladungstext {
  color: red;
}

.countdown {
  background-color: #828964;  /* ähnlich wie im Screenshot */
  color: white;
  text-align: center;
  padding: 60px 20px;
  font-family: 'Arial', sans-serif;
}

.countdown h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.countdown p {
  margin-bottom: 40px;
  font-size: 1rem;
  opacity: 0.8;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.time-box {
  background-color: rgba(255,255,255,0.1);
  padding: 20px 30px;
  border-radius: 10px;
  min-width: 80px;
}

.time-box span:first-child {
  display: block;
  font-size: 2rem;
  font-weight: bold;
}

.time-box span:last-child {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 0.5rem;
}

/* Iframes */
iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* Desktop: schmal & zentriert */
@media (min-width: 768px) {
  .page {
    max-width: 700px;
    margin: 0 auto;
  }

  .section h2 {
    font-size: 2rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ===== Overlay ===== */
#invite-overlay {
  position: fixed;
  inset: 0;
  background: #e9e3d9;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Einladung */
.folded-invite {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 430px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.6), transparent 60%),
    repeating-linear-gradient(
      45deg,
      rgba(0,0,0,0.015),
      rgba(0,0,0,0.015) 1px,
      transparent 1px,
      transparent 3px
    ),
    #f4f0e8;
  overflow: hidden;
}


/* Papierstruktur */
.flap {
  position: absolute;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.05), transparent 40%),
    repeating-linear-gradient(
      -45deg,
      rgba(0,0,0,0.02),
      rgba(0,0,0,0.02) 1px,
      transparent 1px,
      transparent 4px
    ),
    #f4f0e8;

  box-shadow:
    inset 0 0 25px rgba(0,0,0,0.06),
    0 10px 30px rgba(0,0,0,0.08);

  transition: transform 4.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}


/* Faltungen */
.flap.top {
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  transform-origin: top;
}

.flap.bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  transform-origin: bottom;
}

.flap.left {
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  transform-origin: left;
}

.flap.right {
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  transform-origin: right;
}

/* Wachssiegel */
/* .seal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at top left, #8b2f3c, #5c1a25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: cursive;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.6s ease, opacity 0.6s ease;
}
 */
 
 .seal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;

  /* Statt radial-gradient: Hintergrundbild vom Wachsiegel */
  background: url('../images/wachsiegel3.png') no-repeat center center;
  background-size: 150%;

/*  border-radius: 50%;  Falls das Siegel rund ist */
  transform: translate(-50%, -50%);
/*  box-shadow: 0 10px 20px rgba(0,0,0,0.15); */

  /* Text bleibt mittig */
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: cursive;
  font-size: 1.2rem;
  color: white; /* optional, falls Text auf dem Siegel sichtbar bleiben soll */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6); /* optional für bessere Lesbarkeit */

  cursor: pointer;
  transition: transform 0.6s ease, opacity 0.6s ease;
}
 
/* ===== Öffnen ===== */
#invite-overlay.open .seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}

#invite-overlay.open .flap.top {
  transform: rotateX(180deg);
}

#invite-overlay.open .flap.left {
  transform: rotateY(-180deg);
}

#invite-overlay.open .flap.right {
  transform: rotateY(180deg);
}

#invite-overlay.open .flap.bottom {
  transform: rotateX(-180deg);
}

/* Overlay ausblenden */
#invite-overlay.open {
  animation: fadeOverlay 1s ease forwards;
  animation-delay: 1.2s;
}

@keyframes fadeOverlay {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
