/* ============================================================
   Branchenseiten (/branchen/<slug>/): bp-* Bausteine zum
   Branchen-Rhythmus. Ergänzt solution-page.css (sp-*) und
   feature-page.css (fp-*); Tokens kommen aus .sp. Nur die Karten-
   raster, die Lösungsseiten nicht haben: Bedingungen (dunkel),
   Rollen mit Frage, Anlässe als Links, Konfigurationsbeispiel,
   Beweis (Case-Karte plus Logos der Branche). Stand 20.09.2026.
   ============================================================ */

/* Dunkles Theme: die fp-Tokens in .sp sind fest hell (solution-page.css); hier kippen sie
   mit, damit Tabellen und Karten der Produkt-UI lesbar bleiben. Handy und Mail bleiben hell. */
[data-theme="dark"] .sp { --fp-ink: var(--text, #EDEEF3); --fp-muted: var(--text-muted, #A2A8B5); --fp-faint: #9AA2B1; --fp-line: rgba(255,255,255,.12); --fp-soft: rgba(255,255,255,.06); --fp-soft2: rgba(255,255,255,.035); --fp-accent-soft: rgba(117,49,174,.28); --fp-ok-soft: rgba(34,160,90,.2); --fp-warn-soft: rgba(240,160,40,.18); --fp-bad-soft: rgba(220,38,38,.2); }

/* ---- Bedingungen: drei Karten auf dunkler Fläche ---- */
.bp-conds { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 900px) { .bp-conds { grid-template-columns: repeat(var(--bp-cond-cols, 3), minmax(0, 1fr)); gap: 20px; } }
.bp-cond { position: relative; padding: 28px 26px 26px; border-radius: 18px; background: var(--sp-dark-2, #1C1822); border: 1px solid rgba(255,255,255,.08); }
.bp-cond > em { display: block; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; font-weight: 600; letter-spacing: var(--ds-type-eyebrow-tracking); text-transform: uppercase; color: #C9AEF6; margin-bottom: 16px; }
.bp-cond h3 { font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 22px); letter-spacing: var(--ds-type-h3-tracking); line-height: 1.2; margin: 0 0 10px; color: #fff; }
.bp-cond p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.7); }
.bp-cond a { color: #fff; text-decoration: underline; text-decoration-color: rgba(201,174,246,.6); text-underline-offset: 3px; }
.bp-cond a:hover { text-decoration-color: #C9AEF6; }
/* Zusätze unter Kästen einheitlich 15 px Abstand; .sp p setzt margin sonst auf 0 */
.sp .bp-cond-note { margin-top: 15px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.55); max-width: 72ch; }
.bp-cond-note a { color: rgba(255,255,255,.8); }

/* ---- Rollen: Frage und Antwort je Karte ---- */
.bp-roles { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 900px) { .bp-roles { grid-template-columns: repeat(var(--bp-role-cols, 3), minmax(0, 1fr)); gap: 20px; } }
.bp-role { display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: 18px; border: 1px solid var(--sp-line); background: #fff; }
[data-theme="dark"] .bp-role { background: #14161D; }
.bp-role > span { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-family: var(--font-micro); font-weight: 700; letter-spacing: var(--ds-type-eyebrow-tracking); text-transform: uppercase; color: var(--sp-accent); margin-bottom: 14px; }
/* Icons ohne Hintergrundkachel (Martin 08.10.2026), dafür größer */
.bp-role > span i { display: inline-flex; }
.bp-role > span i .illuicon { width: 36px; height: 36px; display: block; }
.bp-role h3 { font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 23px); letter-spacing: var(--ds-type-h3-tracking); line-height: 1.22; margin: 0 0 12px; color: var(--sp-ink); }
.bp-role p { font-size: 14.5px; line-height: 1.6; color: var(--sp-muted); flex: 1; }
.bp-role a { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--sp-accent); text-decoration: none; }
.bp-role a:hover { text-decoration: underline; }

/* ---- Anlässe: Karten in die Lösungen ---- */
.bp-occ { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 720px) { .bp-occ { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bp-occ { grid-template-columns: repeat(var(--bp-occ-cols, 4), 1fr); gap: 16px; } }
.bp-occ a { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border-radius: 16px; border: 1px solid var(--sp-line); background: var(--sp-warm); color: var(--sp-ink); text-decoration: none; transition: border-color .2s, transform .2s; }
@media (hover: hover) { .bp-occ a:hover { border-color: var(--sp-accent); transform: translateY(-2px); } }
.bp-occ a i { display: flex; }
.bp-occ a i .illuicon { width: 48px; height: 48px; display: block; }
.bp-occ a b { font-family: var(--font-display); font-size: 17px; letter-spacing: -.015em; }
.bp-occ a span { font-size: 13.5px; line-height: 1.5; color: var(--sp-muted); }
.bp-occ a em { font-style: normal; margin-top: auto; font-size: 13px; font-weight: 600; color: var(--sp-accent); }

/* ---- Produkt in der Szene: Foto + Frame ---- */
.bp-scene { display: grid; gap: 28px; margin-top: 44px; align-items: center; }
@media (min-width: 1040px) { .bp-scene { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; } }
.bp-scene-photo { position: relative; border-radius: var(--sp-image-radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sp-dark); }
.bp-scene-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-scene-photo .sp-credit { position: absolute; left: 14px; bottom: 12px; }
@media (max-width: 1039px) { .bp-scene-photo { aspect-ratio: 16 / 9; } }
.bp-scene .fp-frame { margin: 0; }

/* ---- Konfigurationsbeispiel: ein Sonderfall, eine App ---- */
.bp-config { display: grid; gap: 24px; margin-top: 40px; padding: clamp(24px, 3vw, 36px); border-radius: 20px; border: 1px solid var(--sp-line); background: var(--sp-warm); align-items: center; }
@media (min-width: 900px) { .bp-config { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 32px; } }
.bp-config > i { display: flex; align-items: center; justify-content: center; }
.bp-config > i .illuicon { width: 64px; height: 64px; display: block; }
.bp-config h3 { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 24px); letter-spacing: var(--ds-type-h3-tracking); margin: 0 0 8px; }
.bp-config p { font-size: 15px; line-height: 1.6; color: var(--sp-muted); max-width: 70ch; }

/* ---- Beweis: Case-Karte mit Zahl, darunter Logos der Branche ---- */
.bp-proof { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 900px) { .bp-proof { grid-template-columns: repeat(var(--bp-proof-cols, 2), 1fr); gap: 24px; } }
.bp-case { display: flex; flex-direction: column; padding: 28px 28px 24px; border-radius: 20px; background: var(--sp-dark); color: #fff; text-decoration: none; transition: transform .2s; }
@media (hover: hover) { .bp-case:hover { transform: translateY(-2px); } }
.bp-case > span { font-size: 11px; font-family: var(--font-micro); font-weight: 700; letter-spacing: var(--ds-type-eyebrow-tracking); text-transform: uppercase; color: #C9AEF6; margin-bottom: 18px; }
.bp-case > b { font-family: var(--font-display); font-size: clamp(40px, 4vw, 56px); line-height: 1; letter-spacing: -.03em; }
.bp-case > small { display: block; font-size: 13px; font-family: var(--font-micro); letter-spacing: var(--ds-type-eyebrow-tracking); text-transform: uppercase; color: rgba(255,255,255,.6); margin: 6px 0 16px; }
.bp-case h3 { font-family: var(--font-display); font-size: 19px; letter-spacing: var(--ds-type-h3-tracking); margin: 0 0 8px; color: #fff; }
.bp-case p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.7); flex: 1; }
.bp-case em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 600; color: #fff; }
.bp-case--todo { background: var(--sp-warm); color: var(--sp-ink); border: 1px dashed var(--sp-line); }
.bp-case--todo > span { color: var(--sp-accent); }
.bp-case--todo h3 { color: var(--sp-ink); }
.bp-case--todo p { color: var(--sp-muted); }
.bp-case--todo em { color: var(--sp-accent); }
.bp-logos { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--sp-line); }
.bp-logos > span { display: block; font-size: 12.5px; letter-spacing: .4px; text-transform: uppercase; color: #5B5566; font-weight: 600; margin-bottom: 18px; }
[data-theme="dark"] .bp-logos > span { color: rgba(255,255,255,.55); }
.bp-logos ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 720px) { .bp-logos ul { grid-template-columns: repeat(6, 1fr); } }
.bp-logos li { display: flex; align-items: center; justify-content: center; height: 72px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--sp-line); background: #fff; }
[data-theme="dark"] .bp-logos li { background: #14161D; }
.bp-logos img { max-width: 86%; max-height: 28px; width: auto; height: auto; transform: scale(clamp(.9, var(--s, 1), 1.12)); filter: grayscale(1); opacity: .6; transition: filter .2s, opacity .2s; }
.bp-logos li:hover img { filter: none; opacity: 1; }
[data-theme="dark"] .bp-logos img { filter: grayscale(1) brightness(0) invert(1); opacity: .6; }
[data-theme="dark"] .bp-logos img[data-mono] { filter: invert(1); }
.sp .bp-logos-more { margin-top: 15px; font-size: 14px; }

/* Bewegung: reveal-Klassen kommen aus main.css; hier keine eigenen Animationen. */
@media (prefers-reduced-motion: reduce) { .bp-occ a, .bp-case { transition: none; } }

/* Referenzkarte ohne Kennzahl (bp_proof ohne href): Leistungen als Chips */
.bp-case--ref ul { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 14px 0 0; list-style: none; }
.bp-case--ref li { padding: 4px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 12px; color: rgba(255,255,255,.85); }

/* ---- Hero mit Bühne (Martin 08.10.2026): Text zentriert, darunter Foto -> Produktfenster -> Status je Gast ---- */
.bp-hero2 { padding: clamp(28px, 4vw, 56px) 0 0; }
.bp-hero2-copy { display: flex; flex-direction: column; align-items: center; max-width: 900px; margin: 0 auto; text-align: center; }
.bp-hero2 h1 { margin: 14px 0 20px; font-weight: 700; font-size: clamp(36px, 5vw, 68px); line-height: 1.04; letter-spacing: var(--ds-type-display-xl-tracking, -.03em); color: var(--fp-ink); }
.bp-hero2 h1 span { display: block; margin-top: 8px; font-size: .62em; font-weight: 400; color: var(--fp-muted); }
.bp-hero2 .fp-lead { max-width: 64ch; margin: 0 auto; }
.bp-hero2 .fp-actions { justify-content: center; margin-top: 28px; }

/* Bühne: System-Screen (Dashboard) und drei fliegende Erklärkarten; Seitenrand gibt den Karten Platz */
.bp-stage { position: relative; max-width: 1180px; margin: clamp(48px, 5vw, 72px) auto 0; }
.bp-stage::before { content: ""; position: absolute; inset: -6% 4% -10%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--ds-color-violet-200) 70%, transparent), transparent); }
.bp-dash { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--ds-border-default); border-radius: 22px; background: var(--ds-surface-default); box-shadow: 0 40px 90px -40px rgba(40, 20, 90, .35); text-align: left; }
.bp-dash .fp-rail { --fp-rail-w: 64px; }
.bp-dash-main { grid-column: 2; min-width: 0; padding: 18px 20px 20px; background: var(--ds-surface-subtle, var(--ds-surface-page)); }
.bp-dash-top { display: flex; flex-direction: column; gap: 2px; }
.bp-dash-top span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ds-text-secondary); }
.bp-dash-top b { font-family: var(--font-display); font-size: 24px; line-height: 1.15; letter-spacing: -.02em; color: var(--ds-text-brand); }
.bp-dash-top small { font-size: 12.5px; color: var(--ds-text-secondary); }
.bp-dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.bp-card { position: relative; min-width: 0; padding: 14px 16px; border: 1px solid var(--ds-border-subtle); border-radius: 14px; background: var(--ds-surface-default); }
.bp-ev { grid-column: 1 / 8; }
.bp-list { grid-column: 8 / 13; grid-row: 1 / 3; }
.bp-bars { grid-column: 1 / 5; }
.bp-donut { grid-column: 5 / 8; }
.bp-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.bp-h b { font-size: 13.5px; }
.bp-live, .bp-badge { flex: none; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.bp-live { background: var(--ds-status-success-bg); color: var(--ds-status-success-text); }
.bp-badge { background: var(--ds-surface-brand); color: var(--ds-text-brand); }
.bp-ev-top { display: flex; align-items: center; gap: 12px; }
.bp-ev-top > i { display: flex; flex: none; }
.bp-ev-top > i .illuicon { width: 34px; height: 34px; }
.bp-ev-top div { min-width: 0; display: flex; flex-direction: column; }
.bp-ev-top div b { font-size: 15px; }
.bp-ev-top div small { font-size: 12px; color: var(--ds-text-secondary); }
.bp-ev-top .bp-live { margin-left: auto; }
.bp-ev-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.bp-k { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px 10px; align-items: center; padding: 12px; border: 1px solid var(--ds-border-subtle); border-radius: 12px; }
.bp-k > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ds-surface-brand); color: var(--ds-text-brand); }
.bp-k > span { display: flex; flex-direction: column; min-width: 0; }
.bp-k b { font-size: 20px; line-height: 1.1; color: var(--ds-text-brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bp-k b small { font-size: 13px; color: var(--ds-text-secondary); }
.bp-k em { font-style: normal; font-size: 11.5px; color: var(--ds-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-k-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.bp-k-bar i, .bp-bars li i { flex: 1; height: 6px; border-radius: 6px; background: var(--ds-color-violet-100); overflow: hidden; }
.bp-k-bar u, .bp-bars li u { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--ds-action-brand); }
.bp-k-bar small { font-size: 10.5px; color: var(--ds-text-secondary); white-space: nowrap; }
.bp-list ul, .bp-bars ul, .bp-donut ul { margin: 0; padding: 0; list-style: none; }
.bp-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ds-border-subtle); }
.bp-list li:last-child { border-bottom: 0; }
.bp-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ds-surface-brand); color: var(--ds-text-brand); font-size: 11px; font-weight: 700; }
.bp-li-n { display: flex; flex-direction: column; min-width: 0; }
.bp-li-n b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-li-n small { font-size: 11px; color: var(--ds-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-st { display: inline-grid; justify-items: end; }
.bp-st > em { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 600; white-space: nowrap; }
.bp-st-pre { background: var(--ds-surface-subtle, var(--ds-color-grey-100)); color: var(--ds-text-secondary); opacity: 0; }
.bp-st-post { background: var(--ds-status-success-bg); color: var(--ds-status-success-text); }
.bp-bars li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 0; font-size: 12px; }
.bp-bars li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-bars li b { font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bp-donut-in { display: flex; align-items: center; gap: 14px; }
.bp-ring { flex: none; display: grid; place-items: center; width: 96px; aspect-ratio: 1; border-radius: 50%; }
.bp-ring b { display: grid; place-content: center; width: 66%; aspect-ratio: 1; border-radius: 50%; background: var(--ds-surface-default); text-align: center; font-size: 17px; line-height: 1.1; }
.bp-ring small { display: block; font-size: 9.5px; font-weight: 400; color: var(--ds-text-secondary); }
.bp-donut ul { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.bp-donut li { display: flex; align-items: center; gap: 6px; font-size: 11.5px; white-space: nowrap; }
.bp-donut li i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.bp-donut li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.bp-pin, .bp-note-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ds-action-brand); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-action-brand) 18%, transparent); }
.bp-pin { position: absolute; top: -8px; right: -8px; z-index: 2; }
.bp-notes { margin: 0; padding: 0; list-style: none; }
.bp-note { position: relative; display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--ds-border-default); border-radius: 16px; background: var(--ds-surface-default); box-shadow: var(--ds-shadow-lg); text-align: left; }
.bp-note-n { position: absolute; top: -9px; left: -9px; }
.bp-note > i { display: flex; flex: none; }
.bp-note > i .illuicon { width: 32px; height: 32px; }
.bp-note b { display: block; font-size: 14px; line-height: 1.3; }
.bp-note p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ds-text-secondary); }
@media (min-width: 981px) {
  /* Karten liegen an den Kanten, wo der Screen nichts Wichtiges zeigt: oben rechts im freien Kopf, unten über die Kante */
  .bp-note { position: absolute; z-index: 3; width: 280px; }
  .bp-note--1 { right: 3%; top: -26px; }
  .bp-note--2 { right: 6%; bottom: -66px; }
  .bp-note--3 { left: 8%; bottom: -66px; }
  .bp-stage { margin-bottom: 84px; }
}
@media (max-width: 980px) {
  .bp-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
}

/* Dramaturgie: nur mit Skript (is-armed), ab 761 px und ohne reduzierte Bewegung; sonst Endzustand */
.bp-stage.is-armed .bp-dash { opacity: 0; transform: translateY(24px) scale(.985); }
.bp-stage.is-armed .bp-note { opacity: 0; }
.bp-stage.is-armed .bp-pin { transform: scale(0); }
.bp-stage.is-armed .bp-k-bar u, .bp-stage.is-armed .bp-bars u { width: 0; }
.bp-stage.is-armed .bp-st-pre { opacity: 1; }
.bp-stage.is-armed .bp-st-post { opacity: 0; }
.bp-stage.is-armed .bp-ring { opacity: 0; }
.bp-stage.is-play .bp-dash { animation: bp-dash-in .8s .1s cubic-bezier(.2,.8,.2,1) both; }
.bp-stage.is-play .bp-k-bar u { animation: bp-fill 1.4s .9s ease-out both; }
.bp-stage.is-play .bp-ev .bp-pin { animation: bp-pin .4s 1.1s both; }
.bp-stage.is-play .bp-note--1 { animation: bp-note-l .7s 1.3s cubic-bezier(.2,.8,.2,1) both; }
.bp-stage.is-play .bp-st-pre { animation: bp-out .35s calc(2.3s + var(--i) * .45s) both; }
.bp-stage.is-play .bp-st-post { animation: bp-pop .35s calc(2.3s + var(--i) * .45s) both; }
.bp-stage.is-play .bp-list li { animation: bp-flash 1.2s calc(2.3s + var(--i) * .45s) both; }
.bp-stage.is-play .bp-list .bp-pin { animation: bp-pin .4s 2.1s both; }
.bp-stage.is-play .bp-note--2 { animation: bp-note-r .7s 2.6s cubic-bezier(.2,.8,.2,1) both; }
.bp-stage.is-play .bp-bars u { animation: bp-fill 1.2s calc(4.5s + var(--i) * .12s) ease-out both; }
.bp-stage.is-play .bp-ring { animation: bp-ring .8s 4.5s cubic-bezier(.2,.8,.2,1) both; }
.bp-stage.is-play .bp-donut .bp-pin { animation: bp-pin .4s 4.8s both; }
.bp-stage.is-play .bp-note--3 { animation: bp-note-u .7s 5.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bp-dash-in { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes bp-fill { from { width: 0; } to { width: var(--p); } }
@keyframes bp-pin { from { transform: scale(0); } 70% { transform: scale(1.25); } to { transform: scale(1); } }
@keyframes bp-note-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes bp-note-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes bp-note-u { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes bp-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes bp-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bp-flash { 0% { background: transparent; } 30% { background: var(--ds-surface-brand); } 100% { background: transparent; } }
@keyframes bp-ring { from { opacity: 0; transform: scale(.85) rotate(-40deg); } to { opacity: 1; transform: none; } }

/* Mobil: nur Event-Karte und Liste, Leiste aus, Erklärungen als Liste darunter, keine Bewegung */
@media (max-width: 760px) {
  .bp-dash { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .bp-dash .fp-rail, .bp-bars, .bp-donut { display: none; }
  .bp-dash-main { grid-column: 1; padding: 14px 12px; }
  .bp-dash-top b { font-size: 20px; }
  .bp-dash-grid { grid-template-columns: minmax(0, 1fr); }
  .bp-ev, .bp-list { grid-column: 1; grid-row: auto; }
  .bp-ev-kpis { gap: 6px; }
  .bp-k { grid-template-columns: minmax(0, 1fr); padding: 10px 8px; }
  .bp-k > i, .bp-k-bar small { display: none; }
  .bp-k b { font-size: 17px; }
  .bp-notes { grid-template-columns: minmax(0, 1fr); }
  .bp-pin { top: 8px; right: 8px; }
}
/* Abstand zum ersten Kapitel: der Hero endet mit der Logoleiste */
.bp-top + .sp > section:first-child { margin-top: 0; }

/* ---- Kapitelleiste rechts: Chronologie der Abschnitte (ab 1241 px) ---- */
.bp-chapters { display: none; }
@media (min-width: 1241px) {
  nav.bp-chapters[data-bp-chapters] { display: block; position: fixed; right: max(6px, calc((100vw - var(--max-w, 1400px)) / 2 - 44px)); top: 50%; z-index: 40; transform: translateY(-50%); transition: opacity .3s; }
  nav.bp-chapters.is-js:not(.is-on) { opacity: 0; pointer-events: none; }
  .bp-chapters ol { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 6px 4px; list-style: none; border: 1px solid var(--ds-border-default, var(--border)); border-radius: 999px; background: var(--ds-surface-default, #fff); box-shadow: var(--ds-shadow-md); }
  .bp-chapters a { position: relative; display: flex; align-items: center; justify-content: center; width: 30px; height: 28px; border-radius: 999px; color: var(--ds-text-secondary); text-decoration: none; font: 600 11px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
  .bp-chapters a em { font-style: normal; }
  .bp-chapters a span { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 8px; background: var(--ds-color-grey-900, #111827); color: var(--ds-color-white, #fff); font: 500 12.5px var(--font-sans); white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .2s; }
  .bp-chapters a:hover span, .bp-chapters a:focus-visible span { opacity: 1; visibility: visible; }
  .bp-chapters a[aria-current="true"] { background: var(--ds-action-brand); color: var(--ds-color-white, #fff); }
  .bp-chapters a:focus-visible { outline: 2px solid var(--ds-border-focus); outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) { .bp-chapters { transition: none; } }


/* ---- Branchenseiten nach Need (08.10.2026): Quelle je Bedingung, Anforderungen mit Kennzeichnung,
   Konfigurationspunkte, gemeinsamer Baustein Sicherheit und Datenschutz ---- */
.bp-cond { display: flex; flex-direction: column; }
.bp-cond p { flex: 1; }
.bp-cond-src { display: block; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.55); }

.bp-req { display: grid; gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .bp-req { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.bp-req-item { display: flex; flex-direction: column; padding: 22px 24px 20px; border-radius: 16px; border: 1px solid var(--sp-line); background: var(--ds-surface-default, #fff); }
.bp-req-item--custom { background: var(--sp-warm); border-style: dashed; }
.bp-req-kind { align-self: flex-start; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; font: 700 11px/1.4 var(--font-micro); letter-spacing: var(--ds-type-eyebrow-tracking); text-transform: uppercase; background: var(--ds-status-success-bg); color: var(--ds-status-success-text); }
.bp-req-item--custom .bp-req-kind { background: var(--sp-accent-soft); color: var(--sp-accent); }
.bp-req-item h3 { font-family: var(--font-display); font-size: 18px; letter-spacing: var(--ds-type-h3-tracking); line-height: 1.25; margin: 0 0 8px; color: var(--sp-ink); }
.bp-req-item p { flex: 1; font-size: 14.5px; line-height: 1.6; color: var(--sp-muted); }
.bp-req-item a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--sp-accent); text-decoration: none; }
.bp-req-item a:hover { text-decoration: underline; }

.bp-setup { display: grid; gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .bp-setup { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.bp-setup li { display: flex; gap: 16px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--sp-line); background: var(--sp-warm); }
.bp-setup em { flex: none; font: 600 12px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: var(--ds-type-eyebrow-tracking); color: var(--sp-accent); }
.bp-setup h3 { font-family: var(--font-display); font-size: 17px; letter-spacing: var(--ds-type-h3-tracking); margin: 0 0 6px; color: var(--sp-ink); }
.bp-setup p { font-size: 14.5px; line-height: 1.6; color: var(--sp-muted); }

.bp-sec { margin-top: 48px; padding: clamp(22px, 3vw, 32px); border-radius: 20px; border: 1px solid var(--sp-line); background: var(--ds-surface-default, #fff); }
.bp-sec-title { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 24px); letter-spacing: var(--ds-type-h3-tracking); margin: 0 0 20px; color: var(--sp-ink); }
.bp-sec ul { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .bp-sec ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.bp-sec li { display: flex; gap: 14px; }
.bp-sec li > i { flex: none; display: inline-flex; }
.bp-sec li > i .illuicon { width: 40px; height: 40px; display: block; }
.bp-sec b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--sp-ink); }
.bp-sec p { font-size: 13.5px; line-height: 1.55; color: var(--sp-muted); }
.bp-sec a { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--sp-accent); text-decoration: none; }
.bp-sec a:hover { text-decoration: underline; }
/* Zahlungsanbieter unter den Sicherheitspunkten (Martin 08.10.2026) */
.bp-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--sp-line); }
.bp-pay-label { font-size: 12px; font-family: var(--font-micro); font-weight: 600; letter-spacing: var(--ds-type-eyebrow-tracking); text-transform: uppercase; color: var(--sp-muted); }
.bp-pay-logos { display: flex; align-items: center; gap: 22px; }
.bp-pay-logos img { width: auto; height: 22px; }
.sp .bp-pay p { flex: 1 1 320px; margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--sp-muted); }
.bp-sec .bp-pay a { margin-top: 0; }
[data-theme="dark"] .bp-pay-logos img { filter: brightness(0) invert(1); }

/* Anforderungen als Tabelle mit Haken (bp_requirements, Martin 08.10.2026) */
.bp-req-wrap { margin: 40px 0 0; border: 1px solid var(--sp-line); border-radius: 16px; overflow: hidden; background: var(--ds-surface-default, #fff); }
.bp-req-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bp-req-table th { padding: 14px 20px; text-align: left; font: 700 11px/1.4 var(--font-micro); letter-spacing: var(--ds-type-eyebrow-tracking); text-transform: uppercase; color: var(--sp-muted); background: var(--sp-warm); border-bottom: 1px solid var(--sp-line); }
.bp-req-table td { padding: 16px 20px; vertical-align: top; border-bottom: 1px solid var(--sp-line); }
.bp-req-table tr:last-child td { border-bottom: 0; }
.bp-req-table .c { text-align: center; width: 150px; }
.bp-req-table td b { display: block; font-family: var(--font-display); font-size: 16px; letter-spacing: var(--ds-type-h3-tracking); color: var(--sp-ink); margin-bottom: 4px; }
.bp-req-table td span { color: var(--sp-muted); line-height: 1.55; }
.bp-req-table td a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--sp-accent); text-decoration: none; white-space: nowrap; }
.bp-req-table td a:hover { text-decoration: underline; }
.bp-req-yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #E4F5EA; color: #177A3E; }
.is-custom .bp-req-yes { background: var(--sp-accent-soft); color: var(--sp-accent); }
.bp-req-no { color: var(--sp-line); font-weight: 700; }
@media (max-width: 760px) {
  .bp-req-table thead { display: none; }
  .bp-req-table, .bp-req-table tbody, .bp-req-table tr, .bp-req-table td { display: block; width: auto; }
  .bp-req-table tr { padding: 14px 16px; border-bottom: 1px solid var(--sp-line); }
  .bp-req-table tr:last-child { border-bottom: 0; }
  .bp-req-table td { padding: 0; border: 0; }
  .bp-req-table td.c { display: inline-flex; align-items: center; gap: 8px; width: auto; margin: 10px 14px 0 0; text-align: left; font-size: 12.5px; color: var(--sp-muted); }
  .bp-req-table td.c::after { content: attr(data-l); }
  .bp-req-table td.c:has(.bp-req-no) { display: none; }
  .bp-req-table td:last-child a { margin-top: 10px; }
}

/* Links in den dunklen Referenzkarten (bp_proof ohne href): Petrol hat dort zu wenig Kontrast */
.bp-case .sp-link { color: #fff; text-decoration-color: rgba(255,255,255,.55); }
