/* ══════════════════════════════════════════════════════
   Hochzeit Lea & Jonas — Stylesheet
   Farbwelt: Auwald, Lehm, Leinen
   ══════════════════════════════════════════════════════ */

:root {
  --moos: #4a5b3e;
  --moos-tief: #2e3a26;
  --nacht: #1e2419;
  --rinde: #3a2e22;
  --lehm: #b08154;
  --wasser: #7e9a93;
  --leinen: #f4f0e5;
  --leinen-warm: #eae3d2;
  --linie: rgba(58, 46, 34, 0.15);
  --fehler: #9c4b36;

  --wrap: 820px;

  /* Im Admin unter "Darstellung" einstellbar. Alle Schriftgrößen im
     Stylesheet rechnen mit diesem Faktor, 1 = Normalgröße. */
  --schrift-skala: 1;
  --formular-breite: 720px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Die großen Abschnitte füllen möglichst die Bildschirmhöhe.
   "Unser Tag" (#tag) ist bewusst nicht dabei: drei kurze Zeilen auf
   voller Bildschirmhöhe wirken verloren. */
#ablauf,
.venue,
#faq,
.rsvp,
.slider-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body {
  background: var(--leinen);
  color: var(--rinde);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  /* Basisgröße, damit auch geerbter Fließtext ohne eigene Regel
     (Fußzeile, Formularzeilen, Ablauftexte) mitskaliert. */
  font-size: calc(16px * var(--schrift-skala));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  color: var(--rinde);
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
}
::selection {
  background: var(--lehm);
  color: var(--leinen);
}
:focus-visible {
  outline: 2px solid var(--lehm);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--moos-tief);
  color: var(--leinen);
  padding: 12px 18px;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ══════════ NAV ══════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(30, 36, 25, 0.5), transparent);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease;
}
nav.solid {
  background: rgba(244, 240, 229, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--linie);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-mark {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: calc(19px * var(--schrift-skala));
  color: var(--leinen);
  text-decoration: none;
  transition: color 0.35s;
  display: flex;
  align-items: center;
  position: relative;
  min-width: 140px;
  height: 1px;
}
nav.solid .nav-mark {
  color: var(--rinde);
}
.nav-mark-text {
  margin-left: 140px;
}
.nav-logo {
  display: flex;
  position: absolute;
  /* Nach links über die Inhaltskante hinausragen – aber nie weiter als
     bis 20px an den Bildschirmrand, sonst wird der Kreis abgeschnitten.
     (24px = Innenabstand von .nav-inner, 1120px = dessen max-width) */
  left: max(-80px, calc(-4px - max(0px, (100vw - 1120px) / 2)));
  top: -18px;
  height: 300px;
  width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--leinen);
  padding: 4px;
  box-shadow: 0 2px 14px rgba(30, 36, 25, 0.25);
  transition: box-shadow 0.35s;
  font-family: "Fraunces", serif;
  font-size: calc(23px * var(--schrift-skala));
  font-style: italic;
  color: var(--rinde);
  align-items: center;
  justify-content: center;
}
.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
@media (max-width: 700px) {
  .nav-mark {
    min-width: 108px;
  }
  .nav-mark-text {
    margin-left: 108px;
  }
  .nav-logo {
    left: 0;
    top: -12px;
    height: 120px;
    width: 120px;
  }
}
nav.solid .nav-logo {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 1px 6px rgba(58, 46, 34, 0.18);
}
.nav-logo[hidden] {
  display: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: calc(13.5px * var(--schrift-skala));
  letter-spacing: 0.04em;
  color: var(--leinen);
  text-decoration: none;
  opacity: 0.88;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition:
    color 0.35s,
    opacity 0.2s,
    border-color 0.2s;
}
nav.solid .nav-links a {
  color: var(--rinde);
}
.nav-links a:hover {
  opacity: 1;
  border-bottom-color: var(--lehm);
}

.nav-links a.nav-cta {
  border: 1px solid rgba(244, 240, 229, 0.5);
  padding: 7px 16px;
  border-radius: 999px;
}
.nav-links a.nav-cta:hover {
  background: var(--lehm);
  border-color: var(--lehm);
  color: var(--leinen);
}
nav.solid .nav-links a.nav-cta {
  border-color: var(--linie);
}
nav.solid .nav-links a.nav-cta:hover {
  color: var(--leinen);
}
.nav-links a.nav-admin {
  border: 1px solid rgba(244, 240, 229, 0.28);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: calc(12px * var(--schrift-skala));
}
nav.solid .nav-links a.nav-admin {
  border-color: var(--linie);
}
.nav-links a.nav-admin:hover {
  background: var(--moos);
  border-color: var(--moos);
  color: var(--leinen);
}

.nav-lang {
  background: transparent;
  border: 1px solid rgba(244, 240, 229, 0.4);
  color: var(--leinen);
  border-radius: 999px;
  padding: 6px 10px;
  font:
    500 12.5px "Jost",
    sans-serif;
  cursor: pointer;
  transition:
    color 0.35s,
    border-color 0.35s;
}
nav.solid .nav-lang {
  color: var(--rinde);
  border-color: var(--linie);
}
.nav-lang option {
  color: #1e2419;
  background: #fff;
}
.editor-preview .nav-lang {
  display: none;
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 26px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--leinen);
  transition:
    transform 0.3s,
    background 0.35s,
    opacity 0.3s;
}
nav.solid .nav-burger span {
  background: var(--rinde);
}
.nav-burger[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ══════════ STARTSEITENFOTO ══════════ */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 24px 90px;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-color: var(--moos-tief);
  background-size: cover;
  background-position: center;
  animation: slowzoom 30s ease-out forwards;
}
.hero-photo.missing {
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 20%, #55694a, transparent 70%),
    repeating-linear-gradient(135deg, #3b4a32 0 22px, #384630 22px 23px);
}
@keyframes slowzoom {
  from {
    transform: scale(1.07);
  }
  to {
    transform: scale(1);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    178deg,
    rgba(30, 36, 25, 0.42) 0%,
    rgba(30, 36, 25, 0.22) 40%,
    rgba(30, 36, 25, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--leinen);
  animation: fadeUp 1.3s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Zeile über dem Namen. Ein "|" im Text (Admin) erzeugt einen
   Zeilenumbruch – pre-line sorgt dafür, dass er auch angezeigt wird. */
.kicker {
  font-size: calc(18px * var(--schrift-skala));
  line-height: 1.5;
  letter-spacing: 0.1em;
  white-space: pre-line;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: clamp(calc(58px * var(--schrift-skala)), 13vw, calc(150px * var(--schrift-skala)));
  line-height: 0.88;
  font-style: italic;
  font-weight: 300;
  color: var(--leinen);
}
.hero .amp {
  display: block;
  font-size: 0.34em;
  color: var(--lehm);
  font-style: normal;
  margin: 12px 0;
}

.hero-meta {
  margin-top: 38px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: calc(15px * var(--schrift-skala));
  letter-spacing: 0.03em;
}
.hero-meta i {
  display: block;
  width: 34px;
  height: 1px;
  background: rgba(244, 240, 229, 0.45);
}

.countdown {
  margin-top: 26px;
  font-size: calc(13px * var(--schrift-skala));
  letter-spacing: 0.06em;
  opacity: 0.72;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 52px;
  display: flex;
  justify-content: center;
}
.scroll-cue span {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(244, 240, 229, 0.65));
}

/* ══════════ ABSCHNITTE ══════════ */
section {
  padding: 118px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}

/* Kleine Kennzeichnung über jedem Abschnitt ("Ablauf", "Momente" …).
   Versal mit weitem Buchstabenabstand, damit sie trotz kleiner Größe
   klar als Etikett lesbar bleibt. */
.eyebrow {
  font-size: calc(14px * var(--schrift-skala));
  font-weight: 400;
  color: var(--lehm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
}

.lede {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: calc(30px * var(--schrift-skala));
  line-height: 1.45;
  max-width: 640px;
}

/* Abschnittsüberschrift – gleiche Größe wie bei "Momente" und
   "Rückmeldung", damit alle Abschnitte gleich gewichtet wirken. */
.section-h {
  font-size: calc(42px * var(--schrift-skala));
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 16px;
}

.story {
  text-align: center;
}
.story .lede {
  width: 100%;
  margin: 0 auto;
  font-size: calc(34px * var(--schrift-skala));
}
.story .sig {
  margin-top: 34px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: calc(21px * var(--schrift-skala));
  color: var(--moos);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Abschnitte, an denen eingerastet wird, dürfen sich beim Einblenden
   nicht verschieben: Der Einrastpunkt wandert sonst mitten in der
   Animation um 24px, der Browser korrigiert nach und das Scrollen
   fühlt sich hakelig an. Diese blenden deshalb nur weich ein. */
#tag.reveal,
#ablauf.reveal,
#faq.reveal,
.slider-section.reveal {
  transform: none;
  transition: opacity 0.9s ease;
}

/* ══════════ SLIDER ══════════ */
.slider-section {
  /* Bildbreite an einer Stelle: Seitenrand wie bei den anderen
     Abschnitten (mind. 24px), nach oben auf 900px begrenzt. Die
     Zentrierung unten rechnet mit demselben Wert, damit der
     Einrastpunkt exakt zur Bildmitte passt. */
  --slide-w: min(calc(100vw - 48px), 900px);
  max-width: none;
  padding: 118px 0;
}

.slider-head {
  max-width: var(--wrap);
  margin: 0 auto 44px;
  padding: 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.slider-head h2 {
  font-size: calc(42px * var(--schrift-skala));
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
}

.slider-controls {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.slider-controls button {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--linie);
  background: var(--leinen);
  box-shadow: 0 3px 10px rgba(58, 46, 34, 0.08);
  color: var(--rinde);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    opacity 0.2s,
    transform 0.2s;
}
.slider-controls svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slider-play .icon-play {
  fill: currentColor;
  stroke: none;
}
.slider-controls button:hover {
  background: var(--moos-tief);
  border-color: var(--moos-tief);
  color: var(--leinen);
  transform: scale(1.05);
}
.slider-controls button[disabled] {
  opacity: 0.28;
  pointer-events: none;
}
.slider-play[aria-pressed="true"] {
  background: var(--lehm);
  border-color: var(--lehm);
  color: var(--leinen);
}

.slider-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 calc((100vw - var(--slide-w)) / 2);
}
.slider-viewport::-webkit-scrollbar {
  display: none;
}
/* Während des eigenen Bildwechsels muss das Snapping aus sein: sonst
   zieht der Browser bei jedem Frame zum Einrastpunkt zurück und der
   Wechsel wirkt ruckelig. Der Hover-Zoom pausiert dabei ebenfalls,
   damit nicht gleichzeitig ein großes Bild skaliert wird. */
.slider-viewport.animiert {
  scroll-snap-type: none;
}
.slider-viewport.animiert .slide:hover img {
  transform: none;
}

.slider-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding-right: calc((100vw - var(--slide-w)) / 2);
}

.slider-loading {
  font-size: calc(14px * var(--schrift-skala));
  color: var(--moos);
  opacity: 0.6;
  padding: 40px 0;
}

.slide {
  position: relative;
  flex: 0 0 auto;
  width: var(--slide-w);
  height: min(80vh, 680px);
  scroll-snap-align: center;
  overflow: hidden;
  background: var(--leinen-warm);
  cursor: zoom-in;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.slide:hover img {
  transform: scale(1.035);
}

.slide .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(12px * var(--schrift-skala));
  letter-spacing: 0.05em;
  color: var(--moos);
  opacity: 0.55;
  background: repeating-linear-gradient(
    135deg,
    var(--leinen-warm) 0 12px,
    #e1d8c2 12px 13px
  );
}

.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 70px 26px 22px;
  background: linear-gradient(transparent, rgba(30, 36, 25, 0.8));
  color: var(--leinen);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: calc(18px * var(--schrift-skala));
  line-height: 1.4;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.slide figcaption.cap-in {
  opacity: 1;
  transform: none;
}

/* Erscheint zuerst groß & mittig im Bild, bevor sie zur
   normalen Bildunterschrift unten "andockt". */
.cap-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 12%;
  background: rgba(20, 24, 16, 0.42);
  color: var(--leinen);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(calc(20px * var(--schrift-skala)), 3.4vw, calc(32px * var(--schrift-skala)));
  line-height: 1.35;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  pointer-events: none;
}
.cap-title.cap-in {
  opacity: 1;
  transform: none;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
}
.slider-dots button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--linie);
  transition:
    background 0.25s,
    transform 0.25s;
}
.slider-dots button.on::before {
  background: var(--lehm);
  transform: scale(1.6);
}
.slider-dots button:hover::before {
  background: var(--moos);
}

/* ══════════ TIMELINE ══════════ */
.timeline {
  border-top: 1px solid var(--linie);
  margin-top: 44px;
}
.t-item {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--linie);
  align-items: baseline;
}
.editor-preview .editor-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lehm);
  background: rgba(255, 253, 247, 0.92);
  color: var(--rinde);
  cursor: pointer;
  font:
    500 12px "Jost",
    sans-serif;
}
.editor-preview .editor-remove {
  position: absolute;
  top: 20px;
  right: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
}
.editor-preview .editor-add {
  margin-top: 12px;
  padding: 8px 12px;
}
.editor-preview .editor-remove-inline {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
}
.editor-preview [data-content]:empty {
  display: inline-block;
  min-width: 40px;
  min-height: 1.3em;
  outline: 1px dashed rgba(176, 129, 84, 0.55);
  outline-offset: 3px;
}
.editor-preview [data-content]:empty::before {
  content: "Text hinzufügen …";
  opacity: 0.45;
  font-style: italic;
}
.t-item time {
  font-family: "Fraunces", serif;
  font-size: calc(24px * var(--schrift-skala));
  color: var(--lehm);
}
.t-item h3 {
  font-size: calc(23px * var(--schrift-skala));
  margin-bottom: 4px;
}
.t-item p {
  font-size: calc(16.5px * var(--schrift-skala));
  opacity: 0.8;
  white-space: pre-line;
}

/* ══════════ ORT ══════════ */
.venue {
  background: var(--nacht);
  color: var(--leinen);
  max-width: none;
  padding: 118px 24px;
}
.venue-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
}
.venue .eyebrow {
  color: var(--lehm);
}
.venue .lede {
  color: var(--leinen);
}

.venue-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 36px;
}
.venue-grid h3 {
  position: relative;
  color: var(--leinen);
  font-size: calc(21px * var(--schrift-skala));
  margin-bottom: 10px;
}
.venue-grid > div {
  position: relative;
}
.faq details {
  position: relative;
}
.venue-grid p {
  font-size: calc(16px * var(--schrift-skala));
  opacity: 0.8;
}

.link-arrow {
  display: inline-block;
  margin-top: 12px;
  font-size: calc(15px * var(--schrift-skala));
  color: var(--lehm);
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 129, 84, 0.45);
  padding-bottom: 1px;
}
.link-arrow:hover {
  border-bottom-color: var(--lehm);
}
.link-arrow::after {
  content: " →";
}

/* ══════════ FAQ ══════════ */
.faq {
  margin-top: 44px;
  border-top: 1px solid var(--linie);
}
.faq details {
  border-bottom: 1px solid var(--linie);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 40px 24px 0;
  font-size: calc(19px * var(--schrift-skala));
  line-height: 1.4;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lehm);
  font-size: calc(22px * var(--schrift-skala));
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  padding: 0 40px 26px 0;
  font-size: calc(16.5px * var(--schrift-skala));
  opacity: 0.82;
}

/* ══════════ RSVP ══════════ */
.rsvp {
  background: var(--leinen-warm);
  max-width: none;
  padding: 118px 24px;
}
.rsvp-inner {
  width: 100%;
  max-width: var(--formular-breite);
  margin: 0 auto;
}
.rsvp-h {
  font-size: calc(42px * var(--schrift-skala));
  font-style: italic;
  font-weight: 300;
  line-height: 1.2;
}
.rsvp-sub {
  font-size: calc(18px * var(--schrift-skala));
  margin-top: 14px;
  max-width: 540px;
  opacity: 0.82;
}

.rsvp-card {
  background: var(--leinen);
  border: 1px solid var(--linie);
  padding: 50px 42px;
  margin-top: 36px;
}

.attend-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 34px;
}
.attend-toggle button {
  flex: 1;
  padding: 15px;
  border: 1px solid var(--linie);
  background: transparent;
  font-family: "Jost", sans-serif;
  font-size: calc(14.5px * var(--schrift-skala));
  color: var(--rinde);
  cursor: pointer;
  transition: all 0.18s;
}
.attend-toggle button:hover {
  border-color: var(--lehm);
}
.attend-toggle button.active {
  background: var(--moos-tief);
  color: var(--leinen);
  border-color: var(--moos-tief);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.field {
  margin-bottom: 30px;
}

.field label,
.label-as-text {
  display: block;
  font-size: calc(13px * var(--schrift-skala));
  color: var(--moos);
  margin-bottom: 9px;
  letter-spacing: 0.02em;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--linie);
  padding: 10px 2px;
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: calc(16px * var(--schrift-skala));
  color: var(--rinde);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--lehm);
}
.field textarea {
  resize: vertical;
  min-height: 44px;
}
.field input.invalid,
.field textarea.invalid {
  border-bottom-color: var(--fehler);
}

.err {
  font-size: calc(12.5px * var(--schrift-skala));
  color: var(--fehler);
  margin-top: 6px;
  min-height: 0;
}

.guest-count {
  display: flex;
  align-items: center;
  gap: 18px;
}
.guest-count button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--linie);
  background: transparent;
  font-size: calc(16px * var(--schrift-skala));
  color: var(--rinde);
  cursor: pointer;
  transition: border-color 0.2s;
}
.guest-count button:hover {
  border-color: var(--lehm);
}
.guest-count span {
  font-family: "Fraunces", serif;
  font-size: calc(23px * var(--schrift-skala));
  min-width: 22px;
  text-align: center;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.check {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  font-size: calc(15px * var(--schrift-skala));
  color: var(--rinde);
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1px solid var(--linie);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.check input::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--leinen);
  transform: scale(0);
  transition: transform 0.15s;
}
.check input:checked {
  background: var(--moos-tief);
  border-color: var(--moos-tief);
}
.check input:checked::after {
  transform: scale(1);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-btn {
  width: 100%;
  padding: 17px;
  background: var(--moos-tief);
  color: var(--leinen);
  border: none;
  font-family: "Jost", sans-serif;
  font-size: calc(15px * var(--schrift-skala));
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-top: 14px;
  transition:
    background 0.2s,
    opacity 0.2s;
}
.submit-btn:hover {
  background: var(--moos);
}
.submit-btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

.form-status {
  margin-top: 16px;
  font-size: calc(14px * var(--schrift-skala));
  min-height: 20px;
}
.form-status.error {
  color: var(--fehler);
}
.form-status.ok {
  color: var(--moos);
}

.only-yes.hidden {
  display: none;
}

.thanks {
  text-align: center;
  padding: 20px 0 8px;
}
.thanks-mark {
  font-size: calc(34px * var(--schrift-skala));
  margin-bottom: 14px;
}
.thanks h3 {
  font-size: calc(28px * var(--schrift-skala));
  font-style: italic;
  font-weight: 300;
  margin-bottom: 10px;
}
.thanks p {
  font-size: calc(16px * var(--schrift-skala));
  opacity: 0.78;
  max-width: 420px;
  margin: 0 auto;
}

.link-btn {
  margin-top: 24px;
  background: none;
  border: none;
  font-family: "Jost", sans-serif;
  font-size: calc(14px * var(--schrift-skala));
  color: var(--lehm);
  cursor: pointer;
  border-bottom: 1px solid rgba(176, 129, 84, 0.45);
  padding-bottom: 2px;
}

/* ══════════ FOOTER ══════════ */
footer {
  text-align: center;
  padding: 54px 24px 70px;
  font-size: calc(13px * var(--schrift-skala));
  color: var(--moos);
  opacity: 0.7;
}
.footer-contact {
  margin-top: 6px;
}
footer a {
  color: var(--moos);
}

/* ══════════ LIGHTBOX ══════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 24, 16, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  animation: fade 0.25s ease;
}
.lightbox[hidden] {
  display: none;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
}
.lb-close,
.lb-nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--leinen);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.lb-close:hover,
.lb-nav:hover {
  opacity: 1;
}
.lb-close {
  top: 22px;
  right: 26px;
  font-size: calc(34px * var(--schrift-skala));
  line-height: 1;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: calc(46px * var(--schrift-skala));
  padding: 12px 18px;
}
.lb-prev {
  left: 8px;
}
.lb-next {
  right: 8px;
}
.lb-caption {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--leinen);
  font-size: calc(14px * var(--schrift-skala));
  opacity: 0.75;
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 820px) {
  .venue-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Burger-Menü schon ab Tablet-Breite: Neben dem großen Logo-Kreis ist
   für die ausgeschriebenen Menüpunkte sonst nicht genug Platz. */
@media (max-width: 1000px) {
  .nav-burger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    background: var(--nacht);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.3, 1);
  }
  .nav-links.open {
    transform: none;
  }
  .nav-links a,
  nav.solid .nav-links a {
    color: var(--leinen);
    font-size: calc(20px * var(--schrift-skala));
  }
  .nav-links a.nav-cta,
  nav.solid .nav-links a.nav-cta {
    border-color: rgba(244, 240, 229, 0.4);
  }
  .nav-links .nav-lang,
  nav.solid .nav-links .nav-lang {
    color: var(--leinen);
    border-color: rgba(244, 240, 229, 0.4);
    font-size: calc(16px * var(--schrift-skala));
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 68px;
  }
  section {
    padding: 82px 20px;
  }
  .slider-section {
    padding: 82px 0;
  }
  .lede {
    font-size: calc(24px * var(--schrift-skala));
  }
  .story .lede {
    font-size: calc(27px * var(--schrift-skala));
  }
  .section-h,
  .slider-head h2,
  .rsvp-h {
    font-size: calc(33px * var(--schrift-skala));
  }
  .eyebrow {
    margin-bottom: 16px;
  }
  .timeline,
  .faq {
    margin-top: 32px;
  }
  .venue-grid {
    margin-top: 40px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .venue-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .slider-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .rsvp-card {
    padding: 34px 22px;
  }
  .slider-section {
    --slide-w: min(calc(100vw - 40px), 900px);
  }
  .slide {
    height: 64vh;
  }
  .slide figcaption {
    font-size: calc(15px * var(--schrift-skala));
    padding: 54px 18px 16px;
  }
  .cap-title {
    font-size: calc(19px * var(--schrift-skala));
    padding: 22px;
  }
  .slider-controls button {
    width: 50px;
    height: 50px;
  }
  .t-item {
    grid-template-columns: 76px 1fr;
    gap: 18px;
  }
  .t-item time {
    font-size: calc(20px * var(--schrift-skala));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  nav,
  .scroll-cue,
  .slider-controls,
  .submit-btn,
  .lightbox {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
