/* =====================================================================
   Altersvorsorgedepot (formatplus.digital/altersvorsorgedepot/)
   Nur was es auf dieser Seite gibt. Grundstil: gemeinsam/assets/css/
   website.css („Ruhiger Stil nach Apple“, wirkt in main.ap).
   Bausteine wie auf /bkv/ (bkv.css). Karten: auf Weiß hellgrau, auf Hellgrau weiß.
   ===================================================================== */

.ap-held .ap-zahlen { margin-inline: auto; }

/* ---------------------------------------------------------------------
   1. Drei Schritte, Karten mit Haken-Listen, Vorteile
   --------------------------------------------------------------------- */
.drei { display: grid; gap: 16px; }
@media (min-width: 760px) { .drei { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.drei > div { display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: 28px; background: var(--ap-grau); min-width: 0; }
.ap-grau .drei > div { background: #fff; }
.drei .nr { font: 700 1.6rem/1 var(--ap-schrift); color: var(--ap-orange); }
.ap .drei h3 { font-weight: 700; font-size: 1.25rem; color: var(--ap-ink); }
.drei p { color: var(--ap-mut); line-height: 1.5; }

.modelle { display: grid; gap: 20px; }
@media (min-width: 900px) { .modelle { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .modelle.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.modell {
  display: grid; align-content: start; gap: 14px; min-width: 0;
  padding: clamp(24px, 3vw, 32px); border-radius: 28px; background: var(--ap-grau);
}
.ap-grau .modell { background: #fff; }
.ap .modell h3 { font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.15; color: var(--ap-ink); }
.modell-tag {
  justify-self: start; padding: 6px 12px; border-radius: 999px;
  font: 600 .8rem/1 var(--ap-schrift); color: var(--ap-orange);
  background: color-mix(in srgb, var(--ap-orange) 12%, transparent);
}

ul.haken { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ul.haken li { position: relative; padding-left: 30px; font-size: 1.02rem; line-height: 1.45; color: var(--ap-ink); }
ul.haken li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ap-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5 10 16.5 18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.ma-liste { list-style: none; margin: clamp(28px, 4vw, 40px) auto 0; padding: 0; display: grid; gap: 12px; max-width: 980px; }
@media (min-width: 760px) { .ma-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; } }
.ma-liste li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 20px 22px; border-radius: 22px; background: var(--ap-grau);
  font-size: 1rem; line-height: 1.5; color: var(--ap-mut);
}
.ap-grau .ma-liste li { background: #fff; }
.ma-liste li b { color: var(--ap-ink); }
.ma-liste svg { width: 24px; height: 24px; margin-top: 1px; color: var(--ap-orange); }

.ap .block .src { text-align: center; margin: 18px auto 0; max-width: 64ch; }

/* ---------------------------------------------------------------------
   2. Förderrechner (Muster: Rechner auf /bkv/)
   --------------------------------------------------------------------- */
.rechner {
  display: grid; gap: 20px; max-width: 980px; margin: 0 auto;
  padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--ap-grau);
}
.ap-grau .rechner { background: #fff; }
@media (min-width: 860px) { .rechner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } }
.rz-eingabe { display: grid; gap: 22px; align-content: start; min-width: 0; }
.rz-feld { display: grid; gap: 10px; min-width: 0; }
.rz-lab { font: 600 .95rem/1.3 var(--ap-schrift); color: var(--ap-ink); }
.rz-feld small, .rz-unter { color: var(--ap-mut); font-size: .85rem; line-height: 1.4; }

.stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; align-items: center; max-width: 280px; }
.stepper button {
  width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: #fff; color: var(--ap-ink); display: grid; place-items: center;
  transition: transform 100ms ease-out;
}
.ap-grau .stepper button { background: var(--ap-grau); }
.stepper button:active { transform: scale(.94); }
.stepper button svg { width: 20px; height: 20px; }
.stepper input, .rz-kinder-felder input {
  width: 100%; min-width: 0; height: 48px; border: 1px solid var(--ap-linie); border-radius: 14px;
  text-align: center; font: 700 1.25rem/1 var(--ap-schrift); color: var(--ap-ink); background: #fff;
}
.stepper input:focus-visible, .stepper button:focus-visible, .rz-chips button:focus-visible, .rz-kinder-felder input:focus-visible { outline: 2px solid var(--ap-ring, var(--ap-orange)); outline-offset: 2px; }

.rz-kinder { display: grid; gap: 8px; }
.rz-kinder[hidden] { display: none; }
.rz-kinder-felder { display: flex; flex-wrap: wrap; gap: 8px; }
.rz-kinder-felder label { display: grid; gap: 4px; width: 72px; font-size: .78rem; color: var(--ap-mut); text-align: center; }
.rz-kinder-felder input { height: 44px; font-size: 1.05rem; }

.rz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rz-chips button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ap-linie); background: #fff; color: var(--ap-ink);
  font: 600 .95rem/1 var(--ap-schrift); transition: transform 100ms ease-out, background-color .2s;
}
.rz-chips button:active { transform: scale(.97); }
.rz-chips button[aria-checked="true"] { background: var(--ap-orange); border-color: var(--ap-orange); color: #fff; }

.rz-ergebnis { display: grid; gap: 16px; align-content: start; padding: clamp(20px, 3vw, 28px); border-radius: 24px; background: #fff; min-width: 0; }
.ap-grau .rz-ergebnis { background: var(--ap-grau); }
.rz-spar { display: grid; gap: 4px; }
.rz-spar span { color: var(--ap-mut); font-size: .95rem; }
.rz-spar strong { font: 700 clamp(2.2rem, 6vw, 3rem)/1 var(--ap-schrift); letter-spacing: -.03em; background: linear-gradient(90deg, var(--ap-v1, #ec8a2b), var(--ap-v2, #d9531e)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rz-spar small { color: var(--ap-mut); line-height: 1.4; }
.rz-depot { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--ap-linie); }
.rz-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; color: var(--ap-mut); font-size: .95rem; }
.rz-zeile b { color: var(--ap-ink); font-size: 1.25rem; }
.rz-auszahl { padding-top: 14px; border-top: 1px solid var(--ap-linie); }

/* Stapelbalken: Einzahlungen, Förderung, Erträge */
.rz-stapel { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--ap-grau); }
.ap-grau .rz-stapel { background: #fff; }
.rz-stapel i { display: block; height: 100%; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.rz-stapel .ich, .rz-legende .ich { background: #c7c7cc; }
.rz-stapel .staat, .rz-legende .staat { background: var(--ap-orange); }
.rz-stapel .ertrag, .rz-legende .ertrag { background: var(--ap-v2, #d9531e); opacity: .55; }
.rz-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rz-legende li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .9rem; color: var(--ap-mut); }
.rz-legende li i { width: 12px; height: 12px; border-radius: 4px; }
.rz-legende b { color: var(--ap-ink); font-weight: 600; }
.rz-ergebnis .ap-knopf { margin-top: 4px; justify-self: stretch; }
@media (prefers-reduced-motion: reduce) { .rz-stapel i { transition: none; } .stepper button:active, .rz-chips button:active { transform: none; } }

/* ---------------------------------------------------------------------
   3. FAQ, Fragebogen, Fußnoten (wie /bkv/)
   --------------------------------------------------------------------- */
.ap .faq { max-width: 860px; margin: 0 auto; }
.ap .faq details { background: var(--ap-grau); border: 0; border-radius: 20px; }
.ap .faq summary { color: var(--ap-ink); }
.ap .faq summary::after { background: #fff; }

.abfrage-grid { display: grid; justify-items: center; gap: 22px; }
.abfrage-text { min-width: 0; display: grid; justify-items: center; gap: 14px; text-align: center; max-width: 820px; }
.abfrage-text .head { margin: 0; }
.abfrage-text .free { text-align: center; margin: 0; color: var(--ap-mut); }
#anfrage .vorgang { padding-block: 0; min-width: 0; width: 100%; max-width: 760px; }
#anfrage .vorgang .vg-wrap { max-width: none; width: 100%; padding-inline: 0; }
#anfrage .vorgang .vg-titel { display: none; }

.fussnoten { display: grid; gap: 4px; max-width: 860px; margin: 32px auto 0; color: var(--ap-mut); font-size: .8rem; line-height: 1.45; }
