/* ==========================================================================
   PostHub Buchung /konto-buchen/ (FEATURES §66a). Baut auf landing.css auf.
   ========================================================================== */
.bk { background: var(--phl-flaeche); }
.bk [hidden] { display: none !important; }
.bk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bk-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.bk-kopf { background: #fff; border-bottom: 1px solid var(--phl-linie); }
.bk-kopf__innen { width: min(880px, 100% - 32px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.bk-kopf .phl-marke img { height: 26px; width: auto; }
.bk-kopf__zurueck { font-size: 15px; color: var(--phl-grau); text-decoration: none; padding: 10px 0; }
.bk-kopf__zurueck:hover { color: var(--phl-violett); }

.bk-haupt { padding: 48px 0 80px; }
.bk-innen { width: min(880px, 100% - 32px); margin: 0 auto; }
.bk-einleitung { margin-bottom: 32px; }
.bk-titel { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.bk-lead { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--phl-grau); max-width: 40em; }
.bk-lead strong { color: var(--phl-tinte); font-weight: 600; }

/* Fortschritt */
.bk-fortschritt { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 20px; }
.bk-fortschritt li { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--phl-leise); }
.bk-fortschritt li::before { content: ''; display: block; height: 4px; border-radius: 4px; background: #e3e0ec; transition: background .3s ease; }
.bk-fortschritt li.is-erledigt::before, .bk-fortschritt li.is-aktiv::before { background: var(--phl-violett); }
.bk-fortschritt li.is-aktiv { color: var(--phl-tinte); font-weight: 600; }
.bk-fortschritt__nr { display: none; }

/* Karte */
.bk-form, .bk-erfolg { background: #fff; border-radius: var(--phl-radius-gross); box-shadow: inset 0 0 0 1px var(--phl-linie), var(--phl-schatten); padding: 36px; }
.bk-schritt__titel { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; outline: none; }
.bk-schritt__lead { margin-top: 8px; font-size: 16px; color: var(--phl-grau); }
.bk-schritt > .bk-raster, .bk-schritt > .bk-abos, .bk-schritt > .bk-termin, .bk-schritt > .bk-hinweis { margin-top: 24px; }

/* Felder */
.bk-raster { display: grid; gap: 18px; }
.bk-zeile { display: grid; grid-template-columns: 140px 1fr; gap: 14px; }
.bk-zeile--gleich { grid-template-columns: 1fr 1fr; }
.bk-feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.bk-feld > label, .bk-feld > legend { font-size: 15px; font-weight: 500; color: var(--phl-tinte); padding: 0; }
.bk-optional { font-weight: 400; font-size: 13.5px; color: var(--phl-leise); }
.bk input[type="text"], .bk input[type="email"], .bk input[type="tel"], .bk input[type="url"], .bk select, .bk textarea {
    width: 100%; font: inherit; font-size: 16px; line-height: 1.4; color: var(--phl-tinte); background: #fff;
    border: 1px solid #d7d4e2; border-radius: 12px; padding: 12px 14px; min-height: 48px;
    transition: border-color .2s ease, box-shadow .2s ease; -webkit-appearance: none; appearance: none;
}
.bk select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%235f5c70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.bk textarea { min-height: 110px; resize: vertical; }
.bk input:focus, .bk select:focus, .bk textarea:focus { outline: none; border-color: var(--phl-violett); box-shadow: 0 0 0 3px rgba(85,48,196,.15); }
.bk .is-fehler input, .bk .is-fehler select, .bk .is-fehler textarea, .bk .is-fehler .bk-praefix { border-color: #c2334d; }
.bk-hilfe { font-size: 13.5px; color: var(--phl-grau); line-height: 1.45; }
.bk-hilfe.is-ok { color: #1d7a46; }
.bk-hilfe.is-nein { color: #b02a43; }
.bk-fehler { font-size: 13.5px; color: #b02a43; line-height: 1.45; min-height: 0; }
.bk-fehler:empty { display: none; }
.bk-fehler--gesamt { margin-top: 12px; font-size: 15px; }

.bk-praefix { display: flex; align-items: stretch; border: 1px solid #d7d4e2; border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.bk-praefix:focus-within { border-color: var(--phl-violett); box-shadow: 0 0 0 3px rgba(85,48,196,.15); }
.bk-praefix span { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--phl-grau); font-size: 15px; white-space: nowrap; background: #faf9fc; border-right: 1px solid #ece9f3; padding-right: 10px; }
.bk .bk-praefix input { border: 0; border-radius: 0; box-shadow: none !important; min-width: 0; }

/* Abo-Karten */
.bk-abos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; }
.bk-abo { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #d7d4e2; cursor: pointer; transition: box-shadow .2s ease, background .2s ease; }
.bk-abo input { position: absolute; opacity: 0; pointer-events: none; }
.bk-abo:hover { box-shadow: inset 0 0 0 1px rgba(85,48,196,.45); }
.bk-abo:has(input:checked) { background: #faf8ff; box-shadow: inset 0 0 0 2px var(--phl-violett); }
.bk-abo:has(input:focus-visible) { outline: 3px solid var(--phl-violett-2); outline-offset: 3px; }
.bk-abo__kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bk-abo__kopf strong { font-size: 17px; font-weight: 600; }
.bk-abo__kopf em { font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--phl-violett); background: #f1eefb; padding: 3px 8px; border-radius: 999px; }
.bk-abo__preis { font-size: 14.5px; color: var(--phl-grau); }
.bk-abo__preis b { font-size: 24px; font-weight: 600; color: var(--phl-tinte); letter-spacing: -0.02em; }
.bk-abo__info { font-size: 14px; line-height: 1.45; color: var(--phl-tinte); }
.bk-abo__info--leise { color: var(--phl-grau); font-size: 13.5px; }
.bk-klein { margin-top: 16px; font-size: 13.5px; color: var(--phl-grau); line-height: 1.5; }

/* Auswahl (Anrede) */
.bk-wahl { display: grid; gap: 8px; }
.bk-wahl legend { margin-bottom: 4px; }
.bk-wahl__option { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px #d7d4e2; cursor: pointer; font-size: 15.5px; }
.bk-wahl__option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--phl-violett); background: #faf8ff; }
.bk-wahl__option input, .bk-check input { width: 20px; height: 20px; accent-color: var(--phl-violett); flex-shrink: 0; margin: 0; }

.bk-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 15.5px; line-height: 1.5; cursor: pointer; }
.bk-check input { margin-top: 2px; }
.bk-check a { color: var(--phl-violett); }

/* Termin */
.bk-termin__ok { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: #eef8f1; color: #1d6a3e; font-size: 15px; line-height: 1.5; }
.bk-termin__ok svg { width: 24px; height: 24px; flex-shrink: 0; }
.bk-termin__ok strong { color: #135030; }
.bk-calendly { height: 700px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--phl-linie); background: #fff; }
.bk-calendly iframe { display: block; }
.bk-calendly__laden { padding: 40px 20px; text-align: center; color: var(--phl-grau); font-size: 15px; }
.bk-termin.is-gebucht .bk-calendly { display: none; }
.bk-termin.is-rueckruf .bk-calendly { display: none; }
.bk-check--rueckruf { margin-top: 16px; }

/* Prüfen */
.bk-hinweis { padding: 16px 18px; border-radius: 14px; background: #f4f1fd; font-size: 15px; line-height: 1.55; color: var(--phl-tinte); }
.bk-hinweis strong { font-weight: 600; }
.bk-hinweis--warn { background: #fff4e5; margin-bottom: 20px; }
.bk-zusammenfassung { margin-top: 20px; display: grid; gap: 12px; }
.bk-zf { padding: 16px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--phl-linie); }
.bk-zf__kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.bk-zf__kopf h3 { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--phl-leise); }
.bk-zf__aendern { font: inherit; font-size: 14px; color: var(--phl-violett); background: none; border: 0; padding: 8px 0 8px 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bk-zf p { font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.bk-zf__preis { font-weight: 600; }
.bk-konditionen { margin-top: 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--phl-linie); }
.bk-konditionen summary { cursor: pointer; padding: 14px 18px; font-weight: 500; font-size: 15.5px; min-height: 48px; display: flex; align-items: center; }
.bk-konditionen dl { margin: 0; padding: 0 18px; }
.bk-konditionen dl > div { padding: 10px 0; border-top: 1px solid var(--phl-linie); }
.bk-konditionen dt { font-size: 14px; font-weight: 600; }
.bk-konditionen dd { margin: 2px 0 0; font-size: 14.5px; color: var(--phl-grau); line-height: 1.5; }
.bk-konditionen > p { padding: 10px 18px 16px; font-size: 14.5px; }
.bk-konditionen a { color: var(--phl-violett); }
.bk-schritt > .bk-feld { margin-top: 18px; }

/* Leiste */
.bk-leiste { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--phl-linie); }
.bk-leiste .phl-knopf { min-height: 48px; justify-content: center; border: 0; cursor: pointer; font-family: inherit; }
.bk-leiste .bk-weiter, .bk-leiste .bk-senden { margin-left: auto; min-width: 160px; }
.bk-leiste .phl-knopf[disabled] { opacity: .6; cursor: progress; }

/* Erfolg */
.bk-erfolg { text-align: left; }
.bk-erfolg__zeichen { width: 48px; height: 48px; color: #1d7a46; }
.bk-erfolg h2 { margin-top: 16px; font-size: 26px; font-weight: 600; outline: none; }
.bk-erfolg__ref { margin-top: 8px; font-size: 15px; color: var(--phl-grau); }
.bk-erfolg > p { margin-top: 10px; font-size: 16px; }
.bk-erfolg__schritte { margin: 24px 0 28px; display: grid; gap: 10px; counter-reset: bk; }
.bk-erfolg__schritte li { position: relative; padding: 14px 16px 14px 52px; border-radius: 14px; background: var(--phl-flaeche); display: flex; flex-direction: column; gap: 2px; counter-increment: bk; }
.bk-erfolg__schritte li::before { content: counter(bk); position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--phl-violett); box-shadow: inset 0 0 0 1px rgba(85,48,196,.3); background: #fff; }
.bk-erfolg__schritte strong { font-size: 15.5px; font-weight: 600; }
.bk-erfolg__schritte span { font-size: 14.5px; color: var(--phl-grau); line-height: 1.5; }

@media (max-width: 760px) {
    .bk-haupt { padding: 28px 0 56px; }
    .bk-einleitung { margin-bottom: 24px; }
    .bk-lead { font-size: 16px; }
    .bk-form, .bk-erfolg { padding: 22px 18px; border-radius: 18px; }
    .bk-fortschritt { gap: 4px; margin-bottom: 14px; }
    .bk-fortschritt__text { display: none; }
    .bk-fortschritt li.is-aktiv .bk-fortschritt__text { display: inline; white-space: nowrap; overflow: visible; }
    .bk-fortschritt li { position: relative; }
    .bk-schritt__titel { font-size: 21px; }
    .bk-schritt__lead { font-size: 15px; }
    .bk-abos { grid-template-columns: 1fr; gap: 10px; }
    .bk-zeile { grid-template-columns: 110px 1fr; gap: 10px; }
    .bk-zeile--gleich { grid-template-columns: 1fr; gap: 18px; }
    .bk-calendly { height: 1040px; margin-inline: -18px; border-radius: 0; box-shadow: none; border-top: 1px solid var(--phl-linie); border-bottom: 1px solid var(--phl-linie); }
    .bk-leiste { position: sticky; bottom: 0; margin: 24px -18px -22px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-radius: 0 0 18px 18px; }
    .bk-leiste .phl-knopf { flex: 1; min-width: 0; padding-inline: 14px; }
    .bk-leiste .bk-weiter, .bk-leiste .bk-senden { margin-left: 0; }
    .bk-kopf__zurueck { font-size: 14px; }
}
@media (max-width: 380px) {
    .bk-praefix span { font-size: 13px; padding-left: 10px; }
}
