/* ============================================================
   Pontico Nachfolgecheck Lite – Fragebogen
   Angelehnt an das dreistufige Formular der Vorlage (.lead-form in pontico.css):
   grauer Kasten 26 px Radius, Fortschrittsbalken 3 px, Felder auf Weiß.
   Eigene Klassen (pc-), damit nichts mit pontico.css kollidiert; die Farben
   kommen aus deren Variablen, mit den Werten der Vorlage als Rückfall.
   ============================================================ */

.pc-check {
  --pc-gruen: var(--green-900, #081b15);
  --pc-tinte: var(--ink, #1a2823);
  --pc-grau: var(--grey-bg, #f4f4f4);
  --pc-linie: var(--track, #dbdbdb);
  --pc-leise: #5f6b66;
  --pc-fehler: #a33e33;

  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding: 44px 48px 52px;
  background: var(--pc-grau);
  border-radius: 26px;
  color: var(--pc-tinte);
  font-weight: 600;
}

/* Ohne Skript bleibt nur der Hinweis sichtbar */
.pc-check:not(.is-bereit) .pc-check__kopf,
.pc-check:not(.is-bereit) .pc-check__form { display: none; }

.pc-check__fortschritt {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: #d6d9d7;
  overflow: hidden;
}
.pc-check__fortschritt span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 9.09%;
  border-radius: 2px;
  background: var(--pc-gruen);
  transition: width 0.4s cubic-bezier(0.33, 0, 0.2, 1);
}
.pc-check__schritt { margin: 16px 0 0; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--pc-gruen); }

.pc-check__form { margin-top: 26px; }
.pc-check__panel { display: none; margin: 0; padding: 0; border: 0; min-width: 0; }
.pc-check__panel.is-aktiv { display: block; }

.pc-check__frage {
  display: block;
  float: left;          /* legend wie ein Block behandeln, damit margin-bottom greift */
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
  font-size: 23px;
  line-height: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--pc-gruen);
}
.pc-check__frage:focus { outline: none; }
.pc-check__frage + * { clear: both; }

/* ---------- Antwortfelder ---------- */
.pc-wahl { position: relative; display: block; cursor: pointer; }
.pc-wahl__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.pc-wahl__feld {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: var(--pc-gruen);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.pc-wahl:hover .pc-wahl__feld { border-color: rgba(8, 27, 21, 0.35); }
.pc-wahl__input:focus-visible + .pc-wahl__feld {
  border-color: var(--pc-gruen);
  box-shadow: 0 0 0 3px rgba(8, 27, 21, 0.14);
}
.pc-wahl__input:checked + .pc-wahl__feld {
  background: var(--pc-gruen);
  border-color: var(--pc-gruen);
  color: #fff;
}
.pc-wahl__zahl { font-size: 20px; line-height: 1; font-weight: 800; }
.pc-wahl__text { font-size: 15px; line-height: 20px; font-weight: 700; }

/* Skala: fünf (bei F1 sechs) Felder nebeneinander */
.pc-skala {
  display: grid;
  grid-template-columns: repeat(var(--pc-stufen, 5), minmax(0, 1fr));
  gap: 10px;
}
.pc-wahl--skala .pc-wahl__feld {
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-height: 96px;
  padding: 18px 8px 14px;
  text-align: center;
}
.pc-wahl--skala .pc-wahl__text { font-size: 13px; line-height: 17px; hyphens: auto; }

/* Auswahl: Liste untereinander, mit Kreis als Markierung */
.pc-liste { display: grid; gap: 10px; }
.pc-wahl--liste .pc-wahl__feld { min-height: 54px; padding: 14px 20px; }
.pc-wahl--liste .pc-wahl__feld::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
  opacity: 0.5;
}
.pc-wahl--liste .pc-wahl__input:checked + .pc-wahl__feld::before {
  opacity: 1;
  background: radial-gradient(circle, #fff 0 3px, transparent 3.5px);
}

/* ---------- Kontaktdaten ---------- */
.pc-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pc-feld { display: flex; flex-direction: column; gap: 6px; }
.pc-feld--anrede { grid-column: 1 / -1; max-width: calc(50% - 7px); }
.pc-feld--breit { grid-column: 1 / -1; }
.pc-feld__label { font-size: 14px; line-height: 18px; font-weight: 700; color: var(--pc-gruen); padding-left: 22px; }
.pc-feld__optional { font-weight: 600; color: var(--pc-leise); }
.pc-feld__input {
  width: 100%;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--pc-gruen);
  box-sizing: border-box;
}
select.pc-feld__input {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 26px) 21px, calc(100% - 21px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.pc-feld__input:focus {
  outline: none;
  border-color: var(--pc-gruen);
  box-shadow: 0 0 0 3px rgba(8, 27, 21, 0.08);
}
.pc-feld__input[aria-invalid="true"] { border-color: #b4483c; }

.pc-check__falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.pc-check__hinweis { margin: 18px 0 0; font-size: 13px; line-height: 19px; font-weight: 600; color: var(--pc-leise); }
.pc-check__hinweis a,
.pc-check__danke a:not(.pc-knopf) { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.pc-check__fehler { margin: 14px 0 0 2px; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--pc-fehler); }
.pc-check__fehler[hidden],
.pc-check [hidden] { display: none !important; }

/* ---------- Schaltflächen ---------- */
.pc-check__aktionen { display: flex; gap: 12px; margin-top: 28px; }
.pc-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  line-height: 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.pc-knopf--weiter { flex: 1 1 auto; background: var(--pc-gruen); color: #fff; }
.pc-knopf--weiter:hover,
.pc-knopf--weiter:focus-visible { background: var(--green-700, #29443b); color: #fff; }
.pc-knopf--zurueck { flex: 0 0 auto; background: transparent; color: var(--pc-gruen); border-color: rgba(8, 27, 21, 0.25); }
.pc-knopf--zurueck:hover { background: rgba(8, 27, 21, 0.06); color: var(--pc-gruen); }
.pc-knopf:focus-visible { outline: 3px solid rgba(8, 27, 21, 0.25); outline-offset: 2px; }
.pc-knopf[disabled] { opacity: 0.6; cursor: progress; }
.pc-knopf--link { flex: 0 0 auto; }

/* ---------- Danke ---------- */
.pc-check__danke:focus { outline: none; }
.pc-check__danke .pc-check__danke-titel { margin: 0 0 14px; font-size: 26px; line-height: 32px; font-weight: 800; color: var(--pc-gruen); }
.pc-check__danke p { margin: 0 0 14px; font-size: 16px; line-height: 24px; }
.pc-check__danke p:last-child { margin: 22px 0 0; }
.pc-check__probe { padding: 12px 16px; border-radius: 12px; background: #fff3cd; color: #5c4400; font-size: 14px !important; }

/* ---------- Telefon ---------- */
@media (max-width: 700px) {
  .pc-check { padding: 30px 22px 32px; border-radius: 20px; }
  .pc-check__frage { font-size: 20px; line-height: 26px; margin-bottom: 20px; }

  /* Skala untereinander: Zahl links, Beschriftung daneben */
  .pc-skala { grid-template-columns: 1fr; gap: 8px; }
  .pc-wahl--skala .pc-wahl__feld {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    min-height: 50px;
    padding: 12px 20px;
    text-align: left;
  }
  .pc-wahl--skala .pc-wahl__zahl { width: 18px; font-size: 18px; text-align: center; }
  .pc-wahl--skala .pc-wahl__text { font-size: 15px; line-height: 20px; }

  .pc-felder { grid-template-columns: 1fr; }
  .pc-feld--anrede { max-width: none; }

  .pc-check__aktionen { flex-direction: column-reverse; }
  .pc-knopf { width: 100%; }
}
