/* Design tokens */
:root {
  --color-bg: #FAF6F0;
  --color-surface: #E9E0D2;
  --color-accent: #5F7161;
  --color-accent-dark: #4C5B4E;
  --color-text: #2E2E2C;
  --color-muted: #6B675F;
  --color-error: #A4453B;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --content-width: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.65;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; }
a { color: var(--color-accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Hero */
.hero {
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 1.5rem;
  animation: rise-in 1.1s ease-out both;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  color: var(--color-accent-dark);
  margin: 0 0 1rem;
}

.hero-names {
  font-size: clamp(2.8rem, 9vw, 4.8rem);
  margin: 0;
}

.hero-names .amp {
  font-style: italic;
  color: var(--color-accent);
  padding: 0 0.02em;
}

.hero-date {
  margin: 1.2rem 0 0;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

/* Skyline of Seligenstadt: full-width horizon that draws itself on load */
.hero-silhouette {
  margin: 0 auto;
  color: var(--color-accent);
  width: min(800px, 94vw);
}

.hero-silhouette svg { width: 100%; height: auto; display: block; }

.hero-silhouette path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.4s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text { animation: none; }
  .hero-silhouette path { animation: none; stroke-dashoffset: 0; }
}

/* Sections */
.section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
}

.section + .section { border-top: 1px solid var(--color-surface); }

.section h2 {
  font-size: 1.9rem;
  margin: 0 0 1rem;
}

.section h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--color-accent);
  margin-top: 0.6rem;
}
.lead { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 0.8rem; }
.note { color: var(--color-muted); font-size: 0.95rem; }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--color-accent);
}

.timeline li {
  position: relative;
  padding: 0 0 1.4rem 1.8rem;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
}

.timeline-time {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--color-accent-dark);
}

.timeline h3 { margin: 0.2rem 0 0.4rem; font-size: 1.5rem; }
.timeline p { margin: 0 0 0.3rem; }

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.2rem;
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

.card {
  background: rgba(233, 224, 210, 0.45);
  border: 1px solid var(--color-surface);
  border-radius: 6px;
  padding: 1.2rem 1.3rem;
}

.card h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.card p { margin: 0 0 0.4rem; font-size: 0.98rem; }

/* Hotel cards: pin the two link rows to the card bottom so they line up */
.card { display: flex; flex-direction: column; }
.card .card-link-web { margin-top: auto; padding-top: 0.6rem; }
.card .card-link-maps { margin-bottom: 0; }

/* Form */
form { margin-top: 1.5rem; }

fieldset {
  border: 1px solid var(--color-surface);
  border-radius: 6px;
  padding: 1rem 1.3rem 1.2rem;
  margin: 0 0 1.25rem;
}

legend { font-family: var(--font-display); font-size: 1.3rem; padding: 0 0.5rem; }
.legend-note { font-family: var(--font-body); font-size: 0.85rem; color: var(--color-muted); }

.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: 0.35rem; font-weight: 400; }
.required { color: var(--color-accent-dark); }
.optional { color: var(--color-muted); font-size: 0.9rem; }

input[type="text"], input[type="number"], textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #C9C0B2;
  border-radius: 4px;
}

input:focus, textarea:focus {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent);
  outline-offset: 0;
}

.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; margin-bottom: 0.4rem; }
.radio { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.radio input { accent-color: var(--color-accent); width: 1.1rem; height: 1.1rem; }

.details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-surface);
}

.details-hint { margin: 0.8rem 0 0.5rem; color: var(--color-muted); font-size: 0.95rem; }

/* Counts stay visible after a decline, but read as inactive */
.details-off { opacity: 0.45; }

.count-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.field-count { flex: 1 1 100px; margin-bottom: 0; }

.field-error {
  color: var(--color-error);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--color-error); }

/* Honeypot: visually removed, still in DOM for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: 4px;
  padding: 0.85rem 2.2rem;
  cursor: pointer;
}

.btn:hover { background: var(--color-accent-dark); }
.btn:disabled { opacity: 0.6; cursor: wait; }

.form-status { margin: 1rem 0; }
#form-error { color: var(--color-error); }

.form-success {
  background: rgba(95, 113, 97, 0.12);
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
}

/* Contact: names and numbers aligned in columns, groups side by side when wide */
.contact-groups { display: grid; gap: 1.25rem; }

@media (min-width: 640px) {
  .contact-groups { grid-template-columns: 1fr 1fr; }
}

.contact-title { margin: 0 0 0.5rem; }

.contact-list {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 0.3rem 1.4rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-surface);
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}
