/* ================= Seite 3 · Adressformular ================= */
.view-form { background: var(--paper); }

.form-wrap {
  width: min(calc(100% - 40px), max(350px, calc(570 * var(--u))));
  margin-inline: auto;
  padding-top: max(64px, calc(105 * var(--u)));
  padding-bottom: max(56px, calc(135 * var(--u)));
  display: flex;
  flex-direction: column;
  align-items: center;
}
.form-mono { width: max(132px, calc(210 * var(--u))); color: var(--olive-light); }
.form-intro {
  margin: max(36px, calc(76 * var(--u))) 0 0;
  font-weight: 400;
  text-align: center;
  font-size: max(17px, calc(24 * var(--u)));
  line-height: 1.17;
  text-wrap: balance;
}

.rsvp, .thanks { width: 100%; margin-top: max(40px, calc(60 * var(--u))); }
.rsvp { display: flex; flex-direction: column; gap: max(26px, calc(40 * var(--u))); }

.field { display: flex; flex-direction: column; gap: max(8px, calc(12 * var(--u))); margin: 0; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field-row { display: grid; grid-template-columns: 35fr 65fr; gap: 12px; }

.f-label {
  font-size: max(16px, calc(21 * var(--u)));
  color: var(--olive);
  padding: 0 0 0 2px;
  line-height: 1.25;
}
legend.f-label { margin-bottom: max(8px, calc(12 * var(--u))); }

.f-input {
  width: 100%;
  min-height: max(50px, calc(57 * var(--u)));
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  font-family: var(--serif);
  font-size: max(17px, calc(22 * var(--u)));
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.f-input::placeholder { color: #a9a283; }
.f-input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 1px var(--olive); }
.f-textarea { resize: vertical; min-height: 120px; line-height: 1.35; }
.f-input[aria-invalid="true"] { border-color: var(--error); }

/* Auswahl-Kacheln */
.tiles { gap: max(10px, calc(12 * var(--u))); }
.tile {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(54px, calc(80 * var(--u)));
  padding: 10px 14px;
  background: var(--tile);
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: max(17px, calc(22 * var(--u)));
  color: #6b6540;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile:hover { background: #ebe5d6; }
.tile:has(input:checked) { background: var(--tile-on); border-color: var(--olive-light); color: var(--ink); }
.tile:has(input:focus-visible) { outline: 2px solid var(--olive); outline-offset: 2px; }
.tile span::before {
  content: "";
  display: inline-block;
  width: .55em; height: .55em;
  margin-right: .7em;
  border: 1px solid currentColor;
  border-radius: 50%;
  vertical-align: .05em;
  opacity: .55;
  transition: background-color .2s ease;
}
.tile:has(input:checked) span::before { background: currentColor; opacity: 1; box-shadow: inset 0 0 0 2px var(--tile-on); }
.tiles[aria-invalid="true"] .tile { border-color: rgba(142, 43, 51, .45); }

.guests-number { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

.f-error { min-height: 0; font-size: 15px; color: var(--error); font-family: var(--serif); }
.f-error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  margin-top: max(2px, calc(6 * var(--u)));
  min-height: max(54px, calc(62 * var(--u)));
  border: 0;
  border-radius: 999px;
  background: var(--submit);
  color: var(--ink);
  font-size: max(19px, calc(26 * var(--u)));
  cursor: pointer;
  transition: background-color .2s ease;
}
.submit:hover { background: #c5bea3; }
.submit:disabled { cursor: progress; opacity: .75; }
.form-status { margin-top: -12px; text-align: center; font-size: 15px; color: var(--error); }
.form-status:empty { display: none; }
.form-privacy { margin-top: -8px; text-align: center; font-size: 14px; color: #6b6a55; line-height: 1.4; text-wrap: balance; }

.thanks { text-align: center; outline: none; }
.thanks-title { font-family: var(--script); font-size: max(46px, calc(64 * var(--u))); line-height: 1.2; }
.thanks-text { margin-top: 8px; font-size: max(18px, calc(26 * var(--u))); }
.thanks:not([hidden]) { animation: fade-in-up .8s var(--ease) both; }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.form-back {
  margin-top: max(56px, calc(150 * var(--u)));
  font-size: max(18px, calc(26 * var(--u)));
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  padding: 6px 8px;
}

@media (max-width: 380px) {
  .field-row { grid-template-columns: 1fr; }
}
