/* ==========================================================================
   Event-Vorlagen: Einladungs-Ticket, Countdown, Programm-Liste
   Zuerst genutzt für die Eröffnung am 06.11.2026.
   Wird nur auf Seiten geladen, die diese Bausteine verwenden
   (z. B. /rueckblick/). Vorlagen-HTML: design/vorlagen/
   ========================================================================== */

/* --- Eröffnung (Einladungs-Ticket) --- */

.opening {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  background: #fdf8f5;
  border: 3px solid var(--color-text);
  border-radius: var(--radius-soft);
  box-shadow: 10px 10px 0 var(--color-text);
  position: relative;
}

.opening-main {
  flex: 1;
  padding: 3rem;
  position: relative;
}
.opening-tag {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}
.opening-title {
  font-family: var(--font-head);
  font-size: 3rem;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.opening-title i {
  font-weight: 400;
  color: var(--color-primary);
}
.opening-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.5rem;
  max-width: 34rem;
}
/* Countdown */
.countdown {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.countdown-unit {
  flex: 1;
  max-width: 92px;
  text-align: center;
  background: var(--color-bg);
  border: 2px solid var(--color-text);
  border-radius: 8px;
  padding: 0.6rem 0.25rem 0.5rem;
}
.countdown-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-secondary);
  margin-top: 0.35rem;
}
.countdown-done {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.opening-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
}

/* Abriss-Coupon rechts */
.opening-stub {
  width: 290px;
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fdf8f5;
  border-left: 3px dashed rgba(253, 248, 245, 0.55);
  border-radius: 0 9px 9px 0;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.opening-stub::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(253, 248, 245, 0.2);
  border-radius: 50%;
  bottom: -90px;
  right: -90px;
}
/* Ticket-Kerben an der Perforation */
.opening-notch {
  position: absolute;
  right: 290px;
  width: 28px;
  height: 28px;
  margin-right: -14px;
  background: var(--color-bg);
  border: 3px solid var(--color-text);
  border-radius: 50%;
  z-index: 2;
}
.opening-notch.top {
  top: -16px;
  clip-path: inset(50% 0 0 0);
}
.opening-notch.bottom {
  bottom: -16px;
  clip-path: inset(0 0 50% 0);
}
.stub-day {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.85;
}
.stub-date {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 5.5rem;
  line-height: 0.95;
  margin: 0.4rem 0 0.2rem;
  color: #fdf8f5;
}
.stub-month {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--color-accent);
}
.stub-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 3px;
  margin: 1.25rem 0;
  transform: rotate(-3deg);
}
.stub-time {
  font-size: 1.3rem;
  font-weight: 700;
}
.stub-place {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 0.3rem;
}

@media (max-width: 900px) {
  .opening {
    flex-direction: column-reverse;
    box-shadow: 6px 6px 0 var(--color-text);
  }
  .opening-main {
    padding: 2rem 1.5rem;
  }
  .opening-title {
    font-size: 2.3rem;
  }
  .opening-stub {
    width: auto;
    border-left: 0;
    border-bottom: 3px dashed rgba(253, 248, 245, 0.55);
    border-radius: 9px 9px 0 0;
    padding: 2rem 1.5rem;
  }
  .stub-date {
    font-size: 4.5rem;
  }
  .opening-notch {
    display: none;
  }
  .countdown-num {
    font-size: 1.6rem;
  }
}

/* Programm am Eröffnungstag: gestrichelte Karten wie im Flyer des Vereins */
.program {
  max-width: 1000px;
  margin: 3.5rem auto 0;
  text-align: center;
}
.program-title {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--color-primary);
}
.program-title span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text);
}
.program-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}
.program-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px dashed var(--color-text);
  border-radius: var(--radius-soft);
  padding: 1.25rem 1rem;
  background: rgba(253, 248, 245, 0.6);
}
.program-time {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text);
}
.program-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--color-primary);
  margin-top: 0.15rem;
}
.program-desc {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #555;
  margin-top: 0.5rem;
}
@media (max-width: 900px) {
  .program-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .program-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 600px) {
  .program-list {
    grid-template-columns: 1fr;
  }
}
