/* Warteliste (DE /de/warteliste/, EN /waitlist/, TR /tr/bekleme-listesi/) und Unterseiten.
   Nutzt nur Tokens aus tokens.css und Komponenten aus site.css (contact-form, field, check, faq, plan-list, hero-pill). */

/* Kopf mit Formular */
.wl-hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section-y); }
.wl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.wl-title { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 750; margin-bottom: 1.25rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.wl-intro .lead { margin-bottom: 2rem; }

/* Gründerpreis und Zähler */
.wl-founder { display: grid; gap: 1rem; padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-m); background: var(--bg-sunk); color: var(--ink-2); max-width: 34rem; }
.wl-offer { display: grid; gap: 1rem; }
.wl-offer[hidden] { display: none; }
.wl-offer-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem 1.5rem; }
.wl-offer-duo .wl-offer-price { margin-top: 0; }
.wl-offer-duo .wl-offer-new { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.wl-offer-plan { flex-basis: 100%; font-weight: 600; color: var(--ink); }
.wl-offer-nudge { margin-top: -.25rem; color: var(--ink); }
.wl-offer-switch { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 24px; }
.wl-offer-switch:hover { text-decoration-thickness: 2px; }
.wl-offer-label { font-weight: 600; color: var(--ink); }
.wl-offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-top: -.5rem; }
.wl-offer-new { font: 750 clamp(2.5rem, 1.8rem + 2.5vw, 3.5rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--accent); }
.wl-offer-old { font-family: var(--font-mono); font-size: 1.125rem; color: var(--muted); text-decoration-thickness: 2px; }
.wl-offer-per { margin-top: -.5rem; color: var(--ink-2); }
.wl-perks { display: grid; gap: .45rem; padding-top: .25rem; }
.wl-perks li { display: flex; align-items: flex-start; gap: .55rem; color: var(--ink); font-weight: 500; }
.wl-perks svg { flex: none; margin-top: .3em; color: var(--accent); }
.wl-perks svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wl-counter { display: grid; gap: .5rem; }
.wl-counter[hidden] { display: none; }
.wl-counter progress { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--line); color: var(--accent); }
.wl-counter progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.wl-counter progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.wl-counter progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.wl-counter-text { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--ink); }

/* Formular */
.wl-form { gap: 1.25rem; }
.wl-form-h { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.2; }
.wl-choice { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: .5rem; }
.wl-choice legend { padding: 0; margin-bottom: .5rem; font-weight: 600; font-size: .9375rem; color: var(--ink); }
.wl-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.wl-opt { position: relative; display: inline-flex; align-items: center; gap: .55rem; min-height: var(--tap); padding: .4rem .95rem .4rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--bg); color: var(--ink); font-size: .9375rem; font-weight: 500; cursor: pointer; transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease; }
.wl-opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.wl-opt:hover { border-color: var(--ink-2); }
.wl-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.wl-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.wl-form .btn { justify-self: start; }
.wl-form .form-status { overflow-wrap: anywhere; }

/* Fehlermeldungen ohne JavaScript: Weiterleitung auf #fehler-…, sichtbar per :target */
.wl-nojs-error { display: none; margin: 0; padding: .75rem 1rem; border-radius: var(--radius-s); border: 1px solid #A3453A; color: #A3453A; font-size: .9375rem; overflow-wrap: anywhere; }
.wl-nojs-error:target { display: block; }
.wl-js .wl-nojs-error:target { display: none; }
:root[data-theme="dark"] .wl-nojs-error, :root[data-theme="dark"] .wl-form .form-status.err { color: #F0A59B; border-color: #F0A59B; }

/* Pläne */
.wl-h2 { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.wl-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 52rem; }
.wl-plan { padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg); }
.wl-plan-main { border-color: var(--accent); box-shadow: var(--shadow-card); }
.wl-plan h3 { font-size: 1.375rem; margin-bottom: .35rem; }
.wl-plan-price { font-family: var(--font-mono); font-size: .9375rem; color: var(--ink); margin-bottom: .35rem; }
.wl-plan-for { color: var(--muted); font-size: .9375rem; margin-bottom: 1.25rem; }
.wl-plan .plan-list { padding-bottom: 0; }
.wl-vat { margin-top: 1.25rem; font-size: var(--fs-small); color: var(--muted); }

/* Fragen */
.wl-free { margin-top: 1.5rem; }
.wl-free .btn { white-space: normal; text-align: center; line-height: 1.3; padding-block: .6rem; }

/* Unterseiten: Mail prüfen, bestätigt, abgemeldet, Fehler */
.wl-done { padding-block: clamp(3.5rem, 10vw, 7rem); }
.wl-done-inner { max-width: 44rem; display: grid; justify-items: start; gap: 1rem; }
.wl-done-inner .wl-title { margin-bottom: .25rem; }
.wl-done-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: .5rem; }
.wl-done-icon svg path, .wl-done-icon svg circle { stroke-width: 2; }
.wl-done-error .wl-done-icon { background: rgb(163 69 58 / .1); color: #A3453A; }
:root[data-theme="dark"] .wl-done-error .wl-done-icon { color: #F0A59B; }
.wl-rank { padding: 1rem 1.25rem; border-left: 3px solid var(--accent); border-radius: var(--radius-s); background: var(--accent-soft); color: var(--ink); font-weight: 600; max-width: 38rem; }
.wl-rank[hidden], .wl-server[hidden] { display: none; }
.wl-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }

@media (max-width: 880px) {
  .wl-grid { grid-template-columns: minmax(0, 1fr); }
  .wl-form .btn { justify-self: stretch; }
}
@media (max-width: 640px) {
  .wl-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .wl-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .wl-done-inner { justify-items: stretch; }
  .wl-done-icon { justify-self: start; }
  .wl-founder { padding: 1rem; }
  .wl-opt { flex: 1 1 auto; }
}
