/* ============================================================
   Terminbuchungs-Modul — gekapseltes Stylesheet
   ============================================================
   Alle Klassen tragen das Präfix `bk-`. Alle Tokens liegen unter
   `:root` mit Präfix `--bk-`. Das Modul ist STANDALONE-fähig:
   es benötigt keine Klasse und keinen Token aus style.css.

   Die Werte spiegeln die Designtokens der Website, damit sich das
   Modul in die Seite einfügt — aber das Modul bringt sie selbst mit.
   ============================================================ */

/* ------------------------------------------------------------
   Self-hosted Poppins (DSGVO-konform, kein CDN).
   Beim Herauslösen des Moduls den Ordner `fonts/` mitkopieren
   (relativer Pfad ../fonts/). Auf der Host-Seite lädt style.css
   dieselbe Schrift bereits — doppelte @font-face sind unkritisch,
   der Browser nutzt die Datei nur einmal. So bringt app.css seine
   Schrift selbst mit und ist wirklich standalone-fähig.
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}

:root {
  /* Farben (spiegeln die Site-Tokens) */
  --bk-bg: #ffffff;
  --bk-bg-alt: #f7f7f7;
  --bk-text: #333333;
  --bk-text-light: #666666;
  --bk-heading: #222222;
  --bk-border: #e0e0e0;
  --bk-border-strong: #c9c9c9;

  /* Einziger Akzent — Primärfarbe */
  --bk-accent: #222222;
  --bk-accent-contrast: #ffffff;
  --bk-accent-soft: rgba(34, 34, 34, 0.06);
  --bk-accent-softer: rgba(34, 34, 34, 0.04);

  /* Zustands-Farben (zurückhaltend, AA-konform) */
  --bk-error: #b3261e;
  --bk-error-bg: rgba(179, 38, 30, 0.07);
  --bk-success: #1f7a44;
  --bk-success-soft: rgba(31, 122, 68, 0.1);

  /* Fokusring */
  --bk-focus: #222222;

  /* Typografie */
  --bk-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Helvetica, Arial, sans-serif;

  /* Spacing-Skala (4px-Basis) */
  --bk-space-1: 4px;
  --bk-space-2: 8px;
  --bk-space-3: 12px;
  --bk-space-4: 16px;
  --bk-space-5: 20px;
  --bk-space-6: 24px;
  --bk-space-8: 32px;
  --bk-space-10: 40px;
  --bk-space-12: 48px;

  /* Radius — bewusst klein/eckig, passt zur reduzierten Site */
  --bk-radius: 4px;
  --bk-radius-lg: 6px;

  /* Layout */
  --bk-max: 920px;

  /* Transitions (≤200ms) */
  --bk-t: 160ms ease;
  --bk-t-fast: 120ms ease;
}

/* ---------- Container & Reset (scoped) ---------- */
.bk {
  font-family: var(--bk-font);
  color: var(--bk-text);
  max-width: var(--bk-max);
  margin: 0 auto;
  padding: 0 var(--bk-space-6) var(--bk-space-12);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.bk *,
.bk *::before,
.bk *::after {
  box-sizing: border-box;
}

.bk button {
  font-family: inherit;
}

/* Visuell versteckt, aber für Screenreader/Live-Region vorhanden.
   (Persistente aria-live-Region für Fehler-/Monatswechsel-Ansagen.) */
.bk-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Step-Indikator ---------- */
.bk-steps {
  display: flex;
  align-items: center;
  gap: var(--bk-space-2);
  flex-wrap: wrap;
  margin-bottom: var(--bk-space-8);
  padding-bottom: var(--bk-space-5);
  border-bottom: 1px solid var(--bk-border);
  list-style: none;
}

.bk-steps__item {
  display: flex;
  align-items: center;
  gap: var(--bk-space-2);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--bk-text-light);
}

/* Erledigte Schritte sind klickbare Buttons (Rück-Navigation). */
.bk-steps__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--bk-space-2);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: var(--bk-radius);
}

.bk-steps__btn:hover .bk-steps__num {
  border-color: var(--bk-accent);
}

.bk-steps__btn:hover .bk-steps__label {
  color: var(--bk-heading);
}

.bk-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--bk-border-strong);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--bk-text-light);
  flex-shrink: 0;
  transition: background var(--bk-t), border-color var(--bk-t),
    color var(--bk-t);
}

.bk-steps__label {
  display: none;
}

.bk-steps__item--active .bk-steps__num {
  background: var(--bk-accent);
  border-color: var(--bk-accent);
  color: var(--bk-accent-contrast);
}

.bk-steps__item--active {
  color: var(--bk-heading);
  font-weight: 500;
}

.bk-steps__item--done .bk-steps__num {
  background: var(--bk-heading);
  border-color: var(--bk-heading);
  color: var(--bk-accent-contrast);
}

.bk-steps__sep {
  width: 14px;
  height: 1px;
  background: var(--bk-border-strong);
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .bk-steps__label {
    display: inline;
  }
  .bk-steps__sep {
    width: 24px;
  }
}

/* ---------- Step-Header (Titel + Zurück) ---------- */
.bk-head {
  display: flex;
  align-items: flex-start;
  gap: var(--bk-space-4);
  margin-bottom: var(--bk-space-6);
}

.bk-head__text {
  flex: 1;
  min-width: 0;
}

.bk-head__title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--bk-heading);
  line-height: 1.3;
  margin: 0 0 var(--bk-space-1);
}

.bk-head__sub {
  font-size: 0.9rem;
  color: var(--bk-text-light);
  margin: 0;
}

.bk-back {
  display: inline-flex;
  align-items: center;
  gap: var(--bk-space-1);
  min-height: 44px;
  padding: var(--bk-space-2) var(--bk-space-3) var(--bk-space-2)
    var(--bk-space-2);
  margin-left: calc(-1 * var(--bk-space-2));
  background: none;
  border: none;
  border-radius: var(--bk-radius);
  color: var(--bk-text-light);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color var(--bk-t-fast), background var(--bk-t-fast);
}

.bk-back:hover {
  color: var(--bk-heading);
  background: var(--bk-accent-softer);
}

.bk-back__icon {
  width: 16px;
  height: 16px;
}

/* ---------- Versicherungs-Auswahl (Schritt 1) ---------- */
.bk-choices {
  display: grid;
  gap: var(--bk-space-3);
}

@media (min-width: 600px) {
  .bk-choices {
    grid-template-columns: 1fr 1fr;
  }
}

.bk-choice {
  display: flex;
  align-items: center;
  gap: var(--bk-space-4);
  width: 100%;
  text-align: left;
  padding: var(--bk-space-5);
  background: var(--bk-bg);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
  cursor: pointer;
  transition: border-color var(--bk-t), background var(--bk-t);
}

.bk-choice:hover {
  border-color: var(--bk-accent);
  background: var(--bk-accent-softer);
}

.bk-choice--selected,
.bk-choice--selected:hover {
  border-color: var(--bk-accent);
  background: var(--bk-accent-soft);
}

.bk-choice__icon {
  width: 26px;
  height: 26px;
  color: var(--bk-heading);
  flex-shrink: 0;
}

.bk-choice__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bk-choice__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bk-choice__title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--bk-heading);
}

.bk-choice__sub {
  font-size: 0.83rem;
  color: var(--bk-text-light);
  line-height: 1.5;
}

.bk-choice__arrow {
  width: 20px;
  height: 20px;
  color: var(--bk-border-strong);
  flex-shrink: 0;
  transition: color var(--bk-t), transform var(--bk-t);
}

.bk-choice:hover .bk-choice__arrow {
  color: var(--bk-accent);
  transform: translateX(2px);
}

/* ---------- Service-Auswahl (Schritt 2) ---------- */
.bk-services {
  display: grid;
  gap: var(--bk-space-3);
}

.bk-service {
  display: flex;
  align-items: flex-start;
  gap: var(--bk-space-4);
  width: 100%;
  text-align: left;
  padding: var(--bk-space-5);
  background: var(--bk-bg);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
  cursor: pointer;
  transition: border-color var(--bk-t), background var(--bk-t),
    box-shadow var(--bk-t);
}

.bk-service:hover {
  border-color: var(--bk-accent);
  background: var(--bk-accent-softer);
}

.bk-service--selected,
.bk-service--selected:hover {
  border-color: var(--bk-accent);
  background: var(--bk-accent-soft);
}

.bk-service__body {
  flex: 1;
  min-width: 0;
}

.bk-service__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bk-heading);
  margin: 0 0 var(--bk-space-2);
}

/* Preis prominent auf der Leistungs-Karte */
.bk-service__price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bk-heading);
  margin: 0 0 var(--bk-space-3);
}

.bk-service__price-sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--bk-text-light);
}

/* Neutraler Abrechnungshinweis bei gesetzlich Versicherten (kein Preis). */
.bk-service__billing {
  font-size: 0.85rem;
  color: var(--bk-text-light);
  margin: 0 0 var(--bk-space-3);
}

.bk-service__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bk-space-2);
  margin-bottom: var(--bk-space-3);
}

.bk-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--bk-space-1);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bk-text-light);
  background: var(--bk-bg-alt);
  border: 1px solid var(--bk-border);
  border-radius: 100px;
  padding: 3px var(--bk-space-3);
  white-space: nowrap;
}

.bk-badge--free {
  color: var(--bk-heading);
  background: var(--bk-accent-soft);
  border-color: transparent;
}

.bk-badge__icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.bk-service__desc {
  font-size: 0.9rem;
  color: var(--bk-text-light);
  line-height: 1.65;
  margin: 0;
}

.bk-service__arrow {
  align-self: center;
  width: 20px;
  height: 20px;
  color: var(--bk-border-strong);
  flex-shrink: 0;
  transition: color var(--bk-t), transform var(--bk-t);
}

.bk-service:hover .bk-service__arrow {
  color: var(--bk-accent);
  transform: translateX(2px);
}

/* ---------- Kosten-Transparenz (Disclosure, Schritt 2) ---------- */
.bk-cost {
  margin-top: var(--bk-space-5);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
  background: var(--bk-bg-alt);
  overflow: hidden;
}

.bk-cost__toggle {
  display: flex;
  align-items: center;
  gap: var(--bk-space-3);
  width: 100%;
  min-height: 48px;
  padding: var(--bk-space-3) var(--bk-space-4);
  background: none;
  border: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bk-heading);
  text-align: left;
  cursor: pointer;
}

.bk-cost__toggle-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--bk-text-light);
}

.bk-cost__chevron {
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--bk-text-light);
  transition: transform var(--bk-t);
}

.bk-cost__chevron--open {
  transform: rotate(180deg);
}

.bk-cost__panel {
  padding: 0 var(--bk-space-4) var(--bk-space-4);
}

.bk-cost__list {
  margin: 0;
  padding-left: var(--bk-space-5);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--bk-text);
}

.bk-cost__list li {
  margin-bottom: var(--bk-space-2);
}

.bk-cost__list li:last-child {
  margin-bottom: 0;
}

.bk-cost__list strong {
  color: var(--bk-heading);
}

/* ---------- Format-Auswahl (Segmented Control) ---------- */
.bk-format {
  margin-bottom: var(--bk-space-6);
}

.bk-format__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bk-heading);
  margin-bottom: var(--bk-space-2);
}

/* Festes Format (nur eine Option, z. B. gesetzlich → Vor Ort) */
.bk-format__fixed {
  display: inline-flex;
  align-items: center;
  gap: var(--bk-space-2);
  margin: 0;
  padding: var(--bk-space-2) var(--bk-space-3);
  background: var(--bk-bg-alt);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius);
  font-size: 0.9rem;
  color: var(--bk-heading);
}

.bk-format__fixed-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--bk-text-light);
}

.bk-format__fixed-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bk-segmented {
  display: inline-flex;
  gap: 0;
  background: var(--bk-bg-alt);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius);
  padding: 3px;
}

.bk-segmented__btn {
  min-height: 44px;
  padding: var(--bk-space-2) var(--bk-space-4);
  background: none;
  border: none;
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--bk-text-light);
  cursor: pointer;
  transition: background var(--bk-t-fast), color var(--bk-t-fast);
}

.bk-segmented__btn:hover {
  color: var(--bk-heading);
}

.bk-segmented__btn[aria-pressed='true'] {
  background: var(--bk-bg);
  color: var(--bk-heading);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ---------- Schritt 2/3: Kalender + Slots ---------- */
.bk-picker {
  display: grid;
  gap: var(--bk-space-8);
}

@media (min-width: 760px) {
  .bk-picker {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: var(--bk-space-10);
    align-items: start;
  }
}

/* Kalender */
.bk-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--bk-space-4);
}

.bk-cal__month {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bk-heading);
  text-transform: capitalize;
}

.bk-cal__navbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bk-bg);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius);
  color: var(--bk-text);
  cursor: pointer;
  transition: border-color var(--bk-t-fast), background var(--bk-t-fast),
    color var(--bk-t-fast);
}

.bk-cal__navbtn:hover:not(:disabled) {
  border-color: var(--bk-accent);
  color: var(--bk-heading);
}

.bk-cal__navbtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bk-cal__navbtn svg {
  width: 18px;
  height: 18px;
}

/* Grid = Spalte aus Wochen-Zeilen (role="row"). Jede Zeile ist ein
   7-Spalten-Raster. So bleibt die ARIA-Grid-Semantik intakt und das
   visuelle Layout unverändert. */
.bk-cal__grid {
  display: flex;
  flex-direction: column;
  gap: var(--bk-space-1);
}

.bk-cal__row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--bk-space-1);
}

.bk-cal__dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bk-text-light);
  padding-bottom: var(--bk-space-2);
}

.bk-cal__cell {
  aspect-ratio: 1 / 1;
  display: flex;
}

.bk-day {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bk-bg);
  border: 1px solid transparent;
  border-radius: var(--bk-radius);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: var(--bk-text);
  cursor: pointer;
  transition: background var(--bk-t-fast), border-color var(--bk-t-fast),
    color var(--bk-t-fast);
}

/* Verfügbarer Tag */
.bk-day--available {
  background: var(--bk-accent-soft);
  color: var(--bk-heading);
  font-weight: 500;
}

.bk-day--available:hover {
  border-color: var(--bk-accent);
}

/* Heutiges Datum: Ring */
.bk-day--today::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bk-text-light);
}

.bk-day--available.bk-day--today::after {
  background: var(--bk-accent);
}

/* Ausgewählter Tag */
.bk-day--selected,
.bk-day--selected:hover {
  background: var(--bk-accent);
  border-color: var(--bk-accent);
  color: var(--bk-accent-contrast);
  font-weight: 600;
}

.bk-day--selected.bk-day--today::after {
  background: var(--bk-accent-contrast);
}

/* Nicht verfügbar / Vergangenheit / leerer Tag */
.bk-day--disabled {
  color: var(--bk-border-strong);
  cursor: not-allowed;
  background: var(--bk-bg);
}

.bk-day--empty {
  visibility: hidden;
  cursor: default;
}

/* ---------- Slots-Spalte ---------- */
.bk-slots {
  min-width: 0;
}

.bk-slots__head {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bk-heading);
  margin-bottom: var(--bk-space-4);
  padding-bottom: var(--bk-space-3);
  border-bottom: 1px solid var(--bk-border);
  text-transform: capitalize;
}

.bk-slots__list {
  display: grid;
  /* 76px statt 84px → kein Overflow auf sehr schmalen Phones (320px). */
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: var(--bk-space-2);
}

/* Unter ~360px feste 2 Spalten erzwingen — robust, kein horizontaler Scroll. */
@media (max-width: 360px) {
  .bk-slots__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 760px) {
  .bk-slots__list {
    grid-template-columns: 1fr 1fr;
  }
}

.bk-slot {
  min-height: 44px;
  padding: var(--bk-space-2) var(--bk-space-3);
  background: var(--bk-bg);
  border: 1px solid var(--bk-border-strong);
  border-radius: var(--bk-radius);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: var(--bk-heading);
  cursor: pointer;
  transition: border-color var(--bk-t-fast), background var(--bk-t-fast),
    color var(--bk-t-fast);
}

.bk-slot:hover {
  border-color: var(--bk-accent);
  background: var(--bk-accent-softer);
}

.bk-slot--selected,
.bk-slot--selected:hover {
  background: var(--bk-accent);
  border-color: var(--bk-accent);
  color: var(--bk-accent-contrast);
  font-weight: 500;
}

/* Prompt, solange kein Tag gewählt ist */
.bk-slots__prompt {
  font-size: 0.9rem;
  color: var(--bk-text-light);
  padding: var(--bk-space-6) 0;
}

/* ---------- Empty / Loading / Error (Shared) ---------- */
.bk-empty {
  text-align: left;
  padding: var(--bk-space-6) 0;
}

.bk-empty__icon {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--bk-border-strong);
  margin-bottom: var(--bk-space-3);
}

/* Inline-SVG ohne intrinsische Größe explizit begrenzen — sonst rendert
   ein viewBox-SVG in einem inline-<span> mit seiner CSS-Default-Größe
   (300×150px) und sprengt den Empty-/Hinweis-Bereich. */
.bk-empty__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bk-empty__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bk-heading);
  margin: 0 0 var(--bk-space-1);
}

.bk-empty__text {
  font-size: 0.88rem;
  color: var(--bk-text-light);
  margin: 0;
  line-height: 1.6;
}

/* Skeleton */
.bk-skel {
  background: linear-gradient(
    90deg,
    var(--bk-bg-alt) 0%,
    #efefef 50%,
    var(--bk-bg-alt) 100%
  );
  background-size: 200% 100%;
  animation: bk-shimmer 1.2s ease-in-out infinite;
  border-radius: var(--bk-radius);
}

@keyframes bk-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.bk-skel-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--bk-space-1);
}

.bk-skel-cell {
  aspect-ratio: 1 / 1;
  min-height: 44px;
}

.bk-skel-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bk-space-2);
}

.bk-skel-slot {
  height: 44px;
}

/* ---------- Schritt 4: Formular ---------- */
.bk-form-layout {
  display: grid;
  gap: var(--bk-space-8);
}

@media (min-width: 760px) {
  .bk-form-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: var(--bk-space-10);
    align-items: start;
  }
  .bk-form-layout__summary {
    order: 2;
  }
  .bk-form-layout__form {
    order: 1;
  }
}

/* Zusammenfassungs-Karte — kompakt, Label links / Wert rechts */
.bk-summary {
  background: var(--bk-bg-alt);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
  padding: var(--bk-space-4);
}

.bk-summary__title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bk-text-light);
  margin: 0 0 var(--bk-space-3);
}

.bk-summary__list {
  margin: 0;
}

.bk-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--bk-space-4);
  padding: var(--bk-space-2) 0;
}

.bk-summary__row + .bk-summary__row {
  border-top: 1px solid var(--bk-border);
}

.bk-summary__k {
  flex-shrink: 0;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bk-text-light);
  margin: 0;
}

.bk-summary__v {
  flex: 1;
  text-align: right;
  font-size: 0.88rem;
  color: var(--bk-heading);
  font-weight: 500;
  margin: 0;
  line-height: 1.35;
  word-break: break-word;
}

/* Felder */
.bk-field {
  margin-bottom: var(--bk-space-5);
}

/* Adress-Fieldset mit Info-Disclosure */
.bk-fieldset {
  margin: 0 0 var(--bk-space-5);
  padding: 0;
  border: none;
}

.bk-fieldset__legend-row {
  display: flex;
  align-items: center;
  gap: var(--bk-space-2);
  margin-bottom: var(--bk-space-3);
}

.bk-fieldset__legend {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bk-heading);
}

/* Barrierefreier Info-Button (echtes <button aria-expanded>, kein Hover) */
.bk-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: 1px solid var(--bk-border);
  border-radius: 50%;
  color: var(--bk-text-light);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--bk-t-fast), color var(--bk-t-fast),
    background var(--bk-t-fast);
}

.bk-info-btn svg {
  width: 16px;
  height: 16px;
}

.bk-info-btn:hover,
.bk-info-btn[aria-expanded='true'] {
  border-color: var(--bk-accent);
  color: var(--bk-heading);
  background: var(--bk-accent-softer);
}

/* Erklär-Panel — bricht sauber um, kein Overflow auf Mobile */
.bk-info-panel {
  margin-bottom: var(--bk-space-4);
  padding: var(--bk-space-3) var(--bk-space-4);
  background: var(--bk-accent-soft);
  border-radius: var(--bk-radius);
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--bk-text);
  overflow-wrap: break-word;
}

/* PLZ + Ort nebeneinander; auf Mobile gestapelt */
.bk-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bk-space-3);
}

@media (min-width: 420px) {
  .bk-field-row {
    grid-template-columns: minmax(96px, 1fr) 2fr;
  }
}

.bk-field-row .bk-field {
  margin-bottom: var(--bk-space-5);
}

.bk-field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bk-heading);
  margin-bottom: var(--bk-space-2);
}

.bk-field__opt {
  font-weight: 400;
  color: var(--bk-text-light);
}

/* Feld-Hinweis (z. B. Telefon-Bestätigungshinweis) — gekapselt statt inline. */
.bk-field__hint {
  margin: calc(-1 * var(--bk-space-2)) 0 var(--bk-space-5);
  font-size: 0.8rem;
  color: var(--bk-text-light);
  line-height: 1.5;
}

.bk-input,
.bk-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--bk-text);
  background: var(--bk-bg);
  border: 1px solid var(--bk-border-strong);
  border-radius: var(--bk-radius);
  padding: var(--bk-space-3) var(--bk-space-4);
  min-height: 46px;
  transition: border-color var(--bk-t-fast), box-shadow var(--bk-t-fast);
}

.bk-textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}

.bk-input::placeholder,
.bk-textarea::placeholder {
  color: #9a9a9a;
}

.bk-input:hover,
.bk-textarea:hover {
  border-color: var(--bk-text-light);
}

.bk-input[aria-invalid='true'],
.bk-textarea[aria-invalid='true'] {
  border-color: var(--bk-error);
  background: var(--bk-error-bg);
}

.bk-field__error {
  display: none;
  align-items: center;
  gap: var(--bk-space-1);
  font-size: 0.8rem;
  color: var(--bk-error);
  margin-top: var(--bk-space-2);
}

.bk-field__error.is-visible {
  display: flex;
}

.bk-field__error svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Consent-Checkbox */
.bk-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--bk-space-3);
  margin-bottom: var(--bk-space-2);
  cursor: pointer;
}

.bk-consent__box {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  background: var(--bk-bg);
  border: 1.5px solid var(--bk-border-strong);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: background var(--bk-t-fast), border-color var(--bk-t-fast);
}

.bk-consent__box:hover {
  border-color: var(--bk-accent);
}

.bk-consent__box:checked {
  background: var(--bk-accent);
  border-color: var(--bk-accent);
}

.bk-consent__box:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--bk-accent-contrast);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.bk-consent__box[aria-invalid='true'] {
  border-color: var(--bk-error);
}

.bk-consent__text {
  font-size: 0.85rem;
  color: var(--bk-text);
  line-height: 1.55;
}

.bk-consent__text a {
  color: var(--bk-heading);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bk-consent-error {
  margin-top: var(--bk-space-1);
  margin-bottom: var(--bk-space-5);
}

/* Buchungs-Fehlerbanner */
.bk-banner {
  display: none;
  align-items: flex-start;
  gap: var(--bk-space-3);
  background: var(--bk-error-bg);
  border: 1px solid var(--bk-error);
  border-radius: var(--bk-radius);
  padding: var(--bk-space-4);
  margin-bottom: var(--bk-space-5);
}

.bk-banner.is-visible {
  display: flex;
}

.bk-banner__icon {
  width: 18px;
  height: 18px;
  color: var(--bk-error);
  flex-shrink: 0;
  margin-top: 1px;
}

.bk-banner__text {
  font-size: 0.88rem;
  color: var(--bk-heading);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Buttons ---------- */
.bk-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--bk-space-3);
  margin-top: var(--bk-space-6);
}

@media (min-width: 520px) {
  .bk-actions {
    flex-direction: row;
    justify-content: flex-start;
  }
}

.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bk-space-2);
  min-height: 48px;
  padding: var(--bk-space-3) var(--bk-space-6);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--bk-radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--bk-t-fast), border-color var(--bk-t-fast),
    color var(--bk-t-fast), opacity var(--bk-t-fast);
}

.bk-btn--primary {
  background: var(--bk-accent);
  color: var(--bk-accent-contrast);
  border-color: var(--bk-accent);
}

.bk-btn--primary:hover:not(:disabled) {
  background: #000000;
  border-color: #000000;
}

.bk-btn--ghost {
  background: transparent;
  color: var(--bk-text);
  border-color: var(--bk-border-strong);
}

.bk-btn--ghost:hover:not(:disabled) {
  border-color: var(--bk-accent);
  color: var(--bk-heading);
}

.bk-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bk-btn__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: bk-spin 0.6s linear infinite;
}

@keyframes bk-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Schritt 5: Bestätigung ---------- */
.bk-done {
  max-width: 560px;
}

.bk-done__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bk-success-soft);
  color: var(--bk-success);
  margin-bottom: var(--bk-space-5);
}

.bk-done__check svg {
  width: 28px;
  height: 28px;
}

.bk-done__title {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--bk-heading);
  margin: 0 0 var(--bk-space-3);
}

.bk-done__lead {
  font-size: 0.95rem;
  color: var(--bk-text-light);
  line-height: 1.65;
  margin: 0 0 var(--bk-space-6);
}

/* Dezente Absage-Kulanz-Notiz auf dem Bestätigungs-Screen */
.bk-done__note {
  font-size: 0.85rem;
  color: var(--bk-text-light);
  line-height: 1.55;
  margin: 0 0 var(--bk-space-6);
}

.bk-done__summary {
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-lg);
  padding: var(--bk-space-2) var(--bk-space-5);
  margin-bottom: var(--bk-space-6);
}

.bk-done__row {
  display: flex;
  justify-content: space-between;
  gap: var(--bk-space-4);
  padding: var(--bk-space-3) 0;
  font-size: 0.9rem;
}

.bk-done__row + .bk-done__row {
  border-top: 1px solid var(--bk-border);
}

.bk-done__k {
  color: var(--bk-text-light);
  flex-shrink: 0;
}

.bk-done__v {
  color: var(--bk-heading);
  font-weight: 500;
  text-align: right;
}

/* ---------- Kalender-Export (Schritt 5) ---------- */
.bk-cal-export {
  margin-bottom: var(--bk-space-6);
}

.bk-cal-export__title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bk-text-light);
  margin: 0 0 var(--bk-space-3);
}

.bk-cal-export__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: var(--bk-space-2);
}

.bk-cal-export__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bk-space-2);
  min-height: 44px;
  padding: var(--bk-space-2) var(--bk-space-4);
  background: var(--bk-bg);
  border: 1px solid var(--bk-border-strong);
  border-radius: var(--bk-radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bk-heading);
  text-decoration: none;
  transition: border-color var(--bk-t-fast), background var(--bk-t-fast);
}

.bk-cal-export__btn:hover {
  border-color: var(--bk-accent);
  background: var(--bk-accent-softer);
  color: var(--bk-heading);
}

.bk-cal-export__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--bk-text-light);
}

/* ---------- Initiales Laden (Services) ---------- */
.bk-skel-service {
  height: 118px;
  border-radius: var(--bk-radius-lg);
  margin-bottom: var(--bk-space-3);
}

/* ---------- Globaler Fokusring (sichtbar, kein outline:none ohne Ersatz) ---------- */
.bk :focus-visible {
  outline: 2px solid var(--bk-focus);
  outline-offset: 2px;
  border-radius: var(--bk-radius);
}

.bk .bk-day:focus-visible,
.bk .bk-slot:focus-visible {
  outline-offset: 1px;
  z-index: 1;
}

/* Schritt-Überschriften erhalten bei Schrittwechsel programmatisch Fokus
   (tabindex="-1") allein für die Screenreader-Ansage. Sie sind nicht
   interaktiv und nicht per Tastatur erreichbar – daher den sichtbaren
   Fokusring hier gezielt unterdrücken. Die echten Fokusringe auf Buttons,
   Slot-Pills, Kalendertagen, Inputs und Format-Umschalter bleiben über die
   :focus-visible-Regel oben vollständig erhalten. */
.bk .bk-head__title[tabindex='-1']:focus,
.bk .bk-head__title[tabindex='-1']:focus-visible,
.bk .bk-done__title[tabindex='-1']:focus,
.bk .bk-done__title[tabindex='-1']:focus-visible {
  outline: none;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bk *,
  .bk *::before,
  .bk *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Schmale Phones (≤375px) ---------- */
@media (max-width: 400px) {
  .bk {
    padding-left: var(--bk-space-4);
    padding-right: var(--bk-space-4);
  }
  .bk-service {
    padding: var(--bk-space-4);
    gap: var(--bk-space-3);
  }
  .bk-cal__grid {
    gap: 2px;
  }
  .bk-day {
    font-size: 0.85rem;
  }
}
