@import url("https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&display=swap");

@font-face {
  font-family: "Saphira";
  src: url("fonts/Saphira_DEMO.otf") format("opentype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "August Script";
  src: url("fonts/August_Script_Bold_Free.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper:          #FBFAFE;
  --paper-2:        #F5F3FC;
  --paper-warm:     #F5F3FC;
  --surface:        #ECEAF8;
  --surface-strong: #DCD8F2;
  --bg:             #ECEAF8;

  --ink:            #2B2940;
  --muted:          #6B6883;
  --line:           rgba(43, 41, 64, 0.12);

  --ink-rgb:            43, 41, 64;
  --paper-rgb:          251, 250, 254;
  --paper-2-rgb:        245, 243, 252;
  --surface-rgb:        236, 234, 248;
  --surface-strong-rgb: 220, 216, 242;

  --lavender:        #ABA8E2;
  --lavender-rgb:    171, 168, 226;
  --lavender-soft:   #C4C2EC;
  --lavender-deep:   #7C77C8;
  --lavender-deep-rgb: 124, 119, 200;
  --lavender-ink:    #443F86;
  --lavender-ink-rgb:  68, 63, 134;

  --accent:          #ABA8E2;
  --accent-strong:   #7C77C8;
  --accent-dark:     #443F86;

  --butter:          #EFE5A0;
  --butter-rgb:      239, 229, 160;
  --butter-soft:     #F5EEC0;
  --butter-deep:     #D9C868;
  --butter-deep-rgb: 217, 200, 104;

  --tint-lavender:      rgba(var(--lavender-rgb), 0.18);
  --tint-lavender-soft: rgba(var(--lavender-rgb), 0.10);
  --tint-violet:        rgba(var(--lavender-deep-rgb), 0.14);
  --tint-butter:        rgba(var(--butter-rgb), 0.30);
  --tint-butter-soft:   rgba(var(--butter-rgb), 0.16);

  /* Legacy aliases remapped onto new palette */
  --sage:        #ABA8E2;
  --sage-rgb:    171, 168, 226;
  --yellow:      #EFE5A0;
  --rose:        #C4C2EC;
  --rose-rgb:    196, 194, 236;
  --apricot:     #D9C868;
  --apricot-rgb: 217, 200, 104;
  --orange:      #7C77C8;
  --violet:      #443F86;
  --violet-rgb:  68, 63, 134;
  --blue:        #ABA8E2;
  --pop-yellow:  #D9C868;
  --pop-orange:  #7C77C8;
  --pop-violet:  #443F86;
  --pop-blue:    #ABA8E2;
  --pop-rose:    #C4C2EC;

  --shadow:         0 28px 64px rgba(43, 41, 64, 0.10);
  --shadow-card:    0 16px 36px rgba(43, 41, 64, 0.07);
  --shadow-soft:    0 18px 40px rgba(43, 41, 64, 0.06);
  --shadow-popover: 0 18px 38px rgba(43, 41, 64, 0.14);

  --serif:   "Saphira", Georgia, "Times New Roman", serif;
  --display: "Saphira", Georgia, "Times New Roman", serif;
  --sans:    "Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script:  "August Script", Georgia, cursive;
  --hero-script: "August Script", Georgia, cursive;

  --radius-card:  0px;
  --radius-small: 0px;
  --radius-pill:  999px;

  --brand-wash: linear-gradient(105deg, rgba(var(--butter-rgb), 0.22), rgba(var(--lavender-rgb), 0.20));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

main,
section,
header,
footer,
form,
fieldset,
.hero-copy,
.rsvp-inner {
  min-width: 0;
}

img,
svg,
iframe {
  max-width: 100%;
}

#einladung,
#ablauf,
#ort,
#anreise,
#rsvp,
#faq {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

/* ------------------------------------------------------------------ */
/* Header / Nav                                                        */
/* ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(14px, 2.5vw, 32px);
  background: rgba(var(--paper-rgb), 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(var(--paper-rgb), 0.94);
  border-color: var(--line);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 2px 4px;
  color: var(--lavender-deep);
  font-family: var(--hero-script);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1;
  max-width: min(480px, calc(100vw - 120px));
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  display: block;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--tint-lavender);
  color: var(--lavender-ink);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 13px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 132px clamp(20px, 5vw, 76px) 72px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 20%, var(--tint-butter-soft), transparent 60%),
    var(--lavender);
}

.hero::before,
.hero::after {
  content: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: center;
  padding: 0;
}

.hero-copy::before {
  content: none;
}

.hero-kicker {
  position: relative;
  display: block;
  margin: 0 0 clamp(8px, 1vw, 14px);
  padding: 0;
  color: var(--lavender-ink);
  font-family: var(--display);
  font-size: clamp(56px, 8.4vw, 116px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.hero-kicker::before,
.hero-kicker::after {
  content: none;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  color: var(--lavender-deep);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: clamp(14px, 2vw, 24px);
  font-family: var(--display);
  font-size: clamp(64px, 8.4vw, 116px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h1 span:last-child {
  transform: none;
}

.hero-copy h1 {
  font-family: var(--script);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--butter);
  margin-bottom: clamp(14px, 2vw, 22px);
  white-space: nowrap;
}

.hero-copy h1 span {
  display: inline;
}

h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--lavender-ink);
}

h3 {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.22;
  color: var(--lavender-ink);
}

.hero-date {
  margin-bottom: 0;
  margin-top: clamp(14px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--sans);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-location {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions,
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 34px);
}

.hero-copy .hero-actions {
  justify-content: center;
}

/* Ghost button on lavender hero background — matches "Code öffnen" style */
.hero-actions .button.ghost {
  background: rgba(255, 255, 255, 0.85);
  border-color: transparent;
  color: var(--lavender-ink);
}

.hero-actions .button.ghost:hover,
.hero-actions .button.ghost:focus-visible {
  background: rgba(255, 255, 255, 1);
  border-color: transparent;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 26px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button.large {
  min-height: 52px;
  padding: 15px 38px;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 14px 28px rgba(43, 41, 64, 0.16);
}

.button:disabled,
.button:disabled:hover {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.button.primary {
  background: var(--lavender-ink);
  color: #FFFFFF;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--lavender-deep);
}

.button.ghost {
  background: rgba(var(--lavender-rgb), 0.14);
  border-color: transparent;
  color: var(--lavender-ink);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  background: rgba(var(--lavender-rgb), 0.24);
  border-color: transparent;
}

.inline-action {
  width: fit-content;
}

/* ------------------------------------------------------------------ */
/* Scroll cue                                                          */
/* ------------------------------------------------------------------ */

@keyframes cue-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  55% { transform: translateX(-50%) translateY(7px); }
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--butter);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  animation: cue-bob 3s ease-in-out 1.2s infinite;
  transition: color 180ms ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: #FFFFFF;
  outline: none;
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.section {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 880px;
  margin: 0 auto 44px;
  text-align: center;
}

/* Section background rhythm */
.timeline-section,
.faq-section {
  background: var(--surface);
}

.details-section {
  background: var(--surface);
}

.rsvp-section {
  background: var(--paper-2);
}

/* ------------------------------------------------------------------ */
/* Invitation letter                                                   */
/* ------------------------------------------------------------------ */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 590px;
  margin: 0 auto;
  gap: 16px;
}

.intro-copy {
  text-align: left;
}

.intro-copy [data-invitation-copy] {
  line-height: 1.82;
  text-wrap: pretty;
}

.intro-copy,
.location-copy p,
.rsvp-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.signature {
  margin: 48px 0 0;
  font-family: var(--script);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--lavender-deep);
  text-align: left;
}

/* ------------------------------------------------------------------ */
/* Timeline                                                            */
/* ------------------------------------------------------------------ */

.timeline {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--lavender-deep);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}

.timeline-item p,
.travel-card p,
.detail-card p,
.faq-list p,
.site-footer p {
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Location + Travel (merged section)                                  */
/* ------------------------------------------------------------------ */

.nav-anchor {
  display: block;
  position: relative;
  top: -88px;
  visibility: hidden;
  pointer-events: none;
}

.location-travel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left column: cards in natural height */
.travel-cards {
  display: grid;
  gap: 16px;
}

/* Right column: photo in natural aspect ratio */
.location-visual {
  background: #FFFFFF;
  padding: 12px 12px 40px;
  box-shadow: 0 12px 40px rgba(43, 41, 64, 0.14);
  border-radius: 0;
}

.location-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.95) contrast(0.98);
}

/* Travel card with button */
.travel-card .location-actions {
  margin-top: 20px;
}

.travel-card,
.detail-card {
  position: relative;
  padding: 28px;
  border-radius: 0;
  border: none;
  background: #FFFFFF;
  box-shadow: 0 8px 28px rgba(43, 41, 64, 0.12);
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.travel-card:hover,
.detail-card:hover {
  box-shadow: 0 14px 40px rgba(43, 41, 64, 0.15);
  transform: translateY(-2px);
}

.travel-card p,
.detail-card p {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* Detail cards (Gut zu wissen)                                        */
/* ------------------------------------------------------------------ */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.detail-card {
  min-height: 0;
}

/* ------------------------------------------------------------------ */
/* RSVP form                                                           */
/* ------------------------------------------------------------------ */

.rsvp-section {
  display: block;
}

.rsvp-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.rsvp-copy {
  max-width: 560px;
  margin: 0 auto 0;
  text-align: center;
}

.code-panel {
  margin-top: 0;
  padding: clamp(18px, 3vw, 24px);
  border: none;
  border-radius: 0;
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(43, 41, 64, 0.10);
  text-align: left;
}

.code-form {
  display: grid;
  gap: 12px;
}

.code-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.code-input-row .button {
  min-width: 136px;
  white-space: nowrap;
}

.rsvp-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.form-status {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.form-status[data-type="success"] {
  border-color: rgba(var(--lavender-deep-rgb), 0.40);
  background: rgba(var(--lavender-rgb), 0.18);
  color: var(--lavender-ink);
}

.form-status[data-type="error"],
.form-note[data-type="error"] {
  border-color: rgba(196, 122, 122, 0.42);
  color: #8A4A55;
}

.form-status[data-type="error"] {
  background: rgba(196, 122, 122, 0.16);
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: clamp(20px, 3vw, 28px);
  border: none;
  background: #FFFFFF;
  box-shadow: 0 8px 28px rgba(43, 41, 64, 0.10);
}

legend {
  display: none;
}

.fieldset-heading {
  margin: 0 0 4px;
  color: var(--lavender-ink);
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.22;
}

/* Nächte + Zimmergröße nebeneinander */
.room-size-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Aufklappbare Felder */
.field-collapsible {
  border: none;
  padding: 0;
  margin: 0;
}

.field-collapsible summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  user-select: none;
}

.field-collapsible summary::-webkit-details-marker { display: none; }

.field-collapsible summary::before {
  content: "+";
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tint-lavender);
  color: var(--lavender-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.field-collapsible[open] summary::before {
  content: "−";
}

.field-collapsible input,
.field-collapsible textarea {
  margin-top: 8px;
}

.guest-list {
  display: grid;
  gap: 14px;
}

.plus-one-toggle {
  margin-top: 16px;
}

.guest-card {
  display: grid;
  grid-template-columns: minmax(90px, 0.4fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: start;
  gap: 12px;
  padding: 14px 4px;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.guest-card:last-child {
  border-bottom: none;
}

.guest-name-fixed {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 13px 0;
}

.guest-name-fixed span {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.guest-name-fixed strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.field-label {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.room-guests-block {
  display: grid;
  gap: 10px;
}

.room-request-panel {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--lavender-rgb), 0.32);
  border-radius: 0;
  background: rgba(var(--lavender-rgb), 0.12);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.room-request-panel[hidden] {
  display: none;
}

.room-request-panel p {
  margin: 0;
}

.room-request-label {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.room-placeholder {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 18px;
  border: none;
  border-radius: 0;
  background: var(--tint-lavender);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.room-placeholder strong {
  color: var(--accent-dark);
  font-size: 18px;
}

.room-placeholder p {
  margin: 0;
}

.planned-by-fields {
  display: grid;
  gap: 10px;
}

.linked-room-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(var(--lavender-rgb), 0.32);
  border-radius: 0;
  background: rgba(var(--lavender-rgb), 0.12);
}

.linked-room-panel[hidden] {
  display: none;
}

.linked-room-panel strong {
  color: var(--accent-dark);
  font-size: 18px;
}

.linked-room-panel p {
  margin: 0;
  color: var(--muted);
}

.button.small {
  min-height: 32px;
  padding: 5px 14px;
  font-size: 11px;
}

.room-booking-fields {
  display: grid;
  gap: 16px;
}

.room-booking-fields[hidden] {
  display: none;
}

.room-entries-list {
  display: grid;
  gap: 20px;
}

.room-entry {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(var(--lavender-rgb), 0.3);
  border-radius: 10px;
  background: rgba(var(--lavender-rgb), 0.04);
}

.room-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.room-entry-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lavender-ink);
}

.room-guests-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.room-guest-field {
  padding: 14px;
  border: none;
  border-radius: 0;
  background: var(--tint-lavender);
}

.room-guest-field.is-fixed {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 78px;
}

.room-guest-field.is-suggested {
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
}

.room-guest-field.is-suggested .room-guest-label,
.room-guest-field.is-suggested strong {
  grid-column: 1;
}

.room-guest-remove {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  border: none;
  border-radius: 999px;
  background: rgba(var(--lavender-rgb), 0.14);
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  white-space: nowrap;
}

.room-guest-remove:hover {
  border-color: rgba(var(--lavender-rgb), 0.42);
  background: rgba(var(--surface-rgb), 0.76);
}

.room-guest-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.room-guest-field strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.room-guest-validation {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.room-guest-validation[data-type="valid"] {
  color: var(--lavender-ink);
}

.room-guest-validation[data-type="suggestion"],
.room-guest-validation[data-type="error"] {
  color: #8A4A55;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
}

.room-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Info popover */
.info-popover {
  position: relative;
  flex: 0 0 auto;
}

.info-popover summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(var(--lavender-deep-rgb), 0.32);
  border-radius: 999px;
  background: rgba(var(--paper-rgb), 0.84);
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  list-style: none;
  white-space: nowrap;
}

.info-popover summary::-webkit-details-marker {
  display: none;
}

.info-popover summary::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(var(--lavender-deep-rgb), 0.42);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
}

.info-popover[open] summary {
  border-color: rgba(var(--lavender-deep-rgb), 0.42);
  background: var(--paper);
}

.info-popover ul {
  position: absolute;
  z-index: 4;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 8px;
  width: min(390px, 72vw);
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  list-style: none;
}

.info-popover li {
  position: relative;
  padding-left: 18px;
}

.info-popover li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--lavender-deep);
}

/* Form inputs */
input:not([type="checkbox"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

input:not([type="checkbox"]):not([type="hidden"]),
select {
  height: 52px;
  line-height: 1.2;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-dark) 50%),
    linear-gradient(135deg, var(--accent-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 50%,
    calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  background-size: 7px 7px, 7px 7px;
  padding-right: 42px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--lavender);
  outline: 3px solid rgba(var(--lavender-rgb), 0.18);
}

input:disabled,
select:disabled,
textarea:disabled {
  color: rgba(43, 41, 64, 0.48);
  background: rgba(var(--surface-strong-rgb), 0.42);
}

input[readonly] {
  color: var(--ink);
  background: rgba(var(--surface-strong-rgb), 0.34);
}

/* Room summary tiles */
.room-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.room-summary div {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border-radius: 0;
  background: var(--tint-lavender);
}

.room-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.room-summary strong {
  color: var(--ink);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.1;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

[data-privacy-note] {
  max-width: 80ch;
  margin-top: 16px;
}

.booking-review {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: none;
  border-radius: 0;
  background: var(--tint-lavender);
}

.room-overview-head {
  display: grid;
  gap: 6px;
}

.booking-review-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.room-overview-head > strong {
  display: block;
  color: var(--accent-dark);
  font-size: 18px;
}

.booking-review p {
  margin: 0;
  color: var(--muted);
}

.room-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.room-detail {
  display: grid;
  gap: 4px;
  min-height: 76px;
  align-content: center;
  padding: 14px;
  border: none;
  border-radius: 0;
  background: var(--tint-lavender);
}

.room-detail.is-wide {
  grid-column: 1 / -1;
}

.room-detail span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.room-detail strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.room-detail-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.room-detail-meta em {
  color: var(--lavender-ink);
  font-style: normal;
}

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  padding: 24px 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 180ms ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::marker {
  content: none;
}

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--lavender);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease, color 260ms ease;
}

.faq-list summary:hover,
.faq-list summary:focus-visible {
  color: var(--accent-dark);
  outline: none;
}

.faq-list summary:hover::after,
.faq-list summary:focus-visible::after {
  background: rgba(var(--lavender-rgb), 0.1);
  border-color: rgba(var(--lavender-rgb), 0.42);
  transform: rotate(8deg);
}

.faq-list details[open] > summary::after {
  transform: rotate(45deg);
  border-color: rgba(var(--lavender-rgb), 0.42);
}

.faq-list details p {
  max-width: 70ch;
  margin-bottom: 24px;
}

/* ------------------------------------------------------------------ */
/* Bis bald                                                            */
/* ------------------------------------------------------------------ */

.bisbald-section {
  background: var(--paper);
}

.bisbald-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  gap: 20px;
}

.bisbald-kicker {
  margin: 0;
  color: var(--lavender-ink);
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 0;
  text-transform: none;
}

.bisbald-script {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--lavender-deep);
}

.bisbald-portrait {
  width: min(480px, 100%);
  margin: 8px 0;
  background: #FFFFFF;
  padding: 12px 12px 40px;
  box-shadow: 0 12px 40px rgba(43, 41, 64, 0.14);
  border-radius: 0;
}

.bisbald-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.bisbald-closing {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  padding: 56px clamp(20px, 5vw, 76px);
  background: var(--lavender-ink);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--butter);
  opacity: 0.5;
}

.footer-main,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-main {
  align-items: flex-start;
}

.footer-legal {
  align-items: flex-end;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  text-align: right;
  line-height: 1.5;
}

.footer-legal strong,
.footer-legal span,
.footer-legal a {
  display: block;
  white-space: nowrap;
}

.footer-legal strong {
  color: #FFFFFF;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  font-weight: 500;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #FFFFFF;
  outline: none;
}

.site-footer .footer-brand {
  min-height: 42px;
  padding: 0;
  color: var(--butter);
  font-size: clamp(28px, 2.2vw, 34px);
  font-weight: 400;
}

/* ------------------------------------------------------------------ */
/* Reveal animation                                                    */
/* ------------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .travel-card:hover,
  .detail-card:hover,
  .button:hover,
  .button:focus-visible {
    transform: none;
  }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 940px) {
  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding-inline: 10px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 22;
  }

  .site-nav {
    position: fixed;
    z-index: 21;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav a {
    font-size: 13px;
    font-family: var(--sans);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 14px 20px;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding-top: 116px;
  }

  .intro-grid,
  .location-travel-grid,
  .detail-grid,
  .rsvp-form {
    grid-template-columns: 1fr;
  }

  .guest-card {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    justify-items: start;
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .hero-actions,
  .location-actions,
  .form-grid.two,
  .room-guests-list,
  .code-input-row,
  .room-detail-grid,
  .room-summary {
    grid-template-columns: 1fr;
  }

  .room-option-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .info-popover {
    width: 100%;
  }

  .info-popover summary {
    width: fit-content;
  }

  .info-popover ul {
    left: 0;
    right: auto;
    width: min(100%, 390px);
  }

  .hero-actions,
  .location-actions {
    display: grid;
  }

  h1 {
    font-size: clamp(54px, 15vw, 68px);
    line-height: 0.9;
  }

  .button {
    width: 100%;
  }

  .map-embed,
  .map-embed iframe {
    min-height: 360px;
  }
}
