@font-face { font-family: 'Jost'; font-weight: 300; font-style: normal; font-display: swap; src: url('/fonts/jost-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/jost-latin-400-normal.woff2') format('woff2'); }

:root {
  --paper: #F2F2EF;
  --ink: #1B1B1B;
  --sage: #566E5C;
  --line: #A3B3A6;
  --tint: #E5EBE6;
  --gold: #D4B25C;
  --gold-ink: #A38428; /* Gold der Schriftzüge */
  --w: min(86vw, 460px); /* Breite der Save-the-Date-Karte (goldener Rahmen) */
}

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* iOS Safari: gedrehte Raute nicht in die Seitenbreite einrechnen, kein seitliches Ziehen */
html, body { overflow-x: clip; }
html { overscroll-behavior-x: none; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Jost', system-ui, sans-serif; font-weight: 300; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font-size: 11px; font-weight: 400; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--sage); }
.section-title { margin-top: 4px; line-height: 0; }
.section-title img { height: clamp(60px, 9vw, 76px); width: auto; }
.center { text-align: center; }
.lead { margin-top: 8px; font-size: 18px; line-height: 1.6; }

.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 40px; border: 1px solid var(--sage); background: transparent; color: var(--ink); font: 400 13px/1 'Jost', sans-serif; letter-spacing: .32em; text-transform: uppercase; cursor: pointer; }
.cta:hover { background: var(--sage); color: #fff; }
.cta:disabled { opacity: .5; cursor: not-allowed; }

/* Header: liegt oben über dem Hero, Menü rechts, scrollt mit der Seite weg (nicht fixiert) */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 8px max(32px, calc((100% - 1136px) / 2)); display: flex; align-items: center; justify-content: flex-end; }
.site-menu { position: relative; display: flex; align-items: center; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.site-nav a:last-child { margin-right: -.3em; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; }
.site-nav a:hover { color: var(--sage); }

/* Hamburger (nur mobil sichtbar), nach wichtelzettel.ch: gestaffelte Striche in Gold, ohne Rahmen, schwebendes Menü.
   Striche rechtsbündig, die 44px-Tippfläche ragt unsichtbar nach links. */
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; touch-action: manipulation; /* kein Zoom bei Doppeltipp */ }
.nav-toggle span { display: block; height: 2px; background: var(--gold-ink); }
.nav-toggle span:nth-child(1) { width: 22px; }
.nav-toggle span:nth-child(2) { width: 14px; }
.nav-toggle span:nth-child(3) { width: 18px; }
.nav-toggle[aria-expanded="true"] span { width: 22px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (hover: hover) { .nav-toggle[aria-expanded="false"]:hover span { width: 22px; } }
@media (prefers-reduced-motion: no-preference) { .nav-toggle span { transition: transform .25s ease, opacity .2s ease, width .25s ease; } }

/* Dekor */
.rose { position: absolute; height: auto; pointer-events: none; }

/* Sections */
.section { padding: 48px 24px; }
.narrow { max-width: 640px; margin: 0 auto; }

/* Bereich 1: Save-the-Date-Karte und Infos */
/* Oben: Rautenspitze ragt .294 * Kartenbreite über die Karte, plus 20px Rand */
.hero { position: relative; overflow: hidden; padding: calc(var(--w) * .294 + 20px) 0 40px; }
.hero-card { position: relative; width: var(--w); aspect-ratio: 1030 / 1050; margin: 0 auto; }
.diamond { position: absolute; left: 50%; top: 50%; width: 113.6%; aspect-ratio: 1; background: #fff; transform: translate(-50%, -50%) rotate(45deg); }
.frame { position: absolute; inset: 0; border: 1px solid var(--gold); }
.rose-tr { left: 49%; top: -24%; width: 68%; }
.hero-text { position: absolute; inset: 0; container-type: inline-size; }
.hero-text .kicker, .hero-text .date { position: absolute; left: 0; width: 100%; transform: translateY(-50%); text-align: center; font-size: max(10px, 3.2cqw); letter-spacing: .42em; text-indent: .42em; }
.hero-text .kicker { top: 29%; }
.hero-text .date { top: 69%; }
.hero-text h1 { position: absolute; left: 0; top: 50.5%; width: 100%; transform: translateY(-50%); text-align: center; line-height: 0; }
.hero-text h1 img { width: 66cqw; height: auto; }
.hero-meta { position: relative; z-index: 1; margin-top: calc(var(--w) * .3 + 40px); padding: 0 24px; display: flex; flex-direction: column; align-items: center; gap: 44px; text-align: center; }
.place-name { font-size: clamp(18px, 5vw, 22px); letter-spacing: .3em; text-indent: .3em; }
.place-addr { margin-top: 8px; font-size: 15px; letter-spacing: .1em; text-indent: .1em; }
.sep { font-size: 1.3em; line-height: 0; vertical-align: -.05em; }
.day { text-align: left; }
.day-title { text-align: center; line-height: 0; }
.day-title img { height: clamp(52px, 7vw, 64px); width: auto; }
.day-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.day-list li { display: flex; align-items: center; gap: 24px; }
.icon { flex: none; width: 52px; height: 52px; fill: none; stroke: var(--sage); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.day-time { font-size: 15px; font-weight: 400; letter-spacing: .12em; color: var(--sage); }
.day-what { margin-top: 2px; font-size: 20px; line-height: 1.35; }
.info-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 48px; max-width: 760px; }
.info-item { flex: 0 1 280px; }
.info-item p { margin-top: 6px; font-size: 18px; line-height: 1.4; }
.info-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 400; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--sage); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line); }
.info-link:hover { text-decoration-color: var(--sage); }
.mail { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); overflow-wrap: anywhere; }
.mail:hover { text-decoration-color: var(--sage); }

/* Anmeldung */
.rsvp-section { position: relative; overflow: hidden; padding-top: 0; padding-bottom: 96px; }
.form-wrap { position: relative; max-width: 680px; margin: 44px auto 0; }
.form-bg { position: absolute; inset: 0; background: #fff; border: 1px solid var(--gold); }
.form-rose-bl { left: -14%; bottom: -90px; width: 26%; transform: scaleX(-1); }
.rsvp-form { position: relative; padding: 72px 40px 64px; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; flex-wrap: wrap; gap: 24px; }
.field-row .field { flex: 1 1 140px; }
.field label { font-size: 11px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--sage); }
.field input { min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font: 300 18px 'Jost', sans-serif; }
.field input:focus { outline: 2px solid var(--sage); outline-offset: 2px; }
.choice { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 4px 32px; }
.radio, .check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 18px; }
.radio input, .check input { width: 20px; height: 20px; margin: 0; accent-color: var(--sage); }
.guests { display: flex; flex-direction: column; gap: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; font-size: 16px; line-height: 1.5; color: #8A2B2B; }
.rsvp-form .cta { align-self: center; }
.rsvp-done { position: relative; padding: 56px 40px; text-align: center; }
.rsvp-done h3 { line-height: 0; }
.rsvp-done h3 img { height: 72px; width: auto; }
.rsvp-done p { margin-top: 10px; font-size: 20px; line-height: 1.6; }

/* Fusszeile und Rechtliches */
.site-footer { padding: 0 24px 24px; text-align: center; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 11px; letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; color: #8C8C86; }
.site-footer a:hover { color: var(--sage); }
.legal { max-width: 680px; margin: 0 auto; padding: 48px 24px 72px; }
.legal .back { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--sage); }
.legal h1 { margin-top: 24px; font-size: 22px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; }
.legal h2 { margin-top: 32px; font-size: 12px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--sage); }
.legal p, .legal li { font-size: 17px; line-height: 1.6; }
.legal p { margin-top: 8px; }
.legal ul { margin: 8px 0 0; padding-left: 20px; }
.legal a:not(.back) { text-decoration: underline; text-underline-offset: 3px; }

/* Formular-Rose schmal: kleiner und an die Ecke, damit sie keinen Text überdeckt */
@media (max-width: 640px) {
  .form-rose { width: 130px; }
  .form-rose-bl { left: -14px; bottom: -84px; }
}

@media (max-width: 560px) and (prefers-reduced-motion: no-preference) {
  .site-nav { transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .site-header.is-open .site-nav { transition-delay: 0s; }
}

@media (max-width: 560px) {
  /* Mobil: Hamburger, Menü schwebt als Karte unter dem Button */
  /* Striche rechts bündig mit dem goldenen Rahmen, oberster Strich auf Höhe der Rautenspitze (6px + 14px = 20px) */
  .site-header { padding: 6px calc((100% - var(--w)) / 2); }
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; flex-direction: column; flex-wrap: nowrap; gap: 0; min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--gold); box-shadow: 0 18px 34px rgba(27, 27, 27, .12); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px) scale(.98); transform-origin: 100% 0; }
  .site-header.is-open .site-nav { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .site-nav a, .site-nav a:last-child { min-height: 52px; margin-right: 0; padding: 0 16px; font-size: 13px; letter-spacing: .25em; }
  .site-nav a:hover { background: var(--tint); color: var(--ink); }
  .rose-tr { left: 38%; }
  .form-wrap { margin-top: 32px; }
  .rsvp-form { padding: 28px 24px; gap: 16px; }
  .status:empty { display: none; }
  .rsvp-form .cta { margin-top: 8px; }
  .rsvp-done { padding: 40px 24px; }
}
