/* =========================================================================
   PERLA · Eröffnung – Champagner-Bühne
   designed by oneart-agency.de

   Farben aus Logo & Flyern: Champagner #d0c4b6, Elfenbein #f8f5ee,
   Flyer-Grün #162b1e (nur Schrift), Gold #a1805c.

   Lesbarkeit zuerst: Fließtext ≥ 17 px, Beschriftungen ≥ 14 px,
   Textkontrast ≥ 5:1 auf Champagner.

   Prinzip: Grundzustand = sichtbar. Animationen spielen nur mit .play
   (fill-mode both) – fällt JS oder eine Animation aus, bleibt alles lesbar.
   ========================================================================= */

:root {
  --champagne: #d0c4b6;
  --champagne-light: #e4dbcf;
  --champagne-deep: #c2b4a3;
  --champagne-dark: #b3a390;
  --ivory: #f8f5ee;
  --ink: #162b1e;          /* Text – Kontrast 8,8:1 */
  --gold-dark: #5c452b;    /* goldene Schrift – Kontrast 5,4:1 */
  --gold: #a1805c;         /* nur für Linien und Deko */
  --line: rgba(92, 69, 43, .3);
  --card: rgba(248, 245, 238, .58);

  --gold-text: linear-gradient(100deg, #4a3721 0%, #7d5f3c 32%, #5c452b 52%, #7d5f3c 72%, #4a3721 100%);

  --lb: clamp(56px, 8vh, 76px);
  --gutter: clamp(16px, 4vw, 56px);

  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --num: "Playfair Display", Georgia, serif;

  --ease-cine: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Intro-Zeitplan (muss zu main.js passen) */
  --t-open: 1.5s;
  --t-logo: 3.6s;
  --t-hero: 4.25s;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--champagne);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
@supports (overflow: clip) { html { overflow-x: clip; } }
html.is-intro, html.lb-open { overflow: hidden; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 75% at 50% 35%, var(--champagne-light) 0%, var(--champagne) 55%, var(--champagne-deep) 100%);
}

::selection { background: var(--gold-dark); color: var(--ivory); }
img { max-width: 100%; display: block; }
a { color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 4px; }

.gold-text {
  background: var(--gold-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: goldflow 9s linear infinite;
}
@keyframes goldflow { to { background-position: 220% 50%; } }

/* ---------- Ebenen ---------- */
main, .stage, .finale { position: relative; z-index: 1; }

/* Perlen & Partikel liegen über dem Inhalt, klicken geht durch */
.fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -120px;
  z-index: 60;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .22  0 0 0 0 .12  0 0 0 1.2 -.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-70px, 40px); }
  40%  { transform: translate(50px, -90px); }
  60%  { transform: translate(-95px, -20px); }
  80%  { transform: translate(70px, 75px); }
  100% { transform: translate(-25px, 95px); }
}

/* =========================================================================
   Intro – Vorhang in Champagner
   ========================================================================= */
.intro { display: none; }
.play .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 80;
  animation: gone 0s linear 5.3s forwards;
}
.skip .intro { display: none; }
@keyframes gone { to { visibility: hidden; } }

.intro__curtain {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
}
.intro__curtain--top {
  top: 0;
  background: linear-gradient(180deg, var(--champagne-dark), var(--champagne-deep));
  box-shadow: inset 0 -1px 0 rgba(161, 128, 92, .6);
  animation: curtainUp 1.8s var(--ease-cine) var(--t-open) both;
}
.intro__curtain--bottom {
  bottom: 0;
  background: linear-gradient(0deg, var(--champagne-dark), var(--champagne-deep));
  box-shadow: inset 0 1px 0 rgba(161, 128, 92, .6);
  animation: curtainDown 1.8s var(--ease-cine) var(--t-open) both;
}
@keyframes curtainUp { to { transform: translateY(calc(-100% + var(--lb))); } }
@keyframes curtainDown { to { transform: translateY(calc(100% - var(--lb))); } }

.intro__center {
  position: absolute;
  left: 50%; top: 50%;
  width: min(88vw, 760px);
  transform: translate(-50%, -50%);
  text-align: center;
  animation: centerOut .7s ease calc(var(--t-open) - .05s) both;
}
@keyframes centerOut { to { opacity: 0; filter: blur(6px); transform: translate(-50%, -50%) scale(1.06); } }

.intro__title {
  margin: 0 0 20px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(.95rem, .85rem + .4vw, 1.15rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #3f301e;
  animation: trackIn 1.5s var(--ease-out) .35s both;
}
.intro__line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, #fff8ec 50%, var(--gold) 70%, transparent);
  box-shadow: 0 0 18px 2px rgba(255, 248, 236, .7);
  animation: lineGrow 1.3s var(--ease-out) .1s both;
}
.intro__sub {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.2;
  color: var(--ink);
  animation: blurIn 1.3s var(--ease-out) .65s both;
}
@keyframes lineGrow { from { transform: scaleX(0); } }
@keyframes trackIn { from { opacity: 0; letter-spacing: .8em; filter: blur(8px); } }
@keyframes blurIn { from { opacity: 0; filter: blur(10px); transform: translateY(8px); } }

.intro__skip {
  position: absolute;
  right: var(--gutter);
  bottom: calc((var(--lb) - 44px) / 2);
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(22, 43, 30, .4);
  border-radius: 999px;
  background: rgba(248, 245, 238, .45);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color .3s;
}
.intro__skip:hover { background: rgba(248, 245, 238, .85); }

/* =========================================================================
   Bühne
   ========================================================================= */
.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 95% at 50% 42%, transparent 50%, rgba(120, 95, 62, .3) 100%);
}

/* Hintergrundbild: unscharfer Champagner-Empfang, langsamer Kamera-Zoom */
.stage__bgwrap {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
}
.stage__bg {
  position: absolute;
  inset: -5%;
  background: url("../img/hero-bokeh.jpg") center / cover no-repeat;
  background-image: image-set(url("../img/hero-bokeh.webp") type("image/webp"), url("../img/hero-bokeh.jpg") type("image/jpeg"));
  animation: kenburns 28s ease-in-out infinite alternate;
}
@media (max-aspect-ratio: 4 / 5) {
  .stage__bg {
    background-image: url("../img/hero-bokeh-mobil.jpg");
    background-image: image-set(url("../img/hero-bokeh-mobil.webp") type("image/webp"), url("../img/hero-bokeh-mobil.jpg") type("image/jpeg"));
  }
}
@keyframes kenburns {
  from { transform: scale(1.08) translate3d(-1.2%, .6%, 0); }
  to   { transform: scale(1) translate3d(1.2%, -.8%, 0); }
}

/* Licht von oben */
.stage__light {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.play .stage__light { animation: lampOn 1.5s linear calc(var(--t-logo) - .1s) both; }
@keyframes lampOn {
  0%   { opacity: 0; }
  6%   { opacity: .6; }
  10%  { opacity: .06; }
  18%  { opacity: .85; }
  24%  { opacity: .3; }
  34%  { opacity: 1; }
  100% { opacity: 1; }
}
.stage__lamp { position: absolute; inset: 0; }

.stage__beam {
  position: absolute;
  left: 50%;
  top: calc(var(--lb) - 3vh);
  width: 170vh;
  height: 125vh;
  margin-left: -85vh;
  transform-origin: 50% 0;
  transform: rotate(var(--tilt, 0deg));
  background: conic-gradient(from 150deg at 50% 0%,
    transparent 0deg,
    rgba(255, 252, 245, .1) 9deg,
    rgba(255, 252, 245, .32) 21deg,
    rgba(255, 253, 248, .5) 30deg,
    rgba(255, 252, 245, .32) 39deg,
    rgba(255, 252, 245, .1) 51deg,
    transparent 60deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .8) 40%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .8) 40%, transparent 90%);
  filter: blur(16px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .8; } }

.stage__floor {
  position: absolute;
  left: 50%;
  bottom: calc(var(--lb) - 6vh);
  width: min(1200px, 130vw);
  height: 34vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 58%, rgba(255, 252, 245, .55), rgba(255, 250, 240, .15) 40%, transparent 68%);
}

/* Bühne gedimmt, bis das Licht angeht */
.stage__dim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(90% 80% at 50% 45%, rgba(72, 56, 36, .5), rgba(40, 30, 18, .78));
  opacity: 0;
}
.play .stage__dim { animation: dimOff 1.5s linear calc(var(--t-logo) - .1s) both; }
@keyframes dimOff {
  0%   { opacity: 1; }
  6%   { opacity: .45; }
  10%  { opacity: .95; }
  18%  { opacity: .2; }
  24%  { opacity: .7; }
  34%, 100% { opacity: 0; }
}

/* Seidenglanz – liegt hinter dem Text */
.stage__sheen {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 253, 248, .28) 50%, transparent 62%);
  background-size: 300% 100%;
  background-position: 100% 0;
  animation: sheen 12s ease-in-out 7s infinite;
}
@keyframes sheen {
  0% { background-position: 100% 0; }
  30%, 100% { background-position: 0% 0; }
}

/* Leisten oben und unten */
.bar {
  position: absolute;
  left: 0; right: 0;
  z-index: 3;
  height: var(--lb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--gutter);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}
.bar--top {
  top: 0;
  background: linear-gradient(180deg, var(--champagne-dark), var(--champagne-deep));
  box-shadow: inset 0 -1px 0 rgba(161, 128, 92, .6);
}
.bar--bottom {
  bottom: 0;
  background: linear-gradient(0deg, var(--champagne-dark), var(--champagne-deep));
  box-shadow: inset 0 1px 0 rgba(161, 128, 92, .6);
}
.bar a { text-decoration: none; }
.play .bar > * { animation: fadeIn 1.2s ease calc(var(--t-hero) + .4s) both; }
@keyframes fadeIn { from { opacity: 0; } }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 1px 1.5px rgba(80, 60, 35, .45)); }
.brand span {
  font-family: var(--caps);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .3em;
}

.nav { display: flex; gap: clamp(8px, 1.6vw, 24px); }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 8px;
  height: 2px;
  background: var(--gold-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.bar__addr { white-space: nowrap; }

.credit {
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .875rem;
  color: var(--ink);
}
.credit strong {
  font-weight: 600;
  background: var(--gold-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldflow 7s linear infinite;
}
.credit:hover strong { text-decoration: underline; }

/* Inhalt */
.stage__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vh, 20px);
  padding: calc(var(--lb) + clamp(16px, 4vh, 56px)) var(--gutter);
  text-align: center;
  will-change: transform, opacity;
}

.stage__logo { margin: 0 0 clamp(4px, 1.2vh, 14px); line-height: 0; }
.logo {
  position: relative;
  display: block;
  width: min(86vw, 760px, 74vh);
  aspect-ratio: 1800 / 616;
}
.logo picture {
  position: absolute;
  inset: 0;
  /* geprägter Look wie im Original-Logo */
  filter: drop-shadow(0 1px 1px rgba(90, 68, 40, .4)) drop-shadow(0 12px 26px rgba(90, 68, 40, .26));
}
.logo__img { width: 100%; height: 100%; }
.play .logo__img { animation: logoIn 1.7s var(--ease-cine) var(--t-logo) both; }
@keyframes logoIn {
  from { clip-path: inset(-20% 100% -20% 0); -webkit-clip-path: inset(-20% 100% -20% 0); filter: blur(8px) brightness(1.6); }
  to   { clip-path: inset(-20% 0 -20% 0); -webkit-clip-path: inset(-20% 0 -20% 0); filter: blur(0) brightness(1); }
}

/* Lichtreflex, der über das Logo läuft */
.flare {
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 0;
  opacity: 0;
  pointer-events: none;
  animation: flareIdle 11s ease-in-out 9s infinite;
}
.play .flare {
  animation:
    flareSweep 1.7s var(--ease-cine) var(--t-logo) both,
    flareIdle 11s ease-in-out 10s infinite;
}
.flare__streak {
  position: absolute;
  left: 50%; top: 50%;
  width: 180vw; height: 2px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 250, 238, .35) 30%, #fff 50%, rgba(255, 250, 238, .35) 70%, transparent 100%);
  box-shadow: 0 0 16px 3px rgba(255, 252, 245, .65);
}
.flare__core {
  position: absolute;
  left: 50%; top: 50%;
  width: 240px; height: 240px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 252, 244, .7) 14%, rgba(255, 248, 232, .2) 36%, transparent 62%);
}
@keyframes flareSweep {
  0%   { left: -6%; opacity: 0; }
  15%, 80% { opacity: 1; }
  100% { left: 106%; opacity: 0; }
}
@keyframes flareIdle {
  0%   { left: -6%; opacity: 0; }
  3%   { opacity: .8; }
  14%  { left: 106%; opacity: 0; }
  100% { left: 106%; opacity: 0; }
}

/* Texte */
.play [data-hero] { animation: heroIn 1.4s var(--ease-out) calc(var(--t-hero) + var(--d, 0s)) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); filter: blur(10px); } }

.stage__kicker {
  display: flex;
  align-items: center;
  gap: .9em;
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1rem, .9rem + .4vw, 1.25rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.stage__kicker::before,
.stage__kicker::after {
  content: "";
  width: clamp(24px, 5vw, 60px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark));
}
.stage__kicker::after { background: linear-gradient(90deg, var(--gold-dark), transparent); }

.stage__headline {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, min(1.3rem + 3vw, 7vh), 3.8rem);
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}
.stage__sub {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem);
  color: var(--gold-dark);
  text-wrap: balance;
}

/* Knopf */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-height: 52px;
  margin-top: clamp(4px, 1.4vh, 14px);
  padding: 0 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6f5537, #4a3721);
  color: var(--ivory);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 12px 28px -12px rgba(74, 55, 33, .7);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(74, 55, 33, .8); }

/* Überspringen: sofort Endzustand */
.skip .logo__img,
.skip [data-hero],
.skip .bar > *,
.skip .stage__light,
.skip .stage__dim { animation: none; }
.skip .flare { animation: flareIdle 11s ease-in-out 4s infinite; }

/* =========================================================================
   Abschnitte
   ========================================================================= */
.section {
  position: relative;
  overflow: hidden; /* Lichtkegel dürfen nicht über den Rand ragen */
  padding: clamp(90px, 14vh, 160px) var(--gutter);
}
.section--invites {
  background: linear-gradient(180deg, transparent, rgba(194, 180, 163, .55) 30%, rgba(194, 180, 163, .55) 70%, transparent);
}
.head {
  max-width: 900px;
  margin: 0 auto clamp(44px, 7vh, 80px);
  text-align: center;
}
.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem);
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}
.title em { font-style: italic; font-weight: 600; color: var(--gold-dark); }
.lead {
  max-width: 40ch;
  margin: 18px auto 0;
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem);
  color: var(--ink);
  text-wrap: balance;
}

/* Wort-für-Wort */
.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .06em .14em;
  margin: 0 -.06em -.14em;
}
.js [data-split] .w > span {
  display: inline-block;
  transition: transform 1.3s var(--ease-out) calc(var(--i, 0) * 70ms);
}
.js [data-split]:not(.is-visible) .w > span { transform: translateY(110%) rotate(3deg); }

/* Einblenden */
.js [data-reveal] {
  transition: opacity 1.2s var(--ease-out) var(--d, 0s), transform 1.4s var(--ease-out) var(--d, 0s);
}
.js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(40px); }

/* ---------- Programm ---------- */
.days {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.day {
  position: relative;
  isolation: isolate;
  padding: clamp(30px, 4vh, 44px) clamp(20px, 2.4vw, 32px) clamp(32px, 4vh, 44px);
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 50px -34px rgba(70, 52, 30, .45);
}
.day--main {
  border: 2px solid var(--gold-dark);
  background: rgba(248, 245, 238, .78);
}
/* kleiner Spot über jedem Tag */
.day::after {
  content: "";
  position: absolute;
  left: 50%; top: -20%;
  z-index: -1;
  width: 120%; height: 100%;
  transform: translateX(-50%);
  background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(255, 252, 245, .7) 20deg, transparent 40deg);
  -webkit-mask-image: linear-gradient(#000, transparent 85%);
  mask-image: linear-gradient(#000, transparent 85%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.day:hover::after,
.day--main.is-visible::after,
html:not(.js) .day--main::after { opacity: 1; }

.day__num {
  margin: 0;
  font-family: var(--num);
  font-size: clamp(5rem, 3rem + 5vw, 8rem);
  line-height: .95;
  color: transparent;
  -webkit-text-stroke: 1px rgba(92, 69, 43, .5);
  background: var(--gold-text) no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-size 1.8s var(--ease-cine) .35s;
}
.js .day:not(.is-visible) .day__num { background-size: 0% 100%; }
.day__when {
  margin: 10px 0 0;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
}
.day__title {
  margin: 18px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.7rem);
  line-height: 1.05;
  color: var(--ink);
}
.day__time {
  margin: 0 0 12px;
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--gold-dark);
}
.day__note {
  max-width: 30ch;
  margin: 0 auto;
  font-size: 1.0625rem;
  color: var(--ink);
  text-wrap: pretty;
}
.day__badge {
  display: inline-block;
  margin: 18px 0 0;
  padding: 8px 18px;
  border: 1px solid var(--gold-dark);
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--gold-dark);
}

/* ---------- Einladungen ---------- */
.invites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(40px, 6vw, 100px);
}
.flyer {
  position: relative;
  display: block;
  width: min(380px, 100%);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: zoom-in;
}
/* Spot über jedem Flyer */
.flyer::before {
  content: "";
  position: absolute;
  left: 50%; top: -18%;
  z-index: -1;
  width: 150%; height: 90%;
  transform: translateX(-50%);
  background: conic-gradient(from 155deg at 50% 0%, transparent 0deg, rgba(255, 252, 245, .65) 25deg, transparent 50deg);
  -webkit-mask-image: linear-gradient(#000, transparent 90%);
  mask-image: linear-gradient(#000, transparent 90%);
  filter: blur(14px);
  pointer-events: none;
}
.flyer__frame {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16; /* Story-Format der Flyer */
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(161, 128, 92, .45),
    0 50px 90px -40px rgba(70, 52, 30, .6),
    0 18px 40px -20px rgba(70, 52, 30, .35);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .9s var(--ease-out), box-shadow .9s var(--ease-out);
}
.flyer.is-tilting .flyer__frame { transition: transform .15s linear, box-shadow .9s var(--ease-out); }
.flyer:hover { --lift: -8px; }
.flyer:hover .flyer__frame {
  box-shadow:
    0 0 0 2px var(--gold-dark),
    0 70px 110px -40px rgba(70, 52, 30, .65),
    0 0 60px -10px rgba(255, 252, 245, .9);
}
.flyer__frame picture,
.flyer__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.flyer__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .4) 50%, transparent 60%);
  background-size: 300% 100%;
  background-position: 100% 0;
  mix-blend-mode: soft-light;
  transition: background-position 1.2s var(--ease-out);
  pointer-events: none;
}
.flyer:hover .flyer__frame::after { background-position: 0% 0; }

/* Licht geht an, wenn der Flyer ins Bild kommt */
.js .flyer.is-visible .flyer__frame img { animation: lampImg 1.5s linear both; }
@keyframes lampImg {
  0%   { filter: brightness(.35); }
  8%   { filter: brightness(.95); }
  13%  { filter: brightness(.45); }
  22%  { filter: brightness(1.05); }
  28%  { filter: brightness(.7); }
  38%, 100% { filter: brightness(1); }
}

.flyer__label {
  display: block;
  margin-top: 26px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem);
  line-height: 1.1;
  color: var(--ink);
}
.flyer__dates {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--gold-dark);
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(194, 180, 163, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lightbox[open] { animation: fadeIn .5s ease; }
.lightbox__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 80px 16px 20px;
}
.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: calc(100% - 50px);
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(161, 128, 92, .5), 0 40px 100px rgba(70, 52, 30, .45);
  animation: lbIn .9s var(--ease-out);
}
@keyframes lbIn { from { opacity: 0; transform: translateY(30px) scale(.96); filter: blur(8px); } }
.lightbox__caption {
  margin: 0;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 16px; right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #6f5537, #4a3721);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
}
.lightbox__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Kontakt / Abspann ---------- */
.finale {
  padding: clamp(90px, 14vh, 160px) var(--gutter) 0;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(194, 180, 163, .6) 55%, var(--champagne-deep));
}
.finale__emblem {
  width: 84px; height: 84px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 1px 1px rgba(90, 68, 40, .45)) drop-shadow(0 10px 22px rgba(90, 68, 40, .3));
}
.finale__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem);
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}
.finale__title em { font-style: italic; font-weight: 600; color: var(--gold-dark); }

.contacts {
  list-style: none;
  margin: clamp(36px, 6vh, 64px) auto 0;
  padding: 0;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.contacts li { display: flex; }
.contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.contact:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dark);
  box-shadow: 0 24px 44px -26px rgba(70, 52, 30, .6);
}
.contact__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-dark);
  color: var(--gold-dark);
  transition: background-color .4s, color .4s;
}
.contact:hover .contact__icon { background: var(--gold-dark); color: var(--ivory); }
.contact__icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact__icon .fill { fill: currentColor; stroke: none; }
.contact__label {
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.contact__value {
  margin-top: 6px;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.05rem + .3vw, 1.3rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.contact__action {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.finale__bar {
  max-width: 1200px;
  margin: clamp(48px, 7vh, 80px) auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--ink);
}
.finale__bar p { margin: 0; }
.credit--footer { font-size: 1rem; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1000px) {
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .days { grid-template-columns: 1fr; max-width: 460px; }
}

@media (max-width: 760px) {
  /* schmaler Bildschirm: Lichtkegel deckt sonst die ganze Breite ab */
  .stage__beam { animation: none; opacity: .38; }
  .stage__floor { opacity: .45; }
  .nav a:not(:last-child) { display: none; }
  .bar__addr { display: none; }
  .bar--bottom { justify-content: flex-end; }
  .flyer { width: min(340px, 100%); }
}

@media (max-width: 520px) {
  .contacts { grid-template-columns: 1fr; }
  .finale__bar { flex-direction: column; align-items: flex-start; }
  .finale__bar .credit { align-self: flex-end; }
}

@media (max-width: 420px) {
  .brand span { display: none; }
  .stage__kicker { gap: .6em; letter-spacing: .14em; white-space: nowrap; }
  .stage__kicker::before,
  .stage__kicker::after { width: 16px; }
  .btn { width: 100%; max-width: 340px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
  .grain { display: none; }
}
