/* Wizard */
.wz-body { background: var(--paper); }
.wz-saved { font-size: 13px; color: var(--muted); }
.wz {
  max-width: 1120px; margin: 0 auto; padding: 32px 20px 120px;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start;
}

/* Seitenleiste */
.wz-rail { position: sticky; top: 92px; }
.wz-steps { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: s; }
.wz-steps li { counter-increment: s; }
.wz-steps button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px;
  background: none; border: 0; font: inherit; color: var(--muted); text-align: left; cursor: pointer;
}
.wz-steps button::before {
  content: counter(s); width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--muted);
}
.wz-steps button:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.wz-steps .is-done button { color: var(--ink-2); }
.wz-steps .is-done button::before { content: "✓"; background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.wz-steps .is-current button { color: var(--ink); font-weight: 600; background: var(--surface); box-shadow: var(--shadow); }
.wz-steps .is-current button::before { background: var(--accent); border-color: var(--accent); color: #fff; }

.wz-price {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px 18px 16px;
}
.wz-price__amount { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.wz-price__amount small { font-family: var(--font); font-size: 14px; font-weight: 500; opacity: .7; letter-spacing: 0; }
.wz-price__meta { font-size: 13px; opacity: .75; margin-top: 8px; }
.wz-help { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* Hauptbereich */
.wz-main { min-width: 0; }
.wz-progress { display: none; height: 4px; background: var(--line); border-radius: 2px; margin-bottom: 20px; overflow: hidden; }
.wz-progress span { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.wz-step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 36px 40px; }
.wz-step:focus { outline: none; }
.wz-step__head { margin-bottom: 26px; }
.wz-step__head h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; }
.wz-step__head p { color: var(--muted); margin: 0; max-width: 60ch; }
.wz-group { margin-top: 28px; }
.wz-group > h2 { font-size: 18px; margin-bottom: 4px; }
.wz-group > p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

.wz-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px;
}
.wz-nav__price { display: none; }

/* Auswahlkarten */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.choice {
  position: relative; display: block; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 18px 18px 18px 52px;
  transition: border-color .15s, background .15s;
}
.choice::before {
  content: ""; position: absolute; left: 18px; top: 20px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--surface);
}
.choice:hover { border-color: var(--accent); }
.choice[aria-pressed="true"], .choice.is-on { border-color: var(--accent); background: var(--accent-soft); }
.choice[aria-pressed="true"]::before, .choice.is-on::before { border: 6px solid var(--accent); }
.choice strong { display: block; font-size: 16px; margin-bottom: 3px; }
.choice span { color: var(--muted); font-size: 14px; }
.choices--check .choice::before { border-radius: 6px; }
.choices--check .choice[aria-pressed="true"]::before {
  border: 0; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.choices--sections { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.choices--sections .choice { padding: 14px 14px 14px 44px; }
.choices--sections .choice::before { left: 14px; top: 16px; }
.choice-wrap { display: flex; flex-direction: column; }
.choice-wrap .choice { flex: 1; }
.choice-wrap.has-page .choice { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-width: 1px; }
.choice__page {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  background: var(--surface); border: 1.5px solid var(--accent); border-top: 0; border-radius: 0 0 14px 14px; padding: 9px 14px;
}
.choice__page input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex: none; }
.choice__page:hover { color: var(--ink); }
.choice__page:has(input:checked) { color: var(--accent-ink); font-weight: 600; }
.panel__head h3 .badge { font-family: var(--font); vertical-align: 3px; margin-left: 6px; }
.fixed-sections { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 13.5px; color: var(--muted); align-items: center; }
.fixed-sections span { background: var(--paper); border-radius: 99px; padding: 4px 11px; color: var(--ink-2); }

/* Inhalte je Sektion */
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-top: 14px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel__head h3 { margin: 0; font-family: var(--display); font-size: 18px; }
.panel.is-wfm .panel__fields--text { display: none; }
.wfm-note { display: none; color: var(--muted); font-size: 14px; background: var(--paper); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.panel.is-wfm .wfm-note { display: block; }
.list-item { background: var(--paper); border-radius: 12px; padding: 14px 14px 2px; margin-bottom: 10px; position: relative; }
.list-item__remove { position: absolute; top: 8px; right: 8px; }
.list-item .field:first-child { padding-right: 70px; }

/* Uploads */
.uploader { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.uploader__item { position: relative; width: 86px; height: 86px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; font-size: 11px; text-align: center; padding: 4px; color: var(--muted); }
.uploader__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uploader__item button {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; z-index: 1;
  background: rgba(19,32,58,.75); color: #fff; cursor: pointer; font-size: 13px; line-height: 22px; padding: 0;
}
.uploader__add {
  width: 86px; height: 86px; border-radius: 10px; border: 1.5px dashed var(--line-strong); display: grid; place-items: center;
  color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; position: relative; text-align: center; padding: 6px; background: var(--surface);
}
.uploader__add:hover { border-color: var(--accent); background: var(--accent-soft); }
.uploader__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.uploader__busy { font-size: 13px; color: var(--muted); }

/* Farben */
.colors { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.color { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 8px 6px 6px; }
.color input[type=color] { width: 34px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 6px; }
.color code { font-size: 13px; }
.color button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; }

/* Domain-Check */
.domain-hint { font-size: 13px; margin-top: 5px; min-height: 18px; }
.domain-hint.ok { color: var(--live); }
.domain-hint.bad { color: var(--danger); }
.domain-hint.extra { color: var(--user); }

/* Zusammenfassung */
.summary { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.summary__row { display: grid; grid-template-columns: 160px 1fr auto; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; align-items: start; }
.summary__row:last-child { border-bottom: 0; }
.summary__row dt { color: var(--muted); }
.summary__row dd { margin: 0; }
.summary__row button { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; font-size: 13.5px; padding: 0; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; background: var(--ink); color: #fff; padding: 18px; }
.summary__total { gap: 12px; }
.summary__total strong { font-family: var(--display); font-size: 28px; white-space: nowrap; }
@media (max-width: 560px) { .summary__total strong { font-size: 22px; } .summary__total span { font-size: 13px; } }

.wz-resume { background: var(--ink); color: #fff; border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.wz-resume .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.wz-resume .btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.wz-resume div { display: flex; gap: 8px; }

.form-error { background: var(--danger-soft); color: #8E1F27; border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: 14px; }

@media (max-width: 900px) {
  .wz { grid-template-columns: 1fr; padding-top: 16px; gap: 0; }
  .wz-rail { display: none; }
  .wz-progress { display: block; }
  .wz-step { padding: 24px 20px; border-radius: 16px; }
  .wz-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0;
    background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .wz-nav__price { display: block; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.3; }
  .wz-nav__price strong { display: block; color: var(--ink); font-size: 16px; }
  .wz-nav .btn--lg { padding: 13px 18px; }
  .summary__row { grid-template-columns: 1fr auto; }
  .summary__row dt { grid-column: 1 / -1; margin-bottom: -10px; font-size: 13px; }
}
