/* ============================================================
   NORTHLAND GYM — Online-Anmeldung (Wizard)
   ============================================================ */

.wizard-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
.wizard-aurora {
  position: fixed;
  inset: -30% -10% auto;
  height: 80%;
  background:
    radial-gradient(42% 36% at 22% 34%, rgba(0, 145, 93, .22), transparent 70%),
    radial-gradient(36% 30% at 78% 26%, rgba(53, 227, 154, .12), transparent 70%),
    radial-gradient(28% 24% at 55% 15%, rgba(212, 179, 106, .07), transparent 70%);
  filter: blur(46px);
  pointer-events: none;
  animation: aurshift 13s var(--ease-inout) infinite alternate;
  z-index: 0;
}

/* Kopfzeile */
.wizard-top {
  position: sticky; top: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(6, 10, 8, .8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.wizard-top-progress {
  flex: 1;
  max-width: 420px;
  height: 5px;
  border-radius: 999px;
  background: rgba(198, 222, 209, .12);
  overflow: hidden;
}
.wizard-top-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--aurora));
  transition: width .6s var(--ease-out);
}
.wizard-exit {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  transition: color .3s;
}
.wizard-exit:hover { color: var(--text); }
.wizard-exit svg { width: 17px; height: 17px; }

/* Layout */
.wizard {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: clamp(30px, 5vw, 90px);
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: clamp(30px, 5vh, 70px) var(--gutter) 40px;
  align-items: start;
}

/* Seitenleiste */
.wizard-side { position: sticky; top: 100px; }
.wizard-side-kicker {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 14px;
}
.wizard-side-title {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 900;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 34px;
}
.wizard-side-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--aurora);
}
.wizard-steps { list-style: none; display: grid; gap: 4px; margin-bottom: 30px; }
.wizard-steps li {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--muted-2);
  font-size: 15px;
  font-weight: 550;
  transition: background .35s, color .35s;
}
.wizard-steps li i {
  width: 26px; height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid rgba(163, 184, 173, .35);
  display: grid; place-items: center;
  font-style: normal;
  font-size: 12.5px;
  position: relative;
  transition: border-color .35s, background .35s;
}
.wizard-steps li i::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background .35s;
}
.wizard-steps li.is-current { background: rgba(53, 227, 154, .08); color: var(--text); }
.wizard-steps li.is-current i { border-color: var(--aurora); }
.wizard-steps li.is-current i::after { background: var(--aurora); }
.wizard-steps li.is-done { color: var(--muted); }
.wizard-steps li.is-done i {
  background: var(--green);
  border-color: transparent;
}
.wizard-steps li.is-done i::after {
  width: 100%; height: 100%;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.wizard-summary {
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 26px;
}
.wizard-summary h3 {
  font-family: var(--font-display);
  font-stretch: 114%;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 14px;
}
.wizard-summary dl { display: grid; gap: 10px; }
.wizard-summary dl > div {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 15px;
}
.wizard-summary dt { color: var(--muted-2); }
.wizard-summary dd { font-weight: 650; text-align: right; }
.wizard-summary .sum-once { padding-top: 10px; border-top: 1px solid var(--line); }
.wizard-side-note { color: var(--muted-2); font-size: 14px; }
.wizard-side-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* Schritte */
.wizard-main {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
}
.step {
  display: none;
  animation: stepIn .6s var(--ease-out);
}
.step.is-active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-head { margin-bottom: clamp(24px, 3.5vh, 40px); }
.step-count {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 12px;
}
.step-head h2 {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
}
.step-sub { margin-top: 12px; color: var(--muted); max-width: 60ch; }
.step-note { margin-top: 18px; color: var(--muted-2); font-size: 14px; }
.form-field-half { max-width: 340px; }
.field-hint { margin-top: 6px; font-size: 13px; color: var(--aurora); min-height: 1.2em; }
.segmented-3 { grid-template-columns: repeat(3, 1fr); }
.form-row-street { grid-template-columns: 1fr 110px; }
.form-row-city { grid-template-columns: 150px 1fr; }

/* Tarif-Karten */
.term-toggle {
  display: inline-flex;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 24px;
}
.term-toggle button {
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 14.5px;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
  transition: background .35s, color .35s;
}
.term-toggle button span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.term-toggle button.is-active { background: var(--green); color: #fff; }
.term-toggle button.is-active span { color: #ffe9bd; }
.tarif-grid { display: grid; gap: 14px; }
.tarif-card {
  position: relative;
  display: grid;
  gap: 5px;
  text-align: left;
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 76px 24px 28px;
  transition: border-color .35s, transform .35s var(--ease-out), box-shadow .35s;
}
.tarif-card:hover { transform: translateY(-3px); border-color: rgba(53, 227, 154, .45); }
.tarif-card.is-selected {
  border-color: var(--aurora);
  box-shadow: 0 14px 44px rgba(0, 117, 76, .28);
}
.tarif-badge {
  position: absolute;
  top: -11px; left: 26px;
  background: linear-gradient(135deg, var(--gold), #b8933f);
  color: #17110a;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.tarif-name {
  font-family: var(--font-display);
  font-stretch: 114%;
  font-weight: 850;
  font-size: 19px;
  text-transform: uppercase;
}
.tarif-price { font-size: 16px; color: var(--muted); }
.tarif-price b {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 900;
  font-size: 30px;
  color: var(--text);
  margin-right: 4px;
}
.tarif-hint { font-size: 13.5px; color: var(--muted-2); }
.tarif-check {
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%) scale(.7);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .3s, transform .35s var(--ease-out);
}
.tarif-check svg { width: 18px; height: 18px; color: #fff; }
.tarif-card.is-selected .tarif-check { opacity: 1; transform: translateY(-50%) scale(1); }

/* Unterschrift */
.sign-wrap {
  position: relative;
  height: 220px;
  background: #f5f8f4;
  border-radius: var(--radius);
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
  border: 1.5px solid var(--line);
  transition: border-color .3s, box-shadow .3s;
}
.sign-wrap.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 125, 107, .12); }
.sign-wrap canvas { width: 100%; height: 100%; display: block; }
.sign-line {
  position: absolute;
  left: 8%; right: 8%; bottom: 46px;
  border-bottom: 1.5px dashed rgba(6, 20, 14, .3);
  pointer-events: none;
}
.sign-hint {
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  color: rgba(6, 20, 14, .45);
  font-size: 13.5px;
  letter-spacing: .06em;
  pointer-events: none;
  transition: opacity .3s;
}
.sign-wrap.has-ink .sign-hint { opacity: 0; }
.sign-clear {
  position: absolute;
  top: 12px; right: 12px;
  display: flex; align-items: center; gap: 7px;
  background: rgba(6, 20, 14, .82);
  color: #e9f2ec;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .3s;
}
.sign-clear:hover { background: rgba(6, 20, 14, .95); }
.sign-clear svg { width: 14px; height: 14px; }

/* Checkboxen */
.check-group { display: grid; gap: 14px; margin-top: 26px; }
.check {
  display: flex; gap: 14px; align-items: flex-start;
  cursor: pointer;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1.5px solid rgba(163, 184, 173, .4);
  background: rgba(6, 10, 8, .5);
  display: grid; place-items: center;
  transition: background .25s, border-color .25s, transform .2s;
  margin-top: 1px;
}
.check-box svg { width: 15px; height: 15px; color: #fff; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--ease-out); }
.check input:checked + .check-box { background: var(--green); border-color: transparent; }
.check input:checked + .check-box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check-box { box-shadow: 0 0 0 4px rgba(53, 227, 154, .18); }
.check:hover .check-box { border-color: var(--aurora); }

/* Zusammenfassung */
.review { display: grid; gap: 14px; }
.review-block {
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.review-block header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.review-block h3 {
  font-family: var(--font-display);
  font-stretch: 114%;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aurora);
}
.review-edit {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .3s;
}
.review-edit:hover { color: var(--aurora); }
.review-block dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 24px;
}
.review-block dt { font-size: 12.5px; color: var(--muted-2); letter-spacing: .04em; text-transform: uppercase; }
.review-block dd { font-size: 15.5px; font-weight: 550; margin-top: 2px; word-break: break-word; }
.review-sign img { height: 74px; background: #f5f8f4; border-radius: 10px; padding: 6px 14px; }
.review-price {
  margin-top: 18px;
  background:
    linear-gradient(var(--panel-2), var(--panel-2)) padding-box,
    linear-gradient(150deg, var(--aurora), var(--green) 55%, var(--gold)) border-box;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.review-price table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.review-price td { padding: 8px 0; }
.review-price td:last-child { text-align: right; font-weight: 650; white-space: nowrap; }
.review-price tr.total td {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-stretch: 116%;
  font-weight: 850;
  font-size: 19px;
}
.review-price .price-info { color: var(--muted-2); font-size: 13px; padding-top: 10px; }

/* Schritt-Navigation */
.step-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(26px, 4vh, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.step-nav-hint {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 13px;
}
#btnNext { min-width: 210px; }
#btnNext svg, #btnBack svg { width: 18px; height: 18px; }
#btnNext:disabled { opacity: .6; cursor: wait; transform: none; }

/* Erfolg */
.step-success { text-align: center; padding: clamp(30px, 6vh, 70px) 0; }
.success-inner { max-width: 560px; margin: 0 auto; }
.success-mark { width: 120px; margin: 0 auto 30px; }
.success-ring {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: ringDraw 1s var(--ease-out) .2s forwards;
}
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
.success-check {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: ringDraw .5s var(--ease-out) 1s forwards;
}
.step-success h2 {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 54px);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.success-id { color: var(--muted); margin-bottom: 18px; }
.success-id strong {
  color: var(--aurora);
  font-family: var(--font-display);
  font-stretch: 114%;
  letter-spacing: .06em;
}
.success-text { color: var(--muted); margin-bottom: 34px; }
.success-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1000px) {
  .wizard { grid-template-columns: 1fr; gap: 26px; padding-top: 24px; }
  .wizard-side { position: static; }
  .wizard-side-title { display: none; }
  .wizard-side-kicker { display: none; }
  .wizard-steps {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    margin-bottom: 4px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .wizard-steps::-webkit-scrollbar { display: none; }
  .wizard-steps li { flex: 0 0 auto; padding: 8px 12px; font-size: 13.5px; }
  .wizard-summary { display: none; }
  .wizard-side-note { display: none; }
  .wizard-main { min-height: 0; }
  .step-nav { position: sticky; bottom: 0; background: linear-gradient(180deg, transparent, var(--bg) 30%); padding-bottom: 14px; }
  .step-nav-hint { display: none; }
  #btnNext { flex: 1; min-width: 0; }
  .wizard-exit span { display: none; }
  .form-row-street { grid-template-columns: 1fr 90px; }
  .form-row-city { grid-template-columns: 120px 1fr; }
}
