/* Wartelisten-Formulare für kommende Angebote (Makro site/_waitlist_form.html; heute site/dynqr.html,
   Abo-Karten auf der Preisseite). Formular in einer Karte (.wl-card): E-Mail, Zahlweise als Segment-Schalter,
   Pflicht-Häkchen, Erfolgsmeldung; mehrere Formulare je Seite möglich (.wl-box je Produkt).
   Farben nur über die Tokens aus tokens.css. */

.wl-card { scroll-margin-top: 96px; }
.wl-box { min-width: 0; }
.wl-form { display: grid; gap: 16px; min-width: 0; }
.wl-form[hidden], .wl-done[hidden], .wl-error[hidden] { display: none; }

.wl-interval { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: .4rem; }
.wl-interval legend { padding: 0; margin-bottom: .4rem; }

/* Segment-Schalter wie .seg (site.css), die Radios selbst sind unsichtbar */
.wl-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 22px; background: var(--v-50); border: 1px solid var(--v-100); }
.wl-seg label { position: relative; flex: 1 1 auto; min-width: 0; cursor: pointer; }
.wl-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wl-seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: var(--pill); color: var(--ink-2); font-weight: 640; font-size: .9375rem; text-align: center; transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.wl-seg label:hover span { color: var(--v-700); background: #fff; }
.wl-seg input:checked + span { background: var(--v-600); color: #fff; box-shadow: var(--glow); }
.wl-seg input:focus-visible + span { box-shadow: var(--focus); }

.wl-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; align-items: start; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.wl-consent input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--accent); cursor: pointer; }
.wl-consent a { color: var(--accent-ink); font-weight: 600; }

.wl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wl-error { margin: 0; color: var(--del); font-size: var(--fs-sm); font-weight: 600; }
.wl-submit { justify-content: center; width: 100%; }
.wl-submit[disabled] { opacity: .7; cursor: progress; }

.wl-done { display: grid; gap: 8px; justify-items: start; padding: 18px; border-radius: var(--radius-sm); background: var(--ins-soft); outline: none; }
.wl-done p { margin: 0; color: var(--ink-2); }
.wl-done-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ins); }
.wl-done-icon svg { width: 22px; height: 22px; }

@media (min-width: 480px) {
  .wl-seg { display: inline-flex; flex-wrap: nowrap; border-radius: var(--pill); }
  .wl-seg span { white-space: nowrap; }
}
