/* ==========================================================================
   Hochzeit Fatma Nur & Muhammed Ali – Design
   Elfenbein · Salbei · Champagner-Gold
   ========================================================================== */

:root {
  --paper: #FBF8F3;
  --paper-2: #F3ECE0;
  --card: #FFFDF9;
  --ink: #2E2A25;
  --ink-soft: #6B6258;
  --gold: #8C6B3C;        /* Text & Buttons (gut lesbar) */
  --gold-2: #C4A473;      /* Linien & Deko */
  --gold-3: #E9DCC4;
  --sage: #8E9C84;
  --line: rgba(160, 125, 74, 0.32);
  --input-border: #DCCDB4;
  --error: #A4433A;
  --radius: 20px;
  --shadow: 0 18px 50px -24px rgba(70, 52, 28, 0.35);
  --font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-script: 'Great Vibes', 'Brush Script MT', cursive;
  --font-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(196, 164, 115, 0.12), transparent 45%),
    radial-gradient(ellipse at 100% 55%, rgba(142, 156, 132, 0.10), transparent 40%);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; }
p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Kleine Bausteine ---------- */

.label,
.kicker {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.divider {
  width: 200px;
  height: 20px;
  margin: 0 auto;
  color: var(--gold-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 18px; height: 18px; }

.btn--primary {
  background: var(--gold);
  color: #FFFDF9;
  box-shadow: 0 12px 26px -12px rgba(140, 107, 60, 0.75);
}
.btn--primary:hover { background: #7A5C32; }
.btn--primary[disabled] { opacity: 0.7; cursor: progress; }

.btn--ghost {
  background: transparent;
  color: var(--gold);
}
.btn--ghost:hover { background: rgba(196, 164, 115, 0.12); }

.btn--sm { min-height: 46px; padding: 0 20px; font-size: 0.72rem; }
.btn--block { width: 100%; }

.btn-link {
  background: none;
  border: 0;
  padding: 10px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ---------- Sprachauswahl ---------- */

.lang-switch {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  z-index: 60;
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px -8px rgba(70, 52, 28, 0.3);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.lang-switch.is-away {
  transform: translateY(calc(-100% - 24px));
  opacity: 0;
}

.lang-switch button {
  min-width: 42px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: 500 0.74rem/1 var(--font-sans);
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--gold);
  color: #FFFDF9;
}

/* ---------- Intro: Briefumschlag ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--paper-2);
  background-image:
    radial-gradient(ellipse at 50% 48%, rgba(255, 253, 249, 0.95), rgba(255, 253, 249, 0) 62%),
    radial-gradient(rgba(140, 107, 60, 0.08) 1px, transparent 1.3px);
  background-size: 100% 100%, 16px 16px;
}

.intro__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 24px 0;
  text-align: center;
}

.intro__kicker,
.intro__hint {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  transition: opacity 0.7s ease;
}
.intro__hint { animation: hint 2.4s ease-in-out infinite; }

.intro__to {
  margin-top: -4px;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink-soft);
  transition: opacity 0.7s ease;
}

/* Umschlag – Ebenen von hinten nach vorne:
   Rückseite → Karte → Vorderseite (Taschen) → Klappe → Siegel */
.envelope {
  --seal: clamp(74px, 21vw, 96px);
  position: relative;
  width: min(84vw, 400px);
  aspect-ratio: 10 / 7;
  perspective: 1100px;
  animation: float 4.5s ease-in-out infinite;
}

.envelope__back {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #D8C8AC, #E6D9C4);
  box-shadow:
    0 28px 50px -22px rgba(70, 52, 28, 0.55),
    0 4px 10px -4px rgba(70, 52, 28, 0.25);
}

.envelope__letter {
  position: absolute;
  top: 5%;
  left: 6%;
  right: 6%;
  height: 90%;
  z-index: 2;
  padding: 7px;
  border-radius: 4px;
  background: var(--card);
  box-shadow: 0 2px 10px rgba(70, 52, 28, 0.15);
  transition: transform calc(var(--intro-speed, 1) * 2.2s) cubic-bezier(0.25, 0.75, 0.3, 1) calc(var(--intro-speed, 1) * 2.2s);
}
.letter__inner {
  height: 100%;
  padding: 9% 6% 0;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.letter__kicker {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.letter__names {
  margin-top: 6px;
  font-family: var(--font-script);
  font-size: clamp(1.55rem, 7.4vw, 2.15rem);
  line-height: 1.05;
  color: var(--ink);
}
.letter__names span { display: block; }
.letter__names em {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.5em;
  color: var(--gold-2);
}
.letter__divider {
  width: 120px;
  height: 12px;
  margin: 8px auto 6px;
  color: var(--gold-2);
}
.letter__date {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.envelope__front {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.envelope__front polygon,
.flap__face polygon {
  stroke: rgba(140, 107, 60, 0.3);
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.env-side { fill: #EEE4D3; }
.env-bottom { fill: #F6EEE2; }

.envelope__flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  z-index: 5;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  /* z-index springt, sobald die Klappe senkrecht steht – danach liegt sie hinter der Karte */
  transition: transform calc(var(--intro-speed, 1) * 1.7s) cubic-bezier(0.42, 0, 0.58, 1) calc(var(--intro-speed, 1) * 0.8s), z-index 0s linear calc(var(--intro-speed, 1) * 1.65s);
}
.flap__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flap__face--out polygon { fill: url(#flap-grad); }
.flap__face--in { transform: rotateX(180deg); }
.flap__face--in polygon { fill: url(#liner); }

.seal {
  position: absolute;
  top: calc(60% - var(--seal) / 2);
  left: calc(50% - var(--seal) / 2);
  z-index: 6;
  width: var(--seal);
  height: var(--seal);
  padding: 0;
  border: 0;
  border-radius: 52% 48% 50% 50% / 49% 52% 48% 51%;
  background: radial-gradient(circle at 34% 28%, #DDC291 0%, #B8925A 42%, #8A6532 100%);
  box-shadow:
    0 8px 18px -6px rgba(90, 60, 20, 0.6),
    inset 0 2px 5px rgba(255, 255, 255, 0.4),
    inset 0 -6px 12px rgba(0, 0, 0, 0.2);
  color: #FFF8EC;
  cursor: pointer;
  animation: seal 2.8s ease-in-out infinite;
  transition: transform calc(var(--intro-speed, 1) * 1.1s) cubic-bezier(0.5, 0, 0.3, 1), opacity calc(var(--intro-speed, 1) * 0.9s) ease calc(var(--intro-speed, 1) * 0.2s);
}
.seal::before {
  content: '';
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(255, 248, 236, 0.55);
  border-radius: 50%;
}
.seal__mono {
  display: inline-block;
  margin-left: -4px;
  font-family: var(--font-script);
  font-size: calc(var(--seal) * 0.3);
  line-height: 1;
  text-shadow: 0 1px 1px rgba(60, 40, 10, 0.35);
}
.seal__mono em {
  font-family: var(--font-serif);
  font-size: 0.5em;
  font-style: italic;
  margin: 0 2px;
  vertical-align: 0.35em;
}

/* 1. Öffnen: Siegel löst sich → Klappe klappt auf → Karte gleitet heraus */
.intro.is-open .envelope {
  animation: none;
  transform: translateY(min(11vh, 90px));
  transition: transform calc(var(--intro-speed, 1) * 2.4s) cubic-bezier(0.25, 0.75, 0.3, 1) calc(var(--intro-speed, 1) * 2.2s);
}
.intro.is-open .intro__kicker,
.intro.is-open .intro__hint,
.intro.is-open .intro__to { opacity: 0; animation: none; }
.intro.is-open .seal { animation: none; opacity: 0; transform: translateY(-16px) scale(0.6) rotate(-25deg); }
.intro.is-open .envelope__flap { transform: rotateX(180deg); z-index: 1; }
.intro.is-open .envelope__letter { transform: translateY(-70%); }

/* 2. Ausblenden zur Seite */
.intro.is-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity calc(var(--intro-speed, 1) * 1.5s) ease, visibility 0s linear calc(var(--intro-speed, 1) * 1.5s);
}
.intro.is-out .envelope__letter {
  transform: translateY(-70%) scale(1.08);
  transition: transform calc(var(--intro-speed, 1) * 1.5s) ease;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes seal {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@keyframes hint {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ---------- Kopfbereich ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 84px 20px 88px;
  text-align: center;
  overflow: hidden;
}

.corner {
  position: absolute;
  width: clamp(150px, 42vw, 280px);
  height: clamp(150px, 42vw, 280px);
  color: var(--sage);
  opacity: 0.55;
  pointer-events: none;
}
.corner--tl { top: -10px; left: -10px; }
.corner--br { bottom: -10px; right: -10px; transform: rotate(180deg); }

.arch {
  position: relative;
  width: min(100%, 400px);
  padding: 76px 22px 40px;
  border: 1px solid var(--gold-2);
  border-radius: 220px 220px 20px 20px;
  background: rgba(255, 253, 249, 0.65);
  box-shadow: var(--shadow);
}
.arch::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line);
  border-radius: 220px 220px 15px 15px;
  pointer-events: none;
}

.names {
  margin: 14px 0 18px;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.7rem, 12.5vw, 4rem);
  line-height: 1.08;
  color: var(--ink);
}
.names > span { display: block; }
.names__amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.48em;
  color: var(--gold-2);
  margin: 2px 0;
}

.divider--hero { margin-bottom: 18px; }

.hero__date {
  font-size: clamp(1.5rem, 6.5vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.hero__sub span { display: block; }
.hero__sub span + span { margin-top: 2px; color: var(--gold); }
.hero__sub {
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.scroll-hint {
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1px solid var(--gold-2);
  border-radius: 999px;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold-2);
  animation: scroll 2s ease-in-out infinite;
}
@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Einblend-Animation des Kopfbereichs */
.js .hero .anim {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease, transform 1s ease;
  transition-delay: calc(var(--d, 0) * 130ms);
}
.js .hero.is-in .anim { opacity: 1; transform: none; }

/* ---------- Abschnitte ---------- */

.section {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(68px, 14vw, 110px) 20px;
  text-align: center;
}
.section--tight { padding-top: clamp(56px, 11vw, 84px); padding-bottom: clamp(56px, 11vw, 84px); }

.section__title {
  margin: 0 0 14px;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.5rem, 10vw, 3.3rem);
  line-height: 1.15;
  color: var(--ink);
}

.band {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Scroll-Animation */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Einladung ---------- */

.verse {
  max-width: 34ch;
  margin: 0 auto 36px;
}
.verse blockquote {
  margin: 0;
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.verse figcaption {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.families {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 36px 0 8px;
}
.families > div { flex: 1 1 0; max-width: 260px; }
.families__names { margin-top: 6px; font-size: 1.15rem; }

.invite__text {
  max-width: 30ch;
  margin: 36px auto 0;
  font-size: 1.35rem;
  line-height: 1.6;
}

.invite__couple {
  margin-top: 30px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.invite__couple span { display: block; }
.invite__couple em {
  display: block;
  margin: 2px 0;
  font-family: var(--font-script);
  font-size: 1.8rem;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-2);
  line-height: 1.2;
}

/* ---------- Countdown ---------- */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 440px;
  margin: 22px auto 0;
}
.countdown > div {
  padding: 16px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.countdown span {
  display: block;
  font-size: clamp(1.9rem, 8.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.countdown small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: clamp(0.56rem, 2.3vw, 0.66rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Wann & Wo ---------- */

.events {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.event-card {
  padding: 34px 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.event-card__title {
  margin: 0 0 24px;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
}

.event-meta {
  display: grid;
  gap: 20px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.event-meta li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.event-meta .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  color: var(--gold-2);
}
.event-meta strong { font-weight: 600; }
.event-meta__addr { color: var(--ink-soft); }

.event-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.event-actions .btn { flex: 1 1 200px; max-width: 320px; }

/* ---------- Zusage ---------- */

.band--rsvp {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 253, 249, 0.8), transparent 60%),
    var(--paper-2);
}

#rsvp { scroll-margin-top: 8px; }

.rsvp-card {
  position: relative;
  padding: 44px 20px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.corner--card {
  top: -34px;
  right: -34px;
  width: 112px;
  height: 112px;
  opacity: 0.3;
  transform: scaleX(-1);
}

.rsvp-card__deadline {
  max-width: 32ch;
  margin: 0 auto 8px;
  color: var(--ink-soft);
}

.demo-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--gold-2);
  border-radius: 12px;
  font: 400 0.85rem/1.45 var(--font-sans);
  color: var(--gold);
  text-align: left;
}

.rsvp-form {
  margin-top: 30px;
  text-align: left;
}

.field {
  min-width: 0;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}
.field > label,
.field > legend {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.input {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid var(--input-border);
  border-radius: 14px;
  background: #FFF;
  color: var(--ink);
  font: 400 1.02rem/1.45 var(--font-sans); /* ≥16px: kein Auto-Zoom auf iPhone */
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: #A99F93; }
.input:focus {
  outline: none;
  border-color: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(196, 164, 115, 0.2);
}
textarea.input { min-height: 104px; resize: vertical; }

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice {
  position: relative;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  min-height: 74px;
  padding: 12px 10px;
  border: 1px solid var(--input-border);
  border-radius: 14px;
  background: #FFF;
  font: 400 0.98rem/1.3 var(--font-sans);
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.choice__box small {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.choice__name {
  font-family: var(--font-script);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}
.choice__icon {
  width: 20px;
  height: 20px;
  color: var(--gold-2);
}
.choice input:checked + .choice__box {
  border-color: var(--gold);
  background: #FAF3E7;
  box-shadow: inset 0 0 0 1px var(--gold);
}
.choice input:checked + .choice__box .choice__icon { color: var(--gold); fill: rgba(196, 164, 115, 0.35); }
.choice input:focus-visible + .choice__box {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 200px;
  padding: 6px;
  border: 1px solid var(--input-border);
  border-radius: 16px;
  background: #FFF;
}
.stepper__btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #F6EEE1;
  color: var(--gold);
  font: 400 1.6rem/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.stepper__btn:active { background: var(--gold-3); }
.stepper__input {
  width: 64px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 1.6rem/1 var(--font-sans);
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper__input:focus { outline: none; }
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.field-hint {
  margin-top: 8px;
  font: 400 0.85rem/1.4 var(--font-sans);
  color: var(--ink-soft);
}

.field-error {
  margin-top: 8px;
  font: 400 0.85rem/1.4 var(--font-sans);
  color: var(--error);
}
.field.has-error .input,
.field.has-error .stepper,
.field.has-error .choice__box { border-color: var(--error); }

.form-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FBEDEA;
  font: 400 0.9rem/1.45 var(--font-sans);
  color: var(--error);
}

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

/* Nachfrage bei möglicher Doppel-Antwort */
.dup {
  margin-top: 26px;
  text-align: center;
}
.dup:focus { outline: none; }
.dup__title {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2.3rem;
  line-height: 1.2;
}
.dup__text {
  max-width: 32ch;
  margin: 10px auto 0;
  color: var(--ink-soft);
}
.dup__list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.dup__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #FFF;
}
.dup__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-sans);
}
.dup__info strong { font-size: 1.02rem; font-weight: 500; overflow-wrap: anywhere; }
.dup__info small {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dup__item .btn { flex: 1 1 auto; }
.dup__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

/* Danke-Ansicht */
.thanks {
  margin-top: 18px;
  text-align: center;
}
.thanks:focus { outline: none; }
.thanks__icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 6px;
  color: var(--gold);
  fill: rgba(196, 164, 115, 0.3);
}
.thanks__title {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2.8rem;
  line-height: 1.2;
}
.thanks__text {
  max-width: 32ch;
  margin: 10px auto 0;
  font-size: 1.25rem;
}
.thanks__summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  margin: 26px 0 0;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #FFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-align: left;
}
.thanks__summary dt {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 3px;
}
.thanks__summary dd { margin: 0; overflow-wrap: anywhere; }
.thanks__note {
  max-width: 34ch;
  margin: 18px auto 0;
  font: 400 0.88rem/1.5 var(--font-sans);
  color: var(--ink-soft);
}
.thanks__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

/* ---------- Fußbereich ---------- */

.footer {
  padding: 64px 20px max(56px, env(safe-area-inset-bottom));
  text-align: center;
}
.footer__names {
  margin-top: 22px;
  font-family: var(--font-script);
  font-size: 2.4rem;
  line-height: 1.2;
}
.footer__names em { font-style: normal; color: var(--gold-2); }
.footer__date {
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
}
.footer__text {
  margin-top: 18px;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Größere Bildschirme ---------- */

@media (min-width: 720px) {
  body { font-size: 1.2rem; }
  .arch { width: 460px; padding: 92px 32px 48px; }
  .rsvp-card { padding: 56px 44px 40px; }
  .event-card { padding: 40px 36px 34px; }
  .event-meta { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Weniger Bewegung ---------- */

/* Wer auf dem Gerät "Bewegung reduzieren" eingestellt hat (auch Windows ohne
   Animationseffekte): keine Dauer- und Scroll-Bewegungen. Das Öffnen des
   Umschlags läuft trotzdem, weil der Gast es selbst antippt. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .envelope,
  .seal,
  .intro__hint,
  .scroll-hint span { animation: none !important; }
  .js .reveal,
  .js .hero .anim { transform: none !important; }
}
