:root {
  --paper: #ffffff;
  --soft: #f7f5f1;
  --soft-strong: #efebe5;
  --ink: #292725;
  --muted: #756f69;
  --gold: #d5b14b;
  --gold-dark: #b89537;
  --red: #b91836;
  --line: #e5e0d9;
  --shadow: 0 12px 34px rgba(45, 40, 35, 0.08);
  --shadow-small: 0 6px 18px rgba(45, 40, 35, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

address {
  margin-bottom: 1rem;
  font-style: normal;
  line-height: 1.7;
}

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

h1,
h2,
h3,
h4 {
  font-family: "Raleway", Arial, sans-serif;
  color: var(--ink);
}

h1 {
  font-weight: 300;
}

h2 {
  margin-bottom: 1.35rem;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: 0.035em;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
}

h4 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
}

/* =========================================
   NAVIGATION
   ========================================= */

.nav {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0.8rem clamp(1.2rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(229, 224, 217, 0.9);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  backdrop-filter: blur(9px);
}

.brand {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}

.nav-links a {
  padding: 0.3rem 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-dark);
}

.nav-rsvp {
  border-bottom: 1px solid var(--gold);
}

.nav-toggle {
  display: none;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================
   HERO / STARTSEITE
   ========================================= */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("hochzeitspaar.jpg") center 42% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(24, 20, 18, 0.68) 0%,
      rgba(24, 20, 18, 0.46) 34%,
      rgba(24, 20, 18, 0.18) 70%,
      rgba(24, 20, 18, 0.10) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.10) 0%,
      rgba(0, 0, 0, 0.01) 48%,
      rgba(0, 0, 0, 0.18) 100%
    );
}

.hero .nav {
  min-height: auto;
  border-bottom: 0;
  background: transparent;
  color: #ffffff;
  backdrop-filter: none;
}

.hero .brand,
.hero .nav-links a {
  color: #ffffff;
}

.hero .nav-links a:hover,
.hero .nav-links a:focus-visible {
  color: var(--gold);
}

.hero .nav-toggle {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(28, 24, 22, 0.18);
  color: #ffffff;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 4rem));
  margin-right: auto;
  margin-left: clamp(2rem, 7vw, 8rem);
  padding: 8rem 0 4rem;
  color: #ffffff;
  text-align: left;
}

.hero-eyebrow {
  margin: 0 0 1.5rem;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-names {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-family: "Raleway", Arial, sans-serif;
  font-size: clamp(4rem, 6.6vw, 7rem);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: 0.005em;
}

.hero-name-line {
  display: block;
}

.hero-ampersand {
  display: inline-block;
  margin-right: 0.08em;
  color: var(--gold);
  font-size: 0.72em;
  font-weight: 300;
  transform: translateY(-0.03em);
}

.hero-date {
  margin: 2.2rem 0 2rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* =========================================
   BUTTONS
   ========================================= */

.button {
  display: inline-block;
  padding: 0.92rem 1.55rem;
  border: 1px solid transparent;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.button-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #211f1c;
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--gold-dark);
  background: var(--paper);
  color: var(--gold-dark);
}

.hero .hero-button {
  border-color: var(--gold);
  background: var(--gold);
  color: #211f1c;
}

.hero .hero-button:hover,
.hero .hero-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #ffffff;
}

/* =========================================
   ALLGEMEINE BEREICHE
   ========================================= */

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 1.4rem;
}

.section-tinted {
  background: var(--soft);
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto clamp(2.6rem, 5vw, 4.2rem);
  text-align: center;
}

.intro {
  border-top: 1px solid var(--line);
}

.intro .narrow::before,
.section-heading::before,
.rsvp-layout > div:first-child::before {
  content: "♥";
  display: block;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 2.15rem;
  line-height: 1;
}

.intro p:last-child {
  font-size: 1.05rem;
}

.kicker,
.detail-label {
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  font-size: 0.93rem;
}

/* =========================================
   DETAILS
   ========================================= */

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.detail-card {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.detail-card h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
}

.detail-strong {
  font-weight: 500;
}

/* =========================================
   ABLAUF
   ========================================= */

#ablauf > .container > .kicker,
#ablauf > .container > h2 {
  text-align: center;
}

#ablauf > .container > h2 {
  margin-bottom: clamp(2.2rem, 5vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.timeline {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.4rem) clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.timeline-item {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.time {
  padding-top: 0.35rem;
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-item h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
}

.timeline-item p {
  max-width: 680px;
  margin-bottom: 0;
}

.timeline-address {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* =========================================
   WEITERE INFORMATIONEN
   ========================================= */

.info-stack {
  display: grid;
  gap: 1.6rem;
}

.info-card {
  padding: clamp(2rem, 4.5vw, 3.4rem);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.info-card > h3 {
  margin-bottom: 1.6rem;
}

.info-card-text {
  display: grid;
  grid-template-columns: minmax(210px, 0.55fr) minmax(0, 1.45fr);
  column-gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.info-card-text .detail-label {
  grid-column: 1;
}

.info-card-text h3 {
  grid-column: 1;
  margin-bottom: 0;
}

.info-card-text > p:not(.detail-label) {
  grid-column: 2;
}

.parking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.parking-card {
  padding: clamp(1.6rem, 3vw, 2.3rem);
  border: 1px solid var(--line);
  background: var(--soft);
}

.parking-card h4 {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.parking-card p:last-child {
  margin-bottom: 0;
}

.parking-location {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================
   FAQ
   ========================================= */

#faq h2 {
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

details {
  border-top: 1px solid var(--line);
  text-align: left;
}

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

summary {
  position: relative;
  padding: 1.35rem 2.2rem 1.35rem 0;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 1.15rem;
  right: 0;
  color: var(--gold-dark);
  font-size: 1.3rem;
  font-weight: 300;
}

details[open] summary::after {
  content: "–";
}

details p {
  padding-bottom: 1.2rem;
  color: var(--muted);
}

/* =========================================
   RÜCKMELDUNG
   ========================================= */

.rsvp {
  border-top: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
}

.rsvp-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.rsvp .muted {
  color: var(--muted);
}

.rsvp-form {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.7rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.rsvp-form label,
fieldset {
  display: grid;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 0.5rem;
}

.radio {
  grid-template-columns: auto 1fr;
  align-items: center;
  font-weight: 300 !important;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #d7d1c9;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-weight: 300;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(213, 177, 75, 0.22);
}

.form-status {
  min-height: 1.3em;
  margin-bottom: 0;
  color: #8f2436;
  font-size: 0.88rem;
}

/* =========================================
   FOOTER
   ========================================= */

footer {
  padding: 3rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  text-align: center;
}

.footer-heart {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-size: 2.35rem;
  line-height: 1;
}

.footer-main {
  margin-bottom: 1.6rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-contact {
  width: min(620px, 100%);
  margin: 0 auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.7;
}

.footer-contact p {
  margin-bottom: 0;
}

.footer-label {
  margin-bottom: 0.45rem !important;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-contact a {
  text-underline-offset: 0.2em;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 800px) {
  .hero {
    min-height: 88svh;
    align-items: flex-end;
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(24, 20, 18, 0.28) 0%,
        rgba(24, 20, 18, 0.18) 38%,
        rgba(24, 20, 18, 0.58) 100%
      );
  }

  .hero-content {
    width: calc(100% - 3rem);
    margin: 0 auto;
    padding: 8rem 0 3.25rem;
    text-align: center;
  }

  .hero-eyebrow {
    margin-bottom: 1.15rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
  }

  .hero-names {
    font-size: clamp(3.35rem, 15vw, 5.25rem);
    line-height: 0.98;
  }

  .hero-date {
    margin: 1.7rem 0 1.6rem;
    font-size: 0.88rem;
    letter-spacing: 0.18em;
  }

  .two-column,
  .parking-grid,
  .info-card-text,
  .rsvp-layout {
    grid-template-columns: 1fr;
  }

  .info-card-text .detail-label,
  .info-card-text h3,
  .info-card-text > p:not(.detail-label) {
    grid-column: 1;
  }

  .info-card-text h3 {
    margin-bottom: 1rem;
  }

  .timeline-item {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(37, 32, 29, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.6rem 0.4rem;
  }
}

@media (max-width: 520px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .time {
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
