/* ============================================================
   PLANUNGS-CHECK — /planungs-check.html
   Eine zentrierte Spalte, Schritt für Schritt: Frage → Antwort-Kachel
   → „So plant Trailo das" direkt darunter → Weiter. Letzter Schritt =
   Ergebnis-Screen (Profil, Mail-Gate + Demo nebeneinander, Details).
   Logik in assets/fit-check.js. Konzept: docs/planungs-check-konzept.md
   ============================================================ */

.fc { padding: 48px 20px 72px; background: var(--surface2); }
.fc__wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

/* ─── Fortschritt (9 Segmente) ────────────────────────────── */
.fc-top { display: flex; align-items: center; gap: 14px; }
.fc-top__segs { flex: 1; display: flex; gap: 4px; }
.fc-top__segs span {
  flex: 1; height: 6px; border-radius: var(--pill); background: var(--surface3);
  transition: background .2s;
}
.fc-top__segs span.is-done { background: var(--accent); }
.fc-top__segs span.is-cur { background: var(--accent); opacity: .45; }
.fc-top__segs span.is-cur.is-done { opacity: 1; }
.fc-top__label { font-size: 12.5px; font-weight: 700; color: var(--text3); white-space: nowrap; letter-spacing: .02em; }

.fc__intro {
  background: var(--accent-tint-2); border: 1px dashed rgba(79,114,227,.35);
  border-radius: var(--r2); padding: 10px 14px;
  font-size: 13px; color: var(--text2); line-height: 1.5; margin: 0;
}
.fc__intro b { color: var(--text); }

/* ─── Fragen ───────────────────────────────────────────────── */
.fc__panel { display: flex; flex-direction: column; gap: 16px; }

.fc-q {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); padding: 24px 24px 22px; box-shadow: var(--sh);
}
/* Legend fließt wie ein normaler Block (statt auf dem Fieldset-Rahmen). */
.fc-q__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; float: left; width: 100%; }
.fc-q__head + * { clear: both; }
.fc-q__num {
  font-size: 11.5px; font-weight: 700; color: var(--accent);
  letter-spacing: .06em; text-transform: uppercase;
}
.fc-q h2 { font-size: clamp(19px, 2.4vw, 22px); margin: 0; line-height: 1.3; }
.fc-q__why { font-size: 13px; color: var(--text3); margin: 0; }
.fc-q fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fc-q legend { padding: 0; }

.fc-q__opts { display: grid; grid-template-columns: 1fr; gap: 10px; }

/* Antwort-Kachel: Piktogramm + Label + Beispiel. Echte Radio-Inputs. */
.fc-opt { position: relative; display: block; margin: 0; }
.fc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fc-opt__box {
  display: flex; gap: 12px; align-items: flex-start; height: 100%;
  padding: 12px 12px 12px 10px;
  border: 1px solid var(--border); border-radius: var(--r2);
  background: var(--surface2); cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.fc-opt__icon { width: 64px; height: 40px; color: var(--text3); flex-shrink: 0; }
.fc-opt__icon svg { width: 100%; height: 100%; display: block; }
.fc-opt__text { min-width: 0; }
.fc-opt__label { display: block; font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.fc-opt__ex { display: block; font-size: 12.5px; color: var(--text3); line-height: 1.45; margin-top: 3px; }
.fc-opt:hover .fc-opt__box { border-color: rgba(79,114,227,.5); background: #fff; }
.fc-opt input:checked + .fc-opt__box {
  border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 1px var(--accent) inset, var(--sh-sm);
}
.fc-opt input:checked + .fc-opt__box .fc-opt__icon { color: var(--accent); }
.fc-opt input:checked + .fc-opt__box .fc-opt__label { color: var(--accent); }
.fc-opt input:focus-visible + .fc-opt__box { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Branche (Chips) + Flotte (Pills) */
.fc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-chips label { position: relative; }
.fc-chips input { position: absolute; opacity: 0; pointer-events: none; }
.fc-chips span {
  display: block; padding: 10px 14px; border-radius: var(--pill);
  border: 1px solid var(--border); background: var(--surface2);
  font-size: 13.5px; font-weight: 600; color: var(--text2); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.fc-chips label:hover span { border-color: rgba(79,114,227,.5); background: #fff; }
.fc-chips input:checked + span { border-color: var(--accent); background: #fff; color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.fc-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.fc-pills {
  display: flex; border: 1px solid var(--border); border-radius: var(--pill);
  padding: 3px; background: var(--surface2); gap: 2px; margin: 0;
}
.fc-pills label { flex: 1; position: relative; }
.fc-pills input { position: absolute; opacity: 0; pointer-events: none; }
.fc-pills span {
  display: block; text-align: center; padding: 10px 6px;
  border-radius: var(--pill); font-size: 13.5px; font-weight: 600;
  color: var(--text2); cursor: pointer; transition: background .15s, color .15s;
  white-space: nowrap;
}
.fc-pills input:checked + span { background: #fff; color: var(--accent); box-shadow: var(--sh-sm); }
.fc-pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Schritt-Modus (bewusst kein Feedback pro Frage — Auflösung erst im Ergebnis) */
.fc--wizard .fc-step { display: none; }
.fc--wizard .fc-step.is-active { display: block; animation: fcStepIn .35s var(--ease); }
@keyframes fcStepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fc--wizard .fc-step.is-active { animation: none; }
}
.fc-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fc-nav[hidden] { display: none; }
.fc-nav .btn[disabled] { opacity: .35; pointer-events: none; }
.fc-nav .btn[hidden] { display: none; }

/* ─── Ergebnis-Screen ─────────────────────────────────────── */
.fc-result { display: flex; flex-direction: column; gap: 14px; }
.fc--wizard .fc-result.is-active { display: flex; }

.fc-sum {
  background: linear-gradient(135deg, var(--accent) 0%, #3d5fc5 100%);
  color: #fff; border-radius: var(--r3); padding: 24px 26px;
  box-shadow: var(--sh-accent);
}
.fc-sum__kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.fc-sum__title {
  display: block; font-size: clamp(24px, 3.6vw, 32px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.15; margin: 6px 0 8px;
}
.fc-sum__text { font-size: 15px; line-height: 1.5; opacity: .95; margin: 0; }
.fc-sum__ctx { font-size: 13px; opacity: .9; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.25); }
.fc-sum__ctx a { color: #fff; text-decoration: underline; }
.fc-sum__ctx a:hover, .fc-sum__ctx a:focus-visible { color: #fff; text-decoration-thickness: 2px; opacity: .85; }
.fc-sum__ctx:empty { display: none; }

/* Zwei CTAs nebeneinander: grün = Profil sichern, blau = Demo.
   --single = Gate ausgeblendet (GATE_LIVE=false in fit-check.js). */
.fc-cta { display: grid; grid-template-columns: 1fr; gap: 14px; }
.fc-gate[hidden] { display: none; }
/* Einziger CTA: Founder-Karte bekommt den Akzent-Rahmen */
.fc-cta--single .fc-founder { border-color: rgba(79,114,227,.45); box-shadow: var(--sh-md); }
.fc-cta__note { font-size: 14px; font-weight: 700; color: var(--green); margin: 0; padding: 0 4px; }
.fc-cta__note[hidden] { display: none; }

.fc-gate {
  background: var(--green-tint); border: 1px solid rgba(5,150,105,.30);
  border-radius: var(--r2); padding: 16px 18px;
}
.fc-gate__line { font-size: 14px; color: var(--text2); margin: 0 0 12px; line-height: 1.5; }
.fc-gate__line b { color: var(--text); }
.fc-gate__row { display: flex; gap: 8px; }
.fc-gate__row input {
  flex: 1; min-width: 0; padding: 11px 12px; font: inherit; font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--r); background: #fff; color: var(--text);
}
.fc-gate__row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fc-gate__btn { background: var(--green); color: #fff; white-space: nowrap; }
.fc-gate__btn:hover { background: #047857; color: #fff; }
.fc-gate__privacy { font-size: 11px; color: var(--text3); margin: 8px 0 0; }
.fc-gate__privacy a { color: inherit; }
.fc-gate__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fc-gate__msg { font-size: 13.5px; font-weight: 600; margin: 8px 0 0; }
.fc-gate__msg:empty { display: none; }
.fc-gate__msg--ok { color: var(--green); }
.fc-gate__msg--err { color: var(--red); }
@keyframes fcGatePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5,150,105,0); }
  40%      { box-shadow: 0 0 0 6px rgba(5,150,105,.25); }
}
.fc-gate--pulse { animation: fcGatePulse 1.1s ease 2; }
@media (prefers-reduced-motion: reduce) { .fc-gate--pulse { animation: none; border-color: var(--green); } }
@media (max-width: 420px) { .fc-gate__row { flex-direction: column; } }

.fc-founder {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 16px 18px; box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; gap: 12px;
}
.fc-founder img { border-radius: 50%; display: block; flex-shrink: 0; }
.fc-founder__copy b { display: block; font-size: 15px; }
.fc-founder__copy span { font-size: 13px; color: var(--text3); line-height: 1.45; display: block; margin-top: 3px; }
.fc-founder .btn { align-self: flex-start; white-space: nowrap; }

.fc-result__h { font-size: 17px; margin: 10px 0 -4px; }
.fc-rows {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 6px 20px; box-shadow: var(--sh-sm);
}
.fc-row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.fc-row:last-child { border-bottom: 0; }
.fc-row__mark {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; margin-top: 1px;
  background: var(--green-tint); color: var(--green);
}
.fc-row--open .fc-row__mark { background: var(--surface3); color: var(--text3); font-weight: 700; }
.fc-row__q { font-size: 12px; color: var(--text3); display: block; }
.fc-row__ans { font-size: 14px; font-weight: 700; color: var(--text); display: block; margin: 1px 0 4px; }
.fc-row__trailo { font-size: 13.5px; color: var(--text2); line-height: 1.5; margin: 0; }
.fc-row__trailo a { font-weight: 600; white-space: nowrap; }
.fc-row--open .fc-row__ans { color: var(--text3); font-weight: 600; }
.fc-row--open a { font-weight: 600; }

.fc-honest { font-size: 12.5px; color: var(--text3); line-height: 1.5; margin: 0; padding: 0 4px; }
.fc-honest a { color: inherit; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (min-width: 600px) {
  .fc-q__opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fc-opt__box { flex-direction: column; gap: 8px; padding: 14px 14px 12px; }
}
@media (min-width: 700px) {
  .fc { padding: 56px 24px 88px; }
  .fc-cta { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .fc-cta--single { grid-template-columns: 1fr; }
  .fc-founder { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .fc-founder__copy { flex: 1; min-width: 160px; }
  .fc-founder .btn { align-self: center; }
}
