/* ============================================================
   Buchung auf „Für Gutachter“ (partials/partner-plan-pick.php):
   Silber, Gold und Platin als Karten wie im Kopf der Seite, Gold
   hervorgehoben, darüber die kleine Zeile für Basis. Jede Karte
   ist ein Radio-Feld, die ganze Fläche wählt es aus. Farben, Radien
   und Schatten aus dem Theme (tailwind/input.css), Präfix bk-.
   ============================================================ */

.bk-plans {
  display: grid; gap: 1.4rem 1rem;
  margin-top: 1.25rem;
}
/* Im Dokument steht die Empfehlung zuerst; am Desktop ordnen sich die
   Karten aufsteigend wie im Kopf der Seite: Silber, Gold, Platin. */
@media (min-width: 52rem) {
  .bk-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .bk-plan--silber { grid-column: 1; grid-row: 1; }
  .bk-plan--gold { grid-column: 2; grid-row: 1; }
  .bk-plan--platin { grid-column: 3; grid-row: 1; }
}

/* ---------- Karte ---------- */
.bk-plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.25rem 1.15rem 1.3rem;
  background: #fff;
  border: 1.5px solid color-mix(in oklch, var(--color-primary-900) 14%, transparent);
  border-radius: var(--radius-xl2);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.bk-plan:hover { border-color: var(--color-primary-400); }
.bk-plan--featured {
  border-color: var(--color-primary-600);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--color-primary-600) 14%, transparent), var(--shadow-card);
}
@media (min-width: 52rem) {
  .bk-plan--featured { padding-top: 1.6rem; margin-top: -0.35rem; }
}
.bk-plan > input,
.bk-basis > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }

/* Die Beschriftung deckt die ganze Karte ab: Ein Klick auf Preis oder
   Vorteile wählt das Paket. */
.bk-plan-label, .bk-basis-label { cursor: pointer; }
.bk-plan-label::after, .bk-basis-label::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
}

.bk-plan:has(input:checked) {
  border-color: var(--color-primary-600);
  background: linear-gradient(180deg, var(--color-primary-50), #fff 55%);
}
.bk-plan:has(input:focus-visible),
.bk-basis:has(input:focus-visible) { outline: 3px solid var(--color-accent-500); outline-offset: 3px; }
.bk-plan:has(input:checked) .plan-pick-mark,
.bk-basis:has(input:checked) .plan-pick-mark { border-color: var(--color-primary-600); }
.bk-plan:has(input:checked) .plan-pick-mark::after,
.bk-basis:has(input:checked) .plan-pick-mark::after { background: var(--color-primary-600); }

.bk-plan-flag {
  position: absolute; top: -0.8rem; left: 1rem; z-index: 2;
  padding: 0.28rem 0.75rem;
  background: var(--color-accent-500); color: var(--color-primary-950);
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}

.bk-plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }
.bk-plan-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2;
  color: var(--color-primary-900);
}
.bk-plan-head .plan-chip { margin-left: auto; }

/* Preis je Laufzeit: sichtbar ist die gewählte (data-pick-term). */
.bk-plan-price { display: none; margin-top: 0.6rem; }
.bk-plans[data-pick-term="monatlich"] .bk-plan-price[data-term="monatlich"],
.bk-plans[data-pick-term="jahr"] .bk-plan-price[data-term="jahr"],
.bk-plans[data-pick-term="zweijahr"] .bk-plan-price[data-term="zweijahr"] { display: block; }
.bk-plan-amount {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.8rem);
  color: var(--color-primary-800);
}
.bk-plan-per { display: block; margin-top: 0.1rem; font-size: 0.8rem; color: var(--color-primary-700); }

.bk-plan-body {
  margin-top: 0.85rem; padding-top: 0.8rem;
  border-top: 1px solid color-mix(in oklch, var(--color-primary-900) 10%, transparent);
}
.bk-plan-from {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-primary-700);
}
.bk-plan-points {
  list-style: none; margin: 0.45rem 0 0; padding: 0;
  display: grid; gap: 0.5rem;
  font-size: 0.9rem; line-height: 1.45;
  color: color-mix(in oklch, var(--color-primary-950) 84%, #000);
}
.bk-plan-points li { position: relative; padding-left: 1.4rem; }
.bk-plan-points li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  font-weight: 700; color: var(--color-primary-600);
}

/* ---------- Basis als kleine Zeile über den Karten ---------- */
.bk-basis {
  position: relative;
  width: fit-content; max-width: 100%;
  margin-top: 0.9rem; padding: 0.5rem 0.85rem 0.55rem;
  background: #fff;
  border: 1.5px dashed color-mix(in oklch, var(--color-primary-900) 22%, transparent);
  border-radius: 0.7rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.bk-basis:hover { border-color: var(--color-primary-400); }
.bk-basis:has(input:checked) { border-style: solid; border-color: var(--color-primary-600); background: var(--color-primary-50); }
.bk-basis-label { display: flex; align-items: center; gap: 0.55rem; }
.bk-basis .plan-pick-mark { width: 1.05rem; height: 1.05rem; }
.bk-basis .plan-pick-mark::after { width: 0.45rem; height: 0.45rem; }
.bk-basis-name { font-size: 0.9rem; font-weight: 650; line-height: 1.35; color: var(--color-primary-900); }
.bk-basis-text {
  margin-top: 0.15rem; padding-left: 1.6rem;
  font-size: 0.78rem; line-height: 1.45;
  color: color-mix(in oklch, var(--color-primary-950) 76%, #000);
}
/* Platz für das Etikett „Unsere Empfehlung“, das über die Gold-Karte ragt. */
.bk-basis + .bk-plans { margin-top: 1.6rem; }

.bk-plans-note { margin-top: 0.9rem; }
.bk-plans-note a { text-decoration: underline; text-underline-offset: 2px; }
