/* ==========================================================================
   anfrage.css — Multi-Step-Sales-Formular für NG Fitness
   Alle Klassen mit `af-` Prefix (Anfrage-Form), nutzt Design-Tokens aus v2.css
   ========================================================================== */

.af-body {
  background: var(--c-creme);
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--c-body);
}

/* ─ Minimal Nav ───────────────────────────────────────────────────── */
.af-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--c-hairline);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px clamp(1rem, 4vw, 2rem);
}
.af-nav-spacer { display: none; }
.af-back { display: none; }
.af-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-muted);
  transition: color .2s;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--c-hairline);
}
.af-back:hover { color: var(--c-ink); border-color: var(--c-tuerkis); }
.af-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  color: var(--c-navy);
}
.af-logo .ng-logo { height: 72px; }

/* ─ Main Container ────────────────────────────────────────────────── */
.af-main {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
}
.af-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* ─ Aside / Context ───────────────────────────────────────────────── */
.af-aside {
  position: sticky;
  top: 90px;
  padding: 0.5rem 0;
}
.af-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--c-tuerkis);
  font-weight: 600;
  margin-bottom: 12px;
}
.af-kicker::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.af-h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--c-ink);
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.af-accent { color: var(--c-tuerkis); }
.af-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--c-body);
  margin-bottom: 2rem;
}
.af-trust {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.af-trust li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-body);
}
.af-trust li svg {
  flex-shrink: 0;
  color: var(--c-tuerkis);
  margin-top: 2px;
}
.af-trust li b {
  color: var(--c-ink);
  font-weight: 600;
}

.af-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--c-hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.af-person-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: url('/images/nick-headshot.webp') center/cover;
  flex-shrink: 0;
}
.af-person-txt b {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--c-ink);
  font-size: 15px;
  letter-spacing: -.005em;
}
.af-person-txt span {
  display: block;
  font-size: 12.5px;
  color: var(--c-muted);
  margin-top: 2px;
}

/* ─ Form Card ─────────────────────────────────────────────────────── */
.af-form {
  background: #fff;
  border: 1px solid var(--c-hairline);
  border-radius: 20px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-md);
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
}

/* Progress */
.af-progress {
  height: 4px;
  background: var(--c-creme-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.af-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--c-tuerkis), var(--c-tuerkis-dark));
  border-radius: 999px;
  width: 14%;
  transition: width .45s var(--ease);
}
.af-progress-label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 600;
  margin-bottom: 1.75rem;
}

/* Step */
.af-step {
  border: none;
  padding: 0;
  margin: 0;
  display: none;
  animation: af-fadein .4s var(--ease);
}
.af-step.is-active { display: block; }
@keyframes af-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.af-step-kicker {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-tuerkis);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0;
}
.af-step-kicker::before { content: ''; width: 24px; height: 1.5px; background: currentColor; }
.af-step-h {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--c-ink);
  font-weight: 600;
  margin-bottom: 8px;
  text-wrap: balance;
}
.af-step-hint {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Option Cards (Checkbox/Radio als Karten) */
.af-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 1rem;
}
.af-options--compact { grid-template-columns: 1fr; }

.af-opt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px 16px;
  background: var(--c-creme);
  border: 1px solid var(--c-hairline);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s var(--ease);
  position: relative;
}
.af-opt:hover {
  border-color: rgba(39, 156, 148, .4);
  background: #fff;
}
.af-opt input { position: absolute; opacity: 0; pointer-events: none; }

.af-opt-box {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--c-hairline);
  border-radius: 6px;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  transition: all .2s;
  margin-top: 1px;
}
.af-opt-box--radio { border-radius: 50%; }

.af-opt input:checked + .af-opt-box {
  background: var(--c-tuerkis);
  border-color: var(--c-tuerkis);
}
.af-opt input:checked + .af-opt-box::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%) rotate(45deg);
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.2px 2.2px 0;
}
.af-opt input[type="radio"]:checked + .af-opt-box--radio {
  background: #fff;
  border-width: 6px;
}
.af-opt input[type="radio"]:checked + .af-opt-box--radio::after { display: none; }

.af-opt:has(input:checked) {
  border-color: var(--c-tuerkis);
  background: rgba(39, 156, 148, .06);
}

.af-opt-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.af-opt-txt b {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--c-ink);
  letter-spacing: -.005em;
  line-height: 1.3;
}
.af-opt-txt small {
  font-size: 12.5px;
  color: var(--c-muted);
  line-height: 1.4;
}

/* Text Fields (Step 7) */
.af-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.af-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.af-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.af-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-tuerkis-dark, #1d6f6a);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: 'Inter', system-ui, sans-serif;
}
.af-field input,
.af-field textarea {
  font: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border: 1px solid rgba(0, 49, 92, 0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--c-ink);
  box-shadow: inset 0 1px 0 rgba(0, 49, 92, 0.02), 0 1px 2px rgba(0, 49, 92, 0.04);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.af-field input::placeholder,
.af-field textarea::placeholder {
  color: rgba(0, 49, 92, 0.32);
  font-weight: 400;
}
.af-field input:hover,
.af-field textarea:hover {
  border-color: rgba(0, 49, 92, 0.22);
}
.af-field input:focus,
.af-field textarea:focus {
  outline: none;
  border-color: var(--c-tuerkis);
  box-shadow: 0 0 0 4px rgba(39, 156, 148, .12), inset 0 1px 0 rgba(0, 49, 92, 0.02);
}
.af-field input.is-invalid,
.af-field textarea.is-invalid {
  border-color: #d94444;
  background: rgba(217, 68, 68, .04);
}
.af-field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.af-radio-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.af-pill {
  position: relative;
  padding: 8px 16px;
  border: 1.5px solid var(--c-hairline);
  border-radius: 999px;
  background: var(--c-creme);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-ink);
  cursor: pointer;
  transition: all .2s;
}
.af-pill input { position: absolute; opacity: 0; pointer-events: none; }
.af-pill:hover { border-color: rgba(39, 156, 148, .4); }
.af-pill:has(input:checked) {
  background: var(--c-tuerkis);
  color: #fff;
  border-color: var(--c-tuerkis);
}

.af-field--consent { margin-top: 4px; }
.af-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--c-body);
  cursor: pointer;
}
.af-consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--c-tuerkis);
  margin-top: 1px;
  flex-shrink: 0;
}
.af-consent a {
  color: var(--c-tuerkis);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Nav Row (Zurück/Weiter/Submit) */
.af-nav-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1.25rem;
  padding-top: 0;
}
.af-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s var(--ease);
  border: none;
}
.af-btn[hidden] { display: none !important; }
.af-btn-primary {
  background: var(--c-navy);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 49, 92, .18);
  margin-left: auto;
}
.af-btn-primary:hover {
  background: var(--c-tuerkis);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(39, 156, 148, .3);
}
.af-btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-hairline);
}
.af-btn-ghost:hover:not(:disabled) {
  background: var(--c-creme);
  border-color: var(--c-tuerkis);
  color: var(--c-tuerkis);
}
.af-btn-ghost:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Loading-State während Submit */
.af-submitting {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
  .af-container { grid-template-columns: 1fr; gap: 1.5rem; }
  .af-aside { position: relative; top: auto; order: 2; border-top: 1px solid var(--c-hairline); padding-top: 1.75rem; }
  .af-form { order: 1; min-height: 0; }
  .af-nav { padding: 8px 1rem; }
  .af-logo .ng-logo { width: 100px; height: auto; }
  .af-nav-row { margin-top: 0.9rem; }
  .af-back span { display: none; }
  .af-options { grid-template-columns: 1fr; gap: 8px; margin-bottom: 0.6rem; }
  .af-field-row { grid-template-columns: 1fr; }

  /* Aside-Inhalte kleiner + kompakter auf Mobile */
  .af-h1 { font-size: 1.4rem; line-height: 1.15; margin-bottom: 0.6rem; }
  .af-lead { font-size: 0.9rem; margin-bottom: 1rem; }
  .af-trust { margin-bottom: 1rem; gap: 9px; }
  .af-trust li { font-size: 13px; }

  /* Form-Headlines kompakter */
  .af-step-h { font-size: 1.1rem; line-height: 1.25; margin-bottom: 4px; }
  .af-step-hint { font-size: 12.5px; margin-bottom: 0.7rem; }
  .af-step-kicker { font-size: 10.5px; margin-bottom: 6px; }

  /* Option-Karten kleiner + kompakter */
  .af-opt { padding: 9px 12px; gap: 10px; }
  .af-opt-box { width: 18px; height: 18px; }
  .af-opt-txt b { font-size: 13.5px; }
  .af-opt-txt small { font-size: 11.5px; line-height: 1.3; }

  /* Progress-Bar kompakter */
  .af-progress-label { font-size: 11px; margin-bottom: 0.6rem; }

  /* Form-Felder kompakter (Step 8) */
  .af-fields { gap: 12px; }
  .af-field { gap: 5px; }
  .af-field input, .af-field textarea { padding: 10px 13px; }
  .af-field label { font-size: 10.5px; letter-spacing: 0.1em; }
  .af-field textarea { min-height: 64px; }
  .af-pill { padding: 7px 14px; font-size: 12.5px; }
}
@media (max-width: 560px) {
  .af-main { padding: 1rem 0.9rem; }
  .af-form { padding: 1rem 1rem 1.1rem; border-radius: 14px; }
  .af-h1 { font-size: 1.25rem; margin-bottom: 0.5rem; }
  .af-lead { font-size: 0.85rem; }
  .af-step-h { font-size: 1rem; line-height: 1.2; }
  .af-nav-row { flex-direction: column-reverse; }
  .af-btn { width: 100%; justify-content: center; padding: 12px 18px; font-size: 14px; }
  .af-phone span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .af-step { animation: none; }
  .af-progress-bar { transition: none; }
}

/* ─ Footer ──────────────────────────────────────────────────────────── */
.af-footer {
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.af-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.af-footer-brand { color: #fff; }
.af-footer-brand .ng-logo { height: 84px; margin-bottom: 1rem; }
.af-footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); max-width: 320px; }
.af-footer-col h4 {
  color: #fff;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-head);
}
.af-footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.af-footer-col li, .af-footer-col a { font-size: 14px; color: rgba(255, 255, 255, 0.7); transition: color .2s; }
.af-footer-col a:hover { color: var(--c-tuerkis); }
.af-footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.af-footer-bottom a { margin-left: 1.25rem; color: rgba(255, 255, 255, 0.5); transition: color .2s; }
.af-footer-bottom a:hover { color: var(--c-tuerkis); }

@media (max-width: 720px) {
  .af-footer-inner { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
  .af-footer-bottom { flex-direction: column; align-items: flex-start; }
  .af-footer-bottom a:first-of-type { margin-left: 0; }
}
