/* /features/hkp/ – Farben und Bezeichnungen aus walletpass/frontend/src/pages/hkp */
.hk-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-style: normal; color: #3d4659; white-space: nowrap; }
.hk-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.hk-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; font-style: normal; white-space: nowrap; }
.hk-chip svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hk-chip.ok { background: #e7f6ef; color: #1a9b59; }
.hk-chip.leer { background: #f3f4f8; color: #687184; }
.hk-chip.warn { background: #fef4e6; color: #b5740f; }
.hk-chips.k-swap > .k-sw { transform: none; }

/* ---------- Kopf: das Board allein. Die Kacheln liegen über den Spalten und wandern von links nach rechts. */
.sx-hkp.sx-stage { padding-bottom: 0; }
.sx-hkp .kwin { max-width: 1020px; margin: 0 auto; border-radius: 14px 14px 0 0; }
.hk-board { --h: 118px; --rg: 8px; --pad: 10px; --head: 32px; --gap: 12px;
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.hk-col { min-width: 0; padding: var(--pad); border-radius: 12px; background: #f0f3f9;
  min-height: calc(2 * var(--pad) + var(--head) + 3 * var(--h) + 2 * var(--rg)); }
.hk-col-h { display: flex; align-items: center; gap: 7px; height: var(--head); margin: 0; padding: 0 2px 8px; }
.hk-col-h i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.hk-col-h b { font-size: 12px; font-weight: 700; line-height: 1.2; color: #3d4659; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-n { margin-left: auto; min-width: 20px; padding: 1px 0; border-radius: 99px; background: #fff; font-size: 11px; font-weight: 600; color: #687184; font-variant-numeric: tabular-nums; justify-items: center; }
.hk-c { position: absolute; z-index: 2; left: var(--pad); top: calc(var(--pad) + var(--head) + var(--r) * (var(--h) + var(--rg)));
  width: calc((100% - 2 * var(--gap)) / 3 - 2 * var(--pad)); height: var(--h); }
.hk-m { height: 100%; }
.k-flow .hk-m[data-at] { opacity: 1; transition: transform .85s cubic-bezier(.45,.05,.2,1); }
.hk-m.up.on { transform: translateY(calc(-100% - var(--rg))); }
.hk-m.r1.on { transform: translateX(calc(100% + 2 * var(--pad) + var(--gap))); }
.hk-m.r2.on { transform: translate(calc(100% + 2 * var(--pad) + var(--gap)), calc(var(--dy) * (100% + var(--rg)))); }
.k-flow .hk-neu[data-at] { transform: translateY(-10px); }
.k-flow .hk-neu[data-at].on { transform: none; }
.hk-bk { height: 100%; padding: 11px 12px; border-radius: 12px; background: #fff; border: 1px solid #e6e8ee; box-shadow: 0 8px 18px -14px rgba(19,23,34,.35); color: #131722; text-align: left; }
.hk-bk p { margin: 0; }
.hk-bk-n { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.hk-bk-n b { font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.hk-bk-n small { font-size: 10px; }
.hk-bk-e { margin-top: 2px !important; font-size: 13px; line-height: 1.3; }
.hk-bk .hk-chips { display: grid; justify-items: start; margin-top: 7px; }
.hk-bk-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px !important; font-size: 12px; }
.hk-bk-f span { min-width: 0; overflow: hidden; white-space: nowrap; }
.hk-bk-f i { display: grid; place-items: center; height: 24px; min-width: 24px; padding: 0 5px; border-radius: 999px; background: #eef0fb; color: #4f46e5; font-size: 11px; font-weight: 600; font-style: normal; flex: 0 0 auto; }

/* ---------- Abschnitt 1: große Aussage, darunter der Stapel */
.hk-aussage .wrap { text-align: center; }
.hk-aussage h2 { max-width: 920px; margin: 0 auto; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.hk-aussage .wrap > p { max-width: 520px; margin: 40px auto 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); text-wrap: balance; }
.hk-stapel { --w: 300px; --dx: 380px; --off: 62px; --base: -62px; --st: 8px;
  position: relative; width: 680px; max-width: 100%; height: 200px; margin: 56px auto 0; text-align: left; }
.hk-ziel { position: absolute; left: var(--dx); top: calc(var(--j) * 52px); width: var(--w); height: 44px; border-radius: 12px; border: 1.5px dashed #D9D6CC; }
.hk-sk { position: absolute; left: 0; top: calc(var(--off) + var(--k) * var(--st)); z-index: var(--k); width: var(--w); height: 44px; transform: rotate(var(--rot, 0deg)); }
.hk-sk:nth-of-type(1) { --rot: -1.6deg; } .hk-sk:nth-of-type(2) { --rot: 1.3deg; } .hk-sk:nth-of-type(3) { --rot: -.9deg; }
.hk-sk:nth-of-type(4) { --rot: 1.5deg; } .hk-sk:nth-of-type(5) { --rot: -.6deg; }
.k-flow .hk-sk[data-at] { opacity: 1; transition: transform .95s cubic-bezier(.45,.05,.2,1); }
.k-flow .hk-sk[data-at].on { z-index: calc(20 - var(--k)); transform: translate(var(--dx), calc(var(--base) + (4 - var(--k)) * 52px - var(--k) * var(--st))); }
.hk-sk-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; padding: 0 12px 0 14px; border-radius: 12px; background: #fff; border: 1px solid #e6e8ee; box-shadow: 0 10px 22px -14px rgba(19,23,34,.4); color: #131722; }
.hk-sk-in b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.hk-sk .hk-chips { justify-items: end; }

/* ---------- Abschnitt 2: ein iPhone mit der Seite „Ihre Behandlungstermine“ */
.hk-handy-in { display: grid; grid-template-columns: minmax(0, 420px) auto; justify-content: center; align-items: center; gap: 96px; padding: 64px 48px 0; border-radius: 32px;
  background: linear-gradient(180deg, #EEF0FB, #E3E6F8); overflow: hidden; }
.hk-handy-t h2 { margin: 0 0 16px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; text-wrap: balance; }
.hk-handy-t p { max-width: 400px; margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.hk-handy .kp { margin-bottom: -60px; }
.hk-tel .ksp { padding-bottom: 96px; }
.hk-tel .kn { position: relative; grid-template-columns: 34px 1fr; }
.hk-tel .kn time { position: absolute; top: 10px; right: 12px; }
.hk-tel .kn-t b { padding-right: 34px; }
.hk-tel .kn-t span { -webkit-line-clamp: 4; }
.hk-tel .kp-status, .hk-tel .kp-home { transition: color .3s, background .3s; }
.hk-tel .kp-screen:has(.hk-pg.on) .kp-status { color: #000; }
.hk-tel .kp-screen:has(.hk-pg.on) .kp-home { background: #000; }
.hk-pg { position: absolute; inset: -46px 0 0; z-index: 4; display: flex; flex-direction: column; padding-top: 46px; background: #fff; transform: translateY(100%); pointer-events: none; text-align: left; color: #131722; }
.k-flow .hk-pg[data-at] { opacity: 1; transition: transform .42s cubic-bezier(.2,.8,.2,1); }
.hk-pg.on { transform: none; }
.hk-pg-in { padding: 18px 14px 0; }
.hk-pg-h { display: flex; align-items: center; gap: 10px; }
.hk-pg-h i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #eef0fb; color: #4f46e5; flex: 0 0 auto; }
.hk-pg-h svg, .hk-pg-btn svg, .hk-pg-ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.hk-pg-h b { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.hk-pg-h small { display: block; font-size: 11.5px; color: #687184; }
.hk-pg-in > p { margin: 13px 0 12px; font-size: 13px; line-height: 1.45; color: #3d4659; }
.hk-pg-s { margin-bottom: 7px; padding: 9px 12px; border-radius: 11px; box-shadow: 0 0 0 1px #e6e8ee; }
.k-flow .hk-pg-s[data-at] { transform: translateY(6px); }
.k-flow .hk-pg-s[data-at].on { transform: none; }
.hk-pg-s b { display: block; font-size: 13px; font-weight: 500; }
.hk-pg-s small { display: block; margin-top: 1px; font-size: 11px; color: #9aa1ae; }
.hk-pg-st { display: grid; margin-top: 14px; }
.hk-pg-a { grid-area: 1 / 1; display: grid; gap: 7px; align-content: start; }
.hk-pg-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 11px; background: #4f46e5; color: #fff; font-size: 13.5px; font-weight: 600; }
.hk-pg-btn.hell { background: #fff; color: #3d4659; box-shadow: 0 0 0 1px #e6e8ee; font-weight: 500; }
.hk-pg-ok { display: flex; align-items: flex-start; gap: 8px; padding: 12px 13px; border-radius: 11px; background: #e7f6ef; color: #1a9b59; font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.hk-pg-ok svg { margin-top: 1px; }

/* ---------- Abschnitt 3: Umschalter mit den drei Antworten */
.hk-wahl { display: flex; justify-content: center; gap: 4px; width: fit-content; margin: 28px auto 0; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--hair); }
.hk-wahl button { padding: 9px 18px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.hk-wahl button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,22,27,.14); }
.hk-pick { display: none; }
.hk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hk-panel { position: relative; width: 520px; max-width: 100%; margin: 40px auto 0; }
.hk-case { display: none; }
.hk-case.on { display: block; }
.hk-fall { border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #e6e8ee, 0 30px 60px -34px rgba(19,23,34,.35); overflow: hidden; text-align: left; color: #131722; font-size: 14px; }
.hk-fall p { margin: 0; }
.hk-fall-h { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; padding: 18px 20px 14px; }
.hk-fall-h b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.hk-fall-h small { margin-left: 8px; font-size: 11px; }
.hk-fall-s { display: contents; }
.hk-fall-s > .k-swap, .hk-fall-s > .hk-st { grid-column: 1; grid-row: 2; }
.hk-fall-s > span:last-child { grid-column: 2; grid-row: 1; font-size: 14px; }
.hk-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid #e6e8ee; }
.hk-tabs span { padding: 8px 9px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 13px; color: #687184; white-space: nowrap; }
.hk-tabs span.on { border-color: #4f46e5; color: #4f46e5; font-weight: 600; }
.hk-fall-b { min-height: 292px; padding: 18px 20px 20px; }
.hk-e { position: relative; display: grid; grid-template-columns: 28px 1fr auto; align-items: start; gap: 12px; padding-bottom: 16px; }
.hk-e:last-child { padding-bottom: 0; }
.hk-e::before { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: #e6e8ee; }
.hk-e:last-child::before { display: none; }
.k-flow .hk-e[data-at] { transform: translateY(6px); }
.k-flow .hk-e[data-at].on { transform: none; }
.hk-e > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f0f3f9; color: #687184; }
.hk-e > i svg, .hk-task > i svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hk-e.ok > i { background: #e7f6ef; color: #1a9b59; }
.hk-e.warn > i { background: #fef4e6; color: #b5740f; }
.hk-e > span { min-width: 0; padding-top: 4px; }
.hk-e b { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; }
.hk-e small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: #687184; }
.hk-e time { padding-top: 5px; font-size: 11px; }
.hk-task { position: absolute; z-index: 3; right: -72px; bottom: 26px; display: flex; align-items: center; gap: 11px; width: 330px; max-width: 100%; padding: 13px 14px; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px #e6e8ee, 0 22px 44px -18px rgba(19,23,34,.4); text-align: left; color: #131722; }
.k-flow .hk-task[data-at] { transform: translateY(14px) scale(.97); }
.k-flow .hk-task[data-at].on { transform: none; }
.hk-task > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #fef4e6; color: #b5740f; flex: 0 0 auto; }
.hk-task > span { flex: 1; min-width: 0; }
.hk-task b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.hk-task small { display: block; margin-top: 2px; font-size: 12px; color: #687184; }
.hk-task em { display: grid; place-items: center; height: 24px; min-width: 24px; padding: 0 5px; border-radius: 999px; background: #eef0fb; color: #4f46e5; font-size: 11px; font-weight: 600; font-style: normal; flex: 0 0 auto; }
.hk-satz { max-width: 520px; margin: 32px auto 0; text-align: center; }
.hk-satz p { display: none; margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); text-wrap: balance; }
.hk-satz p.on { display: block; }

@media (max-width: 960px) {
  .hk-handy-in { padding: 48px 40px 0; gap: 32px; }
  .hk-task { right: -16px; }
}
@media (max-width: 720px) {
  /* Board: Spalten untereinander, die Kacheln wandern nach unten */
  .hk-board { --h: 42px; --rg: 6px; --pad: 8px; --head: 28px; --gap: 8px; grid-template-columns: minmax(0, 1fr);
    --d1: calc(2 * var(--pad) + var(--head) + 3 * var(--h) + 2 * var(--rg) + var(--gap));
    --d2: calc(2 * var(--pad) + var(--head) + var(--h) + var(--gap)); }
  .hk-col:nth-child(2) { min-height: calc(2 * var(--pad) + var(--head) + var(--h)); }
  .hk-c { width: calc(100% - 2 * var(--pad)); }
  .hk-m.r1.on { transform: translateY(var(--d1)); }
  .hk-m.r2.on { transform: translateY(calc(var(--d2) + var(--dy) * (100% + var(--rg)))); }
  .hk-bk { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px 0 12px; border-radius: 10px; }
  .hk-bk-n b { font-size: 13.5px; }
  .hk-bk-n small, .hk-bk-e, .hk-bk-f { display: none; }
  .hk-bk .hk-chips { margin: 0; justify-items: end; }

  .hk-aussage .wrap > p { margin-top: 28px; font-size: 16.5px; }
  .hk-stapel { --w: 100%; --dx: 0px; --off: 0px; --base: 110px; width: 300px; height: 310px; margin-top: 36px; }
  .hk-ziel { left: 0; top: calc(110px + var(--j) * 52px); }

  .hk-handy-in { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 28px; padding: 36px 18px 0; border-radius: 24px; text-align: center; }
  .hk-handy-t p { font-size: 16.5px; }
  .hk-handy .kp { width: 280px; margin-bottom: -44px; }
  .hk-tel .ksp { padding-bottom: 78px; }
  .hk-antwort .sec-head:not(#_):not(#__) { text-align: center; }

  .hk-wahl { display: none; }
  .hk-pick { position: relative; display: block; margin: 22px auto 0; max-width: 340px; }
  .hk-pick select { width: 100%; height: 50px; padding: 0 44px 0 16px; border: 1px solid var(--hair); border-radius: 14px; background: #fff; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); appearance: none; -webkit-appearance: none; }
  .hk-pick::after { content: ""; position: absolute; right: 19px; top: 19px; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
  .hk-panel { margin-top: 24px; }
  .hk-case { min-height: 400px; }
  .hk-fall-h { padding: 15px 15px 12px; }
  .hk-tabs { padding: 0 8px; }
  .hk-tabs span { padding: 8px 7px; font-size: 12.5px; }
  .hk-fall-b { min-height: 0; padding: 15px 15px 18px; }
  .hk-e { gap: 10px; }
  .hk-task { position: relative; right: auto; bottom: auto; width: auto; margin: -10px 10px 0; }
  .hk-satz { margin-top: 22px; }
  .hk-satz p { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .k-flow .hk-m[data-at], .k-flow .hk-sk[data-at], .k-flow .hk-pg[data-at] { transition: none; }
}
