/* ==========================================================================
   Alica & Nick · Sylt 2027
   Konzept: Nordsee im März, abends Black Tie.
   ========================================================================== */

:root {
  /* Leitfarbe: warmes Hellblau, abgestimmt auf die Einladung */
  --blue-50: #ECF1F6;
  --blue-100: #DFE8F0;
  --blue-200: #BFD3E4;
  --blue-300: #A6BFD6;
  --blue-400: #8CA3BE;   /* Karton der Einladung */
  --blue-600: #5C7FA8;
  --navy: #2E3F5C;
  --navy-2: #26354F;
  --navy-3: #1F2B42;
  --cream: #F4F2EC;
  --cream-2: #ECE9E1;
  --sage: #7A7F78;
  --ink: #22304A;
  --ink-2: #55637A;
  --ink-3: #8F9BAD;
  --error: #A9453F;

  --bg: var(--cream);
  --fg: var(--ink);
  --muted: var(--ink-2);
  --line: rgba(34, 48, 74, .16);
  --card: #FFFFFF;
  --accent: var(--blue-600);

  --font-display: "Cormorant Garamond", "Cormorant", "EB Garamond", Garamond, "Times New Roman", serif;
  --font-script: "Pinyon Script", "Snell Roundhand", "Brush Script MT", cursive;
  --font-body: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(18px, 5vw, 72px);
  --maxw: 1180px;
  --radius: 4px;
  --topbar-h: 64px;
  color-scheme: light;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 1.1rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: rgba(244, 242, 236, .85); }
.script {
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
}
.h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}
.h3 {
  margin: 3rem 0 .5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  text-wrap: balance;
}
.lede {
  max-width: 62ch;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--muted);
}
.lede a { color: var(--fg); }
.prose p { max-width: 62ch; margin: 0 0 1em; line-height: 1.68; }
.prose p:last-child { margin-bottom: 0; }
.prose--small { font-size: .85rem; line-height: 1.6; }
.note {
  max-width: 62ch;
  margin: 2rem 0 0;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--muted);
}
.note a { color: var(--fg); }
.hint {
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
}
.hint a { color: var(--fg); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }
.wrap--form { max-width: 880px; }

.section {
  padding-block: clamp(64px, 10vw, 128px);
  background: var(--bg);
  color: var(--fg);
}
.section--blue { --bg: var(--blue-50); --card: #FFFFFF; }
.section--night {
  --bg: var(--navy);
  --fg: #F1F3F6;
  --muted: #B9C5D6;
  --line: rgba(255, 255, 255, .18);
  --card: var(--navy-2);
  --accent: var(--blue-200);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-height: 50px;
  padding: .85em 1.7em;
  border: 1px solid var(--blue-600);
  border-radius: 999px;
  background: var(--blue-600);
  color: #fff;
  font: 500 .82rem/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--light { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn--ghost { background: transparent; color: inherit; border-color: var(--ink-3); }
.btn--ghost:hover { background: transparent; border-color: var(--fg); }
.btn--small { min-height: 38px; padding: .6em 1.15em; font-size: .7rem; }
.section--night .btn { background: var(--blue-200); color: var(--navy); border-color: var(--blue-200); }
.section--night .btn:hover { background: #fff; border-color: #fff; }

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--topbar-h);
  padding: calc(8px + env(safe-area-inset-top, 0px)) var(--gutter) 8px;
  color: var(--cream);
  transition: background .3s, color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topbar.is-solid {
  background: rgba(244, 242, 236, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.topbar.is-open {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--cream);
  border-bottom-color: transparent;
}
.topbar__mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1;
  color: inherit;
  text-decoration: none;
  letter-spacing: .02em;
}
.topbar__mark span { font-family: var(--font-script); font-size: .9em; color: inherit; margin: 0 .12em; opacity: .9; }
.topbar.is-solid:not(.is-open) .topbar__mark span { color: var(--blue-600); }
.topbar__nav { display: none; gap: 1.6rem; margin-left: auto; }
.topbar__nav a {
  color: inherit;
  text-decoration: none;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .82;
  padding: .5em 0;
}
.topbar__nav a:hover { opacity: 1; }
.topbar__actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
@media (min-width: 1060px) {
  .topbar__nav { display: flex; }
  .topbar__actions { margin-left: 0; }
}
.topbar:not(.is-solid) .btn--small,
.topbar.is-open .btn--small { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.topbar .btn--small { display: none; }
@media (min-width: 480px) { .topbar .btn--small { display: inline-flex; } }

.lang { display: inline-flex; align-items: center; }
.lang__btn {
  min-height: 44px;
  padding: .4em .35em;
  border: 0;
  background: none;
  color: inherit;
  font: 500 .76rem var(--font-body);
  letter-spacing: .14em;
  cursor: pointer;
  opacity: .55;
}
.lang__btn[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 1px; }
.lang__sep { opacity: .5; }

.topbar__menu {
  display: inline-grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  margin-right: -10px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.topbar__menu span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .3s; }
.topbar__menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.topbar__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (min-width: 1060px) { .topbar__menu { display: none; } }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.3rem;
  padding: calc(90px + env(safe-area-inset-top, 0px)) var(--gutter) 60px;
  background: var(--navy);
  color: var(--cream);
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1.1;
  color: inherit;
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--blue-200); }
body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Hero: baut die Einladung nach (blauer Karton, cremefarbene Schrift, Rahmen)
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  background: var(--blue-400);
  color: var(--cream);
}
.hero__card {
  display: grid;
  padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(36px, 6vw, 72px);
}
.hero__frame {
  position: relative;
  display: grid;
  gap: 1.25rem;
  align-content: center;
  justify-items: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 44px);
  border: 1px solid rgba(244, 242, 236, .75);
  text-align: center;
}
.hero__frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(244, 242, 236, .4);
  pointer-events: none;
}
.hero__frame > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__frame > :nth-child(2) { animation-delay: .08s; }
.hero__frame > :nth-child(3) { animation-delay: .16s; }
.hero__frame > :nth-child(4) { animation-delay: .24s; }
.hero__frame > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__eyebrow {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: rgba(244, 242, 236, .95);
}
.hero__names {
  display: grid;
  justify-items: center;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.9rem, 7.5vw, 5rem);
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-indent: .14em; /* gleicht die Laufweite rechts aus */
}
.hero__names em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: .78em;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  text-indent: 0;
  margin: .02em 0 .08em;
  opacity: .9;
}
.hero__date {
  margin: .2rem 0 0;
  font-size: clamp(.78rem, 1.6vw, .95rem);
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.hero__dot { margin: 0 .6em; opacity: .7; }
.countdown { display: flex; justify-content: center; gap: clamp(22px, 5vw, 48px); margin: .5rem 0 .3rem; }
.countdown b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown span {
  display: block;
  margin-top: .45rem;
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .85;
}
.hero__media {
  position: relative;
  order: -1;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  max-height: 78svh;
  overflow: hidden;
  background: var(--navy);
}
.hero__media picture, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: center 55%; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 5fr 7fr; min-height: clamp(600px, 90svh, 880px); }
  .hero__card { padding-top: calc(var(--topbar-h) + 28px); }
  .hero__media { order: 0; aspect-ratio: auto; max-height: none; }
  .hero__media img { object-position: center 42%; }
}
@media (max-width: 899px) {
  .hero__card { padding-top: clamp(28px, 6vw, 48px); }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 63, 92, .38) 0%, rgba(46, 63, 92, 0) 30%);
}
@media (min-width: 900px) { .hero__media::after { background: linear-gradient(180deg, rgba(46, 63, 92, .3) 0%, rgba(46, 63, 92, 0) 26%); } }

/* --------------------------------------------------------------------------
   Welcome facts
   -------------------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem 2rem;
  margin: 2.75rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.facts div { display: grid; gap: .45rem; align-content: start; }
.facts dt { font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; }

/* --------------------------------------------------------------------------
   Story
   -------------------------------------------------------------------------- */
.story {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  gap: clamp(52px, 8vw, 112px);
}
.story__item { display: grid; gap: 1.5rem 3.5rem; align-items: center; }
.story__media {
  max-width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue-100);
}
.story__media--wide { aspect-ratio: 4 / 3; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__body { display: grid; gap: .35rem; align-content: center; }
.story__year { margin: 0; font-family: var(--font-script); font-size: 1.7rem; line-height: 1; color: var(--blue-600); }
.story__title {
  margin: 0 0 .6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  text-wrap: balance;
}
.story__text { margin: 0; max-width: 50ch; line-height: 1.66; color: var(--muted); }
@media (min-width: 760px) {
  .story__item { grid-template-columns: 1fr 1fr; }
  .story__item:nth-child(even) .story__media { order: 2; }
  .story__item:nth-child(even) .story__body { padding-right: 2rem; }
  .story__item:nth-child(odd) .story__body { padding-left: 2rem; }
}
.story__ph {
  margin: 2.5rem 0 0;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--ink-3);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Program
   -------------------------------------------------------------------------- */
.days { display: grid; gap: 3.5rem; margin-top: 3rem; }
@media (min-width: 900px) { .days { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.day__name { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 4.2vw, 3.2rem); line-height: 1; }
.day__date { margin: .7rem 0 0; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.day__intro { margin: 1rem 0 0; max-width: 46ch; color: var(--muted); line-height: 1.6; }
.agenda { list-style: none; margin: 2rem 0 0; padding: 0; border-left: 1px solid var(--line); }
.agenda li { position: relative; padding: 0 0 1.9rem 1.75rem; }
.agenda li:last-child { padding-bottom: .25rem; }
.agenda li::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: .5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-200);
}
.agenda li.is-pause::before { background: transparent; border: 1px solid var(--blue-200); }
.agenda__time { font-size: .82rem; font-weight: 500; letter-spacing: .12em; color: var(--blue-200); font-variant-numeric: tabular-nums; }
.agenda__title { margin: .2rem 0 .3rem; font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; line-height: 1.15; }
.agenda__place { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--muted); }
.agenda__place a { color: var(--fg); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.tba {
  display: inline-block;
  padding: .15em .6em;
  border: 1px dashed var(--blue-300);
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-200);
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Dresscode: Foto links, drei Looks rechts, Farbwelt als Swatch-Leiste
   -------------------------------------------------------------------------- */
.looks { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 900px) {
  .looks { grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
  .looks__photo { position: sticky; top: calc(var(--topbar-h) + 24px); }
}
.looks__photo { margin: 0; max-width: 100%; }
.looks__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); background: var(--blue-100); }
@media (max-width: 899px) { .looks__photo img { max-height: 72svh; } }
.looks__photo figcaption { margin: .7rem 0 0; font-size: 1.5rem; color: var(--blue-600); }
.looks__list { display: grid; }
.look { display: grid; gap: .7rem; padding: 2.2rem 0; border-top: 1px solid var(--line); }
.look:first-child { padding-top: 0; border-top: 0; }
.look:last-child { padding-bottom: 0; }
.look__when { margin: 0; font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.look__name { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(2.3rem, 4.2vw, 3.4rem); line-height: 1; }
.look__text { margin: 0; max-width: 52ch; line-height: 1.62; color: var(--muted); }
.look__list { margin: .25rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; color: var(--muted); line-height: 1.55; }
.look__list li { position: relative; padding-left: 1.3rem; }
.look__list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 1px; background: var(--blue-600); }

.palette { display: grid; gap: 1.25rem; margin-top: 3.5rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.palette__title { margin: 0; font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 1.25rem 1.4rem; }
.sw { display: grid; justify-items: center; align-content: start; gap: .55rem; width: 82px; text-align: center; }
.sw__dot { position: relative; width: 54px; height: 54px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(34, 48, 74, .14); }
.sw__name { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.35; color: var(--muted); }
.sw__name em { font-style: normal; color: var(--blue-600); }
.sw--reserved .sw__dot::after { content: ""; position: absolute; inset: -6px; border: 1px dashed var(--blue-600); border-radius: 50%; }
.sw--reserved .sw__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1px; height: 70%; background: var(--blue-600); transform: translate(-50%, -50%) rotate(45deg); opacity: .8; }
.palette__hint { margin: 0; max-width: 62ch; line-height: 1.6; color: var(--muted); }

/* Zugangscode */
body.gated { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: var(--blue-400); color: var(--ink); }
.gate__card { width: min(100%, 420px); display: grid; gap: .8rem; padding: 2.25rem 2rem; background: var(--cream); border-radius: 6px; text-align: center; justify-items: center; box-shadow: 0 30px 80px -30px rgba(14, 24, 38, .6); }
.gate__mark { margin: 0 0 .25rem; font-family: var(--font-display); font-weight: 500; font-size: 2.2rem; letter-spacing: .1em; line-height: 1; }
.gate__mark em { font-family: var(--font-script); font-style: normal; font-weight: 400; letter-spacing: 0; color: var(--blue-600); margin: 0 .12em; }
.gate__title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 2rem; line-height: 1.05; }
.gate__card .field { width: 100%; text-align: left; }
.gate__card .field input { text-align: center; letter-spacing: .2em; text-transform: uppercase; font-size: 1.2rem; }
.gate__card .form__error { width: 100%; }

/* --------------------------------------------------------------------------
   RSVP form
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.fs { display: grid; gap: 1.25rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.fs legend { padding: 0; margin-bottom: .6rem; font-family: var(--font-display); font-weight: 500; font-size: 1.8rem; line-height: 1.1; }
.grid2 { display: grid; gap: 1.25rem 1.75rem; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label, .lbl {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: .55rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink-3);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: 400 1.05rem/1.4 var(--font-body);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--error); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--blue-600); }
.field__err { font-size: .8rem; color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.segment { display: flex; flex-wrap: wrap; gap: .5rem; }
.segment label { position: relative; display: inline-flex; }
.segment input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segment span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5em 1.1em;
  border: 1px solid var(--ink-3);
  border-radius: 999px;
  font-size: .92rem;
  line-height: 1.2;
  background: transparent;
  transition: background .18s, color .18s, border-color .18s;
}
.segment input:checked + span { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.segment input:focus-visible + span { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.segment--big span { font-size: 1rem; padding: .75em 1.5em; }
.segment.is-invalid span { border-color: var(--error); }

.guests { display: grid; gap: 1rem; }
.guest {
  position: relative;
  display: grid;
  gap: 1.15rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.guest__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.guest__num { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.3rem; color: var(--blue-600); }
.guest__remove {
  min-height: 44px;
  padding: 0 .25rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 .72rem var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.guest__remove:hover { color: var(--error); }
.guest__row { display: grid; gap: .55rem; }
.guest__kids, .guest__menu, .guest__kidsmenu { display: none; }
.guest.is-child .guest__kids { display: grid; }
.guest.show-menu .guest__menu { display: grid; }
.guest.show-kidsmenu .guest__kidsmenu { display: block; }
.guest__kids input { max-width: 8rem; }

.form__error {
  margin: 0;
  padding: .9rem 1.1rem;
  border-left: 2px solid var(--error);
  background: rgba(176, 65, 62, .07);
  color: var(--error);
  line-height: 1.5;
}
.form__actions { display: grid; gap: 1rem; justify-items: start; }

.form.is-declined #guestsFieldset,
.form.is-declined #extrasFieldset { display: none; }

.thanks {
  margin-top: 2.5rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}
.thanks__mark { margin: 0 0 1rem; font-family: var(--font-display); font-weight: 500; font-size: 2.6rem; line-height: 1; letter-spacing: .1em; }
.thanks__mark em { font-family: var(--font-script); font-style: normal; font-weight: 400; letter-spacing: 0; color: var(--blue-600); margin: 0 .1em; }
.thanks .h3 { margin: 0 0 .6rem; }
.thanks p { max-width: 50ch; margin: 0 auto; color: var(--muted); line-height: 1.6; }
.thanks__summary {
  list-style: none;
  margin: 1.75rem auto 0;
  padding: 1.25rem 0 0;
  max-width: 40ch;
  border-top: 1px solid var(--line);
  text-align: left;
  display: grid;
  gap: .5rem;
  font-size: .95rem;
  line-height: 1.5;
}
.thanks__summary b { font-weight: 500; }
.thanks__summary span { color: var(--muted); }
.preview-tag {
  display: inline-block;
  margin-top: 1.25rem;
  padding: .3em .8em;
  border-radius: 999px;
  background: var(--blue-50);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Travel
   -------------------------------------------------------------------------- */
.travel { display: grid; gap: 1.25rem; margin-top: 2.75rem; }
@media (min-width: 800px) { .travel { grid-template-columns: repeat(2, 1fr); } }
.tcard {
  position: relative;
  display: grid;
  gap: .65rem;
  align-content: start;
  padding: 1.9rem 1.75rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.tcard--rec { border-color: var(--blue-600); box-shadow: inset 0 0 0 1px var(--blue-600); }
.tcard__badge {
  position: absolute;
  top: -.75em;
  left: 1.5rem;
  padding: .45em .9em;
  border-radius: 999px;
  background: var(--blue-600);
  color: #fff;
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.tcard__kicker { margin: 0; font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.tcard__title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; line-height: 1.1; }
.tcard__meta { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; margin: .2rem 0 .3rem; font-size: .88rem; color: var(--muted); }
.tcard__meta b { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.tcard__text { margin: 0; line-height: 1.62; color: var(--muted); }
.tcard__text a { color: var(--fg); }
.tcard ul { margin: 0; padding-left: 1.1rem; line-height: 1.62; color: var(--muted); }
.tcard__link { margin-top: .4rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }

.island { display: grid; gap: 0 2.5rem; margin-top: 1.25rem; }
@media (min-width: 700px) { .island { grid-template-columns: repeat(2, 1fr); } }
.island div { padding: 1rem 0; border-top: 1px solid var(--line); }
.island b { display: block; margin-bottom: .2rem; font-weight: 500; }
.island span { font-size: .95rem; line-height: 1.55; color: var(--muted); }
.island a { color: var(--fg); }

/* --------------------------------------------------------------------------
   Hotels
   -------------------------------------------------------------------------- */
.hotels { display: grid; gap: 1.75rem 2rem; margin-top: 2.75rem; }
@media (min-width: 700px) { .hotels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .hotels { grid-template-columns: repeat(4, 1fr); } }
.hotel { display: grid; gap: .5rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.hotel__place { margin: 0; font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.hotel__name { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; line-height: 1.12; }
.hotel__name a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.hotel__name a:hover { border-bottom-color: var(--blue-200); }
.hotel__price { margin: 0; font-size: .85rem; letter-spacing: .12em; color: var(--blue-200); }
.hotel__text { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--muted); }

/* --------------------------------------------------------------------------
   Tips
   -------------------------------------------------------------------------- */
.tips { display: grid; gap: 1.5rem 2rem; margin-top: 2.75rem; }
@media (min-width: 640px) { .tips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tips { grid-template-columns: repeat(3, 1fr); } }
.tip { display: grid; gap: .35rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--line); }
.tip__cat { margin: 0; font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--blue-600); }
.tip__name { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; line-height: 1.12; }
.tip__text { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--muted); }
.tip__text a { color: var(--fg); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1.15rem 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--blue-600);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { max-width: 62ch; padding: 0 0 1.4rem; line-height: 1.66; color: var(--muted); }
.faq__a a { color: var(--fg); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  --muted: #B9C5D6;
  --line: rgba(255, 255, 255, .18);
  padding-block: 4.5rem calc(3rem + env(safe-area-inset-bottom, 0px));
  background: var(--navy);
  color: #F1F3F6;
  color-scheme: dark;
}
.footer__inner { display: grid; gap: .6rem; justify-items: center; text-align: center; }
.footer__mark { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 2.2rem; line-height: 1; letter-spacing: .1em; text-transform: uppercase; }
.footer__mark em { font-family: var(--font-script); font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--blue-200); margin: 0 .15em; }
.footer__date { margin: .2rem 0 0; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.footer__contact { margin: 1.4rem 0 0; color: var(--muted); }
.copy { color: #fff; user-select: all; -webkit-user-select: all; }
.footer__privacy { max-width: 62ch; margin-top: 1.75rem; text-align: left; }
.footer__privacy summary {
  text-align: center;
  cursor: pointer;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__privacy .prose { margin-top: .75rem; color: var(--muted); }

/* ==========================================================================
   Bewegung & Details
   ========================================================================== */

/* Hero-Foto: langsamer Ken-Burns-Zoom */
.hero__media img { animation: kenburns 26s ease-out both; transform-origin: 50% 40%; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Countdown-Sekunden: kurzer Puls beim Wechsel */
.countdown b.tick { animation: tick .5s ease-out; }
@keyframes tick { 0% { opacity: .55; transform: translateY(-2px); } 100% { opacity: 1; transform: none; } }

/* Scroll-Reveal: nur per JS gesetzt, ohne JS ist alles sichtbar */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Bilder blenden nach dem Laden ein, Story-Fotos zoomen leicht beim Hover */
.img-fade { opacity: 0; transition: opacity .7s ease; }
.img-fade.is-loaded { opacity: 1; }
button.story__media { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.story__media img { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.story__item:hover .story__media img, .story__media:focus-visible img { transform: scale(1.035); }

/* Buttons: sanftes Anheben */
.btn { transition: background .2s, color .2s, border-color .2s, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -12px rgba(46, 63, 92, .55); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Programm: Kalender-Button */
.program__actions { margin: 2.25rem 0 0; }

/* Neue Personen-Karte */
.guest--new { animation: cardin .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes cardin { from { opacity: 0; transform: translateY(10px); } }
.form__declined { margin: 0; padding: 1rem 1.25rem; border-left: 2px solid var(--blue-300); background: var(--card); }

/* Danke-Box */
.thanks.is-shown { animation: cardin .7s cubic-bezier(.2, .7, .2, 1); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* Sticky-RSVP auf dem Handy */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: .9em 1.8em;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font: 500 .8rem/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(46, 63, 92, .6);
  animation: cardin .4s ease-out;
}
@media (min-width: 480px) { .sticky-cta { display: none; } }

/* Modal (Absage-Rückfrage) */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(34, 48, 74, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadein .25s ease-out;
}
@keyframes fadein { from { opacity: 0; } }
.modal__card {
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(14, 24, 38, .7);
  animation: cardin .45s cubic-bezier(.2, .7, .2, 1);
}
.modal__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-100); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.modal__body { display: grid; gap: .6rem; padding: 1.5rem 1.6rem 1.75rem; text-align: center; }
.modal__kicker { margin: 0; font-size: 1.7rem; color: var(--blue-600); }
.modal__title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 2.1rem; line-height: 1.05; }
.modal__text { margin: 0 auto; max-width: 40ch; line-height: 1.6; color: var(--muted); }
.modal__actions { display: grid; gap: .6rem; justify-items: center; margin-top: .75rem; }
.modal__actions .btn--ghost { min-height: 44px; font-size: .72rem; border-color: transparent; color: var(--muted); }
.modal__actions .btn--ghost:hover { color: var(--fg); box-shadow: none; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 24, 38, .92);
  animation: fadein .25s ease-out;
  cursor: zoom-out;
}
.lightbox__fig { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: .75rem; justify-items: center; cursor: default; }
.lightbox__fig img { max-width: min(100%, 1100px); max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 4px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); animation: cardin .4s cubic-bezier(.2, .7, .2, 1); }
.lightbox__fig figcaption { font-family: var(--font-display); font-size: 1.3rem; color: var(--cream); text-align: center; }
.lightbox__close {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 16px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 242, 236, .12);
  color: var(--cream);
  font: 300 2rem/1 var(--font-body);
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(244, 242, 236, .24); }

@media (prefers-reduced-motion: reduce) {
  .hero__media img, .countdown b.tick, .guest--new, .thanks.is-shown, .sticky-cta, .modal, .modal__card, .lightbox, .lightbox__fig img { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Story-Kapitel ohne Foto: typografische Karte */
.story__media--empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .75rem;
  background: var(--blue-400);
  color: var(--cream);
  position: relative;
}
.story__media--empty::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(244, 242, 236, .6); }
.story__media--empty .script { font-size: clamp(2.4rem, 5vw, 3.6rem); position: relative; }
.story__emptyLine { width: 44px; height: 1px; background: rgba(244, 242, 236, .7); position: relative; }

/* Schnappschuss-Mosaik nach der Story */
.mosaic__title { margin-top: clamp(52px, 8vw, 96px); }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 700px) { .mosaic { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.mosaic__item { display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--blue-100); cursor: zoom-in; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.mosaic__item:hover img, .mosaic__item:focus-visible img { transform: scale(1.04); }

/* Sylt: zwei Stimmungsbilder */
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 2.5rem; }
.strip__item { margin: 0; display: grid; gap: .5rem; }
.strip__btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--blue-100); cursor: zoom-in; }
.strip__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.strip__item:hover img { transform: scale(1.04); }
.strip__item figcaption { font-size: 1.35rem; color: var(--blue-600); }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(2, minmax(0, 420px)); } }

/* Dresscode-Hinweis */
.callout--dress { margin-top: 2.75rem; }

/* RSVP: Auswahl je nach Erwachsene:r / Kind */
.guest:not(.is-child) .only-child { display: none; }
.guest.is-child .only-adult { display: none; }
