/* =====================================================================
   Betriebliche Berufsunfähigkeitsrente (formatplus.digital/bbu/)
   Gleicher Aufbau wie die bKV-Seite (bkv/assets/css/bkv.css), ohne Rechner
   und Portal. Grundstil: gemeinsam/assets/css/website.css („Ruhiger Stil
   nach Apple“, wirkt in main.ap). Karten: auf Weiß hellgrau, auf Hellgrau weiß.
   ===================================================================== */

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

/* ---------------------------------------------------------------------
   1. Reiter: Leiste als Segment-Schalter (Apple), am Handy umbrechend,
   nie zum Seitwärtsschieben. Ab 700 px klebt sie unter dem Kopf.
   --------------------------------------------------------------------- */
.reiter-sec { background: #fff; }
.reiter-leiste {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 5px;
  border-radius: 999px;
  background: var(--ap-grau);
}
@media (max-width: 559px) { .reiter-leiste { border-radius: 22px; } }
.reiter-leiste a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font: 600 .95rem/1 var(--ap-schrift);
  color: var(--ap-mut);
  text-decoration: none;
  transition: background-color .2s, color .2s, transform 100ms ease-out;
}
.reiter-leiste a:active { transform: scale(.97); }
.reiter-leiste a[aria-selected="true"] { background: #fff; color: var(--ap-ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.reiter-leiste a:focus-visible { outline: 2px solid var(--ap-ring, var(--ap-orange)); outline-offset: 2px; }

.mit-reitern .reiter-sec { padding-top: 8px; }
@media (min-width: 700px) {
  .mit-reitern .reiter-leiste { position: sticky; top: 72px; z-index: 20; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); background: rgba(245,245,247,.82); }
  .mit-reitern .reiter [id] { scroll-margin-top: 130px; }
}
@media (prefers-reduced-transparency: reduce) { .mit-reitern .reiter-leiste { background: var(--ap-grau); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .reiter-leiste a:active { transform: none; } }

/* Abschnitte innerhalb eines Reiters */
.r-block { padding: clamp(56px, 8vw, 96px) 0; background: #fff; }
.r-block.ap-grau { background: var(--ap-grau); }
.reiter > .r-block:first-child { padding-top: clamp(40px, 6vw, 64px); }

.weiter { text-align: center; margin-top: clamp(28px, 4vw, 40px); }
.weiter .ap-knopf svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------
   2. Bausteine: drei Fakten, Karten, Listen
   --------------------------------------------------------------------- */
.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, .wege { display: grid; gap: 20px; }
@media (min-width: 760px) { .modelle { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .wege { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.modell, .weg {
  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, .ap-grau .weg { background: #fff; }
.ap .modell h3, .ap .weg h3 { font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.15; color: var(--ap-ink); }
.modell-tag, .weg-para {
  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;
}

.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 359px) { .kacheln { grid-template-columns: minmax(0, 1fr); } }
.kacheln > div { display: grid; align-content: start; gap: 6px; padding: 20px; border-radius: 24px; background: var(--ap-grau); min-width: 0; }
.ap-grau .kacheln > div { background: #fff; }
.kacheln svg { width: 30px; height: 30px; color: var(--ap-orange); margin-bottom: 4px; }
.ap .kacheln h3 { font-weight: 700; font-size: 1.05rem; line-height: 1.25; color: var(--ap-ink); overflow-wrap: break-word; hyphens: auto; }
.kacheln p { font-size: .92rem; line-height: 1.4; color: var(--ap-mut); }

.ma-liste { list-style: none; margin: 0 auto; 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 .r-block .src { text-align: center; margin: 18px auto 0; max-width: 64ch; }
/* ---------------------------------------------------------------------
   3. Versicherer: Logo-Kacheln mit Namen
   --------------------------------------------------------------------- */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
.logos li { display: grid; justify-items: center; align-content: center; gap: 8px; min-width: 0; padding: 18px 12px; border-radius: 22px; background: var(--ap-grau); text-align: center; }
.logos img { width: auto; max-width: 100%; height: 56px; object-fit: contain; }
.logos span { font: 600 .9rem/1.25 var(--ap-schrift); color: var(--ap-ink); overflow-wrap: anywhere; hyphens: auto; min-width: 0; max-width: 100%; }
@media (max-width: 329px) { .logos { grid-template-columns: minmax(0, 1fr); } }
.logos .kuerzel { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #fff; color: var(--ap-mut); font-size: 1.4rem; }

.merke-box { display: grid; justify-items: center; gap: 10px; max-width: 560px; margin: clamp(32px, 4vw, 48px) auto 0; text-align: center; }
.merke-box strong { font: 700 clamp(3rem, 8vw, 4.5rem)/1 var(--ap-schrift); letter-spacing: -.04em; background: linear-gradient(90deg, var(--ap-v1, #ec8a2b), var(--ap-v2, #d9531e)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.merke-box p { color: var(--ap-mut); font-size: 1.05rem; line-height: 1.5; }

/* ---------------------------------------------------------------------
   4. FAQ ohne Aufklapp-Hülle, Fragebogen, Fußnoten
   --------------------------------------------------------------------- */
.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; }

/* ---------------------------------------------------------------------
   5. Nur auf dieser Seite: drei Vorteile mit großem Symbol, Vergleich
   gesetzlich gegen bBU, vier Logos, FAQ in zwei Gruppen
   --------------------------------------------------------------------- */
.hl-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: color-mix(in srgb, var(--ap-orange) 12%, transparent); }
.hl-ic svg { width: 30px; height: 30px; color: var(--ap-orange); }
.weg > p { color: var(--ap-mut); line-height: 1.5; }

.vergleich { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
@media (min-width: 760px) { .vergleich { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.vergleich > div { display: grid; align-content: start; gap: 10px; min-width: 0; padding: clamp(24px, 3vw, 32px); border-radius: 28px; background: var(--ap-grau); }
.vergleich > div:last-child { background: color-mix(in srgb, var(--ap-orange) 8%, #fff); }
.ap .vergleich h3 { font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; color: var(--ap-ink); }
.vergleich p { color: var(--ap-mut); line-height: 1.5; }
.modell-tag.grau { color: var(--ap-mut); background: #fff; }

@media (min-width: 900px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 980px; margin-inline: auto; } }
.logos img { height: 64px; }

.ap .faq-gruppe { max-width: 860px; margin: clamp(32px, 4vw, 48px) auto 14px; font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; color: var(--ap-ink); }
.ap .faq-gruppe:first-of-type { margin-top: 0; }
.ap .faq-gruppe[id] { scroll-margin-top: 130px; }
