@font-face {
  font-family: "Almara";
  src: url("Images/Almara Demo.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SectionHeading";
  src: url("Images/Almara Demo.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --card-bg: rgba(255, 255, 255, 0.75);
  --text-dark: #7a6e6e;
  --script-font: "Almara", "Allura", cursive;
  --section-heading-font: "Parisienne", var(--script-font);
}

.great-vibes {
  font-family: "Angelface", cursive;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--text-dark);
  background-image: url("Images/Hintergrund.png");
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 100% auto;
}

.hero {
  position: relative;
  height: calc(100vw * 2 / 3);
  background-image: url("Images/Titelfoto.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.hero-text {
  position: absolute;
  inset: 0;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 450ms ease, transform 450ms ease;
  pointer-events: none;
}

.overlay-top {
  position: absolute;
  top: 2.5vw;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overlay-bottom {
  position: absolute;
  top: 42vw;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-name {
  margin: 0;
  font-size: clamp(1rem, 8vw, 6.1rem);
  letter-spacing: 0.07em;
  line-height: 0.95;
  font-weight: 400;
  color: #fff;
}

.title-and {
  margin: 0;
  font-family: "SectionHeading", cursive;
  font-size: clamp(1.2rem, 7vw, 5rem);
  line-height: 0.5;
  color: #fff;
}

.umlaut-u {
  position: relative;
}

.umlaut-u::after {
  content: "¨";
  position: absolute;
  top: 2.6em;
  left: 0.2em;
  font-size: 0.15em;
  letter-spacing: -0.15em;
}

.title-date {
  margin: 0;
  font-size: clamp(0.8rem, 4vw, 3.4rem);
  letter-spacing: 0.08em;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.8vw, 1.5rem);
  color: #fff;
}

.title-place {
  margin: clamp(0.3rem, 1.2vw, 1.2rem) 0 0;
  font-size: clamp(0.75rem, 3.4vw, 2.9rem);
  letter-spacing: 0.17em;
  font-weight: 400;
  color: #fff;
}

.hero-text.visible {
  opacity: 1;
  transform: translateY(0);
}

main {
  padding: 0vh 1rem 10vh;
  display: grid;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.content-card {
  background: var(--card-bg);
  backdrop-filter: blur(1px);
  border-radius: 14px;
  padding: 1.25rem;
}

.content-card h2 {
  margin: 0 0 0.4rem;
}

.content-card p {
  margin: 0;
  line-height: 1.6;
}

.lageplan-wrapper {
  display: grid;
  place-items: center;
}

.lageplan-img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
}

.lageplan-overlay {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.lageplan-section {
  text-align: center;
}

.info-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 7vh;
  text-align: center;
}

.menu-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.rsvp-menu-form {
  max-width: 720px;
  margin: 1rem auto 0;
}

.rsvp-guests {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.rsvp-person {
  text-align: left;
}

.rsvp-name-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rsvp-person label,
.menu-option-group label {
  display: block;
  margin: 0.7rem 0 0.25rem;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.rsvp-person input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(122, 110, 110, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  font: inherit;
}

.person-toggle-button {
  margin: 0.9rem auto 0;
  display: block;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(122, 110, 110, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-dark);
  font: inherit;
  cursor: pointer;
}

.is-hidden {
  display: none;
}

.is-hidden-choice {
  visibility: hidden;
  pointer-events: none;
}

.is-visible-choice {
  visibility: visible;
  pointer-events: auto;
}

.rsvp-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.rsvp-checkbox input {
  width: 1rem;
  height: 1rem;
}

.menu-course + .menu-course {
  margin-top: 1.8rem;
}

.menu-course {
  display: grid;
  grid-template-columns: minmax(0, 18.2rem) repeat(2, 2.5rem);
  gap: 1rem 0.75rem;
}

.menu-course h3 {
  grid-column: 1;
  margin: 0 0 0.35rem;
  justify-self: end;
  width: max-content;
  white-space: nowrap;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: right;
}

.menu-course > .menu-choice-grid {
  grid-column: 1 / -1;
}

.menu-course p {
  margin: 0.2rem 0;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
}

.menu-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
  text-align: left;
}

.menu-option-group {
  border-top: 1px solid rgba(122, 110, 110, 0.18);
  padding-top: 0.75rem;
}

.menu-option-group input {
  margin-right: 0.55rem;
}

.menu-person-label {
  margin: 0 0 0.35rem;
  font-family: inherit;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.06em;
}

.menu-choice-grid {
  display: grid;
  grid-template-columns: subgrid;
  column-gap: inherit;
  text-align: center;
}

.menu-choice-head {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.menu-choice-option {
  text-align: right;
  align-self: center;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  width: auto;
}

.menu-choice-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  padding: 0;
  border: 1px solid rgba(122, 110, 110, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  text-align: center;
  flex-shrink: 0;
}

.menu-choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-choice-pill:has(input:checked) {
  background: rgba(122, 110, 110, 0.14);
  border-color: rgba(122, 110, 110, 0.55);
}

.menu-choice-pill span {
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
}

.person-one-label {
  opacity: 0;
}

.rsvp-menu-form.person-two-active .person-one-label {
  opacity: 1;
}

.menu-dessert-single {
  margin: 0.5rem 0 0;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
}

.menu-or {
  font-weight: 600;
  letter-spacing: 0.08em;
}

.submit-button {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.85rem 1.6rem;
  border: 1px solid rgba(122, 110, 110, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-dark);
  font: inherit;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  cursor: pointer;
}

.rsvp-feedback {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  text-align: center;
  font-size: clamp(1rem, 2.4vw, 1.1rem);
}

.rsvp-feedback.is-error {
  color: #8b2f2f;
}

.gift-note {
  margin: 0;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
}

.witness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.witness-card {
  text-align: center;
}

.witness-card img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 0.75rem;
}

.witness-card h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
}

.witness-card p {
  margin: 0.35rem 0 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.location-addresses {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.text-section {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-dark);
  line-height: 1.4;
}

.text-section a {
  color: inherit;
}

.timeline-section .text-section {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.timeline-content .text-section {
  text-align: left;
  max-width: none;
  margin: 0;
}

.parking-note {
  margin: 2rem 0 0;
  font-weight: 500;
}

/* ── Timeline ── */
.timeline-section {
  padding: 0vh 1rem 7vh;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Shared section heading ── */
.section-heading {
  font-family: "SectionHeading", cursive;
  font-size: clamp(4.5rem, 11vw, 6.5rem);
  font-weight: 550;
  text-align: center;
  margin: 3vw 0 1vw;
  color: var(--text-dark);
}

h1 {
  font-family: "SectionHeading", cursive;
  font-size: clamp(4.5rem, 11vw, 6.5rem);
  font-weight: 550;
  text-align: center;
  margin: 3vw 0 1vw;
  color: var(--text-dark);
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 40px 1fr;
  grid-template-rows: auto 1fr;
  align-items: start;
}

.timeline-item:has(.timeline-content:empty) {
  grid-template-rows: auto;
}

.timeline-item:has(.timeline-content:empty) .timeline-bubble {
  width: 32px;
  height: 32px;
}

.timeline-item:has(.timeline-content:empty) .timeline-line {
  min-height: 32px;
}

.timeline-item:not(:last-child) {
  margin-bottom: 0rem;
}

.timeline-bubble {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 160px;
  height: 160px;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.timeline-bubble img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-line {
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: center;
  width: 1.2px;
  background: var(--text-dark);
  height: 100%;
}

.timeline-item:not(:last-child) .timeline-line {
  height: 100%;
}

.timeline-line.last {
  height: 100%;
}

.timeline-content {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  padding-top: 0;
  color: var(--text-dark);
}

.timeline-time {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}

p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-dark);
}

.sub-section-heading {
  margin: 0.3rem 0 0.15rem;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.menu-course .sub-section-heading {
  grid-column: 1;
  justify-self: stretch; /* or just remove justify-self */
  width: 100%;
  text-align: right;
}

@media (max-width: 480px) {
  .menu-course {
    grid-template-columns: minmax(0, 18.2rem) repeat(2, 2.5rem);
  }

  .menu-course h3 {
    transform: none;
    text-align: right;
  }

  .rsvp-name-row {
    grid-template-columns: 1fr;
  }

  .witness-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 120px 28px 1fr;
    column-gap: 1rem;
  }
  .timeline-item:not(:last-child) {
    margin-bottom: 0;
  }
  .timeline-bubble {
    width: 120px;
    height: 120px;
  }
  .timeline-item:has(.timeline-content:empty) .timeline-bubble {
    width: 24px;
    height: 24px;
  }
  .timeline-item:has(.timeline-content:empty) .timeline-line {
    min-height: 24px;
  }
  .timeline-line {
    min-height: auto;
    height: 100%;
  }
  .timeline-item:not(:last-child) .timeline-line {
    height: 100%;
  }
  .timeline-line.last {
    height: 100%;
  }
}

.footer {
  padding: 0 1rem 2rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer a {
  color: inherit;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  width: min(900px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 14px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
}

.modal-close {
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
