/* /physiotherapie/warteliste/ – eigener Aufbau: Tagesplan, Zeitleiste, große Aussage, Bento. Präfix wl- */
.sx-warteliste, .wl-zl, .wl-bento { --k-ink: #131722; --k-ink7: #3d4659; --k-ink5: #687184; --k-ink4: #9aa1ae; --k-hair: #e6e8ee; }

/* Status-Marken in den Tönen der App, auch außerhalb des Cockpit-Fensters */
.sx-warteliste .k-badge, .wl-zl .k-badge, .wl-bento .k-badge { padding: 2px 8px; font-size: 11px; background: #f0f3f9; color: var(--k-ink5); }
.sx-warteliste .k-badge.ok, .wl-zl .k-badge.ok, .wl-bento .k-badge.ok { background: #e6f4ec; color: #1a9b59; }
.sx-warteliste .k-badge.go, .wl-zl .k-badge.go, .wl-bento .k-badge.go { background: #eef0fb; color: #4f46e5; }
.sx-warteliste .k-badge.rot, .wl-zl .k-badge.rot, .wl-bento .k-badge.rot { background: #fef2f2; color: #b91c1c; }

/* ---------- Terminblock wie im Kalender: Farbe nach Leistung ---------- */
.wl-b { --rand: #3b74db; --grund: #ecf2fd; --text: #1c3d78; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 0 13px; border-radius: 8px; background: var(--grund); box-shadow: inset 3px 0 0 var(--rand); color: var(--text); font-size: 14px; text-align: left; white-space: nowrap; }
.wl-b.mt { --rand: #17998a; --grund: #e6f5f2; --text: #0d5249; }
.wl-b.mld { --rand: #4f9a3a; --grund: #eef6ea; --text: #2c5520; }
.wl-b.neu { --rand: #1a9b59; --grund: #e6f4ec; --text: #0f5c36; }
.wl-b b { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 0; }
.wl-b s { opacity: .6; text-decoration-thickness: 1.5px; }
.wl-b .k-grau { background: color-mix(in srgb, var(--rand) 26%, transparent); }
.wl-b .k-swap { justify-items: end; }
.wl-b b .k-swap { justify-items: start; }
.wl-b.neu .k-badge.ok { background: #fff; }
.wl-b.solo { width: 100%; min-height: 46px; flex-wrap: wrap; row-gap: 4px; padding-top: 8px; padding-bottom: 8px; }

/* ---------- Kopf: Tagesplan ---------- */
.wl-hero { --h: 78px; --kopf: 66px; --kw: 232px; --kh: 60px; --abst: 60px; position: relative; display: grid; grid-template-columns: minmax(0, 470px) var(--kw); justify-content: center; align-items: start; gap: var(--abst); padding-bottom: 44px; }
.wl-tag { padding: 14px 16px 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--k-hair), 0 30px 60px -34px rgba(19,23,34,.38); color: var(--k-ink); text-align: left; }
.wl-tag-h { display: flex; align-items: center; gap: 10px; height: 40px; margin-bottom: 12px; }
.wl-tag-h b { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.wl-tag-h time { margin-left: auto; font-size: 13px; color: var(--k-ink5); font-variant-numeric: tabular-nums; }
.wl-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eef0fb; color: #4f46e5; font-size: 13px; font-weight: 600; flex: 0 0 auto; }
.wl-plan { position: relative; height: calc(4 * var(--h)); margin-left: 50px; background: repeating-linear-gradient(180deg, #eef0f4 0 1px, transparent 1px calc(var(--h) / 2)); }
.wl-plan::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #eef0f4; }
.wl-plan > time { position: absolute; left: -50px; top: calc(var(--m) / 60 * var(--h) - 8px); width: 40px; font-size: 11.5px; line-height: 16px; color: var(--k-ink4); text-align: right; font-variant-numeric: tabular-nums; }
.wl-plan > .wl-b, .wl-slot { position: absolute; left: 6px; right: 0; top: calc(var(--m) / 60 * var(--h) + 2px); height: calc(var(--h) * 2 / 3 - 4px); }
.wl-slot { display: grid; }
.wl-l { grid-area: 1 / 1; }
.k-flow .wl-l[data-at] { transition: opacity .4s var(--ease), transform .5s var(--ease); }
.wl-frei { border-radius: 8px; border: 1.5px dashed #c3c8d6; background: #fafbfc; }
.k-flow .wl-b.neu[data-at] { transform: scale(.97); }
.k-flow .wl-b.neu[data-at].on { transform: none; box-shadow: inset 3px 0 0 var(--rand), 0 0 0 4px rgba(26,155,89,.14); }

/* die drei Wartenden */
.wl-warten { display: grid; gap: 12px; margin-top: calc(var(--kopf) + 2 * var(--h) + var(--h) / 3 - 1.5 * var(--kh) - 12px); }
.wl-k { display: flex; align-items: center; gap: 10px; min-height: var(--kh, 56px); padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--k-hair, #e6e8ee), 0 14px 26px -18px rgba(19,23,34,.4); color: var(--k-ink, #131722); text-align: left; }
.wl-k > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wl-k b { font-size: 14px; font-weight: 500; white-space: nowrap; }
.wl-k small { font-size: 12px; color: var(--k-ink5, #687184); }
.wl-ic { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; }
.wl-ic.tel { background: #eef0fb; color: #4f46e5; }
.wl-ic.wa { background: #e3f7ea; color: #1faa55; }
.wl-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wl-ic.wa svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.wl-ring { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #4f46e5; }
.k-flow .wl-ring[data-at].on { animation: wlRing 1.2s ease-out infinite; }
@keyframes wlRing { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }
.k-flow .wl-warten [data-at] > .wl-k { transform: translateX(14px); transition: transform .5s var(--ease); }
.k-flow .wl-warten [data-at].on > .wl-k { transform: none; }
.k-flow .wl-fly[data-at], .k-flow .wl-rest[data-at] { opacity: 1; }
.k-flow .wl-fly[data-at] { position: relative; z-index: 2; transition: transform .8s cubic-bezier(.55,0,.2,1), opacity .25s linear .55s; }
.k-flow .wl-fly[data-at].on { opacity: 0; transform: translateX(calc(-1 * (var(--abst) + 232px + (var(--kw) - 232px) / 2))) scale(.97); }
.k-flow .wl-rest[data-at] { transition: opacity .5s var(--ease); }
.k-flow .wl-rest[data-at].on { opacity: .5; }

@media (max-width: 880px) {
  .wl-hero { --h: 60px; --kopf: 60px; --kh: 54px; grid-template-columns: minmax(0, 470px); gap: 12px; padding-bottom: 22px; }
  .wl-tag { padding: 10px 12px 14px; border-radius: 16px; }
  .wl-tag-h { margin-bottom: 10px; }
  .wl-plan { margin-left: 42px; }
  .wl-plan > time { left: -44px; width: 36px; font-size: 11px; }
  .wl-b { font-size: 13.5px; padding: 0 9px 0 11px; }
  .wl-warten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 0; }
  .wl-warten .wl-k { flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px 10px 10px; }
  .wl-warten .wl-ic { width: 26px; height: 26px; }
  .wl-warten .wl-ic svg { width: 13px; height: 13px; }
  .wl-warten .wl-ic.wa svg { width: 15px; height: 15px; }
  .wl-warten .wl-k b { font-size: 13px; white-space: normal; }
  .wl-warten .wl-k b span { display: block; }
  .wl-warten .wl-k small { font-size: 11.5px; }
  .k-flow .wl-warten [data-at] > .wl-k { transform: translateY(12px); }
  .k-flow .wl-fly[data-at].on { transform: translate(24px, calc(-1 * (50% + 12px + 14px + 2 * var(--h) - var(--h) / 3))) scale(.97); }
}

/* ---------- Abschnitt 1: Zeitleiste ---------- */
.wl-zl { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.wl-zl li { display: flex; flex-direction: column; min-width: 0; }
.wl-zl-k { position: relative; display: flex; flex-direction: column; gap: 12px; padding-bottom: 22px; }
.wl-zl-k time { font-size: 15px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.wl-zl-k::after { content: ""; position: absolute; left: 6px; right: -20px; top: 40px; height: 2px; border-radius: 2px; background: #e6e3da; }
.wl-zl li:last-child .wl-zl-k::after { display: none; }
.wl-dot { position: relative; z-index: 2; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
.k-flow .wl-dot[data-at] { opacity: 1; background: #cfcbbf; transform: scale(.72); transition: transform .35s var(--ease), background .35s; }
.k-flow .wl-dot[data-at].on { background: var(--accent); transform: none; }
.wl-zl li:nth-child(4) .wl-dot { background: #1a9b59; }
.k-flow li:nth-child(4) .wl-dot[data-at]:not(.on) { background: #cfcbbf; }
.wl-ln { position: absolute; z-index: 1; left: 6px; right: -20px; top: 40px; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: 0 50%; }
.k-flow .wl-ln[data-at] { opacity: 1; transform: scaleX(0); transition: transform .75s linear; }
.k-flow .wl-ln[data-at].on { transform: none; }
.wl-zl-g { display: grid; place-items: center; min-height: 192px; padding: 18px 14px; border-radius: 18px; background: var(--paper-2); border: 1px solid var(--hair); }
.wl-zl-g > div { width: 100%; max-width: 230px; }
.k-flow .wl-zl-g[data-at] { transform: translateY(10px); }
.k-flow .wl-zl-g[data-at].on { transform: none; }
.wl-zl p { margin: 14px 2px 0; font-size: 16px; line-height: 1.4; color: var(--ink); text-wrap: balance; }
.wl-zl .wl-k { --kh: 52px; flex-wrap: wrap; row-gap: 8px; }
.wl-zl .wl-k .k-badge { margin-left: 42px; }
.wl-stapel { display: grid; gap: 6px; }
.wl-stapel .wl-k { --kh: 46px; padding: 6px 10px; box-shadow: 0 0 0 1px var(--k-hair); }
.wl-stapel .wl-k small { display: none; }
.wl-stapel .wl-ic { width: 28px; height: 28px; }
.wl-bub { position: relative; padding: 8px 10px 6px 11px; border-radius: 10px; border-top-left-radius: 2px; background: #fff; box-shadow: 0 1px .5px rgba(11,20,26,.13), 0 12px 24px -18px rgba(19,23,34,.35); font: 400 13.5px/1.36 -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; color: #111B21; text-align: left; }
.wl-bub time { display: block; margin-top: 2px; font-size: 10.5px; color: #667781; text-align: right; }
.wl-zl li:last-child .wl-zl-g { background: #EFEAE2; border-color: #e4ded3; }

@media (max-width: 1080px) {
  .wl-zl { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin: 28px auto 0; }
  .wl-zl li { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; padding-bottom: 26px; }
  .wl-zl li:last-child { padding-bottom: 0; }
  .wl-zl-k { grid-row: 1 / span 2; align-items: center; gap: 8px; padding: 0; margin-bottom: -26px; }
  .wl-zl-k time { font-size: 14px; line-height: 22px; }
  .wl-zl-k::after, .wl-ln { left: 50%; right: auto; top: 44px; bottom: 0; width: 2px; height: auto; margin-left: -1px; }
  .wl-ln { transform-origin: 50% 0; }
  .k-flow .wl-ln[data-at] { transform: scaleY(0); }
  .wl-zl p { order: -1; grid-column: 2; margin: 0 0 10px; font-size: 17px; line-height: 22px; text-wrap: wrap; }
  .wl-zl-g { grid-column: 2; min-height: 0; padding: 16px 14px; justify-items: start; border-radius: 16px; }
  .wl-zl-g > div { max-width: 260px; }
}

/* ---------- Abschnitt 2: große Aussage ---------- */
.wl-ruf { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; padding: 56px 72px; border-radius: 32px; border: 1px solid #e3e5f6; background: radial-gradient(700px 420px at 88% 10%, #e3e6fb, transparent 70%), linear-gradient(180deg, #f4f5fd, #eef0fb); overflow: hidden; }
body .wl-ruf h2:not(#_) { margin: 0; max-width: 9em; font-size: clamp(42px, 6.4vw, 84px); font-weight: 500; line-height: 1; letter-spacing: -.035em; color: var(--ink); }
.wl-ruf p { margin: 22px 0 0; max-width: 400px; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.wl-ruf-g .kp { width: 292px; }
@media (max-width: 880px) {
  .wl-ruf { grid-template-columns: 1fr; gap: 28px; padding: 32px 22px 30px; border-radius: 24px; }
  .wl-ruf p { margin-top: 14px; font-size: 17px; }
  .wl-ruf-g { display: grid; justify-items: center; }
  .wl-ruf-g .kp { width: 272px; }
}

/* ---------- Abschnitt 3: Bento ---------- */
.wl-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.wl-ka { display: flex; flex-direction: column; border-radius: 24px; border: 1px solid var(--hair); background: #fff; overflow: hidden; }
.wl-ka.a, .wl-ka.d { grid-column: span 7; }
.wl-ka.b, .wl-ka.c { grid-column: span 5; }
.wl-ka-g { flex: 1; display: grid; place-items: center; min-height: 250px; padding: 32px 28px; background: var(--paper-2); color: var(--k-ink); }
.wl-ka-g > .k-flow { width: 100%; display: grid; place-items: center; }
body .wl-ka h3:not(#_) { margin: 0; padding: 18px 24px 22px; font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: -.005em; color: var(--ink); }

/* Kachel: auf die Liste setzen */
.wl-akte { width: 100%; max-width: 460px; display: grid; gap: 10px; text-align: left; }
.wl-akte-h, .wl-eintrag, .wl-stell, .wl-lauf { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--k-hair), 0 14px 26px -20px rgba(19,23,34,.4); }
.wl-akte-h > span:nth-child(2), .wl-eintrag > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; margin-right: auto; }
.wl-akte b, .wl-lauf b { font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.wl-akte small { font-size: 12.5px; color: var(--k-ink5); }
.wl-akte .k-btn { flex: 0 0 auto; padding: 8px 12px; font-size: 13px; }
.wl-eintrag { margin-left: 42px; box-shadow: 0 0 0 1px #cfe9da, 0 14px 26px -20px rgba(19,23,34,.4); }
.wl-eintrag svg { width: 18px; height: 18px; fill: none; stroke: #1a9b59; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.k-flow .wl-eintrag[data-at] { transform: translateY(-10px); }
.k-flow .wl-eintrag[data-at].on { transform: none; }

/* Kachel: Wunschzeiten */
.wl-wunsch { display: grid; gap: 14px; justify-items: center; }
.wl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.wl-chips i { display: grid; place-items: center; min-width: 44px; height: 36px; padding: 0 13px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--k-hair); font-size: 14px; font-style: normal; font-weight: 500; color: var(--k-ink7); }
.wl-chips i[data-at] { background: #4f46e5; box-shadow: none; color: #fff; }
.k-flow .wl-chips i[data-at] { opacity: 1; background: #fff; box-shadow: 0 0 0 1px var(--k-hair); color: var(--k-ink7); transition: background .25s, color .25s, transform .25s var(--ease); }
.k-flow .wl-chips i[data-at].on { background: #4f46e5; box-shadow: none; color: #fff; animation: wlPop .3s var(--ease); }
@keyframes wlPop { 40% { transform: scale(1.1); } }

/* Kachel: Serie */
.wl-serie { width: 100%; max-width: 340px; padding: 12px 14px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--k-hair), 0 14px 26px -20px rgba(19,23,34,.4); text-align: left; }
.wl-wo { display: grid; grid-template-columns: 50px repeat(5, 1fr); align-items: center; gap: 5px; padding: 3px 0; }
.wl-wo time { font-size: 12px; color: var(--k-ink5); font-variant-numeric: tabular-nums; }
.wl-wo-h span { padding-bottom: 3px; font-size: 12px; font-weight: 500; color: var(--k-ink5); text-align: center; }
.wl-c { display: grid; place-items: center; height: 32px; border-radius: 7px; background: #f6f7f9; }
.wl-c i { width: 60%; height: 6px; border-radius: 4px; background: #e3e6ec; }
.wl-c i.kurz { width: 38%; }
.wl-c em { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 7px; background: #ecf2fd; box-shadow: inset 3px 0 0 #3b74db; color: #1c3d78; font-size: 12px; font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; }
.k-flow .wl-c em[data-at] { transform: scale(.8); }
.k-flow .wl-c em[data-at].on { transform: none; }
.wl-serie-f { display: flex; justify-content: flex-end; min-height: 21px; margin-top: 8px; }

/* Kachel: Angebot gilt zwei Stunden */
.wl-frist { width: 100%; max-width: 440px; display: grid; gap: 10px; text-align: left; }
.wl-stell { justify-content: space-between; font-size: 14px; color: var(--k-ink7); }
.wl-step { display: inline-flex; align-items: center; border-radius: 10px; box-shadow: 0 0 0 1px var(--k-hair); }
.wl-step i, .wl-step b { display: grid; place-items: center; width: 34px; height: 32px; font-style: normal; font-size: 16px; color: var(--k-ink5); }
.wl-step b { font-size: 14.5px; font-weight: 500; color: var(--k-ink); border-left: 1px solid var(--k-hair); border-right: 1px solid var(--k-hair); font-variant-numeric: tabular-nums; }
.wl-lauf { position: relative; flex-wrap: wrap; padding-bottom: 20px; overflow: hidden; }
.wl-lauf > span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.wl-uhr { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #eef0f4; }
.wl-uhr i { position: absolute; inset: 0; background: #4f46e5; transform-origin: 0 50%; transform: scaleX(0); }
.k-flow .wl-uhr i[data-at] { opacity: 1; transform: none; transition: transform 5.6s linear; }
.k-flow .wl-uhr i[data-at].on { transform: scaleX(0); }

@media (max-width: 880px) {
  .wl-bento { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .wl-ka.a, .wl-ka.b, .wl-ka.c, .wl-ka.d { grid-column: auto; }
  .wl-ka { border-radius: 20px; }
  .wl-ka-g { min-height: 0; padding: 24px 14px; }
  body .wl-ka h3:not(#_) { padding: 14px 18px 18px; font-size: 16.5px; }
  .wl-akte-h { flex-wrap: wrap; }
  .wl-akte .k-btn { margin-left: 42px; }
  .wl-eintrag { margin-left: 0; }
  .wl-chips i { min-width: 40px; height: 34px; padding: 0 11px; font-size: 13.5px; }
  .wl-chips { gap: 6px; }
}
@media (max-width: 380px) {
  .wl-chips { gap: 5px; }
  .wl-chips i { min-width: 36px; padding: 0 9px; font-size: 13px; }
}
