/* ============================================================
   Anmelde-Wizards (js/wizard.js) — Chancen-Check, Erstgespräch,
   Event-Anmeldungen. Links der Kontext (Navy), rechts der Schritt.
   Eigene Datei, damit styles.css schlank bleibt; Texte bewusst ohne
   <p>, sonst greift im Modal „.modal p:not(.modal__label)".
   ============================================================ */
.wiz {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-align: left;
  box-shadow: 0 40px 80px -50px rgba(20, 39, 58, 0.45);
}

/* ---------- Linke Spalte ---------- */
.wiz__aside {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(28px, 3.6vw, 52px);
  background: var(--accent-deep); color: #fff;
}
/* Tennisball-Naht als leises Wasserzeichen (wie im Favicon) */
.wiz__aside::after {
  content: ""; position: absolute; z-index: -1; right: -90px; bottom: -90px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1.5px solid rgba(156, 190, 221, 0.16);
  background:
    radial-gradient(circle at 0% 50%, transparent 54%, rgba(156, 190, 221, 0.16) 54.5%, transparent 55.5%),
    radial-gradient(circle at 100% 50%, transparent 54%, rgba(156, 190, 221, 0.16) 54.5%, transparent 55.5%);
}
.wiz__eyebrow {
  display: block; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ondark);
}
.wiz__title {
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.06;
  font-size: clamp(28px, 2.9vw, 40px); max-width: 16ch;
  overflow-wrap: break-word; hyphens: manual;
}
.wiz__meta { display: grid; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.wiz__text { display: block; margin-top: 18px; max-width: 40ch; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.72); }
.wiz__steps {
  display: flex; flex-wrap: wrap; row-gap: 8px; margin-top: 34px;
  margin-left: 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42);
}
.wiz__steps li { display: flex; align-items: center; transition: color 0.3s; }
.wiz__steps li + li::before {
  content: ""; width: 12px; height: 1px; margin: 0 7px;
  background: rgba(255, 255, 255, 0.22);
}
.wiz__steps li.is-done { color: rgba(255, 255, 255, 0.78); }
.wiz__steps li.is-active { color: var(--accent-ondark); }
.wiz__direct { display: block; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.7); }
.wiz__direct a {
  color: #fff; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.wiz__direct a:hover { text-decoration-color: #fff; }

/* ---------- Rechte Spalte ---------- */
.wiz__main { display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 3.6vw, 52px); }
.wiz__form { display: flex; flex-direction: column; flex: 1; }
.wiz__head { margin-bottom: clamp(26px, 3vw, 38px); }
.wiz__count {
  display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}
.wiz__count span { color: var(--gray-light); }
.wiz__bar { height: 2px; margin-top: 14px; background: var(--line); border-radius: 2px; overflow: hidden; }
.wiz__bar i { display: block; width: 0; height: 100%; background: var(--accent); transition: width 0.55s var(--ease-out); }
.wiz__body { margin-bottom: clamp(30px, 3.4vw, 44px); }
.wiz__q { font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-size: clamp(26px, 2.6vw, 36px); }
.wiz__lead { display: block; margin-top: 10px; font-size: 16px; color: var(--gray); max-width: 52ch; }

.wiz__grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 22px;
  margin-top: clamp(22px, 2.6vw, 32px);
}
.wiz__field { grid-column: span 6; min-width: 0; margin: 0; padding: 0; border: 0; }
.wiz__field--half { grid-column: span 3; }
.wiz__field--third { grid-column: span 2; }
.wiz__label { display: block; float: none; width: 100%; margin-bottom: 10px; padding: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.wiz__tag { margin-left: 6px; font-size: 13.5px; font-weight: 400; color: var(--gray-light); }
.wiz__hint { display: block; margin: -4px 0 10px; font-size: 13.5px; color: var(--gray); }

/* Auswahl-Kacheln (Einfach- und Mehrfachauswahl) */
.wiz__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.wiz__choice {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 15px; line-height: 1.25; text-align: left;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.wiz__choice:hover { border-color: var(--accent-mid); }
.wiz__choice.is-on {
  border-color: var(--accent); background: var(--accent-tint); color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.wiz__choice.is-on::before { content: "✓"; font-size: 13px; font-weight: 700; }

/* Textfelder: Unterstrich statt Kasten */
.wiz input[type="text"], .wiz input[type="email"], .wiz input[type="tel"], .wiz textarea {
  width: 100%; padding: 8px 0 10px;
  font: inherit; font-size: 18px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0;
  outline: none; transition: border-color 0.25s;
}
.wiz textarea { min-height: 86px; resize: vertical; font-size: 16px; line-height: 1.5; }
.wiz input::placeholder, .wiz textarea::placeholder { color: var(--gray-light); }
.wiz input:focus, .wiz textarea:focus { border-color: var(--accent); }
.wiz__choice:focus-visible, .wiz__back:focus-visible, .wiz__consent input:focus-visible {
  outline: 2px solid var(--accent-mid); outline-offset: 2px;
}

.wiz__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--gray); cursor: pointer; }
.wiz__consent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.wiz__consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Fehler */
.wiz__err { display: block; margin-top: 8px; font-size: 13.5px; color: #B42318; }
.wiz__err[hidden] { display: none; }
.wiz__field.is-bad input, .wiz__field.is-bad textarea { border-color: #B42318; }
.wiz__field.is-bad .wiz__choice { border-color: rgba(180, 35, 24, 0.45); }

/* Fuß */
.wiz__foot {
  display: flex; align-items: center; gap: 16px; margin-top: auto;
  padding-top: clamp(22px, 2.6vw, 30px); border-top: 1px solid var(--line);
}
.wiz__back { padding: 10px 4px; font-size: 15px; font-weight: 600; color: var(--gray); transition: color 0.2s; }
.wiz__back:hover { color: var(--ink); }
.wiz__back[hidden] { display: none; }
.wiz__next { margin-left: auto; padding: 16px 28px; gap: 10px; }
.wiz__next:disabled { opacity: 0.6; cursor: progress; transform: none; }
.wiz__senderr { display: block; margin-top: 14px; font-size: 14px; color: #B42318; }
.wiz__senderr[hidden] { display: none; }
.wiz__senderr a { color: inherit; text-decoration: underline; }

/* Danke-Seite */
.wiz__done { outline: none; }
.wiz__check {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 24px;
  border-radius: 50%; background: var(--accent-tint); color: var(--accent);
}
.wiz__nextsteps { display: grid; gap: 12px; margin-top: 26px; counter-reset: wizs; }
.wiz__nextsteps li { display: flex; gap: 14px; align-items: baseline; font-size: 15.5px; color: var(--ink); counter-increment: wizs; }
.wiz__nextsteps li::before {
  content: counter(wizs, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--accent);
}
.wiz__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.wiz__actions:empty { display: none; }
.wiz__demo { display: block; margin-top: 26px; font-family: var(--font-mono); font-size: 11.5px; color: var(--gray-light); }

@media (max-width: 860px) {
  .wiz { grid-template-columns: 1fr; }
  .wiz__aside { gap: 22px; padding: 26px 22px 24px; }
  .wiz__aside::after { width: 200px; height: 200px; right: -70px; bottom: -70px; }
  .wiz__title { max-width: none; font-size: clamp(26px, 7vw, 32px); }
  .wiz__text { margin-top: 12px; font-size: 15px; }
  .wiz__steps { margin-top: 20px; }
  .wiz__main { padding: 26px 22px 24px; }
  .wiz__field--half { grid-column: span 6; }
  .wiz__field--third { grid-column: span 3; }
  .wiz__grid { gap: 24px 16px; }
}

/* ---------- Seiten-Einbettung ---------- */
.wizsec { padding: clamp(24px, 4vw, 48px) 0 clamp(90px, 12vw, 150px); }
.wizsec .container { max-width: 1120px; }
.sched .wiz { position: relative; }

/* ---------- Modal-Variante (/events/) ----------
   Doppelte Klasse, damit die Mobile-Overrides von .modal nicht greifen.
   visibility ohne Übergangsdauer, damit der Fokus direkt nach openModal()
   ins Formular springen kann (wie .modal--form). Gescrollt wird nur
   .modal__wizard, damit der Schließen-Button stehen bleibt. */
.modal.modal--wizard {
  display: flex; flex-direction: column;
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0; overflow: hidden;
  transition: transform 0.45s var(--ease-out), opacity 0.35s, visibility 0s linear 0.35s;
}
.modal.modal--wizard.is-open { transition: transform 0.45s var(--ease-out), opacity 0.35s, visibility 0s linear 0s; }
.modal__wizard { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.modal--wizard .wiz { min-height: min(660px, calc(100dvh - 48px)); border: 0; border-radius: 0; box-shadow: none; }
.modal--wizard .modal__close { z-index: 2; top: 16px; right: 16px; }
.modal--wizard .wiz__head { padding-right: 56px; }
@media (max-width: 860px) {
  .modal.modal--wizard {
    width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0;
  }
  .modal--wizard .wiz { min-height: 100%; }
  .modal--wizard .modal__close { background: rgba(255, 255, 255, 0.14); color: #fff; }
  .modal--wizard .wiz__aside { padding-right: 70px; }
}
