/* ═══════════════════════════════════════════
   AFIDA Praxis-Kalkulator · Styles v1.0.0
   bipulse.studio für AFIDA steril GmbH
   ═══════════════════════════════════════════ */

:root {
  --afk-navy:   #002855;
  --afk-cyan:   #05C3DE;
  --afk-white:  #ffffff;
  --afk-grey:   #f4f6f8;
  --afk-text:   #1a2a3a;
  --afk-muted:  #64748b;
  --afk-border: #e2e8f0;
  --afk-radius: 16px;
  --afk-font:   'Ubuntu', system-ui, Arial, sans-serif;
}

/* ── Wrapper ── */
.afida-kalk-wrap {
  font-family: var(--afk-font);
  -webkit-font-smoothing: antialiased;
  width: 100%;
}
/* Kapselung: verhindert Überlauf/Vererbungsprobleme in fremden Containern (Elementor) */
.afida-kalk-wrap,
.afida-kalk-wrap *,
.afida-kalk-wrap *::before,
.afida-kalk-wrap *::after { box-sizing: border-box; }

#afida-kalkulator {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--afk-radius);
  overflow: hidden;
  /* zweiter Layer = feiner heller Ring, damit die Karte auch auf dunklem
     (Navy-)Sektionshintergrund sauber abgegrenzt ist */
  box-shadow: 0 8px 40px rgba(0, 40, 85, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.06);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

/* ── Logo row (shared) ── */
.afk-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.afk-wm { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #fff; line-height: 1; }
.afk-sm { font-size: 6px;  font-weight: 300; letter-spacing: .4em; color: rgba(255,255,255,.45); margin-top: 2px; }
.afk-counter { margin-left: auto; font-size: 11px; color: rgba(255,255,255,.45); }

/* ── Intro ── */
.afk-intro { display: flex; flex-direction: column; flex: 1; }
.afk-hero  { background: var(--afk-navy); padding: 28px 24px 24px; }

.afk-title {
  font-size: clamp(18px, 4.5vw, 20px); font-weight: 700; color: #fff;
  line-height: 1.25; margin: 18px 0 10px;
}
.afk-sub {
  font-size: 12px; color: rgba(255,255,255,.65);
  line-height: 1.6; margin-bottom: 16px;
}
.afk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.afk-chip {
  font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--afk-cyan); background: rgba(5,195,222,.1);
  border: 1px solid rgba(5,195,222,.25); border-radius: 20px; padding: 4px 10px;
}

.afk-intro-body {
  padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.afk-hint {
  font-size: 11px; color: var(--afk-muted); text-align: center; line-height: 1.5;
}

/* ── Quiz ── */
.afk-quiz { display: flex; flex-direction: column; flex: 1; }

.afk-header { background: var(--afk-navy); padding: 16px 20px 0; }
.afk-prog-track {
  height: 3px; background: rgba(255,255,255,.15);
  border-radius: 2px; margin-top: 14px;
}
.afk-prog-fill {
  height: 3px; background: var(--afk-cyan);
  border-radius: 2px; transition: width .4s ease;
}

.afk-body { flex: 1; padding: 22px 20px 14px; display: flex; flex-direction: column; gap: 14px; }
.afk-cat  { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--afk-cyan); }
.afk-q    { font-size: clamp(15px, 3.6vw, 16px); font-weight: 700; color: var(--afk-navy); line-height: 1.35; }

.afk-bonus-note {
  font-size: 11px; color: var(--afk-muted);
  background: #f0f8ff; border-left: 3px solid var(--afk-cyan);
  padding: 8px 10px; border-radius: 0 6px 6px 0; line-height: 1.5;
}
.afk-hint-box {
  font-size: 11px; color: var(--afk-cyan); font-style: italic; line-height: 1.5;
}

/* ── Options ── */
.afk-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.afk-opt {
  display: flex; align-items: center; gap: 12px;
  background: #f8fafc; border: 1.5px solid var(--afk-border);
  border-radius: 10px; padding: 12px 14px;
  cursor: pointer; text-align: left; width: 100%;
  font-family: var(--afk-font); font-size: 13.5px; color: var(--afk-text);
  transition: border-color .15s, background .15s;
  min-height: 48px; /* touch target */
}
.afk-opt:hover { border-color: var(--afk-cyan); background: #f0fbfe; }
.afk-opt.sel   { border-color: var(--afk-navy); background: #eef4fa; font-weight: 600; color: var(--afk-navy); }

.afk-radio {
  width: 18px; height: 18px; min-width: 18px; border-radius: 50%;
  border: 2px solid var(--afk-border);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0;
}
.afk-opt.sel .afk-radio { border-color: var(--afk-navy); background: var(--afk-navy); }
.afk-dot-inner { width: 7px; height: 7px; background: var(--afk-cyan); border-radius: 50%; }

/* ── Footer nav ── */
.afk-footer {
  padding: 12px 20px 18px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--afk-grey);
  gap: 8px;
}
.afk-footer-right { display: flex; gap: 8px; align-items: center; }

/* ── Buttons ── */
.afk-btn-primary {
  font-size: 14px; font-weight: 700; color: #fff;
  background: var(--afk-navy); border: none; border-radius: 10px;
  padding: 13px 22px; cursor: pointer; font-family: var(--afk-font);
  letter-spacing: .02em; transition: background .15s;
  min-height: 48px;
}
.afk-btn-primary:hover:not(:disabled) { background: #003a7a; }
.afk-btn-primary:disabled { background: #ccd6e0; cursor: not-allowed; }

.afk-btn-back {
  font-size: 12px; color: var(--afk-muted); background: none;
  border: none; cursor: pointer; font-family: var(--afk-font);
  padding: 8px 4px; min-height: 44px;
}
.afk-btn-skip {
  font-size: 12px; color: #888; background: none;
  border: 1px solid var(--afk-border); border-radius: 8px;
  padding: 8px 14px; cursor: pointer; font-family: var(--afk-font);
  min-height: 44px;
}

/* ── Calc screen ── */
.afk-calc {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px; padding: 40px 24px; background: var(--afk-navy);
}
.afk-calc-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.afk-calc-steps { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 260px; }
.afk-cstep {
  display: flex; gap: 10px; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.4); transition: color .3s;
}
.afk-cstep.active { color: #fff; }
.afk-cstep.done   { color: var(--afk-cyan); }
.afk-dot {
  width: 8px; height: 8px; min-width: 8px; border-radius: 50%;
  background: rgba(255,255,255,.2); flex-shrink: 0; transition: background .3s;
}
.afk-cstep.active .afk-dot { background: #fff; }
.afk-cstep.done   .afk-dot { background: var(--afk-cyan); }

/* ══ Responsive ══════════════════════════════ */

/* Tablet / schmalerer Container: Karte darf etwas breiter werden,
   damit sie in der eingebetteten Sektion nicht verloren wirkt */
@media (max-width: 900px) {
  #afida-kalkulator { max-width: 560px; }
}

/* Ab hier greift die eigentliche Umschaltung auf kompaktes Layout */
@media (max-width: 520px) {
  #afida-kalkulator { border-radius: 12px; min-height: 480px; max-width: 100%; }
  .afk-opt  { font-size: 13px; padding: 11px 12px; }
  .afk-btn-primary { font-size: 13px; padding: 12px 18px; }
  .afk-body { padding: 18px 16px 12px; gap: 12px; }
  .afk-hero { padding: 22px 18px 20px; }
  .afk-intro-body { padding: 20px 18px; }
  .afk-footer { padding: 10px 16px 16px; }
  .afk-calc { padding: 32px 18px; }
}

/* Kleine Phones (≤ 360px) — NFC-Tap-Geräte, iPhone SE etc. */
@media (max-width: 360px) {
  #afida-kalkulator { min-height: 440px; }
  .afk-hero, .afk-intro-body { padding-left: 14px; padding-right: 14px; }
  .afk-body { padding: 16px 14px 10px; }
  .afk-chip { font-size: 8px; padding: 3px 8px; }
  .afk-opt  { font-size: 12.5px; gap: 10px; padding: 10px 11px; }
  .afk-footer { padding: 10px 14px 14px; gap: 6px; }
  .afk-btn-primary { padding: 12px 16px; }
  .afk-btn-skip { padding: 8px 10px; }
}
