/* =========================================================
   Vincent & Xueying — 18. Mai 2026
   ========================================================= */

/* ───── Design-Tokens ───── */
:root {
  /* Farben */
  --cream:          #faf5ec;
  --cream-warm:     #f3ebd9;
  --cream-deep:     #ece1c8;
  --burgundy:       #8e1f2c;
  --burgundy-deep:  #6a1620;
  --burgundy-soft:  #a8343f;
  --burgundy-glow:  rgba(142, 31, 44, 0.10);
  --ink:            #2a1c1c;
  --ink-muted:      #6b5656;
  --ink-faint:      #a18f8f;
  --line:           rgba(42, 28, 28, 0.14);
  --line-burgundy:  rgba(142, 31, 44, 0.22);
  --shadow-soft:    0 12px 36px rgba(42, 28, 28, 0.08);
  --shadow-deep:    0 24px 60px rgba(142, 31, 44, 0.10);

  /* Schriften */
  --font-display: "Cormorant Garamond", "Cormorant", "Garamond", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-cn:      "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;

  /* Bewegung */
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --gutter:       clamp(1.25rem, 5vw, 2.5rem);
  --max-content:  64rem;
  --max-narrow:   42rem;
}

/* ───── Reset ───── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}
img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

main, footer { position: relative; z-index: 1; }

/* ───── Sprachumschalter ───── */
.lang-switch {
  position: fixed;
  top: clamp(0.85rem, 2vw, 1.25rem);
  right: clamp(0.85rem, 2vw, 1.25rem);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.25rem;
  background: rgba(250, 245, 236, 0.78);
  border: 1px solid var(--line-burgundy);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(42, 28, 28, 0.06);
}
.lang-btn {
  padding: 0.4rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  border-radius: 999px;
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active {
  color: var(--cream);
  background: var(--burgundy);
}
.lang-btn--cn { font-family: "Noto Sans SC", var(--font-sans); letter-spacing: 0.04em; font-weight: 600; }
@media (max-width: 380px) {
  .lang-switch { top: 0.65rem; right: 0.65rem; padding: 0.2rem; }
  .lang-btn { padding: 0.35rem 0.55rem; font-size: 0.7rem; }
}

/* Sprach-spezifische Anpassungen für ZH:
   Italic-Text und negatives Letter-Spacing wirken auf Hanzi nicht — abschalten. */
html[lang="zh"] .greeting-prefix { font-style: normal; }
html[lang="zh"] .greeting,
html[lang="zh"] .intro,
html[lang="zh"] .section-title,
html[lang="zh"] .section-lede,
html[lang="zh"] .t-title,
html[lang="zh"] .menu-footnote {
  letter-spacing: 0;
}

/* ───── Hintergrund-Ornament ───── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(142, 31, 44, 0.045), transparent 45%),
    radial-gradient(ellipse at 92% 100%, rgba(142, 31, 44, 0.035), transparent 50%);
}
.bg-sigil {
  position: absolute;
  font-family: var(--font-cn);
  font-size: clamp(14rem, 32vw, 24rem);
  color: rgba(142, 31, 44, 0.035);
  top: 50vh;
  top: 50svh;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
  font-weight: 600;
}

/* ───── Typografie ───── */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1rem;
}
.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}
.section-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-muted);
  max-width: 38em;
  margin: 0 auto;
  line-height: 1.5;
}

/* ───── Hero ───── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  /* Top-Padding hält die Anrede zuverlässig unter dem fixierten Lang-Switch,
     auch wenn der Hero-Inhalt das Viewport überfüllt (kleine Geräte, ZH-Glyphen). */
  padding: clamp(4.5rem, 8vh, 5.5rem) var(--gutter) clamp(6rem, 12vh, 8rem);
  display: grid;
  align-content: center;
  justify-items: center;
}
.hero-inner {
  width: 100%;
  max-width: var(--max-content);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  justify-items: center;
  text-align: center;
}

.greeting {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.greeting-prefix {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: #4a3838;
  font-size: 1em;
  line-height: 1.05;
  margin-bottom: 0.05em;
  letter-spacing: 0.01em;
}
.guest-names {
  display: block;
  color: var(--burgundy);
  font-weight: 400;
}

.intro {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.4;
  color: #352525;
  max-width: 24em;
  letter-spacing: -0.005em;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: min(320px, 66vw);
  margin: clamp(0.5rem, 2vw, 1.25rem) auto 0;
}
@media (max-width: 919px) {
  .hero-image + .names { margin-top: -0.25rem; }
}

.hero-seal {
  position: absolute;
  bottom: -0.5rem;
  left: -0.5rem;
  width: clamp(3.5rem, 6vw, 4.75rem);
  height: clamp(3.5rem, 6vw, 4.75rem);
  border-radius: 0.55rem;
  background: linear-gradient(145deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  color: var(--cream);
  font-family: var(--font-cn);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 24px rgba(142, 31, 44, 0.28),
    0 2px 6px rgba(42, 28, 28, 0.16);
  transform: rotate(-4deg);
  transition: transform 0.45s var(--ease-out), box-shadow 0.4s var(--ease-out);
  z-index: 3;
  user-select: none;
}
.hero-seal::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(250, 245, 236, 0.32);
  border-radius: 0.35rem;
  pointer-events: none;
}
.hero-seal::after {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
}
.hero-seal:hover,
.hero-seal.is-tapped {
  transform: rotate(6deg) translateY(-6px) scale(1.08);
  box-shadow:
    0 20px 40px rgba(142, 31, 44, 0.38),
    0 6px 14px rgba(42, 28, 28, 0.22);
  transition:
    transform 0.55s cubic-bezier(0.34, 1.45, 0.5, 1) 80ms,
    box-shadow 0.4s var(--ease-out) 80ms;
}
.hero-seal { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .hero-seal { cursor: pointer; }
}
.image-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #EFE3D0 0%, #F7F1E8 55%, #EFE3D0 100%);
  box-shadow:
    0 1px 0 rgba(142, 31, 44, 0.06),
    0 10px 28px rgba(42, 28, 28, 0.08),
    0 32px 80px rgba(142, 31, 44, 0.08);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
}
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 145% 100% at var(--mx, 50%) var(--my, 50%),
    rgba(255, 250, 235, 0.1),
    transparent 70%
  );
  opacity: var(--shine, 0);
  pointer-events: none;
  transition: opacity 0.7s var(--ease-out);
  z-index: 5;
}
.image-frame img {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
  border-radius: 4px;
  z-index: 2;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.image-placeholder {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background:
    linear-gradient(135deg, var(--cream-warm) 0%, var(--cream-deep) 100%);
  border-radius: 4px;
}
.image-frame:has(img) .image-placeholder { display: none; }
.ph-char {
  font-family: var(--font-cn);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 600;
  color: rgba(142, 31, 44, 0.22);
  line-height: 1;
}
.ph-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(42, 28, 28, 0.45);
}

.names {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.0;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}
.names .name { white-space: nowrap; line-height: 1.0; }
.names .amp {
  color: var(--burgundy);
  font-weight: 400;
  font-size: 0.65em;
  line-height: 1;
  align-self: center;
  margin-top: 0.3em;
  margin-bottom: -0.3em;
}

.sigil-divider {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 220px;
  width: 100%;
  margin: 0.5rem 0;
}
.sigil-divider .line {
  flex: 1;
  height: 1px;
  background: var(--line-burgundy);
}
.sigil-divider .sigil {
  font-family: var(--font-cn);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.sigil-divider .sigil svg {
  display: block;
  width: 0.95em;
  height: 0.95em;
}

.date {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 500;
  margin-top: 0.25rem;
}
.date .sep { opacity: 0.45; margin: 0 0.25em; }
.date-city--short { display: none; }
@media (max-width: 480px) {
  .date-city--full { display: none; }
  .date-city--short { display: inline; }
}

.hero-nav {
  position: absolute;
  bottom: clamp(1.75rem, 4vh, 2.75rem);
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0 var(--gutter);
}
.hero-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  border: 1px solid rgba(42, 28, 28, 0.2);
  background: rgba(250, 245, 236, 0.82);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.hero-nav-link:hover {
  background: var(--cream-warm);
  border-color: var(--line-burgundy);
  color: var(--burgundy);
  transform: translateY(-1px);
}
.hero-nav-link svg {
  flex: none;
  opacity: 0.6;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.hero-nav-link:hover svg {
  opacity: 1;
}

/* Hero — Desktop Zweispalter */
@media (min-width: 920px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas:
      "greeting image"
      "intro    image"
      "names    image"
      "divider  image"
      "date     image";
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    row-gap: clamp(0.85rem, 1.6vw, 1.5rem);
    justify-items: start;
    text-align: left;
    align-items: center;
  }
  .greeting        { grid-area: greeting; }
  .intro           { grid-area: intro; }
  .hero-image      { grid-area: image; justify-self: center; max-width: min(420px, 38vw); margin: 0; }
  .names           { grid-area: names; align-items: flex-start; }
  .sigil-divider   { grid-area: divider; }
  .date            { grid-area: date; }
}

/* ───── Section-Basis ───── */
.section {
  padding: clamp(4.5rem, 10vw, 7rem) var(--gutter);
  position: relative;
}
.section > * {
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
}

/* Engerer Übergang Ablauf → Menü, größerer vor dem Footer */
.section-ablauf { padding-bottom: clamp(2.75rem, 5.5vw, 4.25rem); }
.section-menu   { padding-top: clamp(2.75rem, 5.5vw, 4.25rem); }


/* ───── Ablauf / Timeline ───── */
.section-ablauf .section-head {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.sigil-divider--section {
  margin: 0.85rem auto 0;
}
.sigil-divider--section .sigil { font-size: 1.05rem; }
.section-ablauf .timeline {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  padding: 0.5rem 0;
}
.section-ablauf .timeline::before {
  content: "";
  position: absolute;
  left: 6rem;
  top: 0.7em;
  bottom: 0.7em;
  width: 1px;
  background: var(--line-burgundy);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
}
.t-item {
  position: relative;
  padding: 0.15rem 0 2.4rem 7.25rem;
}
.t-item:last-child { padding-bottom: 0.1rem; }
.t-item:has(.map--inline) { padding-bottom: 1.5rem; }
.t-item::before {
  content: "";
  position: absolute;
  left: 6rem;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--burgundy-soft) 0%, var(--burgundy) 55%, var(--burgundy-deep) 100%);
  transform: translateX(-50%);
  box-shadow:
    0 0 0 4px var(--cream),
    0 1px 3px rgba(142, 31, 44, 0.25);
}
.t-time {
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.55rem;
  color: var(--burgundy);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.t-time-end {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--burgundy-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  margin-top: 0.3rem;
}
.t-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.7vw, 1.75rem);
  color: var(--ink);
  margin-bottom: 0.45rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.t-place {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.55;
}
.t-addr {
  color: var(--ink-muted);
  font-size: 1rem;
}
.t-note {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.55;
}

.t-park {
  position: relative;
  margin-top: 1.5rem;
  padding-left: 1rem;
}
.t-park::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-burgundy);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}
.t-park-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.t-park .t-place { font-size: 1rem; }
.t-park .t-addr { font-size: 0.94rem; }
.t-park .t-note {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}
.t-park .route {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  padding: 0.55em 0;
  min-height: 0;
}
.t-park .route svg { width: 14px; height: 14px; }

.route {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  padding: 0.7em 0 0.7em;
  min-height: 44px;
  transition: color 0.25s var(--ease-out), gap 0.25s var(--ease-out);
}
.route:hover {
  color: var(--burgundy-deep);
  gap: 0.75em;
}
.route svg { flex: none; width: 16px; height: 16px; }

.t-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.85rem;
  padding: 0.45em 0;
  background: transparent;
  color: var(--burgundy);
  border: 0;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  min-height: 0;
  transition: color 0.25s var(--ease-out), gap 0.25s var(--ease-out);
}
.t-cta svg { flex: none; transition: transform 0.25s var(--ease-out); }
.t-cta:hover {
  color: var(--burgundy-deep);
  background: transparent;
  gap: 0.65em;
}
.t-cta:hover svg { transform: translateX(2px); }

@media (max-width: 540px) {
  .section-ablauf .timeline::before,
  .t-item::before { left: 5rem; }
  .t-item { padding-left: 6.25rem; }
  .t-time { width: 3.75rem; font-size: 1.3rem; }
}
@media (max-width: 380px) {
  .section-ablauf .timeline::before,
  .t-item::before { left: 4.25rem; }
  .t-item { padding-left: 5.5rem; }
  .t-time { width: 3.1rem; font-size: 1.2rem; }
}

/* ───── Karte ───── */
.map {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  max-width: 42rem;
}
.map-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-warm);
  border: 1px solid var(--line-burgundy);
  box-shadow: var(--shadow-soft);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.9) contrast(0.98);
}
.map-fullscreen {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(42, 28, 28, 0.12);
  border: 1px solid var(--line-burgundy);
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  z-index: 1;
}
.map-fullscreen:hover {
  background: var(--burgundy);
  color: var(--cream);
  transform: translateY(-1px);
}
.map figcaption {
  text-align: center;
  margin-top: 1.1rem;
}

@media (max-width: 520px) {
  .map-frame { aspect-ratio: 4 / 3; }
}

.map--inline {
  margin: 1.1rem 0 0;
  max-width: 100%;
}
.map--inline .map-frame {
  aspect-ratio: 16 / 11;
  border-radius: 10px;
}
.map--inline .map-fullscreen {
  width: 32px;
  height: 32px;
  top: 0.55rem;
  right: 0.55rem;
}
.map--inline figcaption {
  text-align: left;
  margin-top: 0.75rem;
}
.map--inline figcaption .route {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

/* ───── Menü ───── */
.section-menu {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(243, 235, 217, 0) 0%,
    rgba(243, 235, 217, 0.55) 28%,
    rgba(243, 235, 217, 0.55) 72%,
    rgba(243, 235, 217, 0) 100%
  );
}
.section-menu .section-lede {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.7vw, 1.18rem);
  color: #4a3838;
  letter-spacing: -0.005em;
  line-height: 1.55;
}
.section-menu .section-lede strong { font-weight: 600; color: var(--ink); }
.menu-card {
  background: var(--cream);
  border: 1px solid var(--line-burgundy);
  border-radius: 16px;
  max-width: 44rem;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.menu-footnote {
  margin: clamp(1.75rem, 3.5vw, 2.5rem) auto 0;
  max-width: 34rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Tabs */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line-burgundy);
  background: var(--cream-warm);
}
.tab {
  position: relative;
  padding: 1.1rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line-burgundy);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #4a3838;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.tab:last-child { border-right: 0; }
.tab:hover { background: rgba(250, 245, 236, 0.65); color: var(--ink); }
.tab.is-active {
  background: var(--cream);
  color: var(--ink);
}
.tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 22%;
  right: 22%;
  height: 2px;
  background: var(--burgundy);
  border-radius: 1px 1px 0 0;
}
.tab-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
  font-weight: 600;
  transition: color 0.3s var(--ease-out);
}
.tab.is-active .tab-eyebrow { color: var(--burgundy); }
.tab-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

/* Panels */
.menu-panel { padding: clamp(1.5rem, 4vw, 2.5rem); }
.menu-panel[hidden] { display: none; }

/* Course */
.course + .course {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
  position: relative;
}
.course + .course::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(160px, 36%, 240px);
  height: 1px;
  background: var(--line-burgundy);
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, black 6%, black 44%, transparent 47%,
    transparent 53%, black 56%, black 94%, transparent 100%);
          mask-image: linear-gradient(to right,
    transparent 0%, black 6%, black 44%, transparent 47%,
    transparent 53%, black 56%, black 94%, transparent 100%);
}
.course + .course::after {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--burgundy-soft);
}
.course-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.9rem;
}

/* Dish (Vorspeise / Dessert) — Crossfade über Grid */
.dish {
  display: grid;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.dish .variant {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
}
/* Solange noch keine Hauptgang-Wahl getroffen ist, omni/vegan-Varianten aus dem
   Layout-Flow nehmen, damit .dish nur so hoch ist wie die kurze Default-Zeile. */
.menu-panel:not([data-mode]) .dish .variant-omni,
.menu-panel:not([data-mode]) .dish .variant-vegan {
  position: absolute;
  inset: 0;
}
.dish .variant-default {
  opacity: 1;
  transform: translateY(0);
  font-style: italic;
  color: var(--ink-faint);
  font-size: 0.94em;
}
.menu-panel[data-mode="omni"] .variant-default,
.menu-panel[data-mode="vegan"] .variant-default {
  opacity: 0;
  transform: translateY(-4px);
}
.menu-panel[data-mode="omni"] .variant-omni,
.menu-panel[data-mode="vegan"] .variant-vegan {
  opacity: 1;
  transform: translateY(0);
}
.dish-title { display: block; }
.dish-desc {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
  letter-spacing: 0;
  margin-top: 0.3rem;
}

/* Options */
.options {
  display: grid;
  gap: 0.8rem;
}
.option {
  position: relative;
  display: block;
  cursor: pointer;
}
.option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.option-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "tag   check"
    "title check"
    "desc  check";
  column-gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(243, 235, 217, 0.55);
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.option-tag {
  grid-area: tag;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.4rem;
}
.option-title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.option-desc {
  grid-area: desc;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-top: 0.3rem;
}
.option-check {
  grid-area: check;
  align-self: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-burgundy);
  position: relative;
  flex: none;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.option-check::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%23faf5ec' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 65%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
}
.option:hover .option-card {
  background: var(--cream-warm);
}
.option input:checked ~ .option-card {
  border-color: var(--burgundy);
  background: var(--cream);
}
.option input:checked ~ .option-card .option-check {
  border-color: var(--burgundy);
  background: var(--burgundy);
}
.option input:checked ~ .option-card .option-check::after { opacity: 1; }
.option input:focus-visible ~ .option-card {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

/* ───── Footer ───── */
.site-footer {
  padding: clamp(5rem, 11vw, 7rem) var(--gutter) clamp(3.5rem, 8vw, 5.5rem);
  padding-bottom: calc(clamp(6rem, 13vh, 8rem) + env(safe-area-inset-bottom, 0px));
  margin-top: clamp(4.5rem, 9vw, 7rem);
  text-align: center;
  background: var(--burgundy);
  color: var(--cream);
  position: relative;
  z-index: 1;
}
@media (min-width: 920px) {
  .site-footer { padding-bottom: clamp(3.5rem, 8vw, 5.5rem); }
}
.sigil-divider--footer {
  margin: 0 auto 1.75rem;
  max-width: 280px;
}
.sigil-divider--footer .line {
  background: rgba(250, 245, 236, 0.28);
}
.sigil-divider--footer .sigil {
  color: var(--cream);
  font-size: 1.4rem;
}
.footer-names {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  line-height: 1.2;
  color: var(--cream-warm);
  margin-bottom: 0.85rem;
}
.footer-names .amp {
  color: var(--cream);
  opacity: 0.75;
  font-weight: 400;
  margin: 0 0.2em;
}
.footer-date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 245, 236, 0.72);
  font-weight: 500;
}

/* ───── Animationen ───── */

/* ───── Hero — Entrance Choreography ─────
   Eine sorgfältig geführte UX-Reise. Jeder Beat hat eine Aufgabe:
     1. Anrede           — »Liebe« leise, »Ana und Bruce« als warmer Akzent
     2. Intro            — der herzliche Einleitungssatz
     3. Foto + Namen     — gemeinsamer Reveal-Moment mit Sigel-Stempel
     4. Trenner + Datum  — Kontext: wann & wo
     5. Bedienelemente   — Hero-Nav & Sprachwahl gemeinsam zum Schluss        */

.hero .greeting-prefix,
.hero .guest-names,
.hero .intro,
.hero .hero-image,
.hero .names .name,
.hero .names .amp,
.hero .sigil-divider .line,
.hero .sigil-divider .sigil,
.hero .date,
.hero-nav,
.lang-switch {
  opacity: 0;
  will-change: opacity, transform;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroPhotoIn {
  from { opacity: 0; transform: translateY(20px) scale(0.955); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes lineExpand {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}
@keyframes sigilIn {
  from { opacity: 0; transform: scale(0.55); }
  to   { opacity: 1; transform: scale(1);    }
}
@keyframes langIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@keyframes sealFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes sealStamp {
  0%   { transform: rotate(-22deg) scale(0.55); }
  55%  { transform: rotate(3deg)   scale(1.07); }
  100% { transform: rotate(-4deg)  scale(1);    }
}
@keyframes bgSigilIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Beat 1 — Anrede */
.hero .greeting-prefix { animation: heroRise 1.10s var(--ease-out) 0.15s forwards; }
.hero .guest-names     { animation: heroRise 1.10s var(--ease-out) 0.45s forwards; }

/* Beat 2 — Intro */
.hero .intro           { animation: heroRise 1.20s var(--ease-out) 0.85s forwards; }

/* Beat 3 — Foto + Namen kaskadieren gemeinsam */
.hero .hero-image                { animation: heroPhotoIn 1.40s var(--ease-out) 1.20s forwards; }
.hero .names .name:first-child   { animation: heroRise    1.00s var(--ease-out) 1.40s forwards; }
.hero .names .amp                { animation: heroRise    0.90s var(--ease-out) 1.52s forwards; }
.hero .names .name:last-child    { animation: heroRise    1.00s var(--ease-out) 1.64s forwards; }

/* Beat 3b — Sigel landet wie ein Wachsstempel.
   Opacity per fill-forwards halten; Transform läuft ohne forwards aus,
   damit Hover/Tap-Transition aus dem Basis-CSS sauber greift. */
.hero .hero-seal {
  opacity: 0;
  animation:
    sealFade  0.70s var(--ease-out)                     1.85s forwards,
    sealStamp 0.70s cubic-bezier(0.34, 1.45, 0.5, 1)   1.85s;
}

/* Beat 4 — Trenner öffnet sich vom Sigil nach außen, dann Datum */
.hero .sigil-divider .line              { transform-origin: 100% 50%; animation: lineExpand 0.95s var(--ease-out)                  2.05s forwards; }
.hero .sigil-divider .line:last-child   { transform-origin: 0% 50%; }
.hero .sigil-divider .sigil             {                            animation: sigilIn    0.75s cubic-bezier(0.34, 1.4, 0.5, 1) 2.18s forwards; }
.hero .date                             {                            animation: heroRise   1.00s var(--ease-out)                  2.40s forwards; }

/* Beat 5 — abschließende Bedienelemente: Hero-Nav + Sprachwahl synchron */
.hero-nav     { animation: heroRise 1.00s var(--ease-out) 2.75s forwards; }
.lang-switch  { animation: langIn   0.90s var(--ease-out) 2.75s forwards; }

/* Hintergrund-囍 atmet die ganze Sequenz lang langsam herein */
.bg-sigil {
  opacity: 0;
  animation: bgSigilIn 2.40s var(--ease-out) 0.20s forwards;
}

/* Reveal beim Scrollen (JS-getriggert) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
  will-change: opacity, transform;
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ───── Fokus & Auswahl ───── */
:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: 4px;
}
.tab:focus-visible { outline-offset: -3px; }
.route:focus-visible { outline-offset: 6px; }

::selection {
  background: rgba(142, 31, 44, 0.18);
  color: var(--burgundy-deep);
}

/* ═════════════════════════════════════════════════════════════════
   Code-Gate, Code-Entry-Seite, Submit-Button, Tab-Visibility
   ═════════════════════════════════════════════════════════════════ */

/* State-Gating: Loading verbirgt alles, Entry zeigt nur die Code-Seite,
   Ready zeigt die Hauptseite. Ohne JS bleibt alles sichtbar (Fallback). */
html[data-state] main,
html[data-state] .site-footer,
html[data-state] .lang-switch { visibility: visible; }

html[data-state="loading"] main,
html[data-state="loading"] .site-footer,
html[data-state="loading"] .lang-switch { visibility: hidden; }

html[data-state="entry"] main,
html[data-state="entry"] .site-footer { display: none; }
html[data-state="entry"] .code-entry { display: flex; }
html[data-state="entry"] .lang-switch {
  opacity: 1;
  animation: none;
}

html[data-state="ready"] .code-entry { display: none; }

.code-entry { display: none; }

/* ───── Code-Entry-Seite ───── */
.code-entry {
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--gutter);
  background: var(--cream);
  z-index: 50;
}
.code-entry::before {
  content: "囍";
  position: absolute;
  font-family: var(--font-cn);
  font-size: clamp(14rem, 32vw, 24rem);
  color: rgba(142, 31, 44, 0.025);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  font-weight: 600;
}
.code-entry-card {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  width: 100%;
  text-align: center;
  display: grid;
  gap: 1.1rem;
}
.code-entry-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0;
}
.code-entry-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 4.2vw, 2.6rem);
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0.25rem 0 0;
}
.code-entry-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0 0 0.5rem;
}
.code-entry-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.4rem;
}
.code-entry-input {
  font: inherit;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  padding: 0.85rem 0.6rem;
  border: 1px solid var(--line-burgundy);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  transition: border 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.code-entry-input::placeholder {
  color: var(--ink-faint);
  font-weight: 400;
  letter-spacing: 0.18em;
}
.code-entry-input:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 4px rgba(142, 31, 44, 0.12);
}
.code-entry-submit {
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.95em 1.8em;
  border: 0;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.code-entry-submit:hover {
  background: var(--burgundy-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(142, 31, 44, 0.18);
}
.code-entry-error {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--burgundy);
  margin: 0;
  min-height: 1.2em;
}

/* ───── Tabs nur bei 2 Personen ───── */
.menu-card[data-persons="1"] .tabs { display: none; }
.menu-card[data-persons="1"] #panel-2 { display: none !important; }

/* ───── Menü-Submit-Button ───── */
.menu-actions {
  padding: 0 clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 2.5vw, 1.75rem);
  text-align: center;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}
.menu-submit {
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.95em 2.4em;
  border: 0;
  border-radius: 999px;
  background: var(--ink-faint);
  color: var(--cream);
  cursor: not-allowed;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.menu-submit:not(:disabled) {
  background: var(--burgundy);
  cursor: pointer;
}
.menu-submit:not(:disabled):hover {
  background: var(--burgundy-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(142, 31, 44, 0.18);
}
.menu-status {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  margin: 0;
  min-height: 1.2em;
  color: var(--ink-muted);
  transition: color 0.25s var(--ease-out);
}
.menu-status[data-type="ok"] { color: #2f7d4a; }
.menu-status[data-type="error"] { color: var(--burgundy); }

/* ───── Deadline-Lock: keine Pointer/Hover-Reaktion auf Optionen ───── */
html[data-deadline="closed"] .option {
  cursor: default;
}
/* Hover ändert nichts mehr: ungewählte Optionen behalten ihren Default-BG,
   die gewählte (checked) bleibt auf var(--cream) — exakt wie ohne Hover. */
html[data-deadline="closed"] .option:hover .option-card {
  background: rgba(243, 235, 217, 0.55);
}
html[data-deadline="closed"] .option:hover input:checked ~ .option-card {
  background: var(--cream);
}
