/* /physiotherapie/therapeuten-ausfall/ – eigener Aufbau: Terminplan, Kartenband, Vorher/Nachher, Aufgabe */
.sx-ausfall { padding-bottom: 44px; }
.sx-ausfall .kwin { max-width: 940px; margin: 0 auto; }
.sx-ausfall .kwin-main { position: relative; }
.sx-ausfall .kwin-head { min-height: 34px; }

/* Knopf „Ausfall melden“ oben rechts, darunter die Auswahl */
.af-melden { position: absolute; top: 20px; right: 22px; z-index: 5; }
.af-akt { justify-items: end; }
.af-akt .k-sw { white-space: nowrap; }
.af-akt .k-badge svg, .af-erg svg, .af-ok svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sx-ausfall .af-akt .k-badge { padding: 6px 12px; font-size: 12.5px; }
.af-laeuft { display: inline-flex; align-items: center; gap: 7px; min-height: 31px; font-size: 12.5px; font-weight: 500; color: #3d4659; white-space: nowrap; }
.af-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #d9dcf5; border-top-color: #4f46e5; animation: afSpin .8s linear infinite; }
@keyframes afSpin { to { transform: rotate(360deg); } }
.af-wahl { position: absolute; top: 40px; right: 0; display: grid; gap: 2px; width: 172px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e6e8ee, 0 18px 36px -14px rgba(19,23,34,.35); transform: translateY(-4px); pointer-events: none; }
.af-wahl.on { transform: none; }
.af-wahl span { position: relative; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; font-size: 13.5px; font-weight: 500; }
.af-wahl span.on { background: #eef0fb; color: #4f46e5; }
.af-wahl span i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eef0f4; font-style: normal; font-size: 11px; font-weight: 600; color: #687184; }
.af-wahl span.on i { background: #dfe2fb; color: #4f46e5; }
.af-wahl .k-tap { opacity: 0; }

/* Terminplan: Wochenstreifen, drei Spalten, Termine frei darüber gelegt */
.af-plan { --zw: 54px; --dh: 44px; --ch: 42px; --h: 42px; --sp: calc((100% - var(--zw)) / 3); position: relative; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e6e8ee; overflow: hidden; color: #131722; }
.af-tage { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: var(--dh); padding: 0 6px; border-bottom: 1px solid #eef0f4; }
.af-tage span { position: relative; justify-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 9px; font-size: 13px; font-weight: 500; color: #687184; white-space: nowrap; }
.af-tage span.on { background: #eef0fb; color: #4f46e5; font-weight: 600; }
.af-tage .af-do i { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #4f46e5; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; transform: scale(.3); }
.af-tage .af-do i.on { transform: none; transition: opacity .25s, transform .45s cubic-bezier(.3,1.6,.5,1); }
.af-kopf { display: grid; grid-template-columns: var(--zw) repeat(3, 1fr); height: var(--ch); border-bottom: 1px solid #e6e8ee; }
.af-kopf span { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-left: 1px solid #eef0f4; font-size: 13.5px; font-weight: 600; }
.af-kopf span:first-child { border-left: none; }
.af-kopf em { padding: 2px 8px; border-radius: 99px; background: #fef2f2; color: #b91c1c; font-style: normal; font-size: 11px; font-weight: 600; }
.af-raster { position: relative; display: grid; grid-template-columns: var(--zw) repeat(3, 1fr); height: calc(var(--h) * 8);
  background: repeating-linear-gradient(180deg, transparent 0 calc(var(--h) - 1px), #f5f6f9 calc(var(--h) - 1px) var(--h), transparent var(--h) calc(var(--h) * 2 - 1px), #e9ebf0 calc(var(--h) * 2 - 1px) calc(var(--h) * 2)); }
.af-raster > i { border-left: 1px solid #eef0f4; }
.af-raster > .af-aus { background: repeating-linear-gradient(135deg, #f6f7fa 0 7px, #e4e7ee 7px 8px); }
.af-z { display: grid; grid-auto-rows: calc(var(--h) * 2); background: #fff; }
.af-z time { padding: 4px 9px 0 0; font-size: 11px; color: #9aa1ae; text-align: right; font-variant-numeric: tabular-nums; }
.af-ev { position: absolute; z-index: 1; left: calc(var(--zw) + var(--c) * var(--sp) + 4px); top: calc(var(--dh) + var(--ch) + var(--s) * var(--h) + 2px); width: calc(var(--sp) - 7px); height: calc(var(--h) - 4px);
  display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 30px 0 9px; border-radius: 6px; border-left: 3px solid var(--r); background: var(--g); color: var(--x); overflow: hidden; }
.af-ev b { font-size: 12.5px; font-weight: 600; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-ev u { text-decoration: none; }
.af-ev s { display: none; text-decoration: none; }
.af-ev small { display: block; line-height: 7px; }
.af-ev.kg { --r: #3b74db; --g: #ecf2fd; --x: #1c3d78; }
.af-ev.mt { --r: #17998a; --g: #e6f5f2; --x: #0d5249; }
.af-ev.mld { --r: #4f9a3a; --g: #eef6ea; --x: #2c5520; }
.af-ev .k-grau { height: 6px; background: var(--r); opacity: .2; }
.af-ev b .k-grau { height: 7px; opacity: .3; }
.af-ev:not(.af-mv) { opacity: .75; }
.k-flow .af-mv[data-at] { opacity: 1; z-index: 3; transition: left .8s cubic-bezier(.3,.7,.2,1), top .8s cubic-bezier(.3,.7,.2,1), transform .8s cubic-bezier(.3,.7,.2,1), opacity .5s ease .3s, box-shadow .3s; }
.af-mv.on { left: calc(var(--zw) + var(--z) * var(--sp) + 4px); box-shadow: 0 0 0 2px rgba(79,70,229,.3), 0 8px 18px -8px rgba(19,23,34,.35); }
.k-flow .af-fly[data-at].on { left: calc(70% - var(--sp) / 2); top: calc((var(--dh) - var(--h)) / 2); transform: scale(.25); opacity: 0; }
.af-ok { position: absolute; right: 8px; top: 50%; display: grid; place-items: center; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #1a9b59; color: #fff; transform: scale(.4); }
.af-ok.on { transform: none; transition: opacity .2s, transform .4s cubic-bezier(.3,1.6,.5,1); }
.af-ok svg { width: 11px; height: 11px; stroke-width: 2.8; }

/* Kartenband: je Karte ein Bildschirm eines Patienten */
.af-sec .sec-head { margin-bottom: 40px; }
.af-band { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 30px; margin: 0 -4px; }
.af-band::-webkit-scrollbar { display: none; }
.af-karte { position: relative; flex: 1 0 264px; max-width: 300px; height: 420px; display: flex; flex-direction: column; border-radius: 34px; overflow: hidden; scroll-snap-align: center; background: #fff; box-shadow: 0 0 0 1px var(--hair), 0 26px 44px -30px rgba(20,22,27,.45);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; text-align: left; color: #000; }
.af-karte .kc { margin-top: 0; padding: 24px 16px 22px; }
.af-karte .kc-av { width: 46px; height: 46px; margin-bottom: 4px; font-size: 19px; }
.af-karte .kc-l { font-size: 13px; }
.af-karte .kc-wave { display: none; }
.af-karte .kc-talk { padding-top: 0; }
.af-karte .ksp { inset: 0; padding: 44px 10px 22px; }
.af-karte .kn-t span { -webkit-line-clamp: 7; }
.af-karte .kml { margin-top: 0; padding: 20px 16px 18px; }
.af-karte .kml-bar { margin: auto -16px 0; }
.af-karte .ksm-head { margin-top: 0; padding: 18px 12px 8px; }
.af-karte .ksm-m { max-width: 86%; font-size: 13.5px; }
.af-karte .ksm-bar { padding-bottom: 16px; }

/* Vorher/Nachher */
.af-vn { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.af-vn > div { display: flex; flex-direction: column; align-items: center; padding: 26px 28px 40px; border-radius: 26px; border: 1px solid var(--hair); background: var(--paper-2); }
.af-vn-b { background: linear-gradient(180deg, #F1F1FB, #EAEBF8) !important; border-color: #DEE0F2 !important; }
.af-vn h3 { align-self: flex-start; margin: 0 0 24px; font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.af-vn-b h3 { color: var(--accent-deep); }
.af-vn .k-flow { flex: 1; width: 100%; display: grid; place-items: center; }
.af-blatt { width: 100%; max-width: 400px; padding: 20px 22px 14px; background: #fffefa; box-shadow: 0 1px 0 #e3dfd2, 0 22px 40px -26px rgba(60,50,20,.45); transform: rotate(-1.2deg); text-align: left; color: #23262d; }
.af-blatt-h { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; border-bottom: 1.5px solid #23262d; }
.af-blatt-h b { font-size: 16px; font-weight: 700; }
.af-blatt-h span { font-size: 12.5px; color: #6c707a; font-variant-numeric: tabular-nums; }
.af-blatt > div:not(.af-blatt-h) { display: grid; grid-template-columns: 46px 1fr auto 26px; align-items: center; gap: 10px; height: 35px; border-bottom: 1px solid #ece8dc; font-size: 13.5px; }
.af-blatt > div:last-child { border-bottom: none; }
.af-blatt time { color: #6c707a; font-variant-numeric: tabular-nums; }
.af-blatt b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-blatt .k-grau { background: #e8e4d8; }

.af-blatt > div > i:last-child { display: block; width: 24px; height: 20px; }
.af-stift { width: 24px; height: 20px; fill: none; stroke: #2a48b5; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.af-stift path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.on > .af-stift path { stroke-dashoffset: 0; transition: stroke-dashoffset .55s ease-out; }

.af-dlg { display: grid; gap: 6px; width: 100%; max-width: 400px; padding: 18px 20px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #e6e8ee, 0 30px 60px -30px rgba(19,23,34,.4); text-align: left; color: #131722; }
.af-dlg-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.af-dlg-h b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.af-dlg-h i { position: relative; width: 16px; height: 16px; }
.af-dlg-h i::before, .af-dlg-h i::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 1.6px; border-radius: 1px; background: #9aa1ae; transform: rotate(45deg); }
.af-dlg-h i::after { transform: rotate(-45deg); }
.af-dlg label { display: block; margin-top: 8px; font-size: 11px; font-weight: 500; color: #687184; }
.af-in { position: relative; display: block; padding: 9px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px #e6e8ee; font-size: 14px; }
.af-in.sel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.6px solid #687184; border-bottom: 1.6px solid #687184; transform: rotate(45deg); }
.af-seg { display: inline-flex; flex-wrap: wrap; align-items: center; justify-self: start; padding: 2px; border-radius: 12px; box-shadow: inset 0 0 0 1px #e6e8ee; }
.af-seg i { padding: 5px 11px; border-radius: 10px; font-style: normal; font-size: 13px; color: #687184; white-space: nowrap; }
.af-seg i.on { background: #eef0fb; color: #4f46e5; font-weight: 600; }
.af-dlg p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.4; color: #3d4659; }
.af-dlg p .k-swap { display: grid; }
.af-erg { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #1a9b59; }
.af-erg svg { flex: 0 0 auto; width: 14px; height: 14px; }
.af-dlg-f { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f3f9; }
.af-dlg .k-btn { border-radius: 12px; background: #4f46e5; font-weight: 500; }
.af-dlg .k-btn.hell { background: #fff; color: #3d4659; border-color: #e6e8ee; }

/* Große Aussage mit der Aufgabe */
.af-offen .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.af-offen h2 { max-width: 15em; margin: 0 0 44px; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.08; text-wrap: balance; }
.af-aufg { display: grid; gap: 10px; width: 100%; max-width: 480px; }
.af-task { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #e6e8ee, 0 24px 50px -28px rgba(19,23,34,.4); text-align: left; color: #131722; }
.af-task > i { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 1.8px solid #c5cad6; }
.af-task b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.af-task span { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.5; color: #687184; }
.af-task div div { display: flex; gap: 6px; margin-top: 10px; }
.af-task .k-badge { padding: 2px 8px; font-size: 11px; background: #f0f3f9; color: #687184; }
.af-task .k-badge.warn { background: #fff7ed; color: #b5740f; }
.af-leer { width: 92%; justify-self: center; padding: 13px 18px; box-shadow: 0 0 0 1px #e6e8ee; opacity: .7; }
.af-leer > i { margin-top: 0; }

@media (max-width: 1000px) {
  .af-blatt .k-grau { max-width: 48px; }
  .af-seg i:last-child { display: none; }
}
@media (max-width: 720px) {
  .sx-ausfall { padding-bottom: 14px; }
  .af-melden { top: 12px; right: 14px; }
  .af-plan { --zw: 30px; --dh: 40px; --ch: 36px; --h: 36px; }
  .af-tage { padding: 0 2px; }
  .af-tage span { padding: 4px 6px; font-size: 11.5px; gap: 4px; }
  .af-tage .af-do i { width: 15px; height: 15px; font-size: 9.5px; }
  .af-kopf span { padding: 0 7px; gap: 5px; font-size: 12.5px; }
  .af-kopf em { padding: 1px 6px; font-size: 10px; }
  .af-z time { padding-right: 5px; font-size: 10px; }
  .af-z time span { display: none; }
  .af-ev { left: calc(var(--zw) + var(--c) * var(--sp) + 2px); width: calc(var(--sp) - 4px); padding: 0 6px; border-left-width: 2.5px; }
  .af-mv.on { left: calc(var(--zw) + var(--z) * var(--sp) + 2px); }
  .af-ev u { display: none; }
  .af-ev s { display: inline; }
  .af-ev b { font-size: 11.5px; }
  .af-ok { right: 4px; width: 15px; height: 15px; margin-top: -7.5px; }
  .af-ok svg { width: 9px; height: 9px; }
  .af-mv { padding-right: 20px; }
  .af-sec .sec-head { margin-bottom: 24px; }
  .af-band { gap: 14px; margin: 0 -20px; padding: 4px 20px 26px; scroll-padding: 0 20px; }
  .af-karte { flex: 0 0 264px; height: 400px; }
  .af-vn { grid-template-columns: 1fr; gap: 14px; }
  .af-vn > div { padding: 18px 14px 26px; border-radius: 20px; }
  .af-vn h3 { margin-bottom: 18px; padding-left: 4px; }
  .af-blatt { padding: 16px 16px 10px; }
  .af-blatt > div:not(.af-blatt-h) { grid-template-columns: 42px 1fr auto 24px; gap: 8px; }
  .af-seg i { padding: 5px 8px; font-size: 12.5px; }
  .af-seg i:last-child { display: none; }
  .af-offen h2 { margin-bottom: 28px; }
}
