/* ==========================================================================
   Mein Vorsorgeportal — Kundenbereich (11.10.2026)

   Aufbau nach portal.envital.care: oben eine feste Glasleiste, am Desktop
   links die Navigation (linksbuendig, 264 px), am Handy die Bereiche als
   Bildkacheln und unten eine schwebende Leiste. Farben aus dem
   Gesamtkalkulator (Pflaume #6B3F5E, Gold #8A6F3A), damit Kalkulator und
   Portal wie aus einem Guss wirken.

   Kontraste gemessen: --text-3 #74695F auf Weiss 5,3:1, --gold 4,9:1,
   --akzent 9,0:1. --akzent-hell und --gold-hell tragen KEINEN Text als Farbe,
   nur Flaechen.
   ========================================================================== */
:root {
  --grund: #FAF7F4;
  --flaeche: #FFFFFF;
  --flaeche-2: #F5F1EC;
  --linie: #E9E2DA;
  --linie-2: #D9CFC4;
  --text: #1F1A17;
  --text-2: #554C45;
  --text-3: #74695F;
  --akzent: #6B3F5E;
  --akzent-tief: #4A2A41;
  --akzent-hell: #F4ECF1;
  --akzent-rand: #E2CFDB;
  --gold: #8A6F3A;
  --gold-hell: #F6EFDF;
  --gruen: #2F6B4A;
  --gruen-hell: #E7F2EB;
  --rot: #A3312D;
  --rot-hell: #FBEAE9;
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 26px;
  --schatten: 0 1px 0 rgba(255,255,255,.85) inset, 0 12px 32px rgba(46,32,40,.07);
  --schatten-hoch: 0 1px 0 rgba(255,255,255,.85) inset, 0 20px 44px rgba(46,32,40,.13);
  --kopf: 68px;
  --leiste: 268px;
  --schrift: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --titel: 'Fraunces', Georgia, serif;
  --kurve: cubic-bezier(.22,.61,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--schrift); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--grund);
  -webkit-font-smoothing: antialiased; min-height: 100vh; }
html.gross body { font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--akzent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(107,63,94,.45); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--titel); font-weight: 400; letter-spacing: -.01em; margin: 0; line-height: 1.2; }

/* ── Bewegter Hintergrund (nur transform, abschaltbar) ────────────────── */
.kp-aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(1200px 700px at 85% -10%, #F3E9EF 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 110%, #F6EEDF 0%, transparent 55%), var(--grund); }
.kp-aura i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .45;
  animation: kp-drift 38s var(--kurve) infinite alternate; will-change: transform; }
.kp-aura i:nth-child(1) { background: #EBD9E4; top: -18vmax; right: -12vmax; }
.kp-aura i:nth-child(2) { background: #F1E4C9; bottom: -22vmax; left: -14vmax; animation-duration: 46s; }
.kp-aura i:nth-child(3) { background: #E4E9E2; top: 30%; left: 40%; width: 30vmax; height: 30vmax; opacity: .3; animation-duration: 52s; }
@keyframes kp-drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .kp-aura i { animation: none; } * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* ── Kopfleiste ───────────────────────────────────────────────────────── */
.kp-kopf { position: sticky; top: 0; z-index: 30; height: var(--kopf);
  background: color-mix(in srgb, #fff 82%, transparent); -webkit-backdrop-filter: saturate(170%) blur(14px); backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid var(--linie); }
.kp-kopf__innen { height: 100%; display: flex; align-items: center; gap: 16px; padding: 0 clamp(14px, 2.4vw, 28px); }
.kp-marke { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); min-width: 0; }
.kp-marke img { width: 38px; height: 38px; flex: none; }
.kp-marke b { display: block; font-family: var(--titel); font-weight: 500; font-size: 19px; line-height: 1.1; }
.kp-marke small { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-kopf__rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.kp-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); padding: 6px 11px; border-radius: 999px;
  background: var(--flaeche); border: 1px solid var(--linie); white-space: nowrap; }
.kp-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gruen); }
.kp-chip.laeuft::before { background: var(--gold); animation: kp-puls 1s infinite alternate; }
.kp-chip.fehler::before { background: var(--rot); }
@keyframes kp-puls { to { opacity: .3; } }
.kp-nutzer { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 6px 4px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; color: var(--text); }
.kp-nutzer:hover { background: rgba(107,63,94,.07); }
.kp-nutzer__wer { text-align: right; line-height: 1.2; }
.kp-nutzer__wer b { display: block; font-weight: 500; font-size: 14px; }
.kp-nutzer__wer small { font-size: 11.5px; color: var(--text-3); }
.kp-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--akzent-hell); color: var(--akzent);
  font-weight: 600; font-size: 14px; border: 1px solid var(--akzent-rand); flex: none; }
.kp-groesse { display: inline-flex; border: 1px solid var(--linie); border-radius: 999px; overflow: hidden; background: var(--flaeche); }
.kp-groesse button { border: 0; background: none; padding: 5px 10px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.kp-groesse button + button { font-size: 16px; border-left: 1px solid var(--linie); }
.kp-groesse button[aria-pressed="true"] { background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }
@media (max-width: 760px) { .kp-chip { display: none; } .kp-nutzer__wer { display: none; } .kp-marke small { display: none; } }
@media (max-width: 420px) { .kp-groesse { display: none; } }

/* ── Arbeitsplatz: Leiste + Inhalt ────────────────────────────────────── */
.kp-arbeitsplatz { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); }
.kp-leiste { display: none; }
.kp-inhalt { min-width: 0; padding: 22px 16px 120px; width: 100%; max-width: 1240px; }
@media (min-width: 1000px) {
  .kp-arbeitsplatz { grid-template-columns: var(--leiste) minmax(0, 1fr); }
  .kp-leiste { display: flex; flex-direction: column; position: sticky; top: var(--kopf); height: calc(100vh - var(--kopf)); overflow-y: auto;
    scrollbar-width: thin; border-right: 1px solid var(--linie);
    background: color-mix(in srgb, #fff 62%, transparent); -webkit-backdrop-filter: saturate(140%) blur(20px); backdrop-filter: saturate(140%) blur(20px); }
  .kp-inhalt { padding: 34px clamp(24px, 3vw, 44px) 64px; }
}
.kp-nav { padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.kp-nav__gruppe { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); padding: 16px 12px 6px; }
.kp-nav__gruppe:first-child { padding-top: 4px; }
.kp-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-s); text-decoration: none;
  color: var(--text-2); font-size: 14px; transition: background-color .15s, color .15s; }
.kp-nav a:hover { background: rgba(107,63,94,.06); color: var(--text); }
.kp-nav a svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kp-nav a .wort { flex: 1; min-width: 0; }
.kp-nav a .punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--linie-2); flex: none; }
.kp-nav a .punkt.ok { background: var(--gruen); }
.kp-nav a .punkt.halb { background: var(--gold); }
.kp-nav a[aria-current="page"] { background: var(--akzent); color: #fff; box-shadow: 0 8px 20px rgba(107,63,94,.28); }
.kp-nav a[aria-current="page"] .punkt { background: rgba(255,255,255,.7); }
.kp-leiste__fuss { margin-top: auto; padding: 14px; }
.kp-hilfe-karte { border-radius: var(--r-m); padding: 14px; background: linear-gradient(150deg, #fff, var(--akzent-hell)); border: 1px solid var(--akzent-rand); font-size: 13px; color: var(--text-2); }
.kp-hilfe-karte b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.kp-hilfe-karte a { font-weight: 500; text-decoration: none; }

/* ── Kopf eines Bereichs ──────────────────────────────────────────────── */
.kp-seitenkopf { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.kp-heim { flex: none; width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--flaeche);
  border: 1px solid var(--akzent-rand); color: var(--akzent); box-shadow: 0 6px 16px rgba(46,32,40,.08); text-decoration: none; }
.kp-heim svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
@media (min-width: 1000px) { .kp-heim { display: none; } }
.kp-seitenkopf h1 { font-size: clamp(26px, 3.2vw, 34px); }
.kp-seitenkopf p { margin: 3px 0 0; color: var(--text-2); font-size: 14.5px; }

.kp-banner { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: clamp(180px, 24vw, 260px); margin-bottom: 22px;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--schatten); background: #2b2026; }
.kp-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kp-banner::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22,15,19,.78) 0%, rgba(22,15,19,.45) 48%, rgba(22,15,19,.05) 90%),
              linear-gradient(0deg, rgba(22,15,19,.55) 0%, transparent 60%); }
.kp-banner__text { position: relative; z-index: 1; padding: clamp(18px, 3vw, 32px); max-width: 640px; }
.kp-banner__text small { display: inline-block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.88); margin-bottom: 6px; }
.kp-banner__text h1 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); }
.kp-banner__text p { margin: 8px 0 0; color: rgba(255,255,255,.92); font-size: 15px; max-width: 520px; }
.kp-banner .kp-heim { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255,255,255,.92); }

/* ── Karten ───────────────────────────────────────────────────────────── */
.kp-karte { background: color-mix(in srgb, #fff 92%, transparent); border: 1px solid var(--linie); border-radius: var(--r-l); padding: clamp(16px, 2vw, 24px);
  box-shadow: var(--schatten); }
.kp-karte + .kp-karte { margin-top: 16px; }
.kp-karte__kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.kp-karte__kopf h2 { font-size: 21px; }
.kp-karte__kopf p { margin: 3px 0 0; color: var(--text-2); font-size: 13.5px; }
.kp-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.kp-raster { display: grid; gap: 16px; }
@media (min-width: 900px) { .kp-raster.zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kp-raster.haupt { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; } }
.kp-raster > .kp-karte + .kp-karte, .kp-spalte > .kp-karte + .kp-karte { margin-top: 0; }
.kp-spalte { display: grid; gap: 16px; align-content: start; }

/* Wahl-Anzeige: „Ihre Wahl“ */
.kp-wahl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.kp-wahl:last-child { border-bottom: 0; padding-bottom: 2px; }
.kp-wahl:first-child { padding-top: 2px; }
.kp-wahl__symbol { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--akzent-hell); color: var(--akzent); }
.kp-wahl__symbol svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kp-wahl__was small { display: block; font-size: 12px; color: var(--text-3); }
.kp-wahl__was b { display: block; font-weight: 500; font-size: 15.5px; }
.kp-wahl__was span { display: block; font-size: 13px; color: var(--text-2); margin-top: 1px; }
.kp-wahl__preis { font-weight: 600; color: var(--akzent); white-space: nowrap; text-align: right; }
.kp-wahl__preis small { display: block; font-weight: 400; font-size: 11.5px; color: var(--text-3); }
.kp-wahl.offen .kp-wahl__symbol { background: var(--flaeche-2); color: var(--text-3); }
.kp-wahl.offen b { color: var(--text-3); font-weight: 400; }

/* Angebotsliste mit Preisen */
.kp-angebote { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.kp-angebot { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 13px 14px; border-radius: var(--r-m); border: 1px solid var(--linie);
  background: var(--flaeche); text-align: left; cursor: pointer; color: var(--text); text-decoration: none; font: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.kp-angebot:hover { border-color: var(--akzent-rand); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(46,32,40,.08); }
.kp-angebot b { font-weight: 500; font-size: 14.5px; line-height: 1.3; padding-right: 26px; }
.kp-angebot span { font-size: 12.5px; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kp-angebot em { font-style: normal; font-weight: 600; color: var(--akzent); font-size: 14px; margin-top: auto; padding-top: 4px; }
.kp-angebot.gewaehlt { border: 1.5px solid var(--akzent); background: var(--akzent-hell); }
.kp-angebot.gewaehlt::after { content: '✓'; position: absolute; top: 11px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--akzent); color: #fff;
  display: grid; place-items: center; font-size: 12px; }

/* Knoepfe */
.kp-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--akzent); background: var(--akzent); color: #fff;
  border-radius: 999px; padding: 11px 20px; font-weight: 500; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s; }
.kp-knopf:hover { background: var(--akzent-tief); box-shadow: 0 10px 22px rgba(107,63,94,.25); }
.kp-knopf:active { transform: scale(.98); }
.kp-knopf:disabled { opacity: .55; cursor: progress; }
.kp-knopf.leise { background: var(--flaeche); color: var(--akzent-tief); border-color: var(--linie-2); }
.kp-knopf.leise:hover { background: var(--akzent-hell); border-color: var(--akzent-rand); box-shadow: none; }
.kp-knopf.gold { background: var(--gold-hell); color: #5E4A22; border-color: rgba(138,111,58,.35); }
.kp-knopf.klein { padding: 7px 14px; font-size: 13px; }
.kp-knopf svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kp-knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kp-link { background: none; border: 0; padding: 0; color: var(--akzent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* Formulare */
.kp-feld { display: block; margin-bottom: 14px; }
.kp-feld > span { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 5px; }
.kp-feld > small { display: block; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.kp-feld input, .kp-feld select, .kp-feld textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--linie-2); border-radius: var(--r-s); background: var(--flaeche);
  font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.kp-feld textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.kp-feld input:focus, .kp-feld select:focus, .kp-feld textarea:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(107,63,94,.14); }
.kp-felder { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .kp-felder.zwei { grid-template-columns: 1fr 1fr; } }
.kp-wahlen { display: flex; flex-wrap: wrap; gap: 8px; }
.kp-wahlen label { position: relative; cursor: pointer; }
.kp-wahlen input { position: absolute; opacity: 0; pointer-events: none; }
.kp-wahlen span { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--linie-2); background: var(--flaeche); font-size: 13.5px; color: var(--text-2);
  transition: all .15s; }
.kp-wahlen input:checked + span { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.kp-wahlen input:focus-visible + span { outline: 3px solid rgba(107,63,94,.45); outline-offset: 2px; }

/* Status-Umschalter (offen / in Arbeit / erledigt) */
.kp-status { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 999px; background: var(--flaeche-2); border: 1px solid var(--linie); }
.kp-status button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.kp-status button[aria-pressed="true"] { background: var(--flaeche); color: var(--text); box-shadow: 0 2px 8px rgba(46,32,40,.12); font-weight: 500; }
.kp-status button[aria-pressed="true"][data-wert="erledigt"] { background: var(--gruen); color: #fff; }
@media (max-width: 480px) { .kp-status { display: grid; grid-auto-flow: row; width: 100%; border-radius: var(--r-m); } .kp-status button { border-radius: var(--r-s); } }

.kp-pille { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--flaeche-2); color: var(--text-2); white-space: nowrap; }
.kp-pille.ok { background: var(--gruen-hell); color: var(--gruen); }
.kp-pille.halb { background: var(--gold-hell); color: #6E5620; }
.kp-pille.akzent { background: var(--akzent-hell); color: var(--akzent-tief); }
.kp-banner .kp-pille { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); margin-top: 12px; }

.kp-hinweis { display: flex; gap: 12px; padding: 13px 15px; border-radius: var(--r-m); background: var(--gold-hell); color: #5E4A22; font-size: 13.5px; line-height: 1.55; }
.kp-hinweis.akzent { background: var(--akzent-hell); color: var(--akzent-tief); }
.kp-hinweis.gruen { background: var(--gruen-hell); color: #1F4E35; }
.kp-hinweis svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; margin-top: 1px; }
.kp-hinweis + * { margin-top: 14px; }
.kp-text { color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.kp-text p { margin: 0 0 10px; }
.kp-text ul { margin: 0 0 10px; padding-left: 20px; }
.kp-leer { text-align: center; padding: 26px 12px; color: var(--text-3); font-size: 14px; }

/* ── Uebersicht ───────────────────────────────────────────────────────── */
.kp-gruss { display: grid; gap: 16px; margin-bottom: 18px; }
@media (min-width: 1100px) { .kp-gruss { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.kp-held { position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; padding: clamp(20px, 3vw, 34px); min-height: 250px;
  background: #2B1F26; box-shadow: var(--schatten-hoch); display: flex; flex-direction: column; justify-content: flex-end; }
.kp-held > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.kp-held::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(36,22,31,.9) 0%, rgba(36,22,31,.62) 50%, rgba(36,22,31,.2) 100%); }
.kp-held > * { position: relative; z-index: 1; }
.kp-held > img { position: absolute; z-index: 0; }
.kp-held::after { z-index: 0; }
.kp-held small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.kp-held h1 { color: #fff; font-size: clamp(28px, 3.8vw, 42px); margin: 6px 0 8px; }
.kp-held p { margin: 0 0 18px; color: rgba(255,255,255,.9); max-width: 560px; }
.kp-held .kp-knopf { background: #fff; color: var(--akzent-tief); border-color: #fff; }
.kp-held .kp-knopf:hover { background: var(--akzent-hell); }
.kp-held .kp-knopf.leise { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }

.kp-stand { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.kp-ring { position: relative; width: 108px; height: 108px; }
.kp-ring svg { width: 108px; height: 108px; transform: rotate(-90deg); }
.kp-ring circle { fill: none; stroke-width: 9; }
.kp-ring .bahn { stroke: var(--flaeche-2); }
.kp-ring .wert { stroke: url(#kp-verlauf); stroke-linecap: round; transition: stroke-dashoffset 1s var(--kurve); }
.kp-ring b { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--titel); font-size: 28px; font-weight: 500; line-height: 1; }
.kp-ring b small { display: block; font-family: var(--schrift); font-size: 11px; color: var(--text-3); font-weight: 400; margin-top: 4px; }
.kp-summe { font-family: var(--titel); font-size: clamp(30px, 3.4vw, 38px); color: var(--akzent); line-height: 1.1; }
.kp-summe small { font-family: var(--schrift); font-size: 12.5px; color: var(--text-3); display: block; margin-top: 3px; }

.kp-bereichstitel { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.kp-bereichstitel h2 { font-size: 23px; }
.kp-bereichstitel span { font-size: 13px; color: var(--text-3); }

/* Bildkacheln (Handy und Desktop) */
.kp-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .kp-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1560px) { .kp-kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kp-kachel { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; aspect-ratio: 4 / 3.4; border-radius: var(--r-l);
  overflow: hidden; text-decoration: none; color: #fff; background: #2B1F26; box-shadow: var(--schatten); isolation: isolate;
  transition: transform .25s var(--kurve), box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.kp-kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--kurve); }
.kp-kachel::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(24,15,20,.88) 0%, rgba(24,15,20,.5) 42%, rgba(24,15,20,.08) 75%); }
.kp-kachel:hover { transform: translateY(-3px); box-shadow: var(--schatten-hoch); }
.kp-kachel:hover img { transform: scale(1.05); }
.kp-kachel:active { transform: scale(.98); }
.kp-kachel__text { padding: 13px 14px 14px; }
.kp-kachel__titel { display: block; font-family: var(--titel); font-size: 18.5px; line-height: 1.15; }
.kp-kachel__stand { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.88); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-kachel__marke { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.kp-kachel__marke.ok { background: var(--gruen); border-color: var(--gruen); }
@media (max-width: 420px) { .kp-kachel__titel { font-size: 16.5px; } .kp-kachel__text { padding: 11px 12px 12px; } }

/* Naechste Schritte */
.kp-schritte { list-style: none; margin: 0; padding: 0; }
.kp-schritte li a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--linie);
  text-decoration: none; color: var(--text); }
.kp-schritte li:last-child a { border-bottom: 0; }
.kp-schritte li a:hover b { color: var(--akzent); }
.kp-schritte .kreis { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--linie-2); display: grid; place-items: center; font-size: 12px; color: var(--text-3); }
.kp-schritte .ok .kreis { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.kp-schritte b { font-weight: 500; font-size: 14.5px; display: block; }
.kp-schritte small { color: var(--text-3); font-size: 12.5px; }
.kp-schritte .ok b { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--linie-2); }
.kp-schritte .pfeil { color: var(--text-3); }

/* Kostenaufstellung */
.kp-balken { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--flaeche-2); margin: 14px 0 16px; }
.kp-balken i { display: block; height: 100%; }
.kp-posten { list-style: none; margin: 0; padding: 0; }
.kp-posten li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--linie); font-size: 14px; }
.kp-posten li:last-child { border-bottom: 0; }
.kp-posten .farbe { width: 10px; height: 10px; border-radius: 3px; transform: translateY(1px); }
.kp-posten small { display: block; color: var(--text-3); font-size: 12px; }
.kp-posten .betrag { font-weight: 600; white-space: nowrap; }
.kp-gesamtzeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; margin-top: 6px; border-top: 1.5px solid var(--text); }
.kp-gesamtzeile b { font-family: var(--titel); font-size: 24px; font-weight: 500; color: var(--akzent); }

/* Angebots-Karten Sterbegeld */
.kp-tarife { display: grid; gap: 12px; }
@media (min-width: 760px) { .kp-tarife { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kp-tarif { border: 1px solid var(--linie); border-radius: var(--r-m); padding: 16px; background: var(--flaeche); display: flex; flex-direction: column; gap: 6px; }
.kp-tarif.erster { border: 1.5px solid var(--akzent); box-shadow: 0 12px 30px rgba(107,63,94,.12); }
.kp-tarif__kopf { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.kp-tarif__kopf b { font-size: 16px; font-weight: 600; }
.kp-tarif__kopf small { display: block; font-size: 12.5px; color: var(--text-3); }
.kp-tarif__beitrag { font-family: var(--titel); font-size: 30px; color: var(--akzent); line-height: 1; }
.kp-tarif__beitrag small { font-family: var(--schrift); font-size: 13px; color: var(--text-3); }
.kp-tarif ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }

/* Personen */
.kp-person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.kp-person:last-child { border-bottom: 0; }
.kp-person b { font-weight: 500; display: block; }
.kp-person small { color: var(--text-3); font-size: 12.5px; }
.kp-person .kp-pille { margin: 4px 4px 0 0; }

/* Planer im Rahmen */
.kp-inhalt.voll { max-width: none; padding: 0; }
.kp-planer { display: flex; flex-direction: column; height: calc(100vh - var(--kopf)); height: calc(100svh - var(--kopf)); }
.kp-planer__leiste { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px clamp(14px, 2.4vw, 28px); border-bottom: 1px solid var(--linie);
  background: color-mix(in srgb, #fff 85%, transparent); font-size: 13.5px; color: var(--text-2); }
.kp-planer__leiste b { color: var(--text); font-weight: 600; }
.kp-planer__leiste .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 999.98px) { .kp-planer__leiste { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; padding-block: 8px; font-size: 13px; } .kp-planer__leiste .rechts { display: none; } }
.kp-planer iframe { flex: 1; width: 100%; border: 0; background: #FBFAF8; }
@media (max-width: 999.98px) { .kp-planer { height: calc(100svh - var(--kopf) - 84px - env(safe-area-inset-bottom)); } }

/* Verlauf */
.kp-verlauf { list-style: none; margin: 0; padding: 0; position: relative; }
.kp-verlauf li { position: relative; padding: 0 0 16px 26px; font-size: 13.5px; color: var(--text-2); }
.kp-verlauf li::before { content: ''; position: absolute; left: 6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-hell); }
.kp-verlauf li::after { content: ''; position: absolute; left: 10px; top: 18px; bottom: 0; width: 1px; background: var(--linie); }
.kp-verlauf li:last-child::after { display: none; }
.kp-verlauf b { color: var(--text); font-weight: 500; }

/* Dokument-Kacheln */
.kp-dokument { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; }
.kp-dokument__blatt { width: 56px; height: 70px; border-radius: 8px; background: linear-gradient(160deg, #fff, var(--flaeche-2)); border: 1px solid var(--linie-2);
  box-shadow: 0 8px 18px rgba(46,32,40,.1); display: grid; place-items: center; color: var(--akzent); position: relative; }
.kp-dokument__blatt::after { content: 'PDF'; position: absolute; bottom: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: var(--gold); }
.kp-dokument__blatt svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; margin-top: -10px; }
.kp-dokument h3 { font-size: 19px; margin-bottom: 4px; }
.kp-dokument p { margin: 0 0 12px; font-size: 13.5px; color: var(--text-2); }

/* ── Mobil: schwebende Leiste ─────────────────────────────────────────── */
.kp-fussnav { display: none; }
@media (max-width: 999.98px) {
  .kp-fussnav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; position: fixed; z-index: 40; left: 12px; right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)); max-width: 520px; margin: 0 auto; padding: 6px; border-radius: 24px;
    background: color-mix(in srgb, #fff 82%, transparent); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
    border: 1px solid var(--linie); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 14px 36px rgba(46,32,40,.18); }
  .kp-fussnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; padding: 7px 2px 6px;
    border-radius: 18px; color: var(--text-3); font-size: 11.5px; text-decoration: none; min-width: 0; }
  .kp-fussnav a svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .kp-fussnav a[aria-current="page"] { background: var(--akzent-hell); color: var(--akzent-tief); font-weight: 500; }
  .kp-fussnav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .kp-inhalt.voll { padding-bottom: 0; }
}

/* ── Anmeldung ────────────────────────────────────────────────────────── */
.kp-zugang { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .kp-zugang { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }
.kp-zugang__bild { position: relative; display: none; overflow: hidden; color: #fff; background: #2B1F26; }
@media (min-width: 980px) { .kp-zugang__bild { display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; } }
.kp-zugang__bild > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kp-zugang__bild::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(36,22,31,.55) 0%, rgba(36,22,31,.82) 100%); }
.kp-zugang__bild > * { position: relative; z-index: 1; }
.kp-zugang__bild > img { position: absolute; z-index: 0; }
.kp-zugang__bild::after { z-index: 0; }
.kp-zugang__bild .kp-marke { color: #fff; }
.kp-zugang__bild .kp-marke small { color: rgba(255,255,255,.75); }
.kp-zugang__bild h1 { color: #fff; font-size: clamp(32px, 3.4vw, 46px); max-width: 560px; }
.kp-zugang__bild ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; max-width: 520px; }
.kp-zugang__bild li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; color: rgba(255,255,255,.92); font-size: 15px; }
.kp-zugang__bild li i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); font-style: normal; font-size: 13px; }
.kp-zugang__bild .fuss { font-size: 12.5px; color: rgba(255,255,255,.7); }
.kp-zugang__form { display: flex; align-items: center; justify-content: center; padding: clamp(20px, 5vw, 56px) 16px; }
.kp-zugang__karte { width: min(100%, 460px); }
.kp-zugang__karte .kp-marke { margin-bottom: 26px; }
@media (min-width: 980px) { .kp-zugang__karte > .kp-marke { display: none; } }
.kp-zugang__karte h2 { font-size: 30px; margin-bottom: 6px; }
.kp-zugang__karte > p { color: var(--text-2); margin: 0 0 20px; }
.kp-reiter { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--flaeche-2); border: 1px solid var(--linie); margin-bottom: 20px; }
.kp-reiter button { border: 0; background: none; padding: 10px; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--text-2); }
.kp-reiter button[aria-selected="true"] { background: var(--flaeche); color: var(--text); box-shadow: 0 2px 8px rgba(46,32,40,.12); }
.kp-meldung { padding: 11px 14px; border-radius: var(--r-s); font-size: 13.5px; margin: 12px 0 0; line-height: 1.5; }
.kp-meldung.fehler { background: var(--rot-hell); color: var(--rot); }
.kp-meldung.gut { background: var(--gruen-hell); color: #1F4E35; }
.kp-uebernahme { display: flex; gap: 12px; align-items: center; padding: 13px 15px; border-radius: var(--r-m); background: var(--akzent-hell); border: 1px solid var(--akzent-rand);
  margin-bottom: 18px; font-size: 13.5px; color: var(--akzent-tief); }
.kp-uebernahme b { display: block; }
.kp-uebernahme .betrag { margin-left: auto; font-family: var(--titel); font-size: 20px; white-space: nowrap; }

/* Kleine Meldung */
.kp-toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); z-index: 80; width: min(92vw, 30rem); transform: translate(-50%, 16px); opacity: 0;
  pointer-events: none; transition: opacity .25s, transform .25s; background: #1F1A17; color: #fff; border-radius: 14px; padding: 13px 16px; box-shadow: 0 18px 40px rgba(28,24,20,.3); font-size: 14px; }
.kp-toast.zeigen { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 999.98px) { .kp-toast { bottom: calc(env(safe-area-inset-bottom) + 96px); } }

/* Laden */
.kp-schimmer { border-radius: var(--r-l); background: linear-gradient(90deg, var(--flaeche-2) 0%, #fff 50%, var(--flaeche-2) 100%); background-size: 200% 100%;
  animation: kp-schimmer 1.3s linear infinite; min-height: 120px; margin-bottom: 14px; }
@keyframes kp-schimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.kp-einblenden { animation: kp-ein .45s var(--kurve) both; }
@keyframes kp-ein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media print {
  .kp-kopf, .kp-leiste, .kp-fussnav, .kp-aura, .kp-knopf, .kp-heim { display: none !important; }
  .kp-arbeitsplatz { display: block; } .kp-karte { box-shadow: none; break-inside: avoid; }
}

/* Handy: Zurueck-Knopf im Bildkopf ueber dem Text, nicht darauf */
@media (max-width: 999.98px) {
  .kp-banner__text { padding-top: 78px; }
  .kp-karte__kopf { flex-wrap: wrap; }
  .kp-karte__kopf h2 { font-size: 20px; }
}

/* ══════════════════════════════════════════════════════════════════════
   Planung direkt im Portal bearbeiten (25.10.2026)
   Sektionen zum Aufklappen, Auswahlkarten, Friedhofswahl, Leiste
   „Ungespeicherte Änderungen“, Anfrage-Fenster.
   ══════════════════════════════════════════════════════════════════════ */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kp-klein { font-size: 12.5px; color: var(--text-3); line-height: 1.5; margin: 10px 0 0; }
.still .kp-einblenden { animation: none; }
fieldset.kp-ed { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.kp-ed[disabled] .kp-option { cursor: default; opacity: .75; }

/* Sektion */
.kp-sek { padding: 0; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.kp-sek.fehlt { border-color: rgba(138,111,58,.55); box-shadow: 0 0 0 3px rgba(138,111,58,.12), var(--schatten); }
.kp-sek__kopf { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; text-align: left;
  border: 0; background: none; padding: clamp(14px, 1.8vw, 20px) clamp(16px, 2vw, 24px); cursor: pointer; color: var(--text); font: inherit; }
.kp-sek__kopf:hover .kp-sek__aendern { color: var(--akzent-tief); background: var(--akzent-hell); }
.kp-sek__nr { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600;
  background: var(--flaeche-2); color: var(--text-3); border: 1px solid var(--linie-2); }
.kp-sek__nr.ok { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.kp-sek.fehlt .kp-sek__nr { background: var(--gold); border-color: var(--gold); color: #fff; }
.kp-sek__titel small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.kp-sek__titel b { display: block; font-weight: 500; font-size: 16px; line-height: 1.35; margin-top: 2px; }
.kp-sek__titel span { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-sek.fehlt .kp-sek__titel b { color: #6E5620; }
.kp-sek__preis { font-weight: 600; color: var(--akzent); white-space: nowrap; font-size: 15px; }
.kp-sek__aendern { font-size: 13px; color: var(--akzent); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--akzent-rand); white-space: nowrap; transition: background .15s, color .15s; }
.kp-sek.auf .kp-sek__aendern { background: var(--flaeche-2); border-color: var(--linie); color: var(--text-2); }
.kp-sek__rumpf { padding: 0 clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px); border-top: 1px solid var(--linie); padding-top: 16px; }
@media (max-width: 560px) {
  .kp-sek__kopf { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
  .kp-sek__aendern { display: none; }
  .kp-sek__preis { font-size: 14px; }
}

/* Auswahlkarten */
.kp-optionen { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.kp-optionen.gross { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.kp-optionen.klein { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.kp-optionen.bilder { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.kp-option { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon text" "icon preis"; gap: 4px 12px; align-content: start;
  padding: 14px 44px 14px 14px; border-radius: var(--r-m); border: 1px solid var(--linie); background: var(--flaeche); cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .15s, background-color .15s; -webkit-tap-highlight-color: transparent; }
.kp-option:hover { border-color: var(--akzent-rand); box-shadow: 0 10px 24px rgba(46,32,40,.08); transform: translateY(-1px); }
.kp-option:active { transform: scale(.985); }
.kp-option:focus-visible { outline: 3px solid rgba(107,63,94,.45); outline-offset: 2px; }
.kp-option__icon { grid-area: icon; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--flaeche-2); font-size: 20px; line-height: 1; }
.kp-option__text { grid-area: text; min-width: 0; }
.kp-option__text b { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.35; }
.kp-option__text > span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.45; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kp-option__text ul { margin: 8px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.kp-option__preis { grid-area: preis; font-weight: 600; color: var(--akzent); font-size: 14px; }
.kp-option__preis small { display: block; font-weight: 400; font-size: 11.5px; color: var(--text-3); }
.kp-option__marke { position: absolute; top: 13px; right: 13px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--linie-2); background: var(--flaeche); transition: all .15s; }
.kp-option.mehrfach .kp-option__marke { border-radius: 7px; }
.kp-option.an { border: 1.5px solid var(--akzent); background: var(--akzent-hell); padding: 13.5px 43.5px 13.5px 13.5px; }
.kp-option.an .kp-option__marke { background: var(--akzent); border-color: var(--akzent); }
.kp-option.an .kp-option__marke::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.kp-option:not(:has(.kp-option__icon)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "preis"; }
.kp-option.mit-bild { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bild" "text" "preis"; padding-top: 10px; }
.kp-option.mit-bild.an { padding-top: 9.5px; }
.kp-option__bild { grid-area: bild; position: relative; margin: 0 -34px 6px -4px; border-radius: 10px; overflow: hidden; background: #F3EFEA; aspect-ratio: 4 / 3; }
.kp-option__bild img { width: 100%; height: 100%; object-fit: contain; }
.kp-option__fotos { position: absolute; right: 8px; bottom: 8px; border: 0; border-radius: 999px; padding: 4px 10px; font-size: 11.5px; background: rgba(31,26,23,.72); color: #fff; cursor: zoom-in; }
.kp-optionen.gross .kp-option { padding-top: 16px; padding-bottom: 16px; }

.kp-unter { margin: -2px 0 6px; padding: 12px; border-radius: var(--r-m); background: var(--flaeche-2); border: 1px solid var(--linie); grid-column: 1 / -1; }
.kp-unter__titel { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 16px 0 8px; }
.kp-unter .kp-unter__titel { margin-top: 0; }
.kp-ed > .kp-unter__titel:first-child { margin-top: 0; }

/* Friedhofswahl */
.kp-fh { display: grid; gap: 14px; }
@media (min-width: 900px) { .kp-fh { grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr); align-items: start; } }
.kp-fh__suche input { width: 100%; padding: 10px 13px; border: 1px solid var(--linie-2); border-radius: var(--r-s); background: var(--flaeche); font-size: 14px; margin-bottom: 8px; }
.kp-fh__suche input:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(107,63,94,.14); }
.kp-fh__zeilen { display: grid; gap: 6px; }
@media (min-width: 900px) { .kp-fh__zeilen { max-height: 460px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; } }
@media (max-width: 899.98px) { .kp-fh__zeilen { max-height: 300px; overflow-y: auto; } }
.kp-fh__zeile { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 6px; border-radius: 12px;
  border: 1px solid var(--linie); background: var(--flaeche); cursor: pointer; font: inherit; color: var(--text); transition: border-color .15s, background .15s; }
.kp-fh__zeile:hover { border-color: var(--akzent-rand); }
.kp-fh__zeile.an { border-color: var(--akzent); background: var(--akzent-hell); }
.kp-fh__zeile img { width: 64px; height: 46px; border-radius: 8px; object-fit: cover; }
.kp-fh__zeile b { display: block; font-weight: 500; font-size: 13.5px; line-height: 1.3; }
.kp-fh__zeile small { display: block; font-size: 12px; color: var(--text-3); }
.kp-fh__zeile i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--akzent); color: #fff; display: grid; place-items: center; font-size: 12px; margin-right: 4px; }
.kp-fh__detail { min-width: 0; }
.kp-fh__kopf { position: relative; border-radius: var(--r-m); overflow: hidden; min-height: 130px; display: flex; align-items: flex-end; color: #fff; background: #2B1F26; }
.kp-fh__kopf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kp-fh__kopf::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,15,19,.8), rgba(22,15,19,.1) 70%); }
.kp-fh__kopf div { position: relative; z-index: 1; padding: 14px 16px; }
.kp-fh__kopf h3 { color: #fff; font-size: 20px; }
.kp-fh__kopf p { margin: 2px 0 0; font-size: 12.5px; color: rgba(255,255,255,.88); }
.kp-fh__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.kp-fh__chips span { font-size: 11.5px; padding: 4px 9px; border-radius: 999px; background: var(--flaeche-2); color: var(--text-2); border: 1px solid var(--linie); }

/* Laufende Kosten */
.kp-klebt { align-self: start; }
@media (min-width: 900px) { .kp-klebt { position: sticky; top: calc(var(--kopf) + 18px); } }
.kp-kosten .kp-summe { transition: opacity .2s; }
.kp-summe.rechnet, .kp-aenderung b.rechnet { opacity: .45; }

/* Region / PLZ */
.kp-plz { display: flex; gap: 8px; flex-wrap: wrap; }
.kp-plz input { flex: 1; min-width: 160px; padding: 11px 14px; border: 1px solid var(--linie-2); border-radius: 999px; background: var(--flaeche); font-size: 15px; letter-spacing: .04em; }
.kp-plz input:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(107,63,94,.14); }
.kp-plz__liste { display: grid; gap: 8px; margin-top: 14px; }
.kp-plz__zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-m); border: 1px solid var(--linie); background: var(--flaeche); flex-wrap: wrap; }
.kp-plz__zeile.zust { border-color: rgba(47,107,74,.45); background: linear-gradient(140deg, #fff, var(--gruen-hell)); }
.kp-plz__zeile b { font-weight: 500; display: block; }
.kp-plz__zeile small { color: var(--text-3); font-size: 12.5px; }
.kp-plz__zeile .kp-pille { padding: 2px 8px; font-size: 11.5px; }

/* Sterbegeld: abzusichernde Summe */
.kp-sg-ziel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; margin-bottom: 16px; border-radius: var(--r-m); background: var(--flaeche-2); border: 1px solid var(--linie); }
.kp-sg-ziel small { display: block; font-size: 11.5px; color: var(--text-3); }
.kp-sg-ziel b { font-family: var(--titel); font-size: 22px; font-weight: 500; color: var(--akzent); white-space: nowrap; }
.kp-sg-ziel .kp-status { justify-self: center; }
@media (max-width: 760px) { .kp-sg-ziel { grid-template-columns: 1fr 1fr; } .kp-sg-ziel .kp-status { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; } }

/* Leiste „Ungespeicherte Änderungen“ */
.kp-aenderung { position: fixed; z-index: 45; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(calc(100vw - 24px), 900px);
  animation: kp-hoch .35s var(--kurve) both; }
@keyframes kp-hoch { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (min-width: 1000px) { .kp-aenderung { left: calc(var(--leiste) + (100vw - var(--leiste)) / 2); width: min(calc(100vw - var(--leiste) - 48px), 920px); } }
.kp-aenderung__innen { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 20px; background: #1F1A17; color: #fff;
  box-shadow: 0 20px 48px rgba(28,24,20,.35); }
.kp-aenderung__punkt { width: 10px; height: 10px; border-radius: 50%; background: #E3C47E; flex: none; box-shadow: 0 0 0 5px rgba(227,196,126,.18); }
.kp-aenderung__info { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.45; }
.kp-aenderung__info > b { display: block; font-weight: 600; }
.kp-aenderung__info span { display: block; color: rgba(255,255,255,.85); }
.kp-aenderung__info span b { color: #fff; font-family: var(--titel); font-size: 18px; font-weight: 500; transition: opacity .2s; }
.kp-aenderung__info em { font-style: normal; font-weight: 600; padding: 1px 7px; border-radius: 999px; font-size: 12px; }
.kp-aenderung__info em.plus { background: rgba(227,196,126,.2); color: #F0D8A0; }
.kp-aenderung__info em.minus { background: rgba(126,200,150,.2); color: #A9E2BC; }
.kp-aenderung__info small { color: rgba(255,255,255,.65); font-size: 12px; }
.kp-aenderung__info .fehler { color: #F4B9B5; }
.kp-aenderung .kp-link { color: #F0D8A0; font-size: inherit; }
.kp-aenderung__offen { color: #F0D8A0 !important; }
.kp-aenderung__knoepfe { display: flex; gap: 8px; flex: none; }
.kp-aenderung .kp-knopf { background: #fff; color: var(--akzent-tief); border-color: #fff; }
.kp-aenderung .kp-knopf.leise { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.kp-aenderung .kp-knopf.leise:hover { background: rgba(255,255,255,.1); }
body.mit-aenderung .kp-inhalt { padding-bottom: 150px; }
body.mit-aenderung .kp-toast { bottom: calc(env(safe-area-inset-bottom) + 120px); }
@media (max-width: 999.98px) {
  .kp-aenderung { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  body.mit-aenderung .kp-inhalt { padding-bottom: 240px; }
  body.mit-aenderung .kp-toast { bottom: calc(env(safe-area-inset-bottom) + 236px); }
}
@media (max-width: 640px) {
  .kp-aenderung__innen { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .kp-aenderung__punkt { display: none; }
  .kp-aenderung__knoepfe { width: 100%; }
  .kp-aenderung__knoepfe .kp-knopf { flex: 1; }
}

/* Fenster: Anfrage und Fotos */
.kp-dialog { border: 0; padding: 0; background: transparent; max-width: min(94vw, 560px); width: 100%; }
.kp-dialog::backdrop { background: rgba(28,20,25,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.kp-dialog__karte { background: var(--flaeche); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 28px); box-shadow: var(--schatten-hoch); max-height: 88vh; overflow-y: auto; }
.kp-dialog__karte h2 { font-size: 24px; }
.kp-fotos { max-width: min(94vw, 760px); }
.kp-fotos__karte { background: var(--flaeche); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--schatten-hoch); }
.kp-fotos__karte img { width: 100%; max-height: 70vh; object-fit: contain; background: #F3EFEA; }
.kp-fotos__fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: 13.5px; color: var(--text-2); flex-wrap: wrap; }

/* ── Nachrichten mit dem Bestatter (27.10.2026) ─────────────────────────── */
.kp-nav a .kp-zahl { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--akzent); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }
.kp-nav a[aria-current="page"] .kp-zahl { background: #fff; color: var(--akzent); }
.kp-neu-nachricht { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; border-color: var(--akzent); }
.kp-neu-nachricht svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--akzent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kp-neu-nachricht span { flex: 1; display: flex; flex-direction: column; font-size: 14px; color: var(--text-3); }
.kp-neu-nachricht b { color: var(--akzent-tief); font-size: 16px; font-weight: 600; }
.kp-faden { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 16px; }
.kp-nb { max-width: 86%; padding: 11px 14px; border-radius: var(--r-m); background: var(--flaeche-2); }
.kp-nb.sie { align-self: flex-end; background: var(--akzent-hell); }
.kp-nb small { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 3px; }
.kp-nb p { margin: 0; font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.kp-antwort .kp-feld { margin-bottom: 10px; }
.kp-gruss > .kp-neu-nachricht { grid-column: 1 / -1; }
