/* Lotus Pflegegradrechner · Feinschliff Ergebnis (Agent Ergebnis)
   Ergebnis-Karte, Punkteleiste (volle Fassung), Hinweis 2027, Zusammensetzung, Leistungen,
   So geht es weiter, Kontakt-Block, Nebenaktionen, Druck. Lädt nach rechner.css. */

/* ---------- Punkteleiste: Fähnchen und Bewegung (gilt überall, kompakte Fassung gestaltet Agent Ablauf) ---------- */
.pgr-root .pgr-fahne { width: 34px; height: 44px; margin-left: -3px; color: var(--pgr-text); }
.pgr-root .pgr-fahne svg { width: 34px; height: 44px; }
.pgr-root .pgr-fahne__stab { stroke: currentColor; stroke-width: 1.5; }
.pgr-root .pgr-fahne__tuch { fill: var(--pgr-weiss); stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.pgr-root .pgr-fahne__zahl { left: 3px; top: 1px; width: 22px; height: 18px; font: 700 14px/18px var(--pgr-f-text); text-align: center; color: var(--pgr-text); }
.pgr-root .pgr-fahne.is-erreicht { color: var(--pgr-gruen); }
.pgr-root .pgr-fahne.is-erreicht .pgr-fahne__tuch { fill: var(--pgr-hell); stroke-width: 1.5; }
.pgr-root .pgr-fahne.is-erreicht .pgr-fahne__zahl { color: var(--pgr-dunkel); }
.pgr-root .pgr-fahne.is-letzt .pgr-fahne__tuch { fill: var(--pgr-dunkel); stroke: var(--pgr-dunkel); }
.pgr-root .pgr-fahne.is-letzt .pgr-fahne__zahl { color: var(--pgr-weiss); }
.pgr-root .pgr-spur { height: 10px; border-radius: 999px; }
.pgr-root .pgr-spur__fuellung { border-radius: 999px; transition: transform 300ms var(--pgr-verlauf); }
.pgr-root .pgr-spur__markenbahn { transition: transform 300ms var(--pgr-verlauf); }
.pgr-root .pgr-schwellen { margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--pgr-text); }
.pgr-root .pgr-skala { margin-top: 4px !important; font-size: 15px; line-height: 22px; color: var(--pgr-text); }

/* Im Ergebnis: Füllung und Marke einmal von 0 in 900 ms */
@keyframes pgr-erg-lauf { from { transform: translateX(0); } }
.pgr-root .pgr-ergebnis-start .pgr-spur__markenbahn { animation: pgr-erg-lauf 900ms var(--pgr-verlauf) both; }
.pgr-root .pgr-ergebnis-start .pgr-leiste__marke { animation: none; }

/* ---------- Ergebnis-Karte ---------- */
.pgr-root .pgr-erg__karte {
  padding: 48px; border: 0; border-radius: 22px;
  background: color-mix(in srgb, var(--pgr-gruen) 8%, white);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.05);
}
.pgr-root .pgr-erg__kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 12px 40px; margin-top: 12px; }
.pgr-root .pgr-erg__titel { display: flex; align-items: baseline; gap: 16px; margin: 0; }
.pgr-root .pgr-erg__wort { font: 600 32px/1 var(--pgr-f-titel) !important; color: var(--pgr-dunkel) !important; }
.pgr-root h1.pgr-erg__wort { font-size: 40px !important; line-height: 1.1 !important; }
.pgr-root .pgr-erg__zahl { font: 700 120px/0.9 var(--pgr-f-titel); color: var(--pgr-gruen); }
.pgr-root .pgr-erg__daten { padding-bottom: 6px; }
.pgr-root .pgr-erg__daten p { font-size: 17px; line-height: 1.45; }
.pgr-root .pgr-erg__daten .pgr-erg__punkte { font: 500 19px/1.4 var(--pgr-f-text); color: var(--pgr-stark); margin-bottom: 4px !important; }
.pgr-root .pgr-erg__text { margin-top: 24px !important; max-width: 640px; }
.pgr-root .pgr-erg__karte .pgr-leiste { margin-top: 32px; padding: 24px 24px 16px; background: var(--pgr-weiss); border-radius: 16px; }
.pgr-root .pgr-erg__karte .pgr-bahn { margin-top: 0; }

/* ---------- Hinweis 2027 ---------- */
.pgr-root .pgr-erg__2027 {
  display: flex; align-items: flex-start; gap: 16px; margin-top: 24px; padding: 24px;
  background: var(--pgr-weiss); border: 1px solid var(--pgr-linie); border-radius: 22px; font-size: 17px;
}
.pgr-root .pgr-erg__2027 > div > * + * { margin-top: 4px !important; }
.pgr-root .pgr-erg__2027 > * + * { margin-top: 0 !important; }
.pgr-root .pgr-erg__2027-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--pgr-grund); color: var(--pgr-dunkel); display: grid; place-items: center; }
.pgr-root .pgr-erg__2027-icon .pgr-i { width: 22px; height: 22px; }
.pgr-root .pgr-erg__2027-titel { font: 500 19px/1.4 var(--pgr-f-text); color: var(--pgr-stark); }

/* ---------- Abschnitte ---------- */
.pgr-root .pgr-erg .pgr-abschnitt { margin-top: 48px; }
.pgr-root .pgr-erg .pgr-abschnitt > .pgr-h2 { margin-bottom: 12px; font-size: 24px !important; }

/* ---------- Zusammensetzung ---------- */
.pgr-root .pgr-erg .pgr-zeile { grid-template-columns: 40px minmax(0, 1fr) 160px 96px; gap: 16px; min-height: 64px; padding: 10px 0; }
.pgr-root .pgr-erg .pgr-zeile .pgr-kreis-icon { width: 40px; height: 40px; }
.pgr-root .pgr-erg .pgr-zeile .pgr-kreis-icon .pgr-i { width: 22px; height: 22px; }
.pgr-root .pgr-erg .pgr-zeile__name { font: 500 19px/1.35 var(--pgr-f-text); color: var(--pgr-stark); }
.pgr-root .pgr-erg .pgr-zeile__name small { margin-top: 2px; font-size: 15px; line-height: 1.4; }
.pgr-root .pgr-erg .pgr-balken { width: 160px; height: 8px; border-radius: 999px; }
.pgr-root .pgr-erg .pgr-balken__fuellung { border-radius: 999px; }
.pgr-root .pgr-erg .pgr-balken.is-blass { opacity: 0.4; }
.pgr-root .pgr-erg .pgr-zeile__wert { width: 96px; text-align: right; white-space: nowrap; font-size: 17px; }
.pgr-root .pgr-erg__fehlt { display: flex; align-items: center; gap: 12px; margin-top: 24px !important; font: 500 19px/1.4 var(--pgr-f-text); color: var(--pgr-stark); }
.pgr-root .pgr-erg__fehlt .pgr-i { flex: none; width: 24px; height: 24px; color: var(--pgr-gruen); }

/* ---------- Leistungen ---------- */
.pgr-root .pgr-erg .pgr-leistungen { padding: 0 24px; border: 1px solid var(--pgr-linie); border-radius: 22px; background: var(--pgr-weiss); }
.pgr-root .pgr-erg .pgr-leistungen li { align-items: center; min-height: 56px; padding: 12px 0; font-size: 17px; }
.pgr-root .pgr-erg .pgr-leistungen li:last-child { border-bottom: 0; }
.pgr-root .pgr-erg .pgr-leistungen strong { font: 500 19px/1.4 var(--pgr-f-text); color: var(--pgr-dunkel); white-space: nowrap; }
.pgr-root .pgr-leistungen__stand { margin-top: 12px !important; font-size: 15px; }

/* ---------- So geht es weiter ---------- */
.pgr-root .pgr-erg .pgr-schritte { gap: 24px; align-items: stretch; }
.pgr-root .pgr-erg .pgr-schritte li { padding: 24px; border: 1px solid var(--pgr-linie); border-radius: 22px; background: var(--pgr-weiss); }
.pgr-root .pgr-schritte__nr {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pgr-hell); color: var(--pgr-dunkel); font: 600 20px/1 var(--pgr-f-titel);
}
.pgr-root .pgr-erg .pgr-schritte h3 { font-size: 22px !important; line-height: 1.25 !important; margin: 16px 0 8px !important; }
.pgr-root .pgr-erg .pgr-schritte p { font-size: 17px; line-height: 1.5; }

/* ---------- Kontakt-Block ---------- */
.pgr-root .pgr-kontakt {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 40px; align-items: start;
  margin-top: 48px; padding: 40px; border-radius: 22px; background: var(--pgr-dunkel); color: var(--pgr-weiss);
}
.pgr-root .pgr-kontakt__text { font: 600 32px/1.2 var(--pgr-f-titel); color: var(--pgr-weiss); max-width: 440px; }
.pgr-root .pgr-kontakt .pgr-haekchen { margin-top: 24px; font-size: 17px; line-height: 1.4; }
.pgr-root .pgr-kontakt .pgr-klein { font-size: 15px; opacity: 0.85; }
.pgr-root .pgr-kontakt__knoepfe { margin-top: 24px; gap: 12px; }
.pgr-root .pgr-kontakt__knoepfe .pgr-knopf { min-height: 48px; align-items: center; gap: 8px; padding-inline: 22px; }
.pgr-root .pgr-telefone { list-style: none; margin: 0 !important; padding: 0; display: flex; flex-direction: column; gap: 0; min-width: 200px; }
.pgr-root .pgr-telefone li { margin: 0; padding: 0; border-bottom: 1px solid color-mix(in srgb, var(--pgr-weiss) 18%, transparent); }
.pgr-root .pgr-telefone li:last-child { border-bottom: 0; }
.pgr-root .pgr-telefone a {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 72px; padding: 10px 0;
  color: var(--pgr-weiss); text-decoration: none; font: inherit;
}
.pgr-root .pgr-telefone a:hover .pgr-telefone__nr { text-decoration: underline; text-underline-offset: 4px; }
.pgr-root .pgr-telefone__icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--pgr-weiss) 12%, transparent); color: var(--pgr-weiss); }
.pgr-root .pgr-telefone__icon .pgr-i { width: 20px; height: 20px; }
.pgr-root .pgr-telefone__text { display: flex; flex-direction: column; }
.pgr-root .pgr-telefone__ort { font: 400 15px/1.3 var(--pgr-f-text); color: var(--pgr-weiss); opacity: 0.85; }
.pgr-root .pgr-telefone__nr { font: 500 24px/1.2 var(--pgr-f-titel); color: var(--pgr-weiss); white-space: nowrap; }

/* ---------- Nebenaktionen und Kleintext ---------- */
.pgr-root .pgr-erg .pgr-aktionen { justify-content: center; gap: 8px 32px; margin-top: 32px; }
.pgr-root .pgr-erg .pgr-aktionen .pgr-link { min-height: 48px; align-items: center; gap: 8px; }
.pgr-root .pgr-erg .pgr-bestaetigen { max-width: 640px; margin: 12px auto 0; }
.pgr-root .pgr-erg__kleintext { max-width: 640px; margin: 24px auto 0 !important; text-align: center; font-size: 15px; line-height: 1.5; }

/* ---------- Handy ---------- */
@media (max-width: 600px) {
  .pgr-root .pgr-erg__karte { padding: 24px; }
  .pgr-root .pgr-erg__kopf { grid-template-columns: 1fr; gap: 12px; }
  .pgr-root .pgr-erg__wort { font-size: 28px !important; }
  .pgr-root h1.pgr-erg__wort { font-size: 32px !important; }
  .pgr-root .pgr-erg__zahl { font-size: 88px; }
  .pgr-root .pgr-erg__karte .pgr-leiste { margin-top: 24px; padding: 16px 16px 12px; }
  .pgr-root .pgr-erg__karte .pgr-schwellen { display: none; }
  .pgr-root .pgr-erg__2027 { padding: 16px; gap: 12px; }
  .pgr-root .pgr-erg .pgr-abschnitt { margin-top: 32px; }
  .pgr-root .pgr-erg .pgr-abschnitt > .pgr-h2 { font-size: 22px !important; }
  .pgr-root .pgr-erg .pgr-zeile { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 0; align-items: start; }
  .pgr-root .pgr-erg .pgr-zeile .pgr-kreis-icon { grid-row: 1 / 3; }
  .pgr-root .pgr-erg .pgr-zeile__name { font-size: 17px; }
  .pgr-root .pgr-erg .pgr-zeile__wert { width: auto; font-size: 15px; line-height: 1.6; }
  .pgr-root .pgr-erg .pgr-zeile .pgr-balken { grid-column: 2 / 4; grid-row: 2; width: 100%; margin-top: 4px; }
  .pgr-root .pgr-erg__fehlt { font-size: 17px; align-items: flex-start; }
  .pgr-root .pgr-erg .pgr-leistungen { padding: 0 16px; }
  .pgr-root .pgr-erg .pgr-leistungen li { font-size: 15px; }
  .pgr-root .pgr-erg .pgr-leistungen strong { font-size: 17px; }
  .pgr-root .pgr-erg .pgr-schritte { grid-template-columns: 1fr; gap: 16px; }
  .pgr-root .pgr-kontakt { grid-template-columns: 1fr; padding: 24px; gap: 24px; margin-top: 32px; }
  .pgr-root .pgr-kontakt__text { font-size: 26px; }
  .pgr-root .pgr-kontakt__knoepfe { flex-direction: column; }
  .pgr-root .pgr-kontakt__knoepfe .pgr-knopf { width: 100%; justify-content: center; }
  .pgr-root .pgr-telefone { min-width: 0; width: 100%; }
  .pgr-root .pgr-erg .pgr-aktionen { flex-direction: column; align-items: center; gap: 0; }
}

/* ---------- Druck ---------- */
@media print {
  /* Nur der Rechner: alles neben dem Pfad zum Rechner ausblenden */
  body *:not(:has(.pgr-root)):not(.pgr-root):not(.pgr-root *) { display: none !important; }
  .pgr-root { max-width: none; padding: 0; }
  .pgr-root .pgr-nav, .pgr-root .pgr-weg, .pgr-root .pgr-aktionen, .pgr-root .pgr-bestaetigen,
  .pgr-root .pgr-kontakt__knoepfe, .pgr-root .pgr-kontakt .pgr-haekchen, .pgr-root .pgr-kontakt .pgr-klein,
  .pgr-root .pgr-knopf { display: none !important; }
  .pgr-root .pgr-erg__karte { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pgr-root .pgr-kontakt { background: var(--pgr-weiss) !important; color: var(--pgr-stark); border: 1px solid var(--pgr-linie); }
  .pgr-root .pgr-kontakt__text, .pgr-root .pgr-telefone a, .pgr-root .pgr-telefone__ort, .pgr-root .pgr-telefone__nr { color: var(--pgr-stark) !important; }
  .pgr-root .pgr-telefone__icon { background: var(--pgr-grund); color: var(--pgr-dunkel); }
  .pgr-root .pgr-telefone li { border-color: var(--pgr-linie); }
  .pgr-root .pgr-erg__karte, .pgr-root .pgr-erg__2027, .pgr-root .pgr-zeile, .pgr-root .pgr-leistungen,
  .pgr-root .pgr-schritte li, .pgr-root .pgr-kontakt, .pgr-root .pgr-leiste { break-inside: avoid; page-break-inside: avoid; }
  .pgr-root .pgr-h2 { break-after: avoid; page-break-after: avoid; }
  .pgr-root * { animation: none !important; transition: none !important; }
}
