/* /features/terminerinnerung/ */

/* ---------- Kopf: ein iPhone, frei auf der Seite */
.sx-stage.sx-terminerinnerung { margin-top: 40px; padding: 28px 0 56px; border: none; border-radius: 0; overflow: visible;
  background: radial-gradient(60% 62% at 50% 46%, #ECEAFB 0, rgba(236,234,251,.55) 42%, rgba(251,250,247,0) 72%); }
.te-kopf { display: grid; place-items: center; }
.te-kopf .kp { zoom: 1.12; }
.te-kopf .kn { position: relative; }
.te-kopf .kp-status, .te-kopf .kp-home { transition: color .3s, background .3s; }
.te-kopf .kp:has(.ksp.on) .kp-status { color: #fff; }
.te-kopf .kp:has(.ksp.on) .kp-home { background: #fff; }
.te-kopf .ksp .kn-t span { -webkit-line-clamp: 6; }
.te-kopf .ksp { transition: opacity .45s var(--ease), transform .55s var(--ease); }
.te-kopf .ksp:not(.on) { transform: translateY(-8%); }
.te-rem .kw-btn + .kw-btn { margin-top: 5px; }
.te-rem .kw-btn svg, .te-qr .kw-btn svg { transform: none; }

/* ---------- Kalender wie in der App: Raster, Terminblöcke mit farbiger Kante */
.te-cal { --zw: 46px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #e6e8ee, 0 24px 48px -30px rgba(19,23,34,.35); overflow: hidden; text-align: left; }
.te-cal-h, .te-cal-b { display: grid; grid-template-columns: var(--zw) repeat(var(--tage), minmax(0, 1fr)); }
.te-cal-h { border-bottom: 1px solid #e6e8ee; font-size: 12px; font-weight: 500; color: #687184; }
.te-cal-h span { padding: 10px 8px; white-space: nowrap; }
.te-cal-h span + span { border-left: 1px solid #f0f1f5; }
.te-cal-b { --h: 30px; position: relative; grid-template-rows: repeat(var(--zeilen), var(--h)); background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--h) * 2 - 1px), #eef0f4 calc(var(--h) * 2 - 1px) calc(var(--h) * 2)); }
.te-cal-b time { grid-column: 1; grid-row: var(--r); padding: 4px 8px 0 0; font-size: 11px; line-height: 1; text-align: right; color: #9aa1ae; font-variant-numeric: tabular-nums; }
.te-col { grid-column: calc(var(--c) + 1); grid-row: 1 / -1; border-left: 1px solid #f0f1f5; }
.te-t { --rand: #3b74db; --grund: #ecf2fd; --text: #1c3d78; position: relative; z-index: 1; grid-column: calc(var(--c) + 1); grid-row: var(--r) / span var(--l); min-width: 0; margin: 1px 3px 2px 3px; padding: 3px 5px 3px 6px; border-radius: 5px; border-left: 3px solid var(--rand); background: var(--grund); color: var(--text); overflow: hidden; }
.te-t.gruen { --rand: #17998a; --grund: #e6f5f2; --text: #0d5249; }
.te-t.lila { --rand: #8661cf; --grund: #f3eefb; --text: #44297a; }
.te-t b { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 15px; font-weight: 600; }
.te-t b > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.te-t small { display: block; font-size: 11px; line-height: 14px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.te-t .k-grau { background: color-mix(in srgb, var(--rand) 22%, transparent); }
.te-t.te-1 { display: flex; align-items: center; gap: 6px; }
.te-t.te-1 b { flex: 0 1 auto; min-width: 0; }
.te-t.te-1 small { flex: 1 2 0; min-width: 0; }
.te-ki { flex: 0 0 auto; margin-left: auto; padding: 0 3px; border-radius: 3px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rand) 40%, transparent); font-size: 9px; line-height: 13px; font-style: normal; font-weight: 600; letter-spacing: .04em; opacity: .75; }
.te-t.te-frei { display: grid; place-items: center; border: 1.5px dashed #c5cad6; background: #fff; color: #9aa1ae; font-size: 12px; font-weight: 500; }
.k-flow .te-t.te-neu.on { animation: tePop .9s var(--ease) both; }
@keyframes tePop { 0% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(79,70,229,.45); } 60% { transform: none; } 100% { box-shadow: 0 0 0 12px rgba(79,70,229,0); } }

/* ---------- Abschnitt 1: Umschalter */
.te-um { margin-top: 36px; }
.te-um-tabs { display: flex; justify-content: center; gap: 4px; width: fit-content; margin: 0 auto 22px; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--hair); }
.te-um-tabs button { appearance: none; border: 0; padding: 10px 20px; border-radius: 999px; background: none; font: inherit; font-size: 15.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.te-um-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,22,27,.14); }
.te-um-sel { display: none; }
.te-um-p { display: none; }
.te-um-p.on { display: block; }
.te-um-p > p { max-width: 560px; margin: 22px auto 0; text-align: center; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.te-fall { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: center; gap: 44px; max-width: 1040px; margin: 0 auto; min-height: 360px; padding: 44px 56px; border-radius: 28px; border: 1px solid var(--hair); background: linear-gradient(180deg, #F6F4EE, #EFECE4); }
.te-fall > :first-child { justify-self: center; }
.te-fall .te-cal { width: 100%; max-width: 620px; justify-self: center; }
.te-fall-3 { grid-template-columns: 300px minmax(0, 1fr); }

/* Fall 1: die zwei Antwort-Knöpfe, daneben der Tag im Kalender */
.te-qr { display: grid; width: 100%; max-width: 230px; border-radius: 12px; background: #fff; box-shadow: 0 1px .5px rgba(11,20,26,.13), 0 18px 32px -20px rgba(20,22,27,.35); overflow: hidden; font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
.te-qr .kw-btn { margin: 0; padding: 14px 8px; border-top: none; font-size: 15px; }
.te-qr .kw-btn + .kw-btn { border-top: 1px solid #E9EDEF; color: #8696A0; }
.te-tag { max-width: 460px !important; }
.te-tag .te-cal-b { --h: 34px; }
.te-voll { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; align-items: center; column-gap: 8px; padding-left: 10px; }
.te-voll b { font-size: 13.5px; line-height: 18px; }
.te-voll small { grid-column: 1; font-size: 12px; line-height: 16px; }
.te-ok { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; padding: 4px 10px 4px 7px; border-radius: 999px; background: #fff; color: #1a9b59; font-size: 12px; font-weight: 600; font-style: normal; white-space: nowrap; box-shadow: 0 0 0 1px #cfe9da; }
.te-ok svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.k-flow .te-t.te-best[data-at] { opacity: 1; transition: box-shadow .5s var(--ease), background .5s var(--ease); }
.k-flow .te-t.te-best.on { --rand: #1a9b59; --grund: #e6f4ec; --text: #0f5c36; box-shadow: 0 0 0 2px rgba(26,155,89,.28); }
.k-flow .te-ok[data-at] { transform: scale(.8); }
.k-flow .te-ok[data-at].on { transform: none; }

/* Fall 2: Gespräch, daneben wandert der Termin */
.te-call { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 280px; min-height: 236px; padding: 14px 14px 16px; border-radius: 22px; background: linear-gradient(170deg, #3B4458, #1B1E27 60%, #101216); color: #fff; box-shadow: 0 24px 44px -24px rgba(20,22,27,.55); font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; text-align: left; }
.te-call-h { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; }
.te-call-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(160deg, #A7ADBA, #6B7180); font-size: 15px; font-weight: 600; }
.te-call-h b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.te-call-st { font-size: 12px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.te-call .kc-wave { margin: 0; }
.te-call-t { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.te-call-t p.kc-l { margin: 0; font-size: 13px; line-height: 1.35; color: #fff; }
.k-flow .te-t.te-mv[data-at] { opacity: 1; grid-area: 1 / 1 / -1 / -1; position: absolute; z-index: 2; margin: 0; box-sizing: border-box;
  --cw: calc((100% - var(--zw)) / var(--tage));
  left: calc(var(--zw) + var(--cw) * (var(--c) - 1) + 3px); width: calc(var(--cw) - 6px);
  top: calc(var(--h) * (var(--r) - 1) + 1px); height: calc(var(--h) * var(--l) - 3px);
  transition: left 1s cubic-bezier(.6,0,.2,1), top 1s cubic-bezier(.6,0,.2,1), box-shadow .4s; }
.k-flow .te-t.te-mv.on { left: calc(var(--zw) + var(--cw) * (var(--c2) - 1) + 3px); top: calc(var(--h) * (var(--r2) - 1) + 1px); box-shadow: 0 10px 20px -10px rgba(59,116,219,.6); }
.te-mv .te-ki { visibility: hidden; }
.te-mv.on .te-ki { visibility: visible; }

/* Fall 3: zwei Erinnerungen, dann die Aufgabe fürs Team */
.te-sperr { display: grid; gap: 7px; width: 100%; max-width: 300px; padding: 26px 10px 10px; border-radius: 26px; background: linear-gradient(165deg, #33406b, #1d2440 45%, #3a2f55); box-shadow: 0 24px 44px -24px rgba(20,22,27,.5); font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; text-align: left; }
.te-sperr .kn { padding: 10px 11px; border-radius: 16px; }
.te-auf { width: 100%; max-width: 520px; justify-self: center; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #e6e8ee, 0 24px 48px -30px rgba(19,23,34,.35); overflow: hidden; text-align: left; color: #131722; }
.te-auf-h { padding: 14px 18px; border-bottom: 1px solid #e6e8ee; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.te-auf-r { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #f3f4f8; }
.te-auf-r:last-child { border-bottom: none; }
.te-box { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #c5cad6; }
.te-auf-r b { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; }
.te-auf-r small { display: block; margin-top: 3px; font-size: 12px; color: #9aa1ae; }
.te-auf .k-badge { padding: 2px 8px; font-size: 11px; background: #fff7ed; color: #b5740f; }
.k-flow .te-auf-r.te-neu[data-at] { display: none; }
.k-flow .te-auf-r.te-neu.on { display: grid; background: #fbfbff; animation: kwIn .45s var(--ease) both; }

/* ---------- Abschnitt 2: Zeitleiste */
.te-zl { --gh: 132px; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: 52px auto 0; }
.te-zl-l { position: absolute; left: calc(100% / 6); right: calc(100% / 6); top: calc(var(--gh) + 26px); height: 2px; border-radius: 2px; background: #DAD7CC; }
.te-zl-l i { position: absolute; inset: 0; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.k-flow .te-zl-l i[data-at] { opacity: 1; transition: none; }
.k-flow .te-zl-l i[data-at].on { transform: none; transition: transform 3s linear; }
.te-zl-p { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; }
.te-zl-g { order: 1; display: grid; align-items: end; justify-items: center; width: 100%; height: var(--gh); }
.te-zl-d { order: 2; position: relative; z-index: 1; width: 16px; height: 16px; margin: 19px 0 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #C9C5B8; }
.k-flow .te-zl-d[data-at] { opacity: 1; transition: box-shadow .3s, background .3s; }
.k-flow .te-zl-d[data-at].on { background: var(--accent); box-shadow: inset 0 0 0 3px var(--accent), 0 0 0 5px rgba(79,70,229,.16); }
.te-zl-x { order: 3; }
.te-zl-x b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.te-zl-x small { display: block; margin-top: 2px; font-size: 14.5px; color: var(--ink-3); }
.k-flow .te-zl-g[data-at] { transform: translateY(10px); }
.k-flow .te-zl-g[data-at].on { transform: none; }
.te-zl .te-sperr { max-width: 280px; padding: 12px 8px 8px; border-radius: 22px; }
.te-solo { width: 100%; max-width: 220px; }
.te-solo .te-t { margin: 0; padding: 9px 10px 9px 11px; border-radius: 8px; box-shadow: 0 16px 30px -18px rgba(59,116,219,.55); text-align: left; }
.te-solo .te-t b { font-size: 14px; line-height: 19px; }
.te-solo .te-t small { font-size: 12.5px; line-height: 17px; }
.te-zl-e { max-width: 440px; margin: 48px auto 0; }
.te-zl-e .ks-h { padding: 11px 16px; font-size: 14px; }
.te-zl-e .ks-r { padding: 9px 16px; font-size: 13.5px; }
.te-zl-e .k-toggle { zoom: .85; }

/* ---------- Abschnitt 3: große Aussage */
.te-gr { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 420px); align-items: center; gap: 64px; padding: 64px 64px; border-radius: 32px; background: #1e1b4b; color: #fff; }
.te-gr h2 { margin: 0 0 20px; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -.03em; font-weight: 500; color: #fff; text-wrap: balance; }
.te-gr-t p { max-width: 460px; margin: 0 0 22px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.76); }
.te-gr-t a { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px; }
.te-gr-t a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.te-wl { padding: 6px 18px; border-radius: 18px; background: #fff; color: #131722; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); text-align: left; }
.te-wl-s { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #e6e8ee; }
.te-wl-s time { font-size: 12.5px; line-height: 1.35; color: #687184; font-variant-numeric: tabular-nums; }
.te-wl-b { display: grid; }
.te-wl-b .te-t { grid-area: 1 / 1; height: 52px; margin: 0; padding: 7px 9px 7px 10px; border-radius: 8px; }
.te-wl-b .te-t b { font-size: 13.5px; line-height: 18px; }
.te-wl-b .te-t small { font-size: 12px; line-height: 16px; }
.te-wl-b .te-vn { display: inline; }
.te-wl-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 10px 0; border-bottom: 1px solid #f3f4f8; }
.te-wl-r:last-child { border-bottom: none; }
.te-wl-r b { font-size: 14px; font-weight: 500; white-space: nowrap; }
.te-wl .k-swap { justify-items: end; }
.te-wl .k-badge { padding: 2px 8px; font-size: 11px; background: #f0f3f9; color: #687184; }
.te-wl .k-badge.ok { background: #e6f4ec; color: #1a9b59; }
.te-wl .k-badge.go { background: #eef0fb; color: #4f46e5; }

@media (max-width: 960px) {
  .te-fall { grid-template-columns: 1fr; gap: 24px; padding: 32px 28px; min-height: 0; }
  .te-gr { grid-template-columns: 1fr; gap: 36px; padding: 48px 40px; }
  .te-wl { max-width: 440px; }
}
@media (max-width: 720px) {
  .sx-stage.sx-terminerinnerung { margin-top: 24px; padding: 18px 0 36px; }
  .te-kopf .kp { zoom: 1; }
  body .hero-stage:has(.sx-terminerinnerung) h1:not(#_):not(#__) { font-size: clamp(30px, 8.7vw, 40px); }

  .te-um { margin-top: 22px; }
  .te-um-tabs { display: none; }
  .te-um-sel { display: block; width: 100%; margin: 0 0 14px; padding: 13px 44px 13px 16px; border-radius: 14px; border: 1px solid var(--hair); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); appearance: none; -webkit-appearance: none; }
  .te-um-p > p { margin-top: 16px; text-align: left; font-size: 16.5px; }
  .te-fall { gap: 16px; padding: 20px 14px; border-radius: 22px; }
  .te-fall-3 { grid-template-columns: 1fr; }
  .te-cal { --zw: 36px; }
  .te-cal-h span { padding: 9px 5px; font-size: 11px; }
  .te-cal-b time { padding-right: 5px; font-size: 10px; }
  .te-fall .te-cal:not(.te-tag) .te-vn { display: none; }
  .te-t { margin: 1px 2px 2px; padding: 3px 3px 3px 4px; }
  .te-t b { font-size: 11.5px; }
  .te-t small { font-size: 10.5px; }
  .te-voll { padding-left: 8px; column-gap: 4px; }
  .te-voll b { font-size: 13px; }
  .te-ok { margin-right: 3px; padding: 3px 8px 3px 6px; font-size: 11px; }
  .te-qr { grid-template-columns: 1fr 1fr; max-width: none; }
  .te-qr .kw-btn { padding: 12px 6px; }
  .te-qr .kw-btn + .kw-btn { border-top: none; border-left: 1px solid #E9EDEF; }
  .te-call { max-width: none; min-height: 196px; border-radius: 18px; }
  .te-sperr { max-width: none; padding: 18px 8px 8px; border-radius: 20px; }
  .te-auf-h { padding: 12px 14px; font-size: 16px; }
  .te-auf-r { grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 12px 14px; }
  .te-auf-r .k-badge { grid-column: 2; justify-self: start; }
  .te-auf-r:last-child { display: none; }

  .te-zl { --gh: auto; grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .te-zl-l { left: 7px; right: auto; top: 12px; bottom: 100px; width: 2px; height: auto; }
  .te-zl-l i { transform: scaleY(0); transform-origin: 50% 0; }
  .te-zl-p { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 16px; align-items: start; justify-items: start; padding: 0 0 26px; text-align: left; }
  .te-zl-p:last-child { padding-bottom: 0; }
  .te-zl-d { grid-column: 1; grid-row: 1; margin: 5px 0 0; }
  .te-zl-x { grid-column: 2; grid-row: 1; }
  .te-zl-x b { font-size: 18px; }
  .te-zl-g { grid-column: 2; grid-row: 2; height: auto; justify-items: start; margin-top: 10px; }
  .te-zl .te-sperr { max-width: 320px; }
  .te-zl-e { margin-top: 32px; }

  .te-gr { gap: 28px; padding: 36px 20px 22px; border-radius: 24px; }
  .te-gr h2 { font-size: clamp(32px, 9.4vw, 40px); margin-bottom: 14px; }
  .te-gr-t p { font-size: 16.5px; margin-bottom: 16px; }
  .te-wl { padding: 4px 14px; }
  .te-wl-r { flex-direction: column; align-items: flex-start; gap: 6px; }
  .te-wl .k-swap { justify-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .k-flow .te-t.te-neu.on { animation: none; }
  .k-flow .te-t.te-mv[data-at], .k-flow .te-zl-l i[data-at].on, .te-kopf .ksp { transition: none; }
}
