/* /features/telefon/ – seiteneigener Aufbau und Grafiken (Präfix tf-) */

/* ---------- Kopf: ein iPhone, daneben die Kalenderkarte ---------- */
.sx-telefon { padding: 56px 40px 0; }
.tf-hero { position: relative; width: 330px; max-width: 100%; margin: 0 auto; padding-bottom: 56px; }
.tf-hero::before { content: ""; position: absolute; left: 50%; top: 46%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 78px, rgba(79,70,229,.09) 78px 79.500px);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%); mask-image: radial-gradient(circle, #000 20%, transparent 68%); }
.tf-phone { width: 100%; }
.tf-phone .kp-screen { position: absolute; inset: 9px; height: auto; }
.tf-phone .kc-talk { -webkit-mask-image: linear-gradient(transparent, #000 26px); mask-image: linear-gradient(transparent, #000 26px); }
.tf-hero .kc p.kc-l { font-size: 14px; padding: 8px 12px; border-radius: 14px; }
.tf-hero .kc p.kc-done { font-size: 13px; padding: 7px 14px; }
.tf-hero .kc-av { width: 60px; height: 60px; font-size: 24px; }
.tf-hero .kc-top b { font-size: 21px; }

.tf-kal { position: absolute; z-index: 3; left: calc(100% - 18px); bottom: 170px; width: 264px; padding: 14px 14px 12px; border-radius: 18px; background: #fff; text-align: left;
  box-shadow: 0 0 0 1px rgba(19,23,34,.06), 0 30px 60px -24px rgba(19,23,34,.4), 0 10px 20px -12px rgba(19,23,34,.2); font-family: var(--sans); color: #131722; }
.tf-kal-h { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid #eceef3; }
.tf-kal-h > span:last-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tf-kal-h b { font-size: 15.5px; font-weight: 600; line-height: 1.1; }
.tf-kal-h small { line-height: 1; font-size: 12px; }
.tf-tag { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 40px; height: 42px; border-radius: 10px; background: #eef0fb; color: #4f46e5; flex: 0 0 auto; line-height: 1; }
.tf-tag small { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tf-tag b { margin-top: 3px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.tf-kal-b { display: grid; gap: 5px; padding-top: 10px; }
.tf-kal-r { display: grid; grid-template-columns: 36px 1fr; align-items: stretch; gap: 6px; height: 46px; }
.tf-kal-r:first-child, .tf-kal-r:last-child { height: 30px; }
.tf-kal-r time { padding-top: 2px; font-size: 11px; color: #9aa1ae; font-variant-numeric: tabular-nums; text-align: right; }
.tf-kal-r > i { border-radius: 8px; background: #eef0f4; }
.tf-kal-r > i.k { width: 62%; }
.tf-slot { position: relative; border-radius: 9px; background: repeating-linear-gradient(135deg, #f6f7fa 0 6px, #fff 6px 12px); }
.tf-frei { position: absolute; inset: 0; border-radius: 9px; border: 1.500px dashed #4f46e5; background: #eef0fb; }
.k-flow .tf-neu[data-at] { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 34px 0 12px; border-radius: 9px; background: #4f46e5; color: #fff;
  box-shadow: 0 12px 22px -10px rgba(79,70,229,.7); transform: scale(.92); transition: opacity .3s var(--ease), transform .5s cubic-bezier(.2,1.4,.4,1); }
.k-flow .tf-neu[data-at].on { transform: none; }
.tf-neu b { font-size: 13.5px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.tf-neu small { font-size: 11.5px; line-height: 1.1; opacity: .8; }
.tf-neu svg { position: absolute; right: 10px; top: 50%; width: 18px; height: 18px; margin-top: -9px; padding: 3px; border-radius: 50%; background: rgba(255,255,255,.22); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Abschnitt 1: Was möchte der Anrufer? ---------- */
.tf-faelle .sec-head p { margin-top: 14px; }
.tf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tf-tabs { display: flex; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 34px auto 0; padding: 5px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--hair); }
.tf-tabs button { padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; background: none; border: 0; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tf-tabs button:hover { color: var(--ink); }
.tf-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 6px 18px -10px rgba(20,22,27,.35); }
.tf-pick { display: none; }
.tf-panel { margin: 28px auto 0; max-width: 980px; border-radius: 28px; border: 1px solid var(--hair); background: linear-gradient(180deg, #F6F4EE, #EFECE4); overflow: hidden; }
.tf-case { display: none; }
.tf-case.on { display: block; }
.tf-flow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 40px; min-height: 380px; padding: 40px 48px; }
.tf-call { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(19,23,34,.05), 0 24px 48px -28px rgba(19,23,34,.35); text-align: left; }
.tf-call-h { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid #eceef3; }
.tf-call-h b { font-size: 15.5px; font-weight: 600; color: #131722; }
.tf-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #eef0f4; color: #687184; font-size: 13px; font-weight: 600; flex: 0 0 auto; }
.tf-av svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tf-wave { display: flex; align-items: center; gap: 3px; height: 16px; margin-left: auto; }
.tf-wave i { width: 3px; height: calc(var(--h) * 1px); border-radius: 2px; background: #4f46e5; animation: kcWave 1s ease-in-out infinite alternate; animation-delay: calc(var(--h) * -70ms); }
.tf-panel .tf-l { display: flex; align-items: flex-end; gap: 7px; max-width: 86%; margin: 0; font-size: 15px; line-height: 1.4; color: #131722; }
.tf-l span { padding: 9px 13px; border-radius: 16px; border-bottom-left-radius: 5px; background: #f1f2f6; }
.tf-l.p { align-self: flex-end; flex-direction: row-reverse; }
.tf-l.p span { border-radius: 16px; border-bottom-right-radius: 5px; background: #4f46e5; color: #fff; }
.k-flow .tf-l[data-at] { transform: translateY(8px); }
.k-flow .tf-l[data-at].on { transform: none; }

.tf-res { width: 100%; max-width: 320px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(19,23,34,.05), 0 24px 48px -28px rgba(19,23,34,.35); overflow: hidden; }
.tf-res-f { display: flex; padding: 12px 16px; border-top: 1px solid #eceef3; background: #fbfbfd; }
.tf-res .k-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.k-flow .tf-res[data-at] { transform: translateY(10px) scale(.97); transform-origin: left center; transition: opacity .4s var(--ease), transform .55s cubic-bezier(.2,1.3,.4,1); }
.k-flow .tf-res[data-at].on { transform: none; }
.tf-res .k-badge { padding: 6px 13px; font-size: 13.5px; }
.tf-res .k-badge.go { background: #eef0fb; color: #4f46e5; }
.tf-res .k-badge.leer { background: #e9e6dd; color: #50545e; }
.tf-card { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; text-align: left; color: #131722; }
.tf-card .tf-tag { width: 46px; height: 48px; border-radius: 12px; }
.tf-card .tf-tag b { font-size: 20px; }
.tf-card small { font-size: 13px; line-height: 1; }
.tf-dt { display: flex; align-items: center; gap: 11px; }
.tf-dt > b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.tf-dt.alt .tf-tag { background: #f0f1f4; color: #9aa1ae; }
.tf-dt.alt > b { color: #9aa1ae; text-decoration: line-through; text-decoration-thickness: 1.500px; }
.tf-zwei { gap: 8px; }
.tf-pf { display: grid; place-items: center; width: 40px; height: 18px; }
.tf-pf svg { width: 16px; height: 16px; fill: none; stroke: #9aa1ae; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
.tf-zeit { gap: 0; padding: 8px 16px; }
.tf-zeit div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 15px; }
.tf-zeit div + div { border-top: 1px solid #eceef3; }
.tf-zeit span { color: #687184; }
.tf-zeit b { font-weight: 600; }
.tf-zeit .on b { color: #4f46e5; }
.tf-task { flex-direction: row; align-items: flex-start; }
.tf-task > i { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid #c5cad6; flex: 0 0 auto; }
.tf-task b { display: block; font-size: 15px; font-weight: 600; }
.tf-panel .tf-task p { margin: 5px 0 10px; font-size: 13.5px; line-height: 1.45; color: #3d4659; }

/* ---------- Abschnitt 2: Anrufliste über die volle Breite ---------- */
.tf-liste-f { margin-top: 40px; }
.tf-liste-f .kwin { max-width: 1040px; margin: 0 auto; }
.tf-liste { border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e6e8ee; padding: 0 20px; }
.tf-liste-h { padding: 14px 0 12px; font-size: 14px; font-weight: 600; color: #131722; border-bottom: 1px solid #e6e8ee; }
.tf-liste-b { height: 452px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 70px), transparent); mask-image: linear-gradient(#000 calc(100% - 70px), transparent); }
.tf-z { display: grid; grid-template-rows: 1fr; }
.k-flow .tf-z[data-at] { grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease), opacity .5s var(--ease) .15s; }
.k-flow .tf-z[data-at].on { grid-template-rows: 1fr; }
.tf-z-in { min-height: 0; overflow: hidden; }
.tf-z-h { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding-top: 14px; }
.tf-z-h b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.tf-z-h small { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #687184; white-space: nowrap; overflow: hidden; }
.tf-st { font-size: 13.5px; font-weight: 600; font-style: normal; color: #4f46e5; white-space: nowrap; justify-items: end; }
.tf-st .k-sw:first-child { color: #687184; }
.tf-st .k-sw:first-child::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1a9b59; animation: tfPuls 1s ease-in-out infinite alternate; }
@keyframes tfPuls { to { opacity: .25; } }
.tf-z-in { border-bottom: 1px solid #eceef3; }
.tf-liste .tf-z p { margin: 5px 0 0; padding-bottom: 14px; font-size: 13.5px; line-height: 1.45; color: #3d4659; }
.tf-out { width: 13px; height: 13px; fill: none; stroke: #9aa1ae; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---------- Abschnitt 3: Praxishub ruft selbst an ---------- */
.tf-raus-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; padding: 56px 72px 0 64px; border-radius: 32px; border: 1px solid var(--hair); overflow: hidden;
  background: radial-gradient(620px 420px at 82% 30%, rgba(79,70,229,.13), transparent 70%), linear-gradient(180deg, #F6F4EE, #EFECE4); }
.tf-raus-t { padding-bottom: 56px; }
.tf-raus h2 { max-width: 560px; margin: 0 0 18px; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.tf-raus-t > p { max-width: 480px; margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.tf-anl { max-width: 380px; margin-top: 30px; padding: 2px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(19,23,34,.05), 0 20px 40px -28px rgba(19,23,34,.35); }
.tf-anl div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 14.5px; }
.tf-anl div + div { border-top: 1px solid #F0EEE7; }
.tf-anl b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tf-raus-g { align-self: end; width: 300px; margin-bottom: -34px; }
.tf-raus-g .k-flow { width: 100%; }

@media (max-width: 960px) {
  .tf-kal { left: calc(100% - 60px); bottom: 60px; width: 240px; }
  .tf-flow { gap: 28px; padding: 32px; }
  .tf-raus-in { padding: 44px 40px 0; gap: 32px; }
  .tf-raus-g { width: 280px; }
}

@media (max-width: 720px) {
  .sx-telefon { padding: 28px 14px 0; }
  .tf-hero { width: 280px; padding-bottom: 26px; }
  .tf-hero::before { width: 700px; height: 700px; margin: -350px 0 0 -350px; }
  .tf-hero .kc p.kc-l { font-size: 13px; padding: 7px 10px; }
  .tf-hero .kc-av { width: 54px; height: 54px; font-size: 22px; }
  .tf-hero .kc-top b { font-size: 19px; }
  .tf-kal { position: relative; left: auto; bottom: auto; width: auto; margin: -34px -6px 0; }
  .tf-kal-r:last-child { display: none; }

  .tf-tabs { display: none; }
  .tf-pick { display: block; position: relative; margin: 22px 0 0; }
  .tf-pick select { width: 100%; height: 52px; padding: 0 44px 0 18px; border-radius: 14px; border: 1px solid var(--hair); background: #fff; font: inherit; font-size: 16.5px; font-weight: 600; color: var(--ink); -webkit-appearance: none; appearance: none; }
  .tf-pick::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
  .tf-panel { margin-top: 14px; border-radius: 22px; }
  .tf-flow { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px 14px 18px; align-items: start; }
  .tf-call { padding: 14px 14px 16px; border-radius: 16px; }
  .tf-panel .tf-l { max-width: 92%; font-size: 14.5px; }
  .tf-res { max-width: none; }
  .tf-flow { min-height: 548px; align-content: start; }
  .tf-zwei { flex-direction: row; align-items: center; justify-content: space-between; }
  .tf-zwei .tf-dt { gap: 8px; }
  .tf-zwei .tf-dt > b { font-size: 15px; }
  .tf-pf { width: 16px; }
  .tf-pf svg { transform: none; }

  .tf-liste-f { margin-top: 24px; }
  .tf-liste { padding: 0 14px; }
  .tf-liste-b { height: 470px; }
  .tf-z-h { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; padding-top: 12px; }
  .tf-z-h small { grid-column: 1 / -1; grid-row: 2; }
  .tf-z-h small .k-grau:has(+ span) { display: none; }
  .tf-z-h b { font-size: 14.5px; min-width: 0; }
  .tf-st { font-size: 12.5px; }
  .tf-liste .tf-z p { padding-bottom: 12px; font-size: 13px; }

  .tf-raus-in { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 30px 20px 0; border-radius: 24px; }
  .tf-raus-t { padding-bottom: 0; }
  .tf-raus h2 { font-size: 36px; }
  .tf-raus-t > p { font-size: 16.5px; }
  .tf-anl { margin-top: 22px; max-width: none; }
  .tf-raus-g { justify-self: center; width: 290px; margin-bottom: -30px; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-wave i, .tf-st .k-sw:first-child::before { animation: none; }
}
