/* ============================================================================
   V4 plan pages (W14): Pläne & Preise, Plan eines Standorts, Plan wählen.
   Source: page styles of webapp-v4/seiten/15-standort-plan.html and
   16-plaene-preise.html (prefix standort-plan- / plaene-preise- -> bl-lp-).
   Every rule needs .bl-v4 (FeatureSwitch v4_design), see v4.css.
   ========================================================================= */

.bl-v4 .bl-lp-frame { display: block; }
.bl-v4 .bl-lp-panel { position: relative; }
.bl-v4 .bl-lp-flash { margin-bottom: 16px; }
.bl-v4 .bl-lp-headtext { min-width: 0; }
.bl-v4 .bl-lp-headtext .bl-page-title,
.bl-v4 .bl-lp-headtext .bl-page-sub { overflow-wrap: anywhere; }

/* plan-interval toggles Tailwind's .hidden; V4 blocks set display themselves */
.bl-v4 .bl-lp .hidden { display: none !important; }

/* Aktueller Plan (show + summary) */
.bl-v4 .bl-lp-plan { display: block; }
.bl-v4 .bl-lp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.bl-v4 .bl-lp-id { min-width: 0; }
.bl-v4 .bl-lp-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 6px; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; color: var(--ink); }
.bl-v4 .bl-lp-name--sm { font-size: 22px; }
.bl-v4 .bl-lp-for { margin-top: 6px; font-size: 13px; color: var(--muted); }
.bl-v4 .bl-lp-cost { text-align: right; }
.bl-v4 .bl-lp-chip { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.bl-v4 .bl-lp-amount { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.bl-v4 .bl-lp-amount--sm { font-size: 30px; }
.bl-v4 .bl-lp-amount small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.bl-v4 .bl-lp-vat { margin-top: 6px; font-size: 12px; color: var(--muted); }
.bl-v4 .bl-lp-nocost { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.bl-v4 .bl-lp-nocost--side { margin-top: 0; }
.bl-v4 .bl-lp-metrics { margin-top: 20px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.bl-v4 .bl-lp-metrics dd small { font-size: 14px; font-weight: 600; color: var(--muted); }
.bl-v4 .bl-lp-metrics dd.bl-lp-text { font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.bl-v4 .bl-lp-box { margin-top: 16px; }
.bl-v4 .bl-lp-box .bl-banner-actions form { display: contents; }
.bl-v4 .bl-lp-foot { justify-content: flex-start; flex-wrap: wrap; }
.bl-v4 .bl-lp-foot form,
.bl-v4 .bl-lp-card form { display: contents; }
.bl-v4 .bl-lp-showgrid { align-items: start; }

/* Enthalten (aside of the plan view) */
.bl-v4 .bl-lp-aside-title { margin: 6px 0 12px; }
.bl-v4 .bl-lp-aside .bl-price-list { margin-top: 4px; }
.bl-v4 .bl-lp-qa { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.bl-v4 .bl-lp-qa p:first-child { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.bl-v4 .bl-lp-qa p + p { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* Standort wählen */
.bl-v4 .bl-lp-picker { margin-bottom: 16px; min-width: 0; }
.bl-v4 .bl-lp-picker .bl-eyebrow { margin-bottom: 8px; }
.bl-v4 .bl-lp-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.bl-v4 .bl-lp-tabs::-webkit-scrollbar { display: none; }
.bl-v4 .bl-lp-tabs .bl-chip { flex: none; gap: 8px; }
.bl-v4 .bl-lp-tab-name { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
.bl-v4 .bl-lp-tabs .bl-chip small { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.bl-v4 .bl-lp-tabs .bl-chip.bl-is-active small { background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; }
.bl-v4 .bl-lp-discount { margin-top: 24px; }

/* Intervall und Plan-Karten */
.bl-v4 .bl-lp-plans { margin-top: 32px; }
.bl-v4 .bl-lp-interval { display: flex; justify-content: center; margin-bottom: 24px; }
.bl-v4 .bl-lp-interval .bl-seg-item { height: 36px; padding: 0 18px; font-size: 13px; }
.bl-v4 .bl-lp-save { font-size: 11.5px; font-weight: 700; color: var(--accent-ink); }
.bl-v4 .bl-lp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.bl-v4 .bl-lp-cards > * { min-width: 0; }
.bl-v4 .bl-lp-card { gap: 0; overflow: visible; } /* legacy .bl-card clips the ribbon */
.bl-v4 .bl-lp-card .bl-price-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 19px; }
.bl-v4 .bl-lp-card-title { margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.bl-v4 .bl-lp-card-desc { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.bl-v4 .bl-lp-card .bl-price-amount { margin-top: 16px; color: var(--ink); }
.bl-v4 .bl-lp-card.bl-is-featured .bl-price-amount,
.bl-v4 .bl-lp-card[data-plan="business"] .bl-price-amount { color: var(--accent-ink); }
.bl-v4 .bl-lp-card .bl-price-amount small { font-size: 14px; }
.bl-v4 .bl-lp-year { margin-top: 2px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bl-v4 .bl-lp-card .bl-price-list { margin: 20px 0 24px; flex: 1 1 auto; }
.bl-v4 .bl-lp-card .bl-price-list strong { font-weight: 700; color: var(--ink); }
.bl-v4 .bl-lp-card .bl-btn { width: 100%; justify-content: center; margin-top: auto; }
.bl-v4 .bl-lp-card .bl-btn.bl-lp-trial { margin-top: 8px; }
.bl-v4 .bl-lp-card > [data-plan-interval-target$="Action"] { margin-top: auto; }
.bl-v4 .bl-lp-card > [data-plan-interval-target$="Action"] .bl-btn { margin-top: 0; }
.bl-v4 .bl-lp-card .bl-tag { height: 22px; font-size: 11px; }
.bl-v4 .bl-lp-ribbon { position: absolute; top: -10px; right: 16px; }
.bl-v4 .bl-lp-current { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; margin-top: auto; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.bl-v4 .bl-lp-card.bl-is-current { box-shadow: 0 0 0 1px var(--accent-line), var(--shadow); }
.bl-v4 .bl-lp-card.bl-is-current .bl-lp-current { background: var(--accent-soft); color: var(--accent-ink); }
.bl-v4 .bl-lp-card.bl-is-featured.bl-is-current { box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.bl-v4 .bl-lp-note { margin-bottom: 16px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.bl-v4 .bl-lp-note .bl-ic { flex: none; margin-top: 1px; color: var(--muted); }
.bl-v4 .bl-lp-trialnote { margin-top: 6px; font-size: 11.5px; line-height: 1.45; text-align: center; color: var(--muted); }
.bl-v4 .bl-lp-vatline { margin-top: 16px; text-align: center; font-size: 12px; color: var(--muted); }
.bl-v4 .bl-lp-features .bl-badge-new { height: 18px; padding: 0 6px; font-size: 10px; vertical-align: 1px; }

/* Plan-Vergleich */
.bl-v4 .bl-lp-table { min-width: 520px; }
.bl-v4 .bl-lp-table th[scope="col"] { text-align: center; }
.bl-v4 .bl-lp-table th[scope="col"]:first-child { text-align: left; }
.bl-v4 .bl-lp-table th[scope="row"] { font-weight: 500; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: 14px; background: transparent; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: normal; }
.bl-v4 .bl-lp-table th[scope="row"] .bl-badge-new { height: 18px; padding: 0 6px; margin-left: 6px; font-size: 10px; vertical-align: 1px; }
.bl-v4 .bl-lp-table td { position: relative; text-align: center; padding: 12px 16px; }
.bl-v4 .bl-lp-table td.bl-lp-price { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bl-v4 .bl-lp-table .bl-lp-sec th { padding: 8px 16px; font-size: 11px; }
.bl-v4 .bl-lp-table tbody tr.bl-lp-sec:hover { background: transparent; }
.bl-v4 .bl-lp-table th.bl-lp-cur,
.bl-v4 .bl-lp-table td.bl-lp-cur { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.bl-v4 .bl-lp-tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.bl-v4 .bl-lp-no { display: inline-grid; place-items: center; width: 22px; height: 22px; vertical-align: middle; color: var(--muted-2); }
.bl-v4 .bl-lp-tick { vertical-align: middle; }
.bl-v4 .bl-lp-tablefoot { justify-content: flex-start; }

/* Häufige Fragen */
.bl-v4 .bl-lp-faq details { border-top: 1px solid var(--line); }
.bl-v4 .bl-lp-faq details:first-child { border-top: 0; }
.bl-v4 .bl-lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 24px; list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.bl-v4 .bl-lp-faq summary::-webkit-details-marker { display: none; }
.bl-v4 .bl-lp-faq summary .bl-ic { flex: none; color: var(--muted); transition: transform .15s ease; }
.bl-v4 .bl-lp-faq details[open] summary .bl-ic { transform: rotate(180deg); }
.bl-v4 .bl-lp-faq details p { padding: 0 24px 18px; max-width: 80ch; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

/* Dialogs: the form is only a wrapper of the button row */
.bl-v4 .bl-lp-dialog-form { display: block; }

/* Pläne & Preise */
.bl-v4 .bl-lp-loading { display: flex; flex-direction: column; gap: 12px; }
.bl-v4 .bl-lp-loading .bl-help { text-align: center; }
.bl-v4 .bl-lp-disclaimer { max-width: 42rem; margin: 32px auto 0; text-align: center; }
.bl-v4 .bl-lp-franchise { position: relative; max-width: 32rem; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bl-v4 .bl-lp-franchise .bl-lp-nocost { max-width: none; }

@media (max-width: 1023.98px) {
  .bl-v4 .bl-lp-cost { text-align: left; }
  .bl-v4 .bl-lp-amount { justify-content: flex-start; font-size: 32px; }
  .bl-v4 .bl-lp-chip { justify-content: flex-start; margin-bottom: 0; }
  .bl-v4 .bl-lp-top { flex-direction: column; gap: 12px; }
  .bl-v4 .bl-lp-name { font-size: 22px; }
  .bl-v4 .bl-lp-metrics { --cols: 2 !important; }
  .bl-v4 .bl-lp-metrics > div.bl-is-wide,
  .bl-v4 .bl-lp-metrics > div.bl-is-wide-m { grid-column: 1 / -1; }
  .bl-v4 .bl-lp-foot { padding: 16px; }
  .bl-v4 .bl-lp-foot .bl-btn,
  .bl-v4 .bl-lp-box .bl-btn { flex: 1 1 100%; height: 44px; justify-content: center; }
  .bl-v4 .bl-lp-cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bl-v4 .bl-lp-card { padding: 20px; }
  .bl-v4 .bl-lp-card .bl-btn { height: 44px; }
  .bl-v4 .bl-lp-interval .bl-seg { width: 100%; }
  .bl-v4 .bl-lp-interval .bl-seg-item { flex: 1 1 0; height: 40px; padding: 0 10px; }
  .bl-v4 .bl-lp-tabs .bl-chip { height: 40px; }
  .bl-v4 .bl-lp-faq summary { padding: 12px 16px; }
  .bl-v4 .bl-lp-faq details p { padding: 0 16px 16px; }
  .bl-v4 .bl-lp-aside { order: 2; }
}
