/* Layout: eine schmale Briefkarten-Spalte (mobile first), Illustrationen dürfen breiter laufen.
   Bewusst nur ein helles Thema: die Seite ist die digitale Fortsetzung der gedruckten Papeterie. */
:root {
  --paper: #FDFCFA;
  --card: #FFFFFF;
  --ink: #203E65;        /* Loch Blue aus der Einladung */
  --ink-2: #51627E;
  --hair: #D6DCE6;
  --wash: #F2F4F8;
  --lilac: #C9B7D1;      /* Hortensie */
  --lilac-ink: #7A5C8A;
  --sage: #94B39D;       /* Monogramm */
  --sage-ink: #4C6E56;
  --error: #9E3F37;

  --serif: "Cormorant Garamond", "Cormorant", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Gill Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.75rem;
  --step-0: 1.1875rem;
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: 2.25rem;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.page {
  padding-inline: 20px;
  padding-block: 40px 56px;
  display: grid;
  gap: 40px;
}

.col { width: 100%; max-width: 34rem; margin-inline: auto; min-width: 0; }
.wide { width: 100%; max-width: 62rem; margin-inline: auto; }

/* Kopf wie die Einladungskarte */
.masthead { display: grid; justify-items: center; gap: 14px; text-align: center; }
.masthead .mono { width: 68px; }
.masthead .names { width: min(78vw, 360px); margin-block: 4px; }
.masthead.compact { gap: 12px; }
.schloss { max-width: 40rem; margin-top: -12px; }
.legend-title strong { font-weight: 600; }
label.legend-title { color: var(--ink); font-size: var(--step-1); margin-top: 0; }
.masthead.compact .mono { width: 112px; }
.linkish {
  appearance: none; border: 0; background: none; padding: 0;
  font: inherit; font-style: normal; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.linkish:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step--1);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.eyebrow.soft { color: var(--ink-2); }
.place { display: grid; gap: 2px; }

.lede {
  text-align: center;
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.45;
  text-wrap: balance;
}
.lede strong { font-weight: 600; white-space: nowrap; }

/* Formular */
form { display: grid; gap: 32px; margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
legend, .label {
  font-family: var(--sans);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0;
  margin-bottom: 4px;
}
.legend-title {
  display: block;
  font-family: var(--serif);
  font-size: var(--step-2);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.15;
  margin-top: 6px;
  text-wrap: balance;
}
.hint { font-size: 1rem; color: var(--ink-2); margin: 0; font-style: italic; }

.field { display: grid; gap: 6px; min-width: 0; }
.row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 20px; }

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  font: inherit;
  font-size: var(--step-1);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  padding: 6px 0 8px;
  outline: none;
  transition: border-color .2s ease;
}
textarea { resize: vertical; min-height: 5.5rem; line-height: 1.4; border: 1px solid var(--hair); padding: 10px 12px; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
input:focus, textarea:focus, select:focus { border-color: var(--ink); }
input::placeholder, textarea::placeholder { color: #9AA6B8; font-style: italic; }

.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--error); }
.err { font-family: var(--sans); font-size: 0.8125rem; color: var(--error); margin: 0; }

/* Auswahlkacheln */
.choices { display: grid; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  background: var(--card);
  font-size: var(--step-1);
  line-height: 1.25;
  transition: border-color .2s ease, background-color .2s ease;
}
.choice span::before {
  content: "";
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--ink-2);
  box-shadow: inset 0 0 0 4px var(--card);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.choice input:checked + span { border-color: var(--ink); background: var(--wash); }
.choice input:checked + span::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--wash); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.fieldset-invalid .choice span { border-color: var(--error); }

.reveal { display: grid; gap: 32px; }

.submit {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 18px 24px;
  width: 100%;
  cursor: pointer;
  transition: background-color .2s ease;
}
.submit:hover { background: #172F4F; }
.submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.submit[disabled] { opacity: .6; cursor: progress; }
.form-error { text-align: center; }

/* Danke-Zustand */
.thanks { display: grid; justify-items: center; gap: 16px; text-align: center; }
.thanks .flower { width: min(62vw, 260px); }
.thanks h2 { font-weight: 500; font-size: var(--step-3); line-height: 1.1; margin: 0; text-wrap: balance; }
.thanks p { margin: 0; text-wrap: balance; }
.ghost {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 12px 18px;
  background: transparent;
  cursor: pointer;
}
.ghost:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.preview-note { font-family: var(--sans); font-size: 0.8125rem; color: var(--lilac-ink); }

/* Trenner: Hortensie statt Linie */
.divider { display: grid; justify-items: center; }
.divider img { width: 96px; opacity: .9; }

/* Infos */
.section-head { text-align: center; display: grid; gap: 6px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-weight: 500; font-size: var(--step-3); line-height: 1.1; }

.days { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.day { display: grid; gap: 6px; text-align: center; }
.day h3 { margin: 0; font-weight: 500; font-size: var(--step-2); line-height: 1.15; }
.day .sub { font-style: italic; color: var(--ink-2); margin: 0; }
.day p { margin: 0; }
.times { font-variant-numeric: tabular-nums; display: grid; gap: 2px; }
.times b { font-weight: 600; }

.facts { display: grid; gap: 28px; margin-top: 40px; }
.fact { display: grid; gap: 6px; text-align: center; }
.fact h3 { margin: 0; font-family: var(--sans); font-weight: 400; font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase; }
.fact p { margin: 0; text-wrap: pretty; }
.fact a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }

.footer { display: grid; justify-items: center; gap: 10px; padding-top: 8px; }
.footer img { width: 48px; opacity: .85; }

/* Startseite: nur das Logo */
.cover {
  min-height: 100vh;
  min-height: 100svh;
  padding-inline: 20px;
  padding-block: 48px;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 40px;
}
.cover-mark { display: grid; justify-items: center; gap: 22px; }
.cover-names { width: min(80vw, 520px); }
.cover-link {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  padding: 10px 2px;
  border-bottom: 1px solid var(--hair);
  transition: color .2s ease, border-color .2s ease;
}
.cover-link:hover { color: var(--ink); border-color: var(--ink); }
.cover-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Desktop */
@media (min-width: 720px) {
  .page { padding-block: 64px 80px; gap: 56px; }
  .masthead .mono { width: 80px; }
  .choices { grid-template-columns: 1fr 1fr; }
  .choice span { height: 100%; }
  .days { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
}

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s ease both; }
  .rise.d1 { animation-delay: .08s; }
  .rise.d2 { animation-delay: .16s; }
  @keyframes rise { from { transform: translateY(8px); } to { transform: none; } }
}
