:root {
  color-scheme: light;
  --ink: #26211d;
  --muted: #756d64;
  --paper: #fffaf4;
  --surface: #f6eee4;
  --surface-strong: #ead7c5;
  --line: rgba(38, 33, 29, 0.14);
  --accent: #80613f;
  --accent-dark: #563f2a;
  --sage: #6d7b62;
  --rose: #b97972;
  --blue: #637b91;
  --shadow: 0 24px 60px rgba(63, 46, 31, 0.12);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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;
}

.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: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 244, 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(255, 250, 244, 0.94);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  font-family: var(--serif);
  font-size: 18px;
  text-decoration: none;
  background: rgba(255, 250, 244, 0.74);
}

.brand span {
  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: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(128, 97, 63, 0.1);
  color: var(--accent-dark);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.85);
  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 {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 620px);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  padding: 120px clamp(18px, 5vw, 72px) 64px;
  overflow: hidden;
  background: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 244, 0.02), rgba(255, 250, 244, 0.08) 45%, rgba(255, 250, 244, 0.48) 78%, rgba(255, 250, 244, 0.72)),
    url("assets/schloss-steinhoefel-hero-bg.png") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0), var(--paper));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 2;
  justify-self: end;
  max-width: 620px;
  padding: clamp(22px, 4vw, 44px);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.58), rgba(255, 250, 244, 0.24));
  backdrop-filter: blur(2px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(72px, 11vw, 144px);
  font-weight: 400;
  line-height: 0.86;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 400;
  line-height: 0.98;
}

h3 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.25;
}

.hero-date {
  margin-bottom: 22px;
  color: var(--accent-dark);
  font-size: clamp(22px, 3vw, 34px);
  font-family: var(--serif);
}

.hero-text {
  max-width: 520px;
  color: #4c433a;
  font-size: 18px;
}

.hero-actions,
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

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

.button.primary {
  background: var(--accent-dark);
  color: #fffaf4;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #3f2e20;
}

.button.ghost {
  background: rgba(255, 250, 244, 0.68);
  border-color: var(--line);
  color: var(--accent-dark);
}

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

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(86, 63, 42, 0.18);
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.52);
  transform: translateX(-50%);
  color: var(--accent-dark);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, background 180ms ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  background: rgba(255, 250, 244, 0.82);
  outline: none;
  transform: translateX(-50%) translateY(2px);
}

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

.intro-grid,
.location-section,
.rsvp-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-grid {
  grid-template-columns: 1fr;
  max-width: 760px;
  gap: 16px;
}

.intro-section > .section-kicker {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

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

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

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

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

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

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

.timeline-item time {
  color: var(--rose);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

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

.location-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.travel-section {
  background: #fbf5ed;
}

.travel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.map-embed {
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background: #f1e7dc;
  box-shadow: var(--shadow);
}

.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 430px;
  height: 100%;
  border: 0;
  filter: saturate(0.82) sepia(0.08);
}

.travel-cards {
  display: grid;
  gap: 16px;
}

.travel-card,
.detail-card {
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.78);
}

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

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

.detail-card {
  min-height: 220px;
}

.rsvp-section {
  display: block;
}

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

.rsvp-copy {
  max-width: 860px;
  margin-bottom: 34px;
}

.code-panel {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.82);
}

.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: 24px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.rsvp-form > label,
.rsvp-form > .button,
.rsvp-form > .form-note,
.rsvp-form > .form-status {
  grid-column: 1 / -1;
}

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

.form-status[data-type="success"] {
  border-color: rgba(109, 123, 98, 0.36);
  background: rgba(109, 123, 98, 0.13);
  color: #425039;
}

.form-status[data-type="error"],
.form-note[data-type="error"] {
  border-color: rgba(185, 121, 114, 0.36);
  color: #7d3d38;
}

.form-status[data-type="error"] {
  background: rgba(185, 121, 114, 0.12);
}

fieldset {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 238, 228, 0.46);
}

legend {
  padding: 0 8px;
  margin-left: -8px;
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
}

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

.guest-card {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(280px, 1.35fr) minmax(190px, 1fr);
  align-items: end;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.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-placeholder {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(128, 97, 63, 0.35);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.7);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.linked-room-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(109, 123, 98, 0.28);
  border-radius: 8px;
  background: rgba(109, 123, 98, 0.1);
}

.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);
}

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

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

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

.room-guest-field {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.7);
}

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

.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: #425039;
}

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

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

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

input:not([type="checkbox"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  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(--accent);
  outline: 3px solid rgba(128, 97, 63, 0.16);
}

input:disabled,
select:disabled,
textarea:disabled {
  color: rgba(38, 33, 29, 0.48);
  background: rgba(239, 224, 208, 0.4);
}

input[readonly] {
  color: var(--ink);
  background: rgba(239, 224, 208, 0.35);
}

.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: 8px;
  background: var(--surface);
}

.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;
}

.booking-review {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(109, 123, 98, 0.28);
  border-radius: 8px;
  background: rgba(109, 123, 98, 0.1);
}

.booking-review[data-type="none"] {
  border-color: var(--line);
  background: rgba(246, 238, 228, 0.5);
}

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

.booking-review strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 18px;
}

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

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

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

summary {
  cursor: pointer;
  padding: 24px 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

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

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  padding: 36px clamp(18px, 5vw, 72px);
  background: var(--accent-dark);
}

.footer-main,
.footer-legal {
  display: grid;
  gap: 8px;
}

.footer-legal {
  justify-items: end;
  color: rgba(255, 250, 244, 0.82);
  font-style: normal;
  text-align: right;
}

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

.footer-legal strong {
  color: #fffaf4;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

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

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

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

@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: rgba(255, 250, 244, 0.97);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav a {
    font-size: 26px;
    font-family: var(--serif);
    font-weight: 400;
  }

  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;
    grid-template-columns: 1fr;
    padding-top: 104px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 250, 244, 0.68), rgba(255, 250, 244, 0.38)),
      url("assets/schloss-steinhoefel-hero-bg.png") 34% center / cover;
  }

  .hero-copy {
    grid-column: 1;
    justify-self: stretch;
    background: linear-gradient(135deg, rgba(255, 250, 244, 0.68), rgba(255, 250, 244, 0.3));
  }

  .intro-grid,
  .location-section,
  .detail-grid,
  .travel-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;
  }
}

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

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

  .button {
    width: 100%;
  }

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