/* =========================================================================
   Potenzialanalyse: Vorqualifizierung im Schritt-fuer-Schritt-Format
   Farben und Formen folgen dem uebrigen Design. Tiefe entsteht ueber feine
   Rahmen, nicht ueber Schatten. CTAs bleiben ohne Rahmen.
   ========================================================================= */

.pa-wrap {
  background: #F2F4F8;
  padding: 40px 20px 72px;
}
.pa-card {
  max-width: 780px; margin: 0 auto;
  background: #FFFFFF; border: 1px solid #E9EDF3; border-radius: 8px;
  overflow: hidden;
}

/* --- Kopf mit Fortschritt und Banu ------------------------------------- */
.pa-bar { height: 4px; background: #E9EDF3; }
.pa-bar > i {
  display: block; height: 100%; width: 15%;
  background: linear-gradient(90deg, #35D2E0, #12A7BC);
  transition: width .32s cubic-bezier(.4, 0, .2, 1);
}
.pa-head {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 28px 20px; border-bottom: 1px solid #E9EDF3;
  background: #FBFCFE;
}
.pa-face {
  width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%;
  object-fit: cover; object-position: center 18%; display: block;
}
.pa-said { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.pa-who { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.pa-who b { font-size: 15.5px; font-weight: 500; color: #0B2350; }
.pa-who span { font-size: 12.8px; font-weight: 300; color: #6E7EB8; }
.pa-bubble {
  position: relative; align-self: flex-start;
  background: #E4F6F9; border-radius: 4px 10px 10px 10px;
  padding: 13px 17px;
  font-size: 15px; line-height: 1.72; font-weight: 300; color: #0B2350;
}
.pa-bubble::before {
  content: ""; position: absolute; left: -7px; top: 0;
  width: 8px; height: 12px; background: #E4F6F9;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.pa-bubble.is-typing { opacity: .55; }

/* --- Frageflaeche ------------------------------------------------------- */
.pa-body { padding: 30px 28px 28px; }
.pa-count {
  display: block; font-size: 11.5px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: #9FB3D8;
  margin-bottom: 12px;
}
.pa-q {
  margin: 0 0 6px; font-size: clamp(23px, calc(19.5px + .92vw), 31px);
  line-height: 1.28; font-weight: 300; color: #0B2350;
}
.pa-hint {
  margin: 0 0 22px; font-size: 14.6px; line-height: 1.7;
  font-weight: 300; color: #6E7EB8;
}
.pa-step { animation: paIn .3s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes paIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

/* --- Antwortzeilen ------------------------------------------------------ */
.pa-opts { display: flex; flex-direction: column; gap: 9px; }
.pa-opt {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 15px 18px; text-align: left;
  background: #FFFFFF; border: 1px solid #E4E9F2; border-radius: 8px;
  font-family: inherit; font-size: 16.2px; font-weight: 300; color: #0B2350;
  cursor: pointer; transition: border-color .16s ease, background .16s ease;
}
.pa-opt:hover { border-color: #35D2E0; background: #FAFEFF; }
.pa-key {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 6px;
  background: #F2F4F8; color: #6E7EB8;
  font-size: 12.5px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.pa-opt.is-on { border-color: #35D2E0; background: #F2FCFD; }
.pa-opt.is-on .pa-key { background: #35D2E0; color: #0B2350; }
.pa-opt.is-on .pa-tick { opacity: 1; }
.pa-tick { margin-left: auto; opacity: 0; flex: 0 0 18px; transition: opacity .16s ease; }

/* --- Eingabefelder ----------------------------------------------------- */
.pa-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pa-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pa-field.is-wide { grid-column: 1 / -1; }
.pa-field > label { font-size: 13.6px; font-weight: 400; color: #0B2350; }
.pa-field > label i { color: #6E7EB8; font-style: normal; font-weight: 300; }
.pa-field input, .pa-field select, .pa-field textarea {
  font-family: inherit; font-size: 16.2px; font-weight: 300; color: #0B2350;
  background: #FFFFFF; border: 1px solid #E4E9F2; border-radius: 8px;
  padding: 13px 15px; width: 100%;
  transition: border-color .16s ease;
}
.pa-field textarea { min-height: 128px; line-height: 1.7; resize: vertical; }
.pa-field input:focus, .pa-field select:focus, .pa-field textarea:focus {
  outline: none; border-color: #35D2E0;
}
.pa-field.has-error input, .pa-field.has-error select { border-color: #D5566B; }
.pa-err { font-size: 12.8px; font-weight: 300; color: #D5566B; }

.pa-consent {
  grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 11px;
  font-size: 13.8px; line-height: 1.65; font-weight: 300; color: #6E7EB8;
}
.pa-consent input { flex: 0 0 19px; width: 19px; height: 19px; margin-top: 2px; accent-color: #12A7BC; }
.pa-consent a { color: #6E7EB8; text-decoration: underline; text-underline-offset: 2px; }
.pa-consent a:hover { color: #0B2350; }

/* --- Fussleiste der Karte ---------------------------------------------- */
.pa-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid #E9EDF3;
}
.pa-back {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; padding: 8px 2px;
  font-family: inherit; font-size: 14.6px; font-weight: 300; color: #6E7EB8;
  cursor: pointer;
}
.pa-back:hover { color: #0B2350; }
.pa-back[hidden] { visibility: hidden; display: inline-flex; }
.pa-next {
  display: inline-flex; align-items: center; gap: 11px;
  background: linear-gradient(135deg, #35D2E0, #12A7BC); color: #0B2350;
  border: none; border-radius: 999px; padding: 14px 28px;
  font-family: inherit; font-size: 16.4px; font-weight: 600;
  cursor: pointer; transition: filter .16s ease;
}
.pa-next:hover { filter: brightness(1.06); }
.pa-next:disabled { opacity: .42; cursor: default; filter: none; }
.pa-skip {
  background: none; border: 0; padding: 8px 2px; margin-right: 4px;
  font-family: inherit; font-size: 14.6px; font-weight: 300; color: #6E7EB8;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.pa-skip:hover { color: #0B2350; }
.pa-tools { display: flex; align-items: center; gap: 4px; }

/* --- Abschluss --------------------------------------------------------- */
.pa-done { text-align: left; }
.pa-done h2 {
  margin: 0 0 10px; font-size: clamp(25px, calc(20.5px + 1.18vw), 35px);
  line-height: 1.24; font-weight: 300; color: #0B2350;
}
.pa-done h2 em { font-style: italic; color: #35D2E0; }
.pa-done > p { margin: 0 0 24px; font-size: 16.2px; line-height: 1.85; font-weight: 300; color: #0B2350; }
.pa-reach { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pa-reach a {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 12px 22px 12px 12px; border-radius: 999px;
  background: #F2F4F8; font-size: 15.4px; font-weight: 400; color: #0B2350;
}
.pa-reach a:hover { background: #E4F6F9; color: #0B2350; }
.pa-reach a:not(.pa-next) > span {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  background: #E4F6F9; display: flex; align-items: center; justify-content: center;
}
/* Der Absende-Knopf behaelt die Form der uebrigen CTAs */
.pa-reach a.pa-next {
  background: linear-gradient(135deg, #35D2E0, #12A7BC);
  color: #0B2350; padding: 14px 28px; white-space: nowrap;
  font-size: 16.4px; font-weight: 600;
}
.pa-reach a.pa-next:hover { background: linear-gradient(135deg, #35D2E0, #12A7BC); filter: brightness(1.06); }
.pa-sum { border: 1px solid #E9EDF3; border-radius: 8px; overflow: hidden; }
.pa-sum > div {
  display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 4px 20px;
  padding: 13px 18px; border-top: 1px solid #E9EDF3;
  font-size: 14.8px; line-height: 1.6; font-weight: 300;
}
.pa-sum > div:first-child { border-top: 0; }
.pa-sum b { font-weight: 400; color: #6E7EB8; }
.pa-sum span { color: #0B2350; }

/* --- Vertrauenszeile unter der Karte ----------------------------------- */
.pa-trust {
  max-width: 780px; margin: 20px auto 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
}
.pa-trust > span {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.2px; font-weight: 300; color: #6E7EB8;
}
.pa-trust i { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #35D2E0; }

/* --- Statischer Ersatz ohne Skript ------------------------------------- */
.pa-nojs { padding: 30px 28px; }
.pa-nojs h2 { margin: 0 0 10px; font-size: 26px; font-weight: 300; color: #0B2350; }
.pa-nojs p { margin: 0 0 18px; font-size: 16.2px; line-height: 1.85; font-weight: 300; color: #0B2350; }

/* --- Schmale Fenster --------------------------------------------------- */
@media (max-width: 680px) {
  .pa-wrap { padding: 20px 12px 54px; }
  .pa-card { border-radius: 8px; }
  .pa-head { padding: 16px 16px 15px; gap: 12px; }
  .pa-face { width: 46px; height: 46px; flex: 0 0 46px; }
  .pa-bubble { font-size: 14.4px; padding: 12px 14px; }
  .pa-body { padding: 22px 16px 20px; }
  .pa-opt { padding: 14px 14px; font-size: 15.6px; gap: 11px; }
  .pa-fields { grid-template-columns: 1fr; }
  .pa-foot { flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  .pa-next { width: 100%; justify-content: center; padding: 15px 24px; }
  .pa-tools { width: 100%; justify-content: space-between; order: 2; }
  .pa-sum > div { grid-template-columns: 1fr; padding: 12px 14px; }
  .pa-reach a { width: 100%; }
  .pa-trust { padding: 0 4px; gap: 8px 20px; }
}
