/* =========================================================
   Ambulante Leistungen: seitenspezifische Ergänzungen
   (nach css/style.css eingebunden, nutzt dessen Tokens)
========================================================== */

[hidden] { display: none !important; }

.leistungen-pillars { margin-top: 48px; }

/* ---------- Pflegekosten verstehen ---------- */
.kosten { background: var(--bg); }

.kosten__head { max-width: 780px; margin-bottom: 52px; }
.kosten__claim {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.5;
  margin-bottom: 14px;
}

.kosten__list {
  list-style: none;
  counter-reset: kosten;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.kosten__item {
  counter-increment: kosten;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 30px 28px 92px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s, box-shadow 0.3s;
}
.kosten__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.kosten__item::before {
  content: counter(kosten);
  position: absolute;
  left: 28px;
  top: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--btn-gradient);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 20px var(--primary-glow);
}
.kosten__item h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0 12px;
}
.kosten__item p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0;
}
.kosten__item p + p { margin-top: 12px; }

/* Breite Karten: Text links, Inhalt rechts */
.kosten__item--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 48px;
  align-items: start;
}

/* Tabelle Pflegesachleistungen */
.kosten__rates {
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
}
.kosten__table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.kosten__table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  padding-bottom: 12px;
}
.kosten__table th,
.kosten__table td {
  padding: 12px 0;
  border-top: 1px solid rgba(80, 131, 150, 0.18);
  font-size: 16px;
  line-height: 1.4;
}
.kosten__table th {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}
.kosten__table td {
  text-align: right;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
  padding-left: 16px;
}
.kosten__item .kosten__table-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
}

/* Abschlusskarte (Punkt 8) */
.kosten__item--accent {
  background: linear-gradient(145deg, var(--primary-soft), var(--white));
  border-color: rgba(80, 131, 150, 0.2);
}
.kosten__item--accent h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 400;
}

/* Rechenbeispiel */
.kosten__example {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px 48px;
  align-items: center;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, #5a9e8f 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  box-shadow: var(--shadow);
}
.kosten__example-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}
.kosten__example-label::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-2);
}
.kosten__example h3 {
  color: var(--white);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  margin-bottom: 10px;
}
.kosten__example-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16.5px;
  line-height: 1.7;
  margin: 0;
}
.kosten__example-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.kosten__figure {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.kosten__figure dt {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}
.kosten__figure dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.kosten__example-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

/* Hoher Kontrast */
html.a11y-contrast .kosten__item,
html.a11y-contrast .kosten__rates { background: #fff; border-color: #000; }
html.a11y-contrast .kosten__item p,
html.a11y-contrast .kosten__table th,
html.a11y-contrast .kosten__table td,
html.a11y-contrast .kosten__table caption { color: #000; }
html.a11y-contrast .kosten__example { background: #000; }

@media (prefers-reduced-motion: reduce) {
  .kosten__item { transition: none; }
  .kosten__item:hover { transform: none; }
}

@media (max-width: 960px) {
  .kosten__list { grid-template-columns: 1fr; }
  .kosten__item--wide,
  .kosten__example { grid-template-columns: 1fr; }
  .kosten__example { padding: 32px 28px; }
}

@media (max-width: 640px) {
  .kosten__head { margin-bottom: 36px; }
  .kosten__item { padding: 82px 22px 24px; }
  .kosten__item::before { left: 22px; top: 22px; }
  .kosten__item h3 { margin-top: 0; }
  .kosten__rates { padding: 18px 18px 16px; }
  .kosten__example { padding: 28px 22px; border-radius: var(--radius-lg); }
  .kosten__example-figures { grid-template-columns: 1fr; }
}
