:root {
  --orange: #e85a1f;
  --orange-soft: #f08350;
  --orange-deep: #b8431a;
  --pastel-bg: #f7f1e6;
  --ink: #3d2817;
  --paper: #fffbf2;
  --shadow-soft: 0 8px 24px rgba(184, 67, 26, 0.12);
  --shadow-card: 0 14px 38px rgba(61, 40, 23, 0.15);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', system-ui, sans-serif;
  color: var(--ink);
  background: var(--pastel-bg);
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.paisley-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('assets/bunt.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.paisley-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,251,242,0.55) 0%, rgba(255,251,242,0.7) 100%);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

section {
  margin: 56px 0;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Cover ---------- */
.cover {
  position: relative;
  text-align: center;
  margin: 0 0 -120px;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cover-image {
  width: 100%;
  aspect-ratio: 1700 / 2480;
  background-image: url('assets/collage.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-height: 88vh;
  position: relative;
}

.cover-image::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(247,241,230,0) 0%, rgba(247,241,230,0.95) 90%);
  pointer-events: none;
}

.cover-eyebrow {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  font-family: 'Caveat', cursive;
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  color: var(--orange-deep);
  letter-spacing: 0.05em;
  margin: 0;
  background: rgba(255, 251, 242, 0.9);
  padding: 6px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(184, 67, 26, 0.18);
  z-index: 2;
}

/* ---------- Anrede + handgeschriebener Text ---------- */
.anrede {
  background: var(--paper);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 3;
  margin-top: 0;
}

.anrede::before {
  content: "";
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border: 2px dashed rgba(184, 67, 26, 0.2);
  border-radius: 12px;
  pointer-events: none;
  z-index: -1;
}

.hand-greeting {
  font-family: 'Caveat', cursive;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: var(--orange-deep);
  margin: 0 0 20px;
  font-weight: 700;
}

.handwriting-scan {
  margin: 0;
  padding: 0;
}

.handwriting-placeholder {
  border: 2px dashed rgba(184, 67, 26, 0.3);
  border-radius: 6px;
  padding: 56px 24px;
  text-align: center;
  background: rgba(247, 241, 230, 0.5);
  color: var(--orange-deep);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.placeholder-label {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  font-weight: 700;
}

.placeholder-hint {
  font-size: 0.85rem;
  color: rgba(61, 40, 23, 0.5);
  letter-spacing: 0.02em;
}

.handwriting-scan img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.hand-signoff {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: var(--orange-deep);
  margin: 16px 0 0;
  text-align: right;
  font-weight: 700;
}

/* ---------- Motto ---------- */
.motto {
  text-align: center;
  padding: 24px 0;
}

.motto-quote {
  font-family: 'Shrikhand', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--orange);
  margin: 0;
  line-height: 1.2;
  text-shadow: 2px 2px 0 var(--paper);
  transform: rotate(-1deg);
  display: inline-block;
}

/* ---------- Eckdaten ---------- */
.eckdaten {
  display: flex;
  justify-content: center;
}

.eck-card {
  background: var(--paper);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  width: 100%;
}

.eck-card dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eck-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: start;
}

.eck-row dt {
  font-family: 'Shrikhand', sans-serif;
  color: var(--orange);
  font-size: 1.6rem;
  margin: 0;
}

.eck-row dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eck-row dd strong {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
}

.eck-detail {
  color: rgba(61, 40, 23, 0.7);
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------- Anfahrt ---------- */
.section-title {
  font-family: 'Shrikhand', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  color: var(--orange);
  margin: 0 0 16px;
  text-align: center;
}

.anfahrt-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.anfahrt-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

.ov-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0a01e;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.ov-line.ov-s { background: #00933b; }
.ov-line.ov-bus { background: #722282; }

.anfahrt-hint {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(61, 40, 23, 0.75);
  margin: 0 0 24px;
}

.anfahrt-mark {
  font-weight: 700;
  display: inline-block;
  width: 18px; height: 18px;
  text-align: center;
  line-height: 18px;
}

.anfahrt-mark.blue { color: #2e6cd6; }
.anfahrt-mark.green { color: #2e9d3a; }

.anfahrt-figure {
  margin: 0;
  text-align: center;
}

.anfahrt-figure img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
  display: block;
  margin: 0 auto;
}

.anfahrt-figure figcaption {
  font-size: 0.85rem;
  color: rgba(61, 40, 23, 0.55);
  margin-top: 8px;
}

/* ---------- Outfit ---------- */
.outfit {
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--orange-deep);
  line-height: 1.4;
  background: rgba(255, 251, 242, 0.7);
  padding: 24px;
  border-radius: 8px;
}

.outfit strong {
  color: var(--orange);
}

/* ---------- RSVP ---------- */
.rsvp {
  text-align: center;
}

.rsvp-deadline {
  font-size: 1.05rem;
  color: rgba(61, 40, 23, 0.85);
  margin: 0 0 24px;
}

.rsvp-deadline strong {
  color: var(--orange-deep);
}

.rsvp-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.rsvp-btn {
  background: var(--orange);
  color: var(--paper);
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 200px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rsvp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(184, 67, 26, 0.22);
}

.rsvp-name {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.rsvp-mail {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.92;
}

/* ---------- Closing ---------- */
.closing {
  text-align: center;
  margin-top: 64px;
}

.closing-text {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--orange-deep);
  margin: 0;
}

.peace {
  font-size: 3rem;
  color: var(--orange);
  margin: 16px 0 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 540px) {
  main { padding: 16px 16px 64px; }
  section { margin: 40px 0; }
  .anrede { padding: 24px 20px; }
  .eck-card { padding: 24px 20px; }
  .eck-row { grid-template-columns: 64px 1fr; gap: 12px; }
  .rsvp-btn { min-width: 160px; padding: 14px 20px; }
}
