/*
 * Anfrage-Wizard Styles
 * Loaded by template-anfrage.php
 */

/* ── Layout: Grid mit sticky Sidebar ─────────────────── */
.anfrage-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.anfrage-form-wrap {
  min-width: 0;
  max-width: 760px;
}

/* ── Form Card ────────────────────────────────────────── */
.form-card {
  background: #fff;
  border: 1px solid #e2e8f4;
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 4px 16px rgba(15, 35, 70, 0.06);
}

/* ── Messages ─────────────────────────────────────────── */
.zs-form-msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}
.zs-form-msg--ok  { background: #e8f7ec; border: 1px solid #b8e0c1; color: #1a6b2e; }
.zs-form-msg--err { background: #fff1f1; border: 1px solid #f0c3c3; color: #8a2020; }

/* ── Form Elements ────────────────────────────────────── */
.form-card label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #17253b;
  margin-bottom: 6px;
}
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="number"],
.form-card input:not([type]),
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d0d9ea;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #1a2b4a;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: #1f7ae0;
  box-shadow: 0 0 0 3px rgba(31, 122, 224, 0.12);
}
.form-card textarea { min-height: 110px; resize: vertical; }
.form-card select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235c6b85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ── Form Grid ────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ══════════════════════════════════════════════════════════
   SITUATIONS-AUSWAHL – 4 Kacheln mit Icon statt Bild
   ══════════════════════════════════════════════════════════ */
.zs-anfrage-typ-section { margin-bottom: 6px; }
.zs-anfrage-typ-label {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 4px;
  display: block;
  color: #1a2b4a;
  letter-spacing: -0.01em;
}
.zs-anfrage-typ-sub {
  font-size: 14px;
  color: #5a6a85;
  margin: 0 0 16px;
  line-height: 1.5;
}
.zs-anfrage-typ-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label.zs-typ-row {
  display: flex !important;
  align-items: center;
  gap: 0;
  padding: 0;
  margin-bottom: 0;
  border: 2px solid #e2e8f4;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .12s;
  background: #fff;
  overflow: hidden;
  font-weight: normal;
  font-size: inherit;
}
label.zs-typ-row:hover {
  border-color: #a8c8f0;
  background: #f8fbff;
  transform: translateY(-1px);
}
label.zs-typ-row.active {
  border-color: #1f7ae0;
  background: #edf4ff;
  box-shadow: 0 0 0 3px rgba(31, 122, 224, 0.12);
}
.zs-typ-row input[type="radio"] { display: none; }

.zs-typ-row-icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  font-size: 32px;
  background: #f5f8fd;
  border-right: 1px solid #e2e8f4;
  transition: background .18s;
}
label.zs-typ-row.active .zs-typ-row-icon {
  background: #dcebff;
  border-right-color: #b3d2f3;
}

.zs-typ-row-text {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.zs-typ-row-text strong {
  display: block;
  font-size: 15.5px;
  color: #1a2b4a;
  margin-bottom: 3px;
  line-height: 1.3;
}
.zs-typ-row-text span {
  font-size: 13.5px;
  color: #5a6a85;
  line-height: 1.45;
  display: block;
}

/* ── Formular-Sektionen ──────────────────────────────── */
.zs-anfrage-section {
  margin-top: 24px;
  animation: tdFadeIn .3s ease;
}
.zs-anfrage-section h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f4;
  color: #1a2b4a;
}
.zs-section-sub {
  margin: 8px 0 14px;
  font-size: 13.5px;
  color: #5a6a85;
  line-height: 1.5;
}
.zs-anfrage-textarea-wrap { margin-top: 14px; }
.zs-anfrage-dsgvo {
  margin-top: 14px;
  font-size: 13px;
  color: #4a5a75;
  line-height: 1.5;
}
.zs-anfrage-dsgvo a {
  color: #1f7ae0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.zs-anfrage-submit-wrap { margin-top: 18px; text-align: center; }
.zs-anfrage-submit-btn {
  border: 0;
  cursor: pointer;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
}

@keyframes tdFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR – Sticky auf Desktop
   ══════════════════════════════════════════════════════════ */
.anfrage-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  width: 100%;
  background: #eef2f8;
  border: 1px solid #d7e0ef;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 35, 70, 0.08);
}
.anfrage-sidebar h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.2; color: #1a2b4a; }

.person-card { display: flex; gap: 12px; align-items: center; margin: 10px 0 14px; }
.person-avatar { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; display: block; border: 2px solid #cdd8ec; }
.person-name { font-weight: 800; font-size: 17px; }
.person-role { color: #4f5f79; font-weight: 600; font-size: 14px; }

.sidebar-ticks { display: grid; gap: 8px; margin-top: 10px; }
.sidebar-tick { display: flex; gap: 8px; align-items: center; color: #24344f; font-weight: 600; font-size: 14px; }
.sidebar-dot {
  width: 20px; height: 20px; border-radius: 999px;
  background: #dbe4f3; color: #234;
  display: grid; place-items: center;
  font-size: 12px; flex: 0 0 20px;
}

.sidebar-info-box {
  margin-top: 16px;
  background: #f0f5ff;
  border: 1px solid #d4e3ff;
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  color: #2a3d5a;
  line-height: 1.5;
}
.sidebar-info-box strong { display: block; margin-bottom: 4px; font-size: 14px; }
.sidebar-info-box a { color: #1f7ae0; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ══════════════════════════════════════════════════════════
   DIMENSIONS
   ══════════════════════════════════════════════════════════ */
.dim-section { margin-top: 14px; }
.dim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.dim-group label { display: block; font-weight: 800; margin-bottom: 8px; font-size: 14px; color: #17253b; }
.dim-ctrl { display: grid; grid-template-columns: 118px 38px 38px; gap: 8px; align-items: center; }
.dim-btn {
  width: 38px; height: 38px; border: 1px solid #cdd8ec; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 22px; line-height: 1; color: #1a2b4a;
}
.dim-btn:hover { background: #f0f4ff; border-color: #9db4d8; }
.dim-unit { position: relative; max-width: 118px; }
.dim-unit::after { content: "m"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #5c6b85; font-weight: 700; }
.dim-unit input { padding-right: 26px; height: 46px; }
.dim-hint {
  display: none; margin-top: 8px; padding: 8px 10px; border-radius: 8px;
  background: #fff5d6; border: 1px solid #f0d98a; color: #6a5206; font-weight: 600; font-size: 13px;
}

/* ══════════════════════════════════════════════════════════
   SUCCESS STATE – Full-Experience nach Anfrage-Absendung
   ══════════════════════════════════════════════════════════ */
.zs-success-card {
  padding: 40px 36px;
  text-align: center;
}
.zs-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #edf4ff;
  display: grid;
  place-items: center;
  animation: tdPop .4s ease;
}
@keyframes tdPop {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
.zs-success-title {
  font-size: 26px;
  font-weight: 800;
  color: #1a2b4a;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.zs-success-lead {
  font-size: 15.5px;
  color: #4a5a75;
  line-height: 1.55;
  max-width: 540px;
  margin: 0 auto 26px;
}

.zs-success-steps {
  text-align: left;
  max-width: 520px;
  margin: 0 auto 28px;
  display: grid;
  gap: 14px;
}
.zs-success-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: #f6f9fd;
  border: 1px solid #e2e8f4;
  border-radius: 12px;
}
.zs-success-step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #1f7ae0;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}
.zs-success-step strong {
  display: block;
  font-size: 15px;
  color: #1a2b4a;
  margin-bottom: 2px;
}
.zs-success-step span {
  font-size: 13.5px;
  color: #5a6a85;
  line-height: 1.5;
  display: block;
}

.zs-success-contact {
  max-width: 520px;
  margin: 0 auto 24px;
  padding: 18px;
  background: #f0f5ff;
  border: 1px solid #d4e3ff;
  border-radius: 12px;
  text-align: left;
}
.zs-success-contact > strong {
  display: block;
  font-size: 14px;
  color: #1a2b4a;
  margin-bottom: 12px;
  text-align: center;
}
.zs-success-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.zs-success-contact-btn {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #d4e3ff;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background .18s, border-color .18s;
}
.zs-success-contact-btn:hover {
  background: #edf4ff;
  border-color: #1f7ae0;
}
.zs-success-contact-ico {
  font-size: 22px;
  flex: 0 0 auto;
}
.zs-success-contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.zs-success-contact-text strong {
  font-size: 13.5px;
  color: #1a2b4a;
  font-weight: 800;
  line-height: 1.25;
}
.zs-success-contact-text span {
  font-size: 12px;
  color: #5a6a85;
  margin-top: 2px;
}

.zs-success-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.zs-success-cta-row .btn { padding: 12px 24px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .anfrage-layout {
    grid-template-columns: 1fr;
  }
  .anfrage-sidebar {
    position: static;
    max-width: 760px;
    margin: 24px auto 0;
  }
}
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px 18px; }
  .dim-row { grid-template-columns: 1fr; }
  .zs-typ-row-icon { flex: 0 0 56px; width: 56px; height: 56px; font-size: 24px; }
  .zs-typ-row-text { padding: 12px 14px; }
  .zs-typ-row-text strong { font-size: 14.5px; }
  .zs-typ-row-text span { font-size: 12.5px; }
  .zs-success-card { padding: 30px 20px; }
  .zs-success-title { font-size: 22px; }
  .zs-success-contact-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   MULTI-STEP WIZARD
   ══════════════════════════════════════════════════════════ */
.zs-wizard {
  padding: 24px 28px 28px;
}

/* ── Progress Bar + Step Dots ───────────────────────── */
.zs-wizard-progress {
  margin: 0 0 26px;
  position: relative;
}
.zs-wizard-progress-track {
  position: absolute;
  top: 19px;
  left: 19px;
  right: 19px;
  height: 3px;
  background: #e2e8f4;
  border-radius: 3px;
  z-index: 0;
}
.zs-wizard-progress-fill {
  height: 100%;
  background: #1f7ae0;
  border-radius: 3px;
  width: 0%;
  transition: width .32s cubic-bezier(.4,0,.2,1);
}
.zs-wizard-progress-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.zs-wizard-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.zs-wizard-progress-num {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #cdd8ec;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #5a6a85;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.zs-wizard-progress-step.is-active .zs-wizard-progress-num {
  background: #1f7ae0;
  border-color: #1f7ae0;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(31, 122, 224, 0.12);
}
.zs-wizard-progress-step.is-done .zs-wizard-progress-num {
  background: #1f7ae0;
  border-color: #1f7ae0;
  color: #fff;
}
.zs-wizard-progress-step.is-done .zs-wizard-progress-num::before {
  content: "✓";
  font-size: 15px;
}
.zs-wizard-progress-step.is-done .zs-wizard-progress-num > * { display: none; }
.zs-wizard-progress-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: #5a6a85;
  transition: color .2s;
  letter-spacing: .01em;
}
.zs-wizard-progress-step.is-active .zs-wizard-progress-lbl,
.zs-wizard-progress-step.is-done .zs-wizard-progress-lbl {
  color: #1a2b4a;
}

/* ── Steps ──────────────────────────────────────────── */
.zs-wizard-step {
  display: none;
  animation: tdStepIn .32s cubic-bezier(.4,0,.2,1);
}
.zs-wizard-step.is-active {
  display: block;
}
@keyframes tdStepIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
.zs-step-head {
  margin-bottom: 18px;
}
.zs-step-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1a2b4a;
  margin: 0 0 6px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.zs-step-head p {
  margin: 0;
  font-size: 14.5px;
  color: #5a6a85;
  line-height: 1.5;
}

/* ── Step 2 conditional content ─────────────────────── */
.zs-step2-content[hidden] { display: none !important; }

/* ── Wizard Navigation ──────────────────────────────── */
.zs-wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f4;
}
.zs-wizard-nav .btn {
  min-width: 120px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  transition: background .18s, border-color .18s, color .18s, transform .12s, opacity .18s;
}
.zs-wizard-nav .btn.pri {
  background: #1f7ae0;
  color: #fff;
  border: 1.5px solid #1f7ae0;
}
.zs-wizard-nav .btn.pri:hover:not(:disabled) {
  background: #1863b8;
  border-color: #1863b8;
  transform: translateY(-1px);
}
.zs-wizard-nav .btn.pri:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}
.zs-wizard-nav .btn.sec {
  background: #fff;
  color: #1a2b4a;
  border: 1.5px solid #cdd8ec;
}
.zs-wizard-nav .btn.sec:hover {
  background: #f4f8ff;
  border-color: #9db4d8;
}
.zs-wizard-nav-spacer { flex: 1; }

/* ── Step 3 Summary Card ────────────────────────────── */
.zs-wizard-summary {
  margin-top: 20px;
  padding: 16px 18px;
  background: #f6f9fd;
  border: 1px solid #e2e8f4;
  border-radius: 12px;
}
.zs-wizard-summary > strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #5a6a85;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.zs-wizard-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.zs-wizard-summary li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  font-size: 14px;
  align-items: baseline;
}
.zs-wizard-summary li span {
  color: #5a6a85;
  font-weight: 600;
}
.zs-wizard-summary li strong {
  color: #1a2b4a;
  font-weight: 700;
}

/* ── Invalid field highlight ────────────────────────── */
.form-card .is-invalid,
.form-card input.is-invalid,
.form-card select.is-invalid {
  border-color: #d54b4b !important;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(213, 75, 75, 0.14);
}

/* ── Wizard Responsive ──────────────────────────────── */
@media (max-width: 700px) {
  .zs-wizard { padding: 18px 16px 20px; }
  .zs-wizard-progress { margin-bottom: 20px; }
  .zs-wizard-progress-num { width: 32px; height: 32px; font-size: 13px; }
  .zs-wizard-progress-track { top: 16px; left: 16px; right: 16px; }
  .zs-wizard-progress-lbl { font-size: 11.5px; }
  .zs-step-head h2 { font-size: 19px; }
  .zs-wizard-nav { flex-wrap: wrap; }
  .zs-wizard-nav .btn { flex: 1; min-width: 0; }
  .zs-wizard-summary li { grid-template-columns: 1fr; gap: 2px; }
}

/* ==========================================================
   ANFRAGE-WIZARD v2 – Redesign Auto-Advance / Step-2 Formulare
   ========================================================== */

/* ── Step 1: Arrow Indicator on Typ-Row ───────────────── */
.zs-typ-row {
  position: relative;
}
.zs-typ-row-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #7a8ba8;
  opacity: .55;
  transition: transform .25s ease, opacity .25s ease, color .25s ease;
  margin-left: 10px;
  flex-shrink: 0;
}
.zs-typ-row:hover .zs-typ-row-arrow {
  opacity: 1;
  color: #1a2b4a;
  transform: translateX(3px);
}
.zs-typ-row.active .zs-typ-row-arrow {
  color: var(--accent, #fac800);
  opacity: 1;
}

/* Pulse animation for auto-advance feedback */
@keyframes zs-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.015); box-shadow: 0 0 0 6px rgba(250,200,0,0.18); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(250,200,0,0); }
}
.zs-typ-row.pulse {
  animation: zs-pulse .42s ease-out;
}

/* ── Step 2: generic container ─────────────────────────── */
.zs-step2-content {
  display: grid;
  gap: 26px;
}

/* ── Question Block (label + sub-label + input area) ──── */
.zs-q-block {
  display: grid;
  gap: 10px;
}
.zs-q-block--compact {
  gap: 6px;
}
.zs-q-label {
  font-size: 16px;
  font-weight: 700;
  color: #1a2b4a;
  letter-spacing: -0.01em;
}
.zs-q-sub {
  font-size: 13px;
  color: #5a6a85;
  margin-top: -4px;
  line-height: 1.45;
}

/* ── Pick Grid (Radio-Cards for options) ───────────────── */
.zs-pick-grid {
  display: grid;
  gap: 10px;
}
.zs-pick-grid-2 { grid-template-columns: repeat(2, 1fr); }
.zs-pick-grid-3 { grid-template-columns: repeat(3, 1fr); }
.zs-pick-grid-4 { grid-template-columns: repeat(4, 1fr); }
.zs-pick-grid--sub { margin-top: 4px; }

@media (max-width: 600px) {
  .zs-pick-grid-3,
  .zs-pick-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .zs-pick-grid-2 { grid-template-columns: 1fr; }
}

.zs-pick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 14px 10px;
  border: 2px solid #e0e6ef;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
  min-height: 82px;
  position: relative;
  user-select: none;
}
.zs-pick-card:hover {
  border-color: #bcc7d8;
  background: #f8fafc;
  transform: translateY(-1px);
}
.zs-pick-card.is-checked {
  border-color: var(--accent, #fac800);
  background: #fffbea;
  box-shadow: 0 3px 12px rgba(250,200,0,0.18);
}
.zs-pick-card.is-checked::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 13px;
  font-weight: 900;
  color: var(--accent, #fac800);
  background: #1a2b4a;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.zs-pick-ico {
  font-size: 22px;
  line-height: 1;
}
.zs-pick-txt {
  font-size: 13px;
  font-weight: 600;
  color: #1a2b4a;
  line-height: 1.3;
}

/* ── Pill Row (compact choices: sizes, systems) ────────── */
.zs-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.zs-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 2px solid #e0e6ef;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #1a2b4a;
  cursor: pointer;
  transition: all .18s ease;
  user-select: none;
  white-space: nowrap;
}
.zs-pill:hover {
  border-color: #bcc7d8;
  background: #f8fafc;
}
.zs-pill.is-checked {
  border-color: var(--accent, #fac800);
  background: var(--accent, #fac800);
  color: #1a2b4a;
  box-shadow: 0 2px 8px rgba(250,200,0,0.28);
}

/* ── Color Grid (swatches) ─────────────────────────────── */
.zs-color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .zs-color-grid { grid-template-columns: repeat(2, 1fr); }
}
.zs-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 2px solid #e0e6ef;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
}
.zs-color:hover {
  border-color: #bcc7d8;
  transform: translateY(-1px);
}
.zs-color.is-checked {
  border-color: var(--accent, #fac800);
  background: #fffbea;
  box-shadow: 0 3px 12px rgba(250,200,0,0.18);
}
.zs-color.is-checked::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 11px;
  font-weight: 900;
  color: var(--accent, #fac800);
  background: #1a2b4a;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.zs-color-swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.08);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25), 0 2px 6px rgba(0,0,0,0.1);
}
.zs-color-swatch--mix {
  background: conic-gradient(from 135deg, #e74c3c, #f1c40f, #2ecc71, #3498db, #9b59b6, #e74c3c);
}
.zs-color-txt {
  font-size: 12px;
  font-weight: 600;
  color: #1a2b4a;
  text-align: center;
  line-height: 1.25;
}

/* ── Sub-Block (conditional visibility) ────────────────── */
.zs-sub-block {
  margin-top: 2px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent, #fac800);
  background: #fffdf3;
  border-radius: 0 10px 10px 0;
  display: grid;
  gap: 12px;
}
.zs-sub-block[hidden] { display: none; }

/* ── Info Box (notes / hints in step 2) ────────────────── */
.zs-info-box {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: #f4f7fb;
  border-radius: 10px;
  font-size: 13.5px;
  color: #3a4a66;
  line-height: 1.5;
}
.zs-info-box--accent {
  background: #fffbea;
  border: 1px solid rgba(250,200,0,0.35);
  color: #1a2b4a;
}
.zs-info-box strong { color: #1a2b4a; }

/* ── Manual Input (follow-up input after "eigene" etc.) ─ */
.zs-manual-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e6ef;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
  font-family: inherit;
}
.zs-manual-input:focus {
  outline: none;
  border-color: var(--accent, #fac800);
  box-shadow: 0 0 0 3px rgba(250,200,0,0.2);
}

/* ── Hint (small label below inputs) ───────────────────── */
.zs-hint {
  font-size: 12.5px;
  color: #7a8ba8;
  margin-top: 4px;
  line-height: 1.4;
}

/* ── Order List (WooCommerce orders as pick-cards) ─────── */
.zs-order-list {
  display: grid;
  gap: 10px;
}
.zs-order-card {
  display: block;
  padding: 14px 16px;
  border: 2px solid #e0e6ef;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
}
.zs-order-card:hover {
  border-color: #bcc7d8;
  background: #f8fafc;
  transform: translateY(-1px);
}
.zs-order-card.is-checked {
  border-color: var(--accent, #fac800);
  background: #fffbea;
  box-shadow: 0 3px 12px rgba(250,200,0,0.18);
}
.zs-order-card.is-checked::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 13px;
  font-weight: 900;
  color: var(--accent, #fac800);
  background: #1a2b4a;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.zs-order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.zs-order-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.zs-order-items {
  font-size: 14px;
  font-weight: 600;
  color: #1a2b4a;
  line-height: 1.35;
}
.zs-order-meta {
  font-size: 12.5px;
  color: #5a6a85;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.zs-order-meta span::before { content: "· "; }
.zs-order-meta span:first-child::before { content: ""; }

/* Order Number */
.zs-order-card-head strong {
  font-size: 13px;
  font-weight: 800;
  color: #1a2b4a;
  letter-spacing: .02em;
}

/* Order Status Badge */
.zs-order-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: #eef2f7;
  color: #3a4a66;
}
.zs-order-status--completed,
.zs-order-status--wc-completed { background: #d1f0d6; color: #1e5130; }
.zs-order-status--processing,
.zs-order-status--wc-processing { background: #cfe6fb; color: #104a80; }
.zs-order-status--on-hold,
.zs-order-status--wc-on-hold { background: #ffe7c2; color: #8a4e00; }
.zs-order-status--pending,
.zs-order-status--wc-pending { background: #f1eacc; color: #6b5a10; }
.zs-order-status--cancelled,
.zs-order-status--wc-cancelled,
.zs-order-status--failed,
.zs-order-status--wc-failed { background: #f3d4d4; color: #7a1a1a; }

/* Order Card — Manual Entry Variant */
.zs-order-card--manual {
  background: #f8fafc;
  border-style: dashed;
  text-align: center;
}
.zs-order-card--manual .zs-order-items {
  color: #3a4a66;
  font-weight: 600;
}

/* ── Hide native radio inputs inside pick/pill/color/order cards ── */
.zs-pick-card input[type="radio"],
.zs-pick-card input[type="checkbox"],
.zs-pill input[type="radio"],
.zs-pill input[type="checkbox"],
.zs-color input[type="radio"],
.zs-order-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

/* ── Responsive tweaks ─────────────────────────────────── */
@media (max-width: 700px) {
  .zs-q-label { font-size: 15px; }
  .zs-sub-block { padding: 14px 14px; }
  .zs-pick-card { min-height: 72px; padding: 12px 8px; }
  .zs-pick-ico { font-size: 20px; }
  .zs-pick-txt { font-size: 12.5px; }
  .zs-pill { padding: 9px 14px; font-size: 13px; }
  .zs-color-swatch { width: 40px; height: 40px; }
  .zs-order-card { padding: 12px 14px; }
}

/* ==========================================================
   ANFRAGE-WIZARD v2.1 – Fixes + Action Cards (Beratung)
   ========================================================== */

/* Critical: [hidden] must ALWAYS win over display: grid/flex/block
   (same-specificity selectors earlier in file would otherwise override this) */
.zs-step2-content[hidden],
.zs-sub-block[hidden],
.zs-q-block[hidden],
[hidden][data-manual-input],
[hidden][data-frage-message] { display: none !important; }

/* ── Action-Grid for Beratung (call / message / termin) ──── */
.zs-action-grid .zs-action-card {
  min-height: 140px;
  padding: 22px 14px;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.zs-action-grid .zs-action-card .zs-pick-ico {
  font-size: 32px;
}
.zs-action-grid .zs-action-card .zs-pick-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.3;
}
.zs-action-grid .zs-action-card strong {
  font-size: 15px;
  font-weight: 700;
  color: #1a2b4a;
}
.zs-action-grid .zs-action-card small {
  font-size: 12.5px;
  color: #5a6a85;
  font-weight: 500;
}
.zs-action-card[href]:hover {
  border-color: var(--accent, #fac800);
  background: #fffbea;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(250,200,0,0.22);
}
/* Direct-link card (Anrufen / Calendly) — no checkmark overlay */
.zs-action-card[href]::after { display: none !important; }

@media (max-width: 600px) {
  .zs-action-grid { grid-template-columns: 1fr !important; }
  .zs-action-grid .zs-action-card { min-height: 88px; padding: 16px 14px; flex-direction: row; justify-content: flex-start; text-align: left; }
  .zs-action-grid .zs-action-card .zs-pick-ico { font-size: 26px; margin-right: 4px; }
  .zs-action-grid .zs-action-card .zs-pick-txt { align-items: flex-start; text-align: left; }
}

/* ==========================================================
   ANFRAGE-WIZARD v2.2 – Label Override Fixes
   --------------------------------------------------------------------
   ISSUE: `.form-card label { display: block; font-weight: 700; ...
   margin-bottom: 6px; }` has higher specificity than the card-type
   labels (.zs-pick-card, .zs-color, .zs-order-card, .zs-pill) so it
   forced `display: block`. That collapsed the internal flex layout
   of the cards: icons ended up inline with text, swatches collapsed
   to zero-width slivers, and <strong>/<small> concatenated.
   Fix: re-assert the intended display + typography for card labels,
   and force inner <strong>/<small> to stack on their own line.
   ========================================================== */

/* Card-type labels must restore their flex/grid layout */
.form-card label.zs-pick-card,
.form-card label.zs-color,
.form-card label.zs-action-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}
.form-card label.zs-pill {
  display: inline-flex;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 14px;
  color: #1a2b4a;
}
.form-card label.zs-order-card {
  display: block;
  margin-bottom: 0;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}
.form-card label.zs-typ-row {
  margin-bottom: 0;
}

/* Swatches / icons must render as proper blocks, not inline */
.zs-color-swatch,
.zs-pick-ico {
  display: block;
}
.zs-color { justify-content: flex-start; }

/* Multi-line text inside cards: stack <strong> + <small> + <span> */
.zs-pick-txt,
.zs-color-txt,
.zs-success-contact-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.zs-pick-txt strong,
.zs-pick-txt small,
.zs-pick-txt span,
.zs-color-txt strong,
.zs-color-txt small,
.zs-color-txt span {
  display: block;
  line-height: 1.3;
}
.zs-pick-txt small,
.zs-color-txt small {
  font-size: 11.5px;
  color: #5a6a85;
  font-weight: 500;
  margin-top: 1px;
}
.zs-pick-txt strong {
  font-size: 14px;
  font-weight: 700;
  color: #1a2b4a;
}

/* Pill can contain <br><small> — make small a proper secondary line */
.zs-pill small {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  color: #5a6a85;
  margin-top: 1px;
}
.zs-pill.is-checked small { color: #1a2b4a; }

/* Align zs-color layout back to the original column layout */
.form-card label.zs-color {
  align-items: center;
  text-align: center;
}

/* Action cards (Beratung) — left-align small lines */
.zs-action-grid .zs-action-card .zs-pick-txt {
  align-items: center;
  text-align: center;
}

/* Pill row: allow line-break inside pill labels (Ja,<br>mit Montage) */
.zs-pill {
  line-height: 1.25;
  white-space: normal;
  min-height: 44px;
  padding: 8px 16px;
}
.zs-pill > span {
  display: block;
  text-align: center;
}

/* Success contact text fix (same issue with display:block on label) */
.form-card label.zs-success-contact-btn {
  margin-bottom: 0;
}

/* ==========================================================
   ANFRAGE-WIZARD v2.3 – Mobile Additions (Small Phones)
   --------------------------------------------------------------------
   Added 17.04.2026 as part of mobile audit:
   - 420px breakpoint for small phones (iPhone SE)
   - Bigger dim-btn touch targets on mobile
   - dim-ctrl single column fallback when too narrow
   - Wizard progress labels wrap / truncate gracefully
   ========================================================== */

/* ── Touch Targets: +/- Buttons on Maße Step ──────────── */
@media (max-width: 700px) {
  .dim-btn {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
  .dim-ctrl {
    /* give input more room, keep buttons proper size */
    grid-template-columns: 1fr 44px 44px;
    gap: 6px;
  }
  .dim-unit {
    max-width: none;
  }
  .dim-unit input {
    height: 44px;
    font-size: 16px; /* prevent iOS zoom on focus */
  }
  .form-card input[type="text"],
  .form-card input[type="email"],
  .form-card input[type="tel"],
  .form-card input[type="number"],
  .form-card input:not([type]),
  .form-card select,
  .form-card textarea {
    font-size: 16px; /* prevent iOS auto-zoom */
    padding: 12px 14px;
  }
  .form-card select {
    height: 46px;
  }
  .zs-anfrage-submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
  }
}

/* ── Small Mobile (iPhone SE etc.) ────────────────────── */
@media (max-width: 420px) {
  .form-card {
    padding: 16px 14px;
    border-radius: 12px;
  }
  .zs-anfrage-typ-label {
    font-size: 16px;
  }
  .zs-anfrage-typ-sub {
    font-size: 13px;
  }
  .zs-typ-row-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  .zs-typ-row-text {
    padding: 10px 12px;
  }
  .zs-typ-row-text strong {
    font-size: 13.5px;
  }
  .zs-typ-row-text span {
    font-size: 12px;
  }
  .zs-typ-row-arrow {
    width: 22px;
    height: 22px;
    margin-left: 4px;
    margin-right: 6px;
  }
  .zs-wizard {
    padding: 14px 12px 16px;
  }
  .zs-wizard-progress-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .zs-wizard-progress-track {
    top: 14px;
    left: 14px;
    right: 14px;
  }
  .zs-wizard-progress-lbl {
    font-size: 10.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  .zs-step-head h2 {
    font-size: 17px;
  }
  .zs-step-head p {
    font-size: 13px;
  }
  .zs-wizard-nav {
    gap: 8px;
    padding-top: 14px;
    margin-top: 18px;
  }
  .zs-wizard-nav .btn {
    padding: 10px 14px;
    font-size: 14px;
    min-width: 0;
  }
  .zs-pick-card {
    min-height: 64px;
    padding: 10px 6px;
  }
  .zs-pick-ico {
    font-size: 18px;
  }
  .zs-pick-txt {
    font-size: 11.5px;
  }
  .zs-pill {
    padding: 8px 12px;
    font-size: 12.5px;
    min-height: 40px;
  }
  .zs-color-swatch {
    width: 36px;
    height: 36px;
  }
  .zs-color {
    padding: 10px 6px;
  }
  .zs-color-txt {
    font-size: 11px;
  }
  .zs-info-box {
    padding: 10px 12px;
    font-size: 12.5px;
  }
  .zs-wizard-summary {
    padding: 12px 14px;
  }
  .zs-wizard-summary li {
    font-size: 13px;
  }
  .zs-success-card {
    padding: 24px 16px;
  }
  .zs-success-title {
    font-size: 19px;
  }
  .zs-success-lead {
    font-size: 14px;
  }
  .zs-success-step {
    padding: 10px 12px;
    grid-template-columns: 32px 1fr;
    gap: 10px;
  }
  .zs-success-step-num {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .zs-success-contact {
    padding: 14px;
  }
  .zs-success-contact-btn {
    padding: 10px;
  }
  .anfrage-sidebar {
    padding: 14px;
  }
  .anfrage-sidebar h3 {
    font-size: 17px;
  }
  .person-avatar {
    width: 48px;
    height: 48px;
  }
  .person-name {
    font-size: 15px;
  }
  .person-role {
    font-size: 13px;
  }
  .sidebar-tick {
    font-size: 13px;
  }
  .sidebar-info-box {
    padding: 12px;
    font-size: 12.5px;
  }
}

/* ── Ultra-narrow safety net ──────────────────────────── */
@media (max-width: 360px) {
  .zs-wizard-progress-lbl {
    font-size: 9.5px;
  }
  .zs-pick-grid-2,
  .zs-pick-grid-3,
  .zs-pick-grid-4 {
    gap: 6px;
  }
}
