/* Layout: eine schmale Einladungsspalte wie eine gefaltete Karte; Orte öffnen sich zu zwei Spalten.
   Farben aus den Aquarellen der Einladung: Pfirsich, Salbei, Creme, Taubenblau. Ein großes kursives „&" ist der einzige laute Moment. */
:root {
  --paper: #f8f6ef;        /* Creme */
  --card: #fdfcf8;
  --ink: #2a2d2b;
  --muted: #64695f;
  --line: #dcdccd;
  --accent: #555d8f;       /* Taubenblau, abgedunkelt für Lesbarkeit */
  --accent-soft: #e6e8f1;
  --peach: #d9845a;        /* Pfirsich */
  --sage: #7f8d72;         /* Salbei */
  --sage-soft: #e7eadf;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16191b; --card: #1c2023; --ink: #ebe9e2; --muted: #a3a89e;
    --line: #2e3437; --accent: #aab1df; --accent-soft: #2a2e45;
    --peach: #eba684; --sage: #a9b79b; --sage-soft: #263028; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #16191b; --card: #1c2023; --ink: #ebe9e2; --muted: #a3a89e;
  --line: #2e3437; --accent: #aab1df; --accent-soft: #2a2e45;
  --peach: #eba684; --sage: #a9b79b; --sage-soft: #263028; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-weight: 300; font-size: 1.0625rem; line-height: 1.65;
  padding-inline: 16px; padding-block: 0 4rem;
}
/* zarter Farbverlauf oben in den Aquarelltönen */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 15px; pointer-events: none;
  background: linear-gradient(90deg, var(--peach), var(--sage) 35%, var(--paper) 50%, var(--sage) 65%, var(--accent));
  opacity: .8;
}
body::after {
  content: ""; display: block; height: 15px; pointer-events: none;
  margin: 4rem -16px -4rem;
  background: linear-gradient(90deg, var(--peach), var(--sage) 35%, var(--paper) 50%, var(--sage) 65%, var(--accent));
  opacity: .8;
}
.wrap { max-width: 44rem; margin-inline: auto; }
.wide { max-width: 60rem; margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; margin: 0; line-height: 1.15; }
h2 { font-size: clamp(2rem, 6vw, 2.75rem); font-style: italic; }
h3 { font-size: 1.35rem; }
p { margin: 0; max-width: 65ch; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.label {
  font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

.draft {
  max-width: 60rem; margin: 1rem auto 0; padding: .5rem .9rem; border: 1px dashed var(--accent);
  color: var(--accent); font-size: .8125rem; border-radius: 4px; text-align: center;
}

nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.4rem; padding-block: 1.25rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
nav a:hover { color: var(--accent); }

.hero { text-align: center; padding-block: 3rem 3.5rem; display: grid; gap: 1.5rem; justify-items: center; }
.names { font-size: clamp(3.2rem, 13vw, 6.5rem); line-height: .95; display: grid; justify-items: center; }
.names.small { font-size: clamp(2.8rem, 11vw, 5rem); }
.amp { font-style: italic; color: var(--peach); font-size: 1.45em; line-height: .7; margin-block: .08em .02em; }
.date-line {
  display: flex; align-items: center; justify-content: center; gap: 1rem; font-family: var(--display); font-size: clamp(1.1rem, 3.6vw, 1.45rem);
}
.date-line::before, .date-line::after { content: ""; width: 2.5rem; height: 1px; background: var(--sage); flex: none; opacity: .7; }
.dates { display: grid; gap: .4rem; }
.countdown { display: flex; gap: 1.75rem; justify-content: center; flex-wrap: wrap; }
.countdown div { display: grid; justify-items: center; }
.countdown b { font-family: var(--display); font-weight: 400; font-size: 2rem; font-variant-numeric: tabular-nums lining-nums; }

section { padding-block: 4rem 0; }
.sec-head { display: grid; gap: .5rem; margin-bottom: 2rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 4rem auto 0; max-width: 44rem; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; padding-block: 1.1rem; border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--display); font-size: 1.5rem; font-variant-numeric: tabular-nums lining-nums; color: var(--accent); }
.timeline div { min-width: 0; display: grid; gap: .15rem; }
.timeline strong { font-weight: 500; }
.timeline span { color: var(--muted); }

.grid2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 40rem) { .grid2 { grid-template-columns: 1fr 1fr; } }
.place { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--sage); padding: 1.75rem; display: grid; gap: .75rem; align-content: start; min-width: 0; }
.place.peach { border-top-color: var(--peach); }
.place.blue { border-top-color: var(--accent); }
.place address { font-style: normal; color: var(--muted); }

.invite-box { background: var(--card); border: 1px solid var(--line); padding: clamp(1.25rem, 5vw, 2.25rem); display: grid; gap: .9rem; }

/* Anmeldung */
.rsvp { background: var(--card); border: 1px solid var(--line); padding: clamp(1.25rem, 5vw, 2.5rem); display: grid; gap: 1.5rem; }
.deadline { display: inline-block; background: var(--sage-soft); color: var(--ink); padding: .3rem .7rem; font-size: .9rem; font-weight: 400; }
.hint { color: var(--muted); font-size: .95rem; }
form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
label, legend { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .6rem; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choices label, .check {
  text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 400; color: var(--ink);
  border: 1px solid var(--line); padding: .55rem 1rem; cursor: pointer; display: flex; gap: .5rem; align-items: center;
}
.choices label:has(input:checked), .check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choices input, .check input { accent-color: var(--accent); margin: 0; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: .65rem .8rem; width: 100%; border-radius: 0;
}
textarea { min-height: 5.5rem; resize: vertical; }
.persons { display: grid; gap: .75rem; }
.person {
  display: grid; gap: .75rem; padding: 1rem; border: 1px solid var(--line); background: var(--paper);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr); align-items: end;
}
.person.with-kid { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto auto; }
.person .num { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.person .num span { font-family: var(--display); font-style: italic; color: var(--accent); font-size: 1.1rem; }
.person input[type=text], .person input[type=number], .person select { background: var(--card); }
.person .check { padding: .6rem .8rem; background: var(--card); }
.person .age { width: 5.5rem; }
.remove {
  background: transparent; color: var(--muted); border: 0; padding: .2rem 0; font-size: .75rem; letter-spacing: .12em;
  text-decoration: underline; text-underline-offset: 3px; text-transform: uppercase; cursor: pointer;
}
.remove:hover { color: var(--accent); }
form.declined .f-essen, form.declined .f-kid, form.declined .f-age, form.declined .if-yes { display: none !important; }
form.declined .person { grid-template-columns: 1fr; }
@media (max-width: 40rem) {
  .person, .person.with-kid { grid-template-columns: 1fr 1fr; }
  .person .f-name { grid-column: 1 / -1; }
}
button {
  font: inherit; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem;
  background: var(--accent); color: var(--card); border: 0; padding: .9rem 1.6rem; cursor: pointer; justify-self: start;
}
button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--accent); font-size: .95rem; font-weight: 400; }
.result { display: grid; gap: 1rem; }
.result h3 { font-style: italic; }
.result pre {
  font-family: var(--body); white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line);
  padding: 1rem; margin: 0; font-size: .95rem; user-select: all; overflow-x: auto;
}
.contact { display: grid; gap: .25rem; }
.contact b { font-weight: 400; user-select: all; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }

<!--Übernachten-->
.stay { display: grid; gap: 1rem; }
.rates { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--sage); padding: 1.5rem 1.75rem; display: grid; gap: .75rem; margin-top: .5rem; }
.rates dl { margin: 0; display: grid; }
.rates dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: .7rem; border-top: 1px solid var(--line); }
.rates dt { font-weight: 400; }
.rates dd { margin: 0; font-family: var(--display); font-size: 1.35rem; color: var(--accent); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.rates dd span { font-family: var(--body); font-size: .85rem; color: var(--muted); }

footer { text-align: center; padding-top: 5rem; display: grid; gap: .5rem; justify-items: center; }
footer .names { font-size: 2.2rem; display: block; }
footer .amp { font-size: 1em; }

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .9s ease both; }
  .hero > *:nth-child(2) { animation-delay: .12s; }
  .hero > *:nth-child(3) { animation-delay: .24s; }
  .hero > *:nth-child(4) { animation-delay: .36s; }
  @keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
}
