/* Lotus Pflegegradrechner · Feinschliff Ablauf (Weg, Start, Frage, Häufigkeit, Zwischenstand)
   Lädt nach rechner.css. Jede Regel beginnt mit .pgr-root. */

/* ---------- Weg mit sechs Stationen ---------- */
.pgr-root .pgr-weg { --k: 88px; margin: 0 0 32px; padding: 12px 0 0; }
.pgr-root .pgr-weg__strecke { top: calc(var(--k) / 2 - 1px); height: 2px; border-radius: 1px; }
.pgr-root .pgr-weg__kreis { border: 1px solid var(--pgr-linie); color: var(--pgr-text); }
.pgr-root .pgr-weg__station.is-fertig .pgr-weg__kreis { background: var(--pgr-hell); border: 1px solid var(--pgr-gruen); color: var(--pgr-dunkel); }
.pgr-root .pgr-weg__station.is-aktuell .pgr-weg__kreis { border-color: var(--pgr-gruen); color: var(--pgr-dunkel); }
.pgr-root .pgr-weg__ring circle { stroke-width: 3; }
.pgr-root .pgr-weg__name { margin-top: 8px; font-size: 15px; line-height: 1.3; color: var(--pgr-text); }
.pgr-root .pgr-weg__station.is-aktuell .pgr-weg__name { color: var(--pgr-dunkel); font-weight: 500; }
.pgr-root .pgr-weg__mobil { display: none; }

/* ---------- Start ---------- */
.pgr-root .pgr-lead { max-width: 640px; margin-top: 12px !important; }
.pgr-root .pgr-zusagen { margin-top: 32px; }
.pgr-root .pgr-wegfeld { margin-top: 32px; padding: 32px; background: var(--pgr-grund); border-radius: 22px; }
.pgr-root .pgr-wegfeld .pgr-wegtitel { margin: 0 0 12px !important; font-size: 15px; color: var(--pgr-text); }
.pgr-root .pgr-wegfeld .pgr-weg { margin: 0; }
.pgr-root .pgr-wegfeld .pgr-weg__kreis { box-shadow: 0 0 0 4px var(--pgr-grund); }
.pgr-root .pgr-vorfrage { margin-top: 48px; }
.pgr-root .pgr-vorfrage > legend.pgr-h2 { font-family: var(--pgr-f-titel) !important; font-weight: 600 !important; font-size: 24px !important; margin: 0 0 12px; }
.pgr-root .pgr-vorfrage .pgr-antworten { margin-top: 12px; }
.pgr-root .pgr-vorfrage .pgr-hinweis { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px !important; font-size: 15px; line-height: 1.5; color: var(--pgr-text); white-space: normal; overflow: visible; }
.pgr-root .pgr-vorfrage .pgr-hinweis .pgr-i { width: 20px; height: 20px; margin-top: 1px; color: var(--pgr-dunkel); }
.pgr-root .pgr-haekchen { margin-top: 32px; }
.pgr-root .pgr-start-los { margin-top: 32px; display: flex; justify-content: flex-start; }
.pgr-root .pgr-start-los .pgr-knopf { min-height: 56px; }

/* ---------- Bühne der Frage ---------- */
.pgr-root .pgr-buehne { padding: 40px; background: var(--pgr-weiss); border: 1px solid var(--pgr-linie); border-radius: 22px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.05); }
.pgr-root .pgr-buehne .pgr-kopfzeile { margin: 0 0 24px; align-items: center; }
.pgr-root .pgr-buehne .pgr-kopfzeile .pgr-marke { font-size: 16px; }
.pgr-root .pgr-buehne .pgr-kopfzeile .pgr-klein { color: var(--pgr-text); }
.pgr-root .pgr-frage__leitfrage { margin-top: 12px; }
.pgr-root .pgr-frage__einleitung { margin-top: 24px !important; padding: 20px; border-radius: 16px; }

/* Erklärung */
.pgr-root .pgr-hilfe-knopf, .pgr-root .pgr-hilfe-knopf:hover, .pgr-root .pgr-hilfe-knopf:focus, .pgr-root .pgr-hilfe-knopf:active { margin-top: 12px; color: var(--pgr-text); font-weight: 400 !important; font-size: 17px !important; text-decoration-color: var(--pgr-linie); }
.pgr-root .pgr-hilfe-knopf .pgr-i { width: 22px; height: 22px; color: var(--pgr-dunkel); }
.pgr-root .pgr-hilfe { margin-top: 8px; padding: 20px; border: 0; border-left: 0; border-radius: 16px; background: var(--pgr-grund); }

/* Antwortflächen: genau ein Auswahlzeichen */
.pgr-root .pgr-antworten { margin-top: 24px; gap: 12px; }
.pgr-root .pgr-antwort { grid-template-columns: 40px minmax(0, 1fr) 28px; gap: 16px; min-height: 72px; padding: 16px 20px; border: 1px solid var(--pgr-linie); border-radius: 16px; background: var(--pgr-weiss); transition: none; }
.pgr-root .pgr-antwort:hover { border-color: var(--pgr-dunkel); box-shadow: inset 0 0 0 1px var(--pgr-dunkel); }
.pgr-root .pgr-antwort:has(input:checked) { border-color: var(--pgr-gruen); box-shadow: inset 0 0 0 1px var(--pgr-gruen); background: color-mix(in srgb, var(--pgr-gruen) 4%, var(--pgr-weiss)); }
.pgr-root .pgr-antwort__stufenfeld { width: 40px; height: 40px; border-radius: 12px; background: var(--pgr-hell); color: var(--pgr-dunkel); display: grid; place-items: center; }
.pgr-root .pgr-antwort__stufe { width: 24px; height: 24px; color: var(--pgr-dunkel); }
.pgr-root .pgr-antwort__titel { font: 500 19px/1.35 var(--pgr-f-text); color: var(--pgr-stark); }
.pgr-root .pgr-antwort__erkl { margin-top: 4px; font-size: 17px; line-height: 1.45; color: var(--pgr-text); }
.pgr-root .pgr-antwort__marke { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--pgr-gruen); color: var(--pgr-weiss); opacity: 0; }
.pgr-root .pgr-antwort:has(input:checked) .pgr-antwort__marke { opacity: 1; border: 0; background: var(--pgr-gruen); }
.pgr-root .pgr-antwort__haken { width: 18px; height: 18px; stroke-width: 2.5; }
/* Ja/Nein und Vorfragen: klassischer Auswahlkreis statt Stufen-Symbol und Abzeichen */
.pgr-root .pgr-antwort--ohne-stufe { grid-template-columns: 24px minmax(0, 1fr); min-height: 64px; }
.pgr-root .pgr-antwort--ohne-stufe .pgr-antwort__marke { display: none; }
.pgr-root .pgr-antwort__kreis { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--pgr-text); background: var(--pgr-weiss); display: grid; place-items: center; }
.pgr-root .pgr-antwort__kreis::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--pgr-gruen); opacity: 0; }
.pgr-root .pgr-antwort:has(input:checked) .pgr-antwort__kreis { border-color: var(--pgr-gruen); }
.pgr-root .pgr-antwort:has(input:checked) .pgr-antwort__kreis::after { opacity: 1; }

/* Navigation in der Bühne */
.pgr-root .pgr-buehne .pgr-nav { margin-top: 32px; padding: 0; gap: 12px; background: transparent; }
.pgr-root .pgr-buehne .pgr-meldung { margin-top: 24px !important; }
.pgr-root .pgr-nav .pgr-knopf { min-height: 56px; }
.pgr-root .pgr-nav .pgr-knopf--zweit, .pgr-root .pgr-nav .pgr-knopf--zweit:focus, .pgr-root .pgr-nav .pgr-knopf--zweit:active { background: var(--pgr-weiss); color: var(--pgr-dunkel); border: 2px solid var(--pgr-dunkel); }
.pgr-root .pgr-nav .pgr-knopf--zweit:hover { background: var(--pgr-hell); color: var(--pgr-dunkel); border-color: var(--pgr-dunkel); }

/* Zwischenstand als leiser Fuß unter der Bühne (kompakte Punkteleiste) */
.pgr-root .pgr-fuss { margin-top: 24px; padding: 0 8px; }
.pgr-root .pgr-fuss .pgr-leiste { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; max-height: 96px; }
.pgr-root .pgr-fuss .pgr-leiste__kopf { align-items: baseline; gap: 4px 16px; }
.pgr-root .pgr-fuss .pgr-leiste__grad { font: 500 17px/1.4 var(--pgr-f-text); padding: 0; }
.pgr-root .pgr-fuss .pgr-leiste__kopf .pgr-klein { font-size: 15px; }
.pgr-root .pgr-fuss .pgr-bahn { margin-top: 4px; padding-top: 44px; }
.pgr-root .pgr-fuss .pgr-spur { height: 6px; border-radius: 3px; }
.pgr-root .pgr-fuss .pgr-spur__fuellung { border-radius: 3px; }
.pgr-root .pgr-fuss .pgr-spur__marke { width: 16px; height: 16px; margin: -8px 0 0 -8px; border-width: 4px; }
.pgr-root .pgr-fuss .pgr-schwellen, .pgr-root .pgr-fuss .pgr-skala { display: none !important; }

/* ---------- Häufigkeit und Maßnahme ---------- */
.pgr-root .pgr-frage .pgr-antworten--zwei:has(+ .pgr-haeufigkeit) { grid-template-columns: 1fr; }
.pgr-root .pgr-haeufigkeit { margin-top: 8px; padding: 20px; border: 0; border-top: 0; border-radius: 16px; background: var(--pgr-hell); }
.pgr-root .pgr-haeufigkeit:has(+ .pgr-haeufigkeit) { border-radius: 16px 16px 0 0; }
.pgr-root .pgr-haeufigkeit + .pgr-haeufigkeit { margin-top: 0; padding-top: 4px; border-radius: 0 0 16px 16px; }
.pgr-root .pgr-haeufigkeit > legend { font: 500 19px/1.4 var(--pgr-f-text); color: var(--pgr-stark); margin: 0 0 12px; }
.pgr-root .pgr-haeufigkeit + .pgr-haeufigkeit > legend { padding-top: 16px; }
.pgr-root .pgr-haeufigkeit .pgr-antworten { margin-top: 0; }
.pgr-root .pgr-zeilen { gap: 12px; }
.pgr-root .pgr-hzeile { flex-wrap: nowrap; gap: 12px; }
.pgr-root .pgr-stepper { flex: none; height: auto; padding: 0; gap: 8px; border: 0; border-radius: 0; }
.pgr-root .pgr-stepper .pgr-rund, .pgr-root .pgr-stepper .pgr-rund:focus, .pgr-root .pgr-stepper .pgr-rund:active { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--pgr-linie); background: var(--pgr-weiss); color: var(--pgr-dunkel); }
.pgr-root .pgr-stepper .pgr-rund:hover { border-color: var(--pgr-dunkel); box-shadow: inset 0 0 0 1px var(--pgr-dunkel); background: var(--pgr-weiss); }
.pgr-root .pgr-stepper .pgr-rund[aria-disabled="true"] { color: var(--pgr-linie); }
.pgr-root .pgr-zahl-feld { width: 64px; height: 56px; padding: 0; margin: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; font: 600 32px/1 var(--pgr-f-titel) !important; color: var(--pgr-stark); text-align: center; }
.pgr-root .pgr-schalter { flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; padding: 0; border: 1px solid var(--pgr-linie); border-radius: 999px; background: var(--pgr-weiss); overflow: hidden; }
.pgr-root .pgr-schalter__teil { min-height: 54px; padding: 0 12px; border-radius: 999px; text-align: center; font: 500 17px/1.2 var(--pgr-f-text); }
.pgr-root .pgr-schalter__teil:has(input:checked) { background: var(--pgr-gruen); box-shadow: none; color: var(--pgr-weiss); }
.pgr-root .pgr-rund--weg, .pgr-root .pgr-rund--weg:focus, .pgr-root .pgr-rund--weg:active { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--pgr-linie); background: var(--pgr-weiss); color: var(--pgr-text); }
.pgr-root .pgr-rund--weg:hover { border-color: var(--pgr-dunkel); color: var(--pgr-dunkel); background: var(--pgr-weiss); }
.pgr-root .pgr-klartext { margin-top: 16px !important; padding: 0; background: transparent; border-radius: 0; font: 500 19px/1.4 var(--pgr-f-text); color: var(--pgr-stark); }
.pgr-root .pgr-haeufigkeit .pgr-link { margin-top: 8px !important; }
.pgr-root .pgr-haeufigkeit .pgr-link .pgr-i { width: 22px; height: 22px; }
.pgr-root .pgr-haeufigkeit .pgr-hinweis-ruhig { margin-top: 8px !important; }

/* ---------- Zwischenstand ---------- */
.pgr-root .pgr-zw__icon { width: 128px; height: 128px; margin: 0 auto 12px; }
.pgr-root .pgr-zw__icon svg { width: 64px; height: 64px; stroke-width: 1.25 !important; }
.pgr-root .pgr-zw .pgr-leiste { margin-top: 32px; padding: 24px; background: var(--pgr-weiss); border: 1px solid var(--pgr-linie); border-radius: 22px; }
.pgr-root .pgr-zw .pgr-leiste + p { margin-top: 16px !important; }
.pgr-root .pgr-zw .pgr-h2 { margin-top: 48px !important; }
.pgr-root .pgr-liste { margin-top: 12px; gap: 0 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgr-root .pgr-liste li { min-height: 56px; padding: 0 4px 0 0; gap: 12px; }
.pgr-root .pgr-liste .pgr-kreis-icon { width: 40px; height: 40px; }
.pgr-root .pgr-liste .pgr-kreis-icon .pgr-i { width: 22px; height: 22px; }
.pgr-root .pgr-liste__status { font-size: 15px; color: var(--pgr-text); }
.pgr-root .pgr-liste__status.is-fertig { color: var(--pgr-dunkel); }
.pgr-root .pgr-liste__status.is-fertig .pgr-i { color: var(--pgr-gruen); }
.pgr-root .pgr-zw__aktionen { margin-top: 48px; gap: 16px; }
.pgr-root .pgr-zw__aktionen .pgr-knopf { min-height: 56px; justify-content: center; }
.pgr-root .pgr-zw__aktionen .pgr-link { justify-content: center; }

/* ---------- Handy ---------- */
@media (max-width: 600px) {
  .pgr-root .pgr-weg { --k: 52px; margin: 0; padding-top: 8px; }
  .pgr-root .pgr-weg__kreis { width: 48px; height: 48px; }
  .pgr-root .pgr-weg__icon { width: 26px; height: 26px; }
  .pgr-root .pgr-weg__punkt { width: 12px; height: 12px; }
  .pgr-root .pgr-weg__mobil { display: block; margin: 8px 0 24px; text-align: center; font: 500 15px/1.4 var(--pgr-f-text); color: var(--pgr-dunkel); }
  .pgr-root .pgr-wegfeld { padding: 20px 16px; }
  .pgr-root .pgr-wegfeld .pgr-weg { margin: 0; }
  .pgr-root .pgr-vorfrage { margin-top: 32px; }
  .pgr-root .pgr-vorfrage > legend.pgr-h2 { font-size: 22px !important; }
  .pgr-root .pgr-start-los .pgr-knopf { width: 100%; }

  .pgr-root .pgr-buehne { padding: 20px; }
  .pgr-root .pgr-buehne .pgr-kopfzeile { margin-bottom: 16px; }
  .pgr-root .pgr-antwort { grid-template-columns: 40px minmax(0, 1fr) 28px; gap: 12px; padding: 14px 16px; }
  .pgr-root .pgr-antwort--ohne-stufe { grid-template-columns: 24px minmax(0, 1fr); }
  .pgr-root .pgr-antwort__erkl { font-size: 16px; }
  .pgr-root .pgr-buehne .pgr-nav { position: sticky; bottom: 0; z-index: 5; margin: 24px -20px -20px; padding: 12px 20px; background: var(--pgr-weiss); border-top: 1px solid var(--pgr-linie); border-radius: 0 0 22px 22px; }
  .pgr-root .pgr-nav .pgr-knopf { padding: 10px 16px; }
  .pgr-root .pgr-nav .pgr-knopf:first-child { flex: 1; }
  .pgr-root .pgr-nav .pgr-knopf:last-child { flex: 2; }
  .pgr-root .pgr-fuss { padding: 0 4px; }

  .pgr-root .pgr-haeufigkeit { padding: 16px; }
  .pgr-root .pgr-hzeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 8px; }
  .pgr-root .pgr-stepper { grid-column: 1 / -1; width: 100%; min-width: 0; justify-content: space-between; }
  .pgr-root .pgr-zahl-feld { flex: 1 1 0; width: 0; min-width: 0; max-width: none; }
  .pgr-root .pgr-schalter { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .pgr-root .pgr-hzeile:has(.pgr-rund--weg) .pgr-stepper { grid-column: 1; grid-row: 1; }
  .pgr-root .pgr-hzeile .pgr-rund--weg { grid-column: 2; grid-row: 1; align-self: center; }
  .pgr-root .pgr-hzeile:has(.pgr-rund--weg) .pgr-schalter { grid-column: 1 / -1; grid-row: 2; }
  .pgr-root .pgr-schalter__teil { min-width: 0; padding: 0 4px; font-size: 15px; white-space: nowrap; }
  .pgr-root .pgr-buehne .pgr-kopfzeile .pgr-marke { display: none; }

  .pgr-root .pgr-zw .pgr-leiste { padding: 20px 16px; }
  .pgr-root .pgr-zw .pgr-h2 { margin-top: 32px !important; }
  .pgr-root .pgr-liste { grid-template-columns: minmax(0, 1fr); }
  .pgr-root .pgr-zw__aktionen { margin-top: 32px; }
  .pgr-root .pgr-zw__aktionen .pgr-knopf { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pgr-root .pgr-weg__kreis, .pgr-root .pgr-weg__ring { transition: none; }
}
