/* Therapie-App – ergänzt die ThemeManager-Komponenten (Timeline, Progress, Team, Modal Tabs).
   Die App bleibt in Lila: Die Theme-Variablen werden nur innerhalb von .therapie-app überschrieben. */

.therapie-app {
    --clr-primary: #580f86;
    --clr-primary-rgb: 88, 15, 134;
    --th-primary: #580f86;
    --th-primary-soft: #f1e8f7;
    --th-dark: #210135;
    --th-cream: #f5e1ce;
    --th-gold: #b07400;
    --th-line: #e2d6ea;
    --th-muted: #6f6079;
    --th-danger: #a3243f;
    --th-ok: #2f6b3a;
    --th-ziel: #b07400;      --th-ziel-bg: #fbefd4;
    --th-anteil: #6a2a9a;    --th-anteil-bg: #efe3f7;
    --th-termin: #1f6f78;    --th-termin-bg: #dcf0ef;
    --th-situation: #a8325e; --th-situation-bg: #f8e1ea;
    --th-aufgabe: #3d5a80;   --th-aufgabe-bg: #e3ebf5;
    --th-schatz: #2f6b3a;    --th-schatz-bg: #e3f1e5;
    /* Modusgruppen (Check-in, ab 2.10.0) */
    --th-m-kind: #b45309;    --th-m-kind-bg: #fdecd8;
    --th-m-eltern: #a8325e;  --th-m-eltern-bg: #f8e1ea;
    --th-m-bew: #3d5a80;     --th-m-bew-bg: #e3ebf5;
    --th-m-erw: #2f6b3a;     --th-m-erw-bg: #e3f1e5;
    --tl-counter-fs: 1rem;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.therapie-app h2,
.therapie-app h3 { color: var(--th-primary); }

/* Navigation ------------------------------------------------------------ */
.therapie-nav { display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 1px solid var(--th-line); padding-bottom: .75rem; }
.therapie-nav__link { padding: .4rem 1rem; border-radius: 999px; text-decoration: none; color: var(--th-dark); }
.therapie-nav__link:hover { background: var(--th-primary-soft); }
.therapie-nav__link.is-active { background: var(--th-primary); color: #fff; }

/* Meldungen ------------------------------------------------------------- */
.therapie-message { margin: 0; padding: .75rem 1rem; border-radius: 8px; background: #e6f2e8; color: var(--th-ok); }
.therapie-message--warn { background: #fbe9ec; color: var(--th-danger); }

/* Buttons --------------------------------------------------------------- */
.therapie-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem 1.1rem; border: 1px solid var(--th-primary); border-radius: 8px;
    background: var(--th-primary); color: #fff; text-decoration: none; cursor: pointer; font: inherit; line-height: 1.3;
}
.therapie-btn:hover { background: var(--th-dark); border-color: var(--th-dark); color: #fff; }
.therapie-btn--ghost { background: transparent; color: var(--th-primary); }
.therapie-btn--ghost:hover { background: var(--th-primary-soft); color: var(--th-primary); }
.therapie-btn--danger { background: var(--th-danger); border-color: var(--th-danger); }
.therapie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.therapie-inline-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.therapie-back { color: var(--th-muted); text-decoration: none; }
.therapie-back:hover { color: var(--th-primary); }
.therapie-app :focus-visible { outline: 2px solid var(--th-gold); outline-offset: 2px; }

/* Chips und Tags -------------------------------------------------------- */
.therapie-chip { display: inline-block; padding: 0 .5rem; border-radius: 5px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.7; }
.therapie-chip--ziel { background: var(--th-ziel-bg); color: var(--th-ziel); }
.therapie-chip--anteil { background: var(--th-anteil-bg); color: var(--th-anteil); }
.therapie-chip--termin { background: var(--th-termin-bg); color: var(--th-termin); }
.therapie-chip--situation { background: var(--th-situation-bg); color: var(--th-situation); }
.therapie-chip--aufgabe { background: var(--th-aufgabe-bg); color: var(--th-aufgabe); }
.therapie-chip--schatz { background: var(--th-schatz-bg); color: var(--th-schatz); }
.therapie-tag { display: inline-block; padding: 0 .5rem; border: 1px solid var(--th-line); border-radius: 5px; font-size: .8rem; color: var(--th-muted); }
.therapie-tag--private { font-style: italic; }
/* Sichtbarkeit auf einen Blick (ab 2.27.0): freigegeben kräftig lila mit Coach-Symbol, privat dezent mit Schloss */
.therapie-sicht { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .55rem; border-radius: 999px; font-size: .8rem; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.therapie-sicht svg { flex: none; }
.therapie-sicht--coach { background: var(--th-primary, #580f86); color: #fff; font-weight: 600; }
.therapie-sicht--privat { border: 1px dashed var(--th-line, #d9cbe3); color: var(--th-muted, #6f6079); }
.therapie-muted, .therapie-hint { color: var(--th-muted); font-size: .875rem; margin: .2rem 0 0; }

/* Überblick ------------------------------------------------------------- */
.therapie-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.therapie-summary__item { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border-radius: 10px; background: var(--th-primary-soft); min-width: 0; }
.therapie-summary__label { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--th-muted); }
.therapie-summary__value { font-size: 1.4rem; font-weight: 600; color: var(--th-primary); }
.therapie-summary__note { font-size: .875rem; color: var(--th-muted); }
.therapie-spark { width: 100%; max-width: 220px; height: auto; }
.therapie-spark__grid { stroke: var(--th-line); stroke-dasharray: 3 3; }
.therapie-spark__area { fill: var(--th-primary); opacity: .12; }
.therapie-spark__line { fill: none; stroke: var(--th-primary); stroke-width: 2; stroke-linejoin: round; }

/* Filter ---------------------------------------------------------------- */
.therapie-filter { display: flex; flex-wrap: wrap; gap: .4rem; }
.therapie-filter__item { padding: .25rem .8rem; border: 1px solid var(--th-line); border-radius: 999px; font-size: .9rem; text-decoration: none; color: var(--th-dark); }
.therapie-filter__item span { color: var(--th-muted); font-variant-numeric: tabular-nums; }
.therapie-filter__item.is-active { background: var(--th-dark); border-color: var(--th-dark); color: #fff; }
.therapie-filter__item.is-active span { color: var(--th-cream); }

/* Zeitstrahl (Ergänzung zu ce_rsce_image_timeline) ----------------------- */
.therapie-timeline .label { font-weight: 600; color: var(--th-gold); }
.therapie-tl__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .25rem 0; font-size: .875rem; color: var(--th-muted); }
.therapie-tl__title { margin: .2rem 0; font-size: 1.15rem; }
.therapie-tl__title a { color: var(--th-primary); text-decoration: none; }
.therapie-tl__title a:hover { text-decoration: underline; }
.therapie-tl__text { margin: .2rem 0 .5rem; max-width: 65ch; }
.therapie-tl.is-future .c_text { opacity: .85; }
.therapie-timeline .c_image img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }

/* Fortschritt (Ergänzung zu ce_rsce_progress_bars) ----------------------- */
.therapie-progress { max-width: 420px; }
.therapie-progress .progress-bar > .inside { padding-bottom: .25rem; }
.therapie-progress .title { font-size: .875rem; color: var(--th-muted); }
.therapie-progress .indicator { opacity: 1; left: auto; right: 0; width: auto; font-size: .875rem; }
.therapie-progress .indicator-percentage { margin-left: 0; }
.therapie-progress .progress-line { background: var(--th-line); height: 8px; border-radius: 99px; overflow: hidden; }
.therapie-progress .progress-percentage { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--th-primary), var(--th-gold)); }

/* Leerer Zustand und Auswahl „Neu“ -------------------------------------- */
.therapie-empty { padding: 1.5rem; border: 1px dashed var(--th-line); border-radius: 12px; }
.therapie-new__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.therapie-new__card { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem; border: 1px solid var(--th-line); border-top: 4px solid var(--th-primary); border-radius: 10px; text-decoration: none; color: var(--th-dark); }
.therapie-new__card strong { color: var(--th-primary); font-size: 1.1rem; }
.therapie-new__card span { color: var(--th-muted); font-size: .9rem; }
.therapie-new__card:hover { background: var(--th-primary-soft); }
.therapie-new__card--ziel { border-top-color: var(--th-ziel); }
.therapie-new__card--anteil { border-top-color: var(--th-anteil); }
.therapie-new__card--termin { border-top-color: var(--th-termin); }
.therapie-new__card--situation { border-top-color: var(--th-situation); }
.therapie-new__card--aufgabe { border-top-color: var(--th-aufgabe); }
.therapie-new__card--schatz { border-top-color: var(--th-schatz); }

/* Detail ---------------------------------------------------------------- */
.therapie-detail { display: flex; flex-direction: column; gap: 1.25rem; }
.therapie-detail__head { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.therapie-detail__image { width: 160px; height: 160px; object-fit: cover; border-radius: 12px; flex: none; }
.therapie-detail__intro { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.therapie-detail__title { margin: 0; }
.therapie-detail__text { margin: 0; max-width: 65ch; }
.therapie-section { border: 1px solid var(--th-line); border-radius: 10px; overflow: hidden; }
.therapie-section > summary { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; cursor: pointer; background: var(--th-primary-soft); color: var(--th-primary); font-weight: 600; list-style: none; }
.therapie-section > summary::-webkit-details-marker { display: none; }
.therapie-section__count { font-weight: 400; color: var(--th-muted); font-variant-numeric: tabular-nums; }
.therapie-fields { margin: 0; padding: .5rem 1rem 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .25rem 1.5rem; }
.therapie-field { padding: .5rem 0; border-bottom: 1px solid var(--th-line); min-width: 0; }
.therapie-field dt { font-size: .8rem; color: var(--th-muted); }
.therapie-field dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.therapie-field img { border-radius: 8px; }
.therapie-confirm { position: relative; }
.therapie-confirm > summary { list-style: none; }
.therapie-confirm > summary::-webkit-details-marker { display: none; }
.therapie-confirm__box { margin-top: .5rem; padding: 1rem; border: 1px solid var(--th-danger); border-radius: 10px; background: #fff; max-width: 360px; }
.therapie-confirm__box p { margin: 0 0 .75rem; }

/* Formulare ------------------------------------------------------------- */
.therapie-form { display: flex; flex-direction: column; gap: 1.25rem; }
.therapie-fieldset { margin: 0; padding: 1rem 1.1rem 1.25rem; border: 1px solid var(--th-line); border-radius: 10px; min-width: 0; }
.therapie-fieldset legend { padding: 0 .4rem; font-weight: 600; color: var(--th-primary); }
.therapie-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.therapie-input { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.therapie-input--wide { grid-column: 1 / -1; }
.therapie-input > label { font-weight: 600; }
.therapie-input input[type=text],
.therapie-input input[type=date],
.therapie-input select,
.therapie-input textarea {
    width: 100%; box-sizing: border-box; padding: .5rem .65rem; border: 1px solid var(--th-line); border-radius: 8px; font: inherit; background: #fff; color: inherit;
}
.therapie-input textarea { resize: vertical; }
.therapie-input.has-error input,
.therapie-input.has-error select,
.therapie-input.has-error textarea { border-color: var(--th-danger); }
.therapie-error { margin: 0; color: var(--th-danger); font-size: .875rem; font-weight: 600; }
.therapie-required { color: var(--th-danger); }
.therapie-check { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; }
.therapie-checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.therapie-check--chip { padding: .3rem .8rem; border: 1px solid var(--th-line); border-radius: 999px; }
.therapie-check--chip:has(input:checked) { background: var(--th-anteil-bg); border-color: var(--th-anteil); color: var(--th-anteil); }
.therapie-range { display: flex; align-items: center; gap: .75rem; }
.therapie-range input { flex: 1; accent-color: var(--th-primary); }
.therapie-range output { min-width: 2ch; font-weight: 600; font-size: 1.2rem; color: var(--th-primary); font-variant-numeric: tabular-nums; }
.therapie-pics { display: flex; flex-wrap: wrap; gap: .5rem; }
.therapie-pic { position: relative; cursor: pointer; }
.therapie-pic input { position: absolute; opacity: 0; }
.therapie-pic img,
.therapie-pic__none { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 10px; border: 3px solid transparent; object-fit: cover; font-size: .75rem; color: var(--th-muted); text-align: center; box-sizing: border-box; }
.therapie-pic__none { border: 1px dashed var(--th-line); }
.therapie-pic input:checked + img,
.therapie-pic input:checked + .therapie-pic__none { border: 3px solid var(--th-gold); }
.therapie-pic input:focus-visible + img { outline: 2px solid var(--th-primary); }

/* Profil (Ergänzung zu team_item) --------------------------------------- */
.therapie-profile { display: flex; flex-direction: column; gap: 1.25rem; }
.therapie-profile__card { padding: 1rem 1.25rem; border-radius: 12px; background: var(--th-primary-soft); }
.therapie-profile__card .title { color: var(--th-primary); }
.therapie-profile__card .position { display: flex; flex-direction: column; color: var(--th-muted); }

/* Profilbilder (ab 2.6.0) ----------------------------------------------- */
.therapie-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; object-fit: cover; background: var(--th-primary-soft); color: var(--th-primary); font-weight: 600; line-height: 1; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--th-line); }
.therapie-avatar--s { width: 2.25rem; height: 2.25rem; font-size: .85rem; }
.therapie-avatar--m { width: 3.25rem; height: 3.25rem; font-size: 1.05rem; }
.therapie-avatar--l { width: 5rem; height: 5rem; font-size: 1.5rem; }
.therapie-avatar--initialen { background: var(--th-primary); color: #fff; }
.therapie-profile__inside { display: flex; align-items: center; gap: 1rem; }
.therapie-profile__image { flex: none; }
.therapie-person { display: inline-flex; align-items: center; gap: .6rem; }
.therapie-client .inside.therapie-client__inside { flex-direction: row; align-items: flex-start; gap: .9rem; }

/* Schnellzugriff „Neu“ (Ergänzung zu modal_tabs) ------------------------- */
.therapie-flyout { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 50; }
.therapie-flyout .handle { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--th-primary); color: #fff; font-size: 1.8rem; cursor: pointer; box-shadow: 0 4px 14px rgba(33, 1, 53, .25); }
.therapie-flyout .handle .close { display: none; }
.therapie-flyout.open .handle .close { display: inline; }
.therapie-flyout.open .handle > span:first-child { display: none; }
.therapie-flyout .invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.therapie-flyout > .content { position: absolute; right: 0; bottom: 68px; width: min(340px, calc(100vw - 2rem)); padding: 1rem; border-radius: 12px; background: #fff; box-shadow: 0 8px 28px rgba(33, 1, 53, .2); }
.therapie-flyout:not(.open) > .content { display: none; }
.therapie-flyout .therapie-flyout__nav ul { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .75rem; padding: 0; list-style: none; }
.therapie-flyout .nav-btn { padding: .25rem .7rem; border: 1px solid var(--th-line); border-radius: 999px; background: none; cursor: pointer; font: inherit; font-size: .875rem; }
.therapie-flyout .nav-btn[aria-expanded=true] { background: var(--th-primary); border-color: var(--th-primary); color: #fff; }
/* Nicht gewählte Reiter gut lesbar (ab 2.10.0): das Theme setzt sonst eine helle Schrift */
.therapie-app .therapie-flyout .nav-btn { min-height: 36px; border-color: #cbb8d8; background: #fff; color: var(--th-dark); opacity: 1; font-weight: 600; }
.therapie-app .therapie-flyout .nav-btn:hover { background: var(--th-primary-soft); border-color: var(--th-primary); color: var(--th-primary); }
.therapie-app .therapie-flyout .nav-btn[aria-expanded=true] { background: var(--th-primary); border-color: var(--th-primary); color: #fff; }
.therapie-flyout .tab-item { display: none; }
.therapie-flyout .tab-item.active { display: block; }
.therapie-flyout .headline { margin: 0 0 .25rem; font-weight: 600; color: var(--th-primary); }

@media (max-width: 640px) {
    .therapie-grid { grid-template-columns: 1fr; }
    .therapie-detail__image { width: 120px; height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
    .therapie-app *, .therapie-app *::before, .therapie-app *::after { animation: none !important; transition: none !important; }
}

/* Eigenes Bild hochladen */
.therapie-upload { display: flex; flex-direction: column; gap: .3rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--th-line); }
.therapie-upload label { font-weight: 600; }
.therapie-upload input[type=file] { max-width: 100%; }

/* Schutz vor allgemeinen Theme-Regeln (z. B. für header, nav, h2) innerhalb der App */
.therapie-app .therapie-detail__head,
.therapie-app .therapie-detail,
.therapie-app .therapie-nav,
.therapie-app .therapie-summary {
    position: static;
    height: auto;
    min-height: 0;
    background-image: none;
}
.therapie-app .therapie-detail__head { background-color: transparent; color: inherit; }
.therapie-app .therapie-detail__title { color: var(--th-primary); background: none; }

/* Coach-Verbindung (Profil der Lebensgestalter:in) */
.therapie-coaches { display: flex; flex-direction: column; gap: .75rem; }
.therapie-coaches__title { margin: 0; }
.therapie-coaches__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.therapie-coaches__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--th-line); }
.therapie-connect__row { display: flex; flex-wrap: wrap; gap: .6rem; }
.therapie-connect__row input { flex: 1 1 200px; max-width: 280px; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.therapie-pending { padding: 1rem; border: 2px solid var(--th-primary); border-radius: 10px; background: var(--th-primary-soft); }
.therapie-pending p { margin: 0 0 .6rem; max-width: 65ch; }

/* Coach-Ansicht */
.therapie-coach, .therapie-coach-client { display: flex; flex-direction: column; gap: 1.25rem; }
.therapie-clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.therapie-client { display: block; padding: 1rem 1.1rem; border: 1px solid var(--th-line); border-left: 4px solid var(--th-primary); border-radius: 10px; text-decoration: none; color: var(--th-dark); background: #fff; }
.therapie-client:hover { background: var(--th-primary-soft); }
.therapie-client .inside, .therapie-client .c_text { display: flex; flex-direction: column; gap: .25rem; }
.therapie-client .name { color: var(--th-primary); font-size: 1.1rem; }
.therapie-client .position { color: var(--th-muted); font-size: .875rem; }
.therapie-client__facts { display: flex; flex-direction: column; gap: .1rem; margin-top: .4rem; font-size: .9rem; }
.therapie-client__facts b { font-variant-numeric: tabular-nums; }
.therapie-invite { display: flex; flex-direction: column; gap: .75rem; }
.therapie-invite h3 { margin: 0; }
.therapie-invite__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.therapie-invite__item { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--th-line); }
.therapie-invite__code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.3rem; font-weight: 600; letter-spacing: .15em; color: var(--th-primary); background: var(--th-primary-soft); padding: .2rem .6rem; border-radius: 6px; }
.therapie-coach-end { align-self: flex-start; }

/* Kommentare (ab 2.2.0) */
.therapie-app .therapie-comments { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--th-line); }
.therapie-app .therapie-comments__title { margin: 0 0 .75rem; font-size: 1.15rem; }
.therapie-app .therapie-comments__list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .75rem; }
.therapie-app .therapie-comment { margin: 0; padding: .75rem 1rem; border: 1px solid var(--th-line); border-radius: 10px; background: #fff; }
.therapie-app .therapie-comment::before { content: none; }
.therapie-app .therapie-comment.is-own { border-left: 4px solid var(--clr-primary); }
.therapie-app .therapie-comment__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .35rem; font-size: .85rem; color: var(--th-muted); }
.therapie-app .therapie-comment__meta strong { color: inherit; color: #222; }
.therapie-app .therapie-comment__text { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.therapie-app .therapie-comment__delete { margin: .4rem 0 0; }
.therapie-app .therapie-link-btn { padding: 0; border: 0; background: none; color: var(--th-danger); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.therapie-app .therapie-comment-form { display: grid; gap: .5rem; max-width: 640px; }
.therapie-app .therapie-comment-form textarea { width: 100%; box-sizing: border-box; }
.therapie-app .therapie-comment-form .therapie-btn { justify-self: start; }
.therapie-app .therapie-tag--comments { border-color: var(--clr-primary); color: var(--clr-primary); }
.therapie-app .therapie-coach-add { margin: 1rem 0 1.5rem; }

/* Neuigkeiten (ab 2.4.0) */
.therapie-app .therapie-badge { display: inline-block; min-width: 1.4em; padding: 0 .45em; border-radius: 999px; background: var(--th-danger, #b3261e); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.5; text-align: center; vertical-align: middle; }
.therapie-app .therapie-news-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.therapie-app .therapie-news__list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .6rem; }
.therapie-app .therapie-news__item { margin: 0; padding: 0; }
.therapie-app .therapie-news__item::before { content: none; }
.therapie-app .therapie-news__link { display: grid; gap: .25rem; padding: .8rem 1rem; border: 1px solid var(--th-line); border-left: 4px solid var(--clr-primary); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; }
.therapie-app .therapie-news__link:hover, .therapie-app .therapie-news__link:focus-visible { border-color: var(--clr-primary); }
.therapie-app .therapie-news__title { font-size: 1.05rem; color: var(--clr-primary); }
.therapie-app .therapie-news__what { font-size: .9rem; color: var(--th-muted); }

/* Mobilgeräte (ab 2.4.0) */
.therapie-app input, .therapie-app select, .therapie-app textarea { font-size: max(16px, 1rem); } /* verhindert Zoom auf iPhones */
.therapie-app .therapie-btn, .therapie-app .therapie-nav__link { min-height: 44px; box-sizing: border-box; }
.therapie-app .therapie-nav__link { display: inline-flex; align-items: center; }
.therapie-app .therapie-field img { max-width: 100%; height: auto; }
@media (max-width: 640px) {
    .therapie-app .therapie-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .therapie-app .therapie-nav__link { flex: none; white-space: nowrap; }
    .therapie-app .therapie-fields { grid-template-columns: 1fr; padding: .25rem .75rem .75rem; }
    .therapie-app .therapie-fieldset { padding: .75rem .8rem 1rem; }
    .therapie-app .therapie-timeline .c_image img { width: 64px; height: 64px; }
    .therapie-app .therapie-actions > .therapie-btn, .therapie-app .therapie-form .therapie-actions .therapie-btn { flex: 1 1 100%; text-align: center; justify-content: center; }
    .therapie-app .therapie-confirm__box { max-width: none; }
    .therapie-app .therapie-comment-form .therapie-btn { justify-self: stretch; }
    .therapie-app .therapie-clients { grid-template-columns: 1fr; }
    .therapie-app .therapie-flyout > .content { right: -.5rem; }
}


/* Einsprechen (ab 2.4.0) */
.therapie-app .therapie-diktat { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .35rem; }
.therapie-app .therapie-diktat__btn { order: 1; flex: none; padding: .3rem .8rem; font-size: .9rem; }
/* Hinweistext steht neben dem Button (ab 2.8.1), auf kleinen Displays darüber */
.therapie-app .therapie-diktat__hint { order: 2; flex: 1 1 14rem; margin: 0; }
.therapie-app .therapie-diktat__status { order: 3; }
@media (max-width: 600px) {
    .therapie-app .therapie-diktat__hint { order: 0; flex-basis: 100%; }
}
.therapie-app .therapie-diktat__btn.is-recording { background: var(--th-danger); border-color: var(--th-danger); color: #fff; animation: therapie-pulse 1.4s ease-in-out infinite; }
.therapie-app .therapie-diktat__status { font-size: .85rem; color: var(--th-muted); }
.therapie-app .therapie-diktat__status.is-error { color: var(--th-danger); font-weight: 600; }
.therapie-app .therapie-diktat__consent { order: 4; flex: 1 1 100%; padding: .8rem 1rem; border: 1px solid var(--clr-primary); border-radius: 10px; background: var(--th-primary-soft); }
.therapie-app .therapie-diktat__consent p { margin: 0 0 .6rem; font-size: .9rem; }
@keyframes therapie-pulse { 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .therapie-app .therapie-diktat__btn.is-recording { animation: none; } }

/* Pflichtfelder, Speichern-Leiste, Einträge verknüpfen (ab 2.5.0) */
.therapie-app .therapie-input.is-required.is-empty input,
.therapie-app .therapie-input.is-required.is-empty select,
.therapie-app .therapie-input.is-required.is-empty textarea { border: 2px solid #d97706; background: #fffbeb; }
.therapie-app .therapie-input.has-error input,
.therapie-app .therapie-input.has-error select,
.therapie-app .therapie-input.has-error textarea { border: 2px solid var(--th-danger); background: #fff5f6; }
.therapie-app .therapie-input.is-required > label { font-weight: 600; }
.therapie-app .therapie-required { color: var(--th-danger); font-weight: 700; }

.therapie-app .therapie-actions--sticky {
    position: sticky; bottom: 0; z-index: 20;
    margin: 0 -.5rem; padding: .75rem .5rem calc(.75rem + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid var(--th-line); box-shadow: 0 -6px 16px rgba(33, 1, 53, .08);
}
/* Handy: fest am unteren Rand (funktioniert auch, wenn das Theme „sticky“ verhindert) */
@media (max-width: 640px) {
    .therapie-app .therapie-actions--sticky {
        position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 1000;
        flex-wrap: nowrap; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    }
    .therapie-app .therapie-form:has(.therapie-actions--sticky) { padding-bottom: 5.5rem; }
    .therapie-app .therapie-form .therapie-actions--sticky .therapie-btn,
    .therapie-app .therapie-actions--sticky > .therapie-btn { flex: 1 1 0; }
}

.therapie-app .therapie-picker { display: grid; gap: .5rem; }
.therapie-app .therapie-picker__group { border: 1px solid var(--th-line); border-radius: 10px; padding: .4rem .8rem; background: #fff; }
.therapie-app .therapie-picker__group > summary { cursor: pointer; font-weight: 600; padding: .35rem 0; min-height: 32px; }
.therapie-app .therapie-picker__group[open] > summary { margin-bottom: .5rem; }
.therapie-app .therapie-picker__count { font-weight: 400; font-size: .85rem; color: var(--th-muted); }
.therapie-app .therapie-picker .therapie-checks { max-height: 18rem; overflow-y: auto; padding-bottom: .4rem; }
.therapie-app .therapie-linked { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.therapie-app .therapie-linked li { margin: 0; padding: 0; }
.therapie-app .therapie-linked li::before { content: none; }
.therapie-app .therapie-linked a { text-decoration: none; color: inherit; }
.therapie-app .therapie-linked a:hover { color: var(--clr-primary); text-decoration: underline; }

/* App installieren (ab 2.7.0) ------------------------------------------- */
.therapie-install[hidden], .therapie-install [hidden] { display: none !important; }
.therapie-install { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.therapie-install__title { margin: 0; }

/* Eigenes Profilbild (ab 2.9.0) ----------------------------------------- */
.therapie-picture__title { margin: 0 0 .6rem; }
.therapie-picture__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; }
.therapie-picture__body { flex: 1 1 16rem; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.therapie-picture__form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.therapie-picture__form label { flex-basis: 100%; font-weight: 600; }
.therapie-picture__form input[type="file"] { max-width: 100%; }
.therapie-picture .therapie-hint { margin: 0; }

/* ====================================================================== */
/* Ab 2.10.0: Check-in, Schatzkiste, Kurz erklärt, Erste-Schritte-Tour     */
/* ====================================================================== */

.therapie-app .therapie-summary__value--text { font-size: 1.05rem; line-height: 1.3; text-decoration: none; }
.therapie-app .therapie-summary__value--text:hover { text-decoration: underline; }

/* Allgemeine Fläche */
.therapie-app .therapie-panel { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.1rem 1.15rem; border: 1px solid var(--th-line); border-radius: 12px; background: #fff; min-width: 0; }
.therapie-app .therapie-panel > h3 { margin: 0; font-size: 1.15rem; }
.therapie-app .therapie-panel > p { margin: 0; max-width: 68ch; }
.therapie-app .therapie-panel--hinweis { border-color: var(--th-gold); background: #fffaf0; }
.therapie-app .therapie-link-btn--neutral { color: var(--th-primary); }

/* Reiter (Check-in) */
.therapie-app .therapie-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.therapie-app .therapie-tabs__item { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: .4rem 1.1rem; border: 1px solid var(--th-primary); border-radius: 999px; color: var(--th-primary); text-decoration: none; font-weight: 600; }
.therapie-app .therapie-tabs__item:hover { background: var(--th-primary-soft); }
.therapie-app .therapie-tabs__item.is-active { background: var(--th-primary); color: #fff; }

/* Check-in-Formular */
.therapie-app .therapie-checkin, .therapie-app .therapie-schatzkiste, .therapie-app .therapie-wissen { display: flex; flex-direction: column; gap: 1.25rem; }
.therapie-app .therapie-checkin__intro h2, .therapie-app .therapie-schatzkiste__intro h2, .therapie-app .therapie-wissen h2 { margin: 0 0 .4rem; }
.therapie-app .therapie-checkin__intro p, .therapie-app .therapie-schatzkiste__intro p { margin: 0 0 .75rem; max-width: 68ch; }
.therapie-app .therapie-modi { margin: .2rem 0 .9rem; }
.therapie-app .therapie-modi__title { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--th-muted); }
.therapie-app .therapie-modi--kind .therapie-modi__title { color: var(--th-m-kind); }
.therapie-app .therapie-modi--eltern .therapie-modi__title { color: var(--th-m-eltern); }
.therapie-app .therapie-modi--bewaeltigung .therapie-modi__title { color: var(--th-m-bew); }
.therapie-app .therapie-modi--erwachsener .therapie-modi__title { color: var(--th-m-erw); }
.therapie-app .therapie-check--radio { min-height: 40px; box-sizing: border-box; color: var(--th-dark); background: #fff; }
.therapie-app .therapie-check--radio input { accent-color: var(--th-primary); }
.therapie-app .therapie-check--radio:has(input:checked) { background: var(--th-primary); border-color: var(--th-primary); color: #fff; }
.therapie-app .therapie-check--own { border-style: dashed; border-color: var(--th-anteil); }
.therapie-app .therapie-fieldset.has-error { border-color: var(--th-danger); }
.therapie-app .therapie-kompass-form { display: grid; gap: 1rem; margin-top: .75rem; }
.therapie-app .therapie-kompass-form__frage { margin: 0; }

/* Verlauf */
/* Hilfe „Ich weiß nicht, in welchem Modus ich bin“ (ab 2.27.0) */
.therapie-app .therapie-modushilfe { margin: .2rem 0 1rem; border: 1px solid var(--th-line); border-radius: 12px; background: var(--th-primary-soft); }
.therapie-app .therapie-modushilfe > summary { padding: .75rem 1rem; font-weight: 600; color: var(--th-primary); cursor: pointer; }
.therapie-app .therapie-modushilfe > summary:focus-visible { outline: 3px solid #b07400; outline-offset: 2px; border-radius: 12px; }
.therapie-app .therapie-modushilfe__inhalt { display: flex; flex-direction: column; gap: .9rem; padding: 0 1rem 1rem; }
.therapie-app .therapie-modushilfe__inhalt > .therapie-hint { margin: 0; }
.therapie-app .therapie-modushilfe__schritt { margin: 0; padding: 0; border: 0; }
.therapie-app .therapie-modushilfe__schritt > legend { padding: 0; margin-bottom: .4rem; font-weight: 600; }
.therapie-app .therapie-modushilfe__schritt .therapie-input { margin-top: .6rem; }
.therapie-app .therapie-checks--stack { flex-direction: column; align-items: flex-start; }
.therapie-app .therapie-modushilfe [data-mh-finden] { align-self: flex-start; background: #fff; }
.therapie-app .therapie-modushilfe__ergebnis { display: flex; flex-direction: column; gap: .6rem; }
.therapie-app .therapie-modushilfe__ergebnis:empty { display: none; }
.therapie-app .therapie-modushilfe__ergebnis > p { margin: 0; }
.therapie-app .therapie-modushilfe__titel { font-weight: 600; }
.therapie-app .therapie-modushilfe__vorschlag { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: .75rem 1rem; border: 1px solid var(--th-line); border-radius: 10px; background: #fff; }
.therapie-app .therapie-modushilfe__vorschlag.is-erster { border: 2px solid var(--th-primary); }
.therapie-app .therapie-modushilfe__vorschlag p { margin: 0; }
.therapie-app .therapie-modushilfe__marke { font-size: .8rem; font-weight: 700; color: var(--th-primary); }
.therapie-app .therapie-modushilfe__name { font-weight: 600; font-size: 1.05rem; }
.therapie-app .therapie-checkin-verlauf { display: flex; flex-direction: column; gap: 1.25rem; }
.therapie-app .therapie-haeufig { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.therapie-app .therapie-haeufig__item { margin: 0; display: flex; flex-direction: column; padding: .5rem .8rem; border-radius: 10px; border-left: 4px solid var(--th-primary); background: var(--th-primary-soft); }
.therapie-app .therapie-haeufig__item::before { content: none; }
.therapie-app .therapie-haeufig__item span { font-size: .85rem; color: var(--th-muted); }
.therapie-app .therapie-haeufig__item--kind { border-color: var(--th-m-kind); background: var(--th-m-kind-bg); }
.therapie-app .therapie-haeufig__item--eltern { border-color: var(--th-m-eltern); background: var(--th-m-eltern-bg); }
.therapie-app .therapie-haeufig__item--bewaeltigung { border-color: var(--th-m-bew); background: var(--th-m-bew-bg); }
.therapie-app .therapie-haeufig__item--erwachsener { border-color: var(--th-m-erw); background: var(--th-m-erw-bg); }

.therapie-app .therapie-wochen { margin: .25rem 0 0; }
.therapie-app .therapie-wochen__bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .4rem; align-items: end; height: 120px; padding-bottom: 1.4rem; position: relative; border-bottom: 1px solid var(--th-line); }
.therapie-app .therapie-wochen__col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; min-width: 0; }
.therapie-app .therapie-wochen__stack { display: flex; flex-direction: column-reverse; min-height: 0; border-radius: 4px 4px 0 0; overflow: hidden; }
.therapie-app .therapie-wochen__seg { display: block; flex-basis: 0; min-height: 3px; }
.therapie-app .therapie-wochen__seg--kind { background: var(--th-m-kind); }
.therapie-app .therapie-wochen__seg--eltern { background: var(--th-m-eltern); }
.therapie-app .therapie-wochen__seg--bewaeltigung { background: var(--th-m-bew); }
.therapie-app .therapie-wochen__seg--erwachsener { background: var(--th-m-erw); }
.therapie-app .therapie-wochen__label { position: absolute; bottom: -1.35rem; left: 0; right: 0; text-align: center; font-size: .7rem; color: var(--th-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.therapie-app .therapie-legende { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .6rem; font-size: .8rem; color: var(--th-muted); }
.therapie-app .therapie-legende__item { display: inline-flex; align-items: center; gap: .35rem; }
.therapie-app .therapie-legende__dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; }

.therapie-app .therapie-checkin-list { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .6rem; }
.therapie-app .therapie-checkin-list--innen { padding: .75rem 1rem 1rem; }
.therapie-app .therapie-checkin-item { margin: 0; padding: .7rem .9rem; border: 1px solid var(--th-line); border-left: 4px solid var(--th-line); border-radius: 10px; background: #fff; display: grid; gap: .3rem; }
.therapie-app .therapie-checkin-item::before { content: none; }
.therapie-app .therapie-checkin-item--kind { border-left-color: var(--th-m-kind); }
.therapie-app .therapie-checkin-item--eltern { border-left-color: var(--th-m-eltern); }
.therapie-app .therapie-checkin-item--bewaeltigung { border-left-color: var(--th-m-bew); }
.therapie-app .therapie-checkin-item--erwachsener { border-left-color: var(--th-m-erw); }
.therapie-app .therapie-checkin-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; color: var(--th-muted); }
.therapie-app .therapie-checkin-item__zeit { font-variant-numeric: tabular-nums; }
.therapie-app .therapie-checkin-item__modus { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 600; color: var(--th-dark); }
.therapie-app .therapie-checkin-item__modus a { color: var(--th-primary); }
.therapie-app .therapie-checkin-item__werte { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.therapie-app .therapie-checkin-item__notiz { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.therapie-app .therapie-checkin-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.therapie-app .therapie-checkin-item__actions .therapie-confirm > summary { display: inline; }
.therapie-app .therapie-staerke { display: inline-block; width: 70px; height: 8px; border-radius: 99px; background: var(--th-line); overflow: hidden; }
.therapie-app .therapie-staerke > span { display: block; height: 100%; background: linear-gradient(90deg, var(--th-primary), var(--th-gold)); }

.therapie-app .therapie-kompass { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.therapie-app .therapie-kompass__row { margin: 0; display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr) 3.2rem; grid-template-areas: "name bar wert" ". trend trend"; align-items: center; gap: .15rem .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--th-line); }
.therapie-app .therapie-kompass__row::before { content: none; }
.therapie-app .therapie-kompass__name { grid-area: name; font-weight: 600; }
.therapie-app .therapie-kompass__bar { grid-area: bar; height: 12px; border-radius: 99px; background: var(--th-line); overflow: hidden; }
.therapie-app .therapie-kompass__bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--th-primary), var(--th-gold)); }
.therapie-app .therapie-kompass__wert { grid-area: wert; text-align: right; font-weight: 600; color: var(--th-primary); font-variant-numeric: tabular-nums; }
.therapie-app .therapie-kompass__trend { grid-area: trend; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8rem; }
.therapie-app .therapie-spark--klein { width: 120px; max-width: 40vw; height: 32px; }
@media (max-width: 640px) {
    .therapie-app .therapie-kompass__row { grid-template-columns: minmax(0, 1fr) 3.2rem; grid-template-areas: "name wert" "bar bar" "trend trend"; }
    .therapie-app .therapie-wochen__bars { gap: .2rem; }
    .therapie-app .therapie-wochen__label { font-size: .62rem; }
    .therapie-app .therapie-tabs__item { flex: 1 1 0; justify-content: center; text-align: center; padding: .4rem .6rem; }
}

/* Schatzkiste */
.therapie-app .therapie-ideen { margin: .25rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.therapie-app .therapie-schatz-jetzt { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: linear-gradient(135deg, var(--th-schatz-bg), #fff7e6); border: 1px solid #cfe3d2; }
.therapie-app .therapie-schatz-jetzt p { margin: 0; }
.therapie-app .therapie-schatz-jetzt__label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--th-schatz); }
.therapie-app .therapie-schatz-jetzt__title { font-size: 1.3rem; font-weight: 600; }
.therapie-app .therapie-schatz-jetzt__title a { color: var(--th-dark); text-decoration: none; }
.therapie-app .therapie-schatz-jetzt__text { max-width: 65ch; }
.therapie-app .therapie-schatz-gruppe h3 { margin: 0 0 .6rem; font-size: 1.1rem; }
.therapie-app .therapie-schatz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.therapie-app .therapie-schatz { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem; border: 1px solid var(--th-line); border-top: 4px solid var(--th-schatz); border-radius: 10px; background: #fff; color: var(--th-dark); text-decoration: none; min-width: 0; }
.therapie-app .therapie-schatz:hover, .therapie-app .therapie-schatz:focus-visible { background: var(--th-schatz-bg); }
.therapie-app .therapie-schatz__title { color: var(--th-schatz); font-size: 1.05rem; }
.therapie-app .therapie-schatz__text { font-size: .9rem; overflow-wrap: anywhere; }
.therapie-app .therapie-schatz__meta { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; color: var(--th-muted); }

/* Kurz erklärt */
.therapie-app .therapie-wissen__modi { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.therapie-app .therapie-wissen__modus { padding: .8rem 1rem; border-radius: 10px; border-left: 4px solid var(--th-primary); background: var(--th-primary-soft); }
.therapie-app .therapie-wissen__modus p { margin: .3rem 0 0; font-size: .95rem; }
.therapie-app .therapie-wissen__modus--kind { border-color: var(--th-m-kind); background: var(--th-m-kind-bg); }
.therapie-app .therapie-wissen__modus--kind strong { color: var(--th-m-kind); }
.therapie-app .therapie-wissen__modus--eltern { border-color: var(--th-m-eltern); background: var(--th-m-eltern-bg); }
.therapie-app .therapie-wissen__modus--eltern strong { color: var(--th-m-eltern); }
.therapie-app .therapie-wissen__modus--bewaeltigung { border-color: var(--th-m-bew); background: var(--th-m-bew-bg); }
.therapie-app .therapie-wissen__modus--bewaeltigung strong { color: var(--th-m-bew); }
.therapie-app .therapie-wissen__modus--erwachsener { border-color: var(--th-m-erw); background: var(--th-m-erw-bg); }
.therapie-app .therapie-wissen__modus--erwachsener strong { color: var(--th-m-erw); }
.therapie-app .therapie-wissen__liste { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; max-width: 68ch; }
.therapie-app .therapie-tour-start h3 { margin: 0 0 .3rem; }
.therapie-app .therapie-tour-start p { margin: .3rem 0 0; }

/* Coach: Check-ins einer Person */
.therapie-app .therapie-coach-checkins__inner { padding: .9rem 1rem 1rem; }

/* Erste-Schritte-Tour */
.therapie-tour-layer { position: fixed; inset: 0; z-index: 100000; display: block; }
.therapie-tour-layer::before { content: ""; position: absolute; inset: 0; background: rgba(33, 1, 53, .55); }
.therapie-tour-layer .therapie-tour__spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 4px var(--th-gold), 0 0 0 9999px rgba(33, 1, 53, .55); transition: top .2s, left .2s, width .2s, height .2s; pointer-events: none; }
.therapie-tour-layer:has(.therapie-tour__spot:not([hidden]))::before { background: transparent; }
.therapie-tour-layer .therapie-tour__spot[hidden] { display: none; }
.therapie-tour-layer .therapie-tour__box { position: fixed; width: min(360px, calc(100vw - 2rem)); box-sizing: border-box; padding: 1.1rem 1.2rem 1rem; border-radius: 14px; background: #fff; color: var(--th-dark); box-shadow: 0 12px 40px rgba(33, 1, 53, .35); display: flex; flex-direction: column; gap: .45rem; }
.therapie-tour-layer .therapie-tour__box.is-center { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); }
.therapie-tour-layer .therapie-tour__box.is-sheet { top: auto !important; left: .75rem !important; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); width: auto; }
.therapie-tour-layer .therapie-tour__count { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--th-gold); }
.therapie-tour-layer .therapie-tour__title { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--th-primary); }
.therapie-tour-layer .therapie-tour__text { margin: 0; line-height: 1.5; }
.therapie-tour-layer .therapie-tour__bar { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.therapie-tour-layer .therapie-tour__bar .therapie-btn { min-height: 44px; }
.therapie-tour-layer .therapie-tour__bar > :last-child { margin-left: auto; }
.therapie-tour-layer .therapie-tour__bar [data-back]:not([hidden]) { margin-left: auto; }
.therapie-tour-layer .therapie-tour__bar [data-back]:not([hidden]) + [data-next] { margin-left: 0; }
.therapie-tour-layer .therapie-tour__skip { padding: .4rem 0; border: 0; background: none; color: var(--th-muted); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.therapie-tour-layer [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .therapie-tour-layer .therapie-tour__spot { transition: none; } }

/* Moduslandkarte (ab 2.11.0) -------------------------------------------- */
.therapie-app .therapie-landkarte { display: flex; flex-direction: column; gap: 1.25rem; }
.therapie-app .therapie-landkarte__intro h2 { margin: 0 0 .4rem; }
.therapie-app .therapie-landkarte__intro p { margin: 0; max-width: 68ch; }
.therapie-app .therapie-vordergrund { margin: .1rem 0 0; padding-left: 1.2rem; display: grid; gap: .15rem; }
.therapie-app .therapie-vordergrund a { color: var(--th-primary); font-weight: 600; }
.therapie-app .therapie-landkarte__gruppen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.therapie-app .therapie-landkarte__gruppe { padding: .9rem 1rem 1rem; border-radius: 12px; border-top: 5px solid var(--th-line); background: #faf8fc; min-width: 0; }
.therapie-app .therapie-landkarte__gruppe h3 { margin: 0 0 .7rem; font-size: 1.1rem; }
.therapie-app .therapie-landkarte__gruppe--kind { border-top-color: var(--th-m-kind); background: #fffaf4; }
.therapie-app .therapie-landkarte__gruppe--kind h3 { color: var(--th-m-kind); }
.therapie-app .therapie-landkarte__gruppe--eltern { border-top-color: var(--th-m-eltern); background: #fff7fa; }
.therapie-app .therapie-landkarte__gruppe--eltern h3 { color: var(--th-m-eltern); }
.therapie-app .therapie-landkarte__gruppe--bewaeltigung { border-top-color: var(--th-m-bew); background: #f6f9fd; }
.therapie-app .therapie-landkarte__gruppe--bewaeltigung h3 { color: var(--th-m-bew); }
.therapie-app .therapie-landkarte__gruppe--erwachsener { border-top-color: var(--th-m-erw); background: #f6fbf7; }
.therapie-app .therapie-landkarte__gruppe--erwachsener h3 { color: var(--th-m-erw); }
.therapie-app .therapie-landkarte__gruppe--ohne { grid-column: 1 / -1; }
.therapie-app .therapie-landkarte__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.therapie-app .therapie-landkarte__grid > p { margin: 0; }
.therapie-app .therapie-modus-karte { display: flex; flex-direction: column; gap: .4rem; padding: .75rem .85rem; border: 1px solid var(--th-line); border-radius: 10px; background: #fff; color: var(--th-dark); text-decoration: none; min-width: 0; }
.therapie-app .therapie-modus-karte:hover, .therapie-app .therapie-modus-karte:focus-visible { border-color: var(--th-primary); box-shadow: 0 2px 10px rgba(33, 1, 53, .08); }
.therapie-app .therapie-modus-karte__kopf { display: flex; align-items: center; gap: .6rem; }
.therapie-app .therapie-modus-karte__kopf img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.therapie-app .therapie-modus-karte__namen { display: flex; flex-direction: column; min-width: 0; }
.therapie-app .therapie-modus-karte__namen strong { color: var(--th-primary); overflow-wrap: anywhere; }
.therapie-app .therapie-modus-karte__namen .therapie-muted { font-size: .8rem; }
.therapie-app .therapie-modus-karte__staerke { display: flex; align-items: center; gap: .5rem; font-size: .8rem; }
.therapie-app .therapie-modus-karte__zeile { font-size: .875rem; overflow-wrap: anywhere; }
.therapie-app .therapie-modus-karte__botschaft { font-style: italic; color: var(--th-muted); }
.therapie-app .therapie-modus-karte .therapie-tag { align-self: flex-start; }
.therapie-app .therapie-modus-karte--vorschlag { border: 2px dashed #cbb8d8; background: transparent; justify-content: center; min-height: 72px; }
.therapie-app .therapie-modus-karte--vorschlag strong { color: var(--th-dark); font-weight: 600; }
.therapie-app .therapie-modus-karte--vorschlag:hover { background: #fff; }
@media (max-width: 760px) {
    .therapie-app .therapie-landkarte__gruppen { grid-template-columns: 1fr; }
    .therapie-app .therapie-landkarte__grid { grid-template-columns: 1fr; }
}

/* Moduslandkarte (ab 2.11.0) -------------------------------------------- */
.therapie-app .therapie-landkarte { display: flex; flex-direction: column; gap: 1.25rem; }
.therapie-app .therapie-landkarte__intro h2 { margin: 0 0 .4rem; }
.therapie-app .therapie-landkarte__intro p { margin: 0; max-width: 68ch; }
.therapie-app .therapie-vordergrund { margin: .1rem 0 0; padding-left: 1.2rem; display: grid; gap: .15rem; }
.therapie-app .therapie-vordergrund a { color: var(--th-primary); font-weight: 600; }
.therapie-app .therapie-landkarte__gruppen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.therapie-app .therapie-landkarte__gruppe { padding: .9rem 1rem 1rem; border-radius: 12px; border-top: 5px solid var(--th-line); background: #faf8fc; min-width: 0; }
.therapie-app .therapie-landkarte__gruppe h3 { margin: 0 0 .7rem; font-size: 1.1rem; }
.therapie-app .therapie-landkarte__gruppe--kind { border-top-color: var(--th-m-kind); background: #fffaf4; }
.therapie-app .therapie-landkarte__gruppe--kind h3 { color: var(--th-m-kind); }
.therapie-app .therapie-landkarte__gruppe--eltern { border-top-color: var(--th-m-eltern); background: #fff7fa; }
.therapie-app .therapie-landkarte__gruppe--eltern h3 { color: var(--th-m-eltern); }
.therapie-app .therapie-landkarte__gruppe--bewaeltigung { border-top-color: var(--th-m-bew); background: #f6f9fd; }
.therapie-app .therapie-landkarte__gruppe--bewaeltigung h3 { color: var(--th-m-bew); }
.therapie-app .therapie-landkarte__gruppe--erwachsener { border-top-color: var(--th-m-erw); background: #f6fbf7; }
.therapie-app .therapie-landkarte__gruppe--erwachsener h3 { color: var(--th-m-erw); }
.therapie-app .therapie-landkarte__gruppe--ohne { grid-column: 1 / -1; }
.therapie-app .therapie-landkarte__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.therapie-app .therapie-landkarte__grid > p { margin: 0; }
.therapie-app .therapie-modus-karte { display: flex; flex-direction: column; gap: .4rem; padding: .75rem .85rem; border: 1px solid var(--th-line); border-radius: 10px; background: #fff; color: var(--th-dark); text-decoration: none; min-width: 0; }
.therapie-app .therapie-modus-karte:hover, .therapie-app .therapie-modus-karte:focus-visible { border-color: var(--th-primary); box-shadow: 0 2px 10px rgba(33, 1, 53, .08); }
.therapie-app .therapie-modus-karte__kopf { display: flex; align-items: center; gap: .6rem; }
.therapie-app .therapie-modus-karte__kopf img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.therapie-app .therapie-modus-karte__namen { display: flex; flex-direction: column; min-width: 0; }
.therapie-app .therapie-modus-karte__namen strong { color: var(--th-primary); overflow-wrap: anywhere; }
.therapie-app .therapie-modus-karte__namen .therapie-muted { font-size: .8rem; }
.therapie-app .therapie-modus-karte__staerke { display: flex; align-items: center; gap: .5rem; font-size: .8rem; }
.therapie-app .therapie-modus-karte__zeile { font-size: .875rem; overflow-wrap: anywhere; }
.therapie-app .therapie-modus-karte__botschaft { font-style: italic; color: var(--th-muted); }
.therapie-app .therapie-modus-karte .therapie-tag { align-self: flex-start; }
.therapie-app .therapie-modus-karte--vorschlag { border: 2px dashed #cbb8d8; background: transparent; justify-content: center; min-height: 72px; }
.therapie-app .therapie-modus-karte--vorschlag strong { color: var(--th-dark); font-weight: 600; }
.therapie-app .therapie-modus-karte--vorschlag:hover { background: #fff; }
@media (max-width: 760px) {
    .therapie-app .therapie-landkarte__gruppen { grid-template-columns: 1fr; }
    .therapie-app .therapie-landkarte__grid { grid-template-columns: 1fr; }
}

/* „noch nicht eingeschätzt“ (ab 2.11.1) */
.therapie-app .therapie-range.is-offen { opacity: .45; cursor: pointer; }
.therapie-app .therapie-range.is-offen input { pointer-events: none; }
.therapie-app .therapie-range-offen { margin-top: .2rem; font-size: .95rem; }

/* Impressum · Datenschutz (ab 2.12.1) */
.therapie-app .therapie-rechtliches { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin: 1rem 0 0; padding: .9rem 4.5rem .25rem 0; border-top: 1px solid var(--th-line); font-size: .875rem; color: var(--th-muted); }
.therapie-app .therapie-rechtliches__gruppe { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .4rem; }
.therapie-app .therapie-rechtliches a[aria-current="page"] { font-weight: 600; text-decoration: none; }
/* Als Modul im Seitenlayout (ab 2.16.0): kein Platz für den Plus-Knopf nötig */
.therapie-app.therapie-links { display: block; }
.therapie-app.therapie-links .therapie-rechtliches { margin: 0; padding: .9rem 0 .9rem; }
.therapie-app .therapie-rechtliches a { color: var(--th-muted); text-decoration: underline; }
.therapie-app .therapie-rechtliches a:hover { color: var(--th-primary); }
@media (max-width: 640px) { .therapie-app .therapie-form:has(.therapie-actions--sticky) ~ .therapie-rechtliches { padding-bottom: 5rem; } }

/* Einwilligung (ab 2.12.2) */
.therapie-app .therapie-einwilligung { display: flex; flex-direction: column; gap: .9rem; max-width: 46rem; }
.therapie-app .therapie-einwilligung h2 { margin: 0; }
.therapie-app .therapie-einwilligung p { margin: 0; }
.therapie-app .therapie-einwilligung__punkte { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.therapie-app .therapie-einwilligung__form { gap: .9rem; padding: 1rem 1.1rem; border: 2px solid var(--th-primary); border-radius: 12px; background: var(--th-primary-soft); }
.therapie-app .therapie-einwilligung__check { align-items: flex-start; gap: .7rem; line-height: 1.5; }
.therapie-app .therapie-einwilligung__check input { width: 1.3rem; height: 1.3rem; margin-top: .15rem; flex: none; accent-color: var(--th-primary); }
.therapie-app .therapie-einwilligung-info h3 { margin: 0 0 .3rem; }
.therapie-app .therapie-input > label.therapie-einwilligung__check { font-weight: 400; }
.therapie-app .therapie-einwilligung__form .therapie-input { gap: .7rem; }

/* Lerne deine Modi kennen (ab 2.14.0) ----------------------------------- */
.therapie-app .therapie-mt { display: flex; flex-direction: column; gap: 1rem; max-width: 640px; }
.therapie-app .therapie-mt__kopf h2 { margin: 0 0 .5rem; }
.therapie-app .therapie-mt__kopf p { margin: 0 0 .4rem; }
.therapie-app .therapie-mt__fortschritt { display: flex; flex-direction: column; gap: .35rem; font-size: .875rem; color: var(--th-muted); font-variant-numeric: tabular-nums; }
.therapie-app .therapie-mt__leiste { display: block; height: 8px; border-radius: 99px; background: var(--th-line); overflow: hidden; }
.therapie-app .therapie-mt__leiste > span { display: block; height: 100%; background: linear-gradient(90deg, var(--th-primary), var(--th-gold)); transition: width .3s ease; }
.therapie-app .therapie-mt__neu { margin: 0; padding: .6rem .9rem; border-radius: 8px; background: var(--th-primary-soft); color: var(--th-dark); }
.therapie-app .therapie-mt__karte { margin: 0; padding: 1.25rem; border: 1px solid var(--th-line); border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(33, 1, 53, .06); }
.therapie-app .therapie-mt__aussage { margin: 0 0 .5rem; font-size: 1.25rem; line-height: 1.4; color: var(--th-dark); font-weight: 600; }
.therapie-app .therapie-mt__frage { margin: 0 0 1rem; color: var(--th-muted); font-size: .9rem; }
.therapie-app .therapie-mt__antworten { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.therapie-app .therapie-mt__antwort {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    min-height: 64px; padding: .6rem .3rem; border: 1px solid var(--th-line); border-radius: 10px;
    background: #faf8fc; color: var(--th-dark); font: inherit; font-size: .9rem; cursor: pointer; text-align: center;
}
.therapie-app .therapie-mt__antwort:hover { border-color: var(--th-primary); background: var(--th-primary-soft); }
.therapie-app .therapie-mt__antwort.is-selected { border-color: var(--th-primary); background: var(--th-primary); color: #fff; }
.therapie-app .therapie-mt__punkte { display: inline-flex; gap: 3px; }
.therapie-app .therapie-mt__punkte i { width: 7px; height: 7px; border-radius: 50%; background: var(--th-line); }
.therapie-app .therapie-mt__punkte i.is-on { background: var(--th-primary); }
.therapie-app .therapie-mt__antwort.is-selected .therapie-mt__punkte i { background: rgba(255, 255, 255, .35); }
.therapie-app .therapie-mt__antwort.is-selected .therapie-mt__punkte i.is-on { background: #fff; }
.therapie-app .therapie-mt__navi { display: flex; flex-wrap: wrap; gap: .5rem; }
.therapie-app .therapie-mt__pause { margin-left: auto; }
.therapie-app .therapie-mt__intro p, .therapie-app .therapie-mt__intro ul { margin: 0 0 .6rem; }
.therapie-app .therapie-mt__intro li { margin-bottom: .35rem; }
.therapie-app .therapie-mt__frueher h3 { margin: .5rem 0; }
.therapie-app .therapie-mt__verlauf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.therapie-app .therapie-mt__verlauf li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; padding: .6rem .8rem; border: 1px solid var(--th-line); border-radius: 10px; }

/* Ergebnis (auch Coach) */
.therapie-app .therapie-mt-ergebnis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.therapie-app .therapie-mt-gruppe { padding: .8rem 1rem; border-radius: 12px; border-top: 5px solid var(--th-line); background: #faf8fc; min-width: 0; }
.therapie-app .therapie-mt-gruppe h4 { margin: 0 0 .5rem; font-size: 1rem; }
.therapie-app .therapie-mt-gruppe--kind { border-top-color: var(--th-m-kind); background: #fffaf4; }
.therapie-app .therapie-mt-gruppe--kind h4 { color: var(--th-m-kind); }
.therapie-app .therapie-mt-gruppe--eltern { border-top-color: var(--th-m-eltern); background: #fff7fa; }
.therapie-app .therapie-mt-gruppe--eltern h4 { color: var(--th-m-eltern); }
.therapie-app .therapie-mt-gruppe--bewaeltigung { border-top-color: var(--th-m-bew); background: #f6f9fd; }
.therapie-app .therapie-mt-gruppe--bewaeltigung h4 { color: var(--th-m-bew); }
.therapie-app .therapie-mt-gruppe--erwachsener { border-top-color: var(--th-m-erw); background: #f6fbf7; }
.therapie-app .therapie-mt-gruppe--erwachsener h4 { color: var(--th-m-erw); }
.therapie-app .therapie-mt-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.therapie-app .therapie-mt-modus { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; align-items: center; }
.therapie-app .therapie-mt-modus__name { grid-column: 1 / -1; font-weight: 600; color: var(--th-dark); }
.therapie-app .therapie-mt-modus__name a { color: inherit; }
.therapie-app .therapie-mt-balken { display: block; height: 8px; border-radius: 99px; background: var(--th-line); overflow: hidden; }
.therapie-app .therapie-mt-balken > span { display: block; height: 100%; background: linear-gradient(90deg, var(--th-primary), var(--th-gold)); }
.therapie-app .therapie-mt-modus__wert { font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.therapie-app .therapie-coach-modustest__inner { display: flex; flex-direction: column; gap: .6rem; padding: .5rem 1rem 1rem; }
.therapie-app .therapie-coach-modustest__datum { margin: .4rem 0 0; color: var(--th-primary); }

/* Hinweiskarte auf „Mein Weg“ und der Moduslandkarte */
.therapie-app .therapie-mt-hinweis {
    display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1.1rem; border-radius: 12px;
    border: 1px solid var(--th-primary); border-left-width: 5px; background: var(--th-primary-soft); color: var(--th-dark); text-decoration: none;
}
.therapie-app .therapie-mt-hinweis strong { color: var(--th-primary); }
.therapie-app .therapie-mt-hinweis:hover { background: #e8d9f2; }

@media (max-width: 640px) {
    .therapie-app .therapie-mt__karte { padding: 1rem; }
    .therapie-app .therapie-mt__aussage { font-size: 1.1rem; }
    .therapie-app .therapie-mt__antworten { grid-template-columns: 1fr; }
    .therapie-app .therapie-mt__antwort { flex-direction: row; justify-content: flex-start; gap: .8rem; min-height: 48px; padding: .6rem 1rem; text-align: left; }
    .therapie-app .therapie-mt__navi .therapie-btn { flex: 1 1 100%; justify-content: center; }
    .therapie-app .therapie-mt__pause { margin-left: 0; }
    .therapie-app .therapie-mt-ergebnis { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .therapie-app .therapie-mt__leiste > span { transition: none; } }

/* Offline-Eingabe (ab 2.18.0) */
.therapie-offline-hinweis { margin-bottom: 1rem; }
.therapie-offline-hinweis a { color: inherit; font-weight: 600; }

/* Erinnerungen (ab 2.19.0) ---------------------------------------------- */
.therapie-app .therapie-erinnerungen { display: flex; flex-direction: column; gap: 1.25rem; }
.therapie-app .therapie-erinnerungen__intro p { margin: .3rem 0 0; color: var(--th-muted); }
.therapie-app .therapie-erinnerung-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.therapie-app .therapie-erinnerung {
    display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.1rem; border-radius: 12px;
    border: 1px solid var(--th-line); border-left-width: 5px; background: #fff;
}
.therapie-app .therapie-erinnerung--faellig { border-color: var(--th-primary); background: var(--th-primary-soft); }
.therapie-app .therapie-erinnerung--bald { border-left-color: var(--th-gold); }
.therapie-app .therapie-erinnerung--ok { border-left-color: var(--th-ok); }
.therapie-app .therapie-erinnerung--aus { opacity: .75; }
.therapie-app .therapie-erinnerung__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.therapie-app .therapie-erinnerung__titel { margin: 0; font-size: 1.05rem; }
.therapie-app .therapie-erinnerung__status { flex: none; padding: .1rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--th-line); color: var(--th-dark); }
.therapie-app .therapie-erinnerung--faellig .therapie-erinnerung__status { background: var(--th-primary); color: #fff; }
.therapie-app .therapie-erinnerung--bald .therapie-erinnerung__status { background: #fbefd4; color: #7a5200; }
.therapie-app .therapie-erinnerung--ok .therapie-erinnerung__status { background: #e3f1e5; color: var(--th-ok); }
.therapie-app .therapie-erinnerung__text { margin: 0; }
.therapie-app .therapie-erinnerung__daten { margin: 0; font-size: .85rem; color: var(--th-muted); }
.therapie-app .therapie-erinnerung .therapie-inline-form { display: contents; }
.therapie-app .therapie-erinnerung__spaeter { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; color: var(--th-muted); }
.therapie-app .therapie-chip-btn {
    min-height: 36px; padding: .2rem .8rem; border: 1px solid var(--th-line); border-radius: 999px;
    background: #fff; color: var(--th-primary); font: inherit; cursor: pointer;
}
.therapie-app .therapie-chip-btn:hover, .therapie-app .therapie-chip-btn:focus-visible { border-color: var(--th-primary); background: var(--th-primary-soft); }
.therapie-app .therapie-erinnerungen__einstellungen { padding: 1rem 1.1rem; border: 1px solid var(--th-line); border-radius: 12px; gap: .9rem; }
.therapie-app .therapie-erinnerungen__einstellungen h3 { margin: 0; }
.therapie-app .therapie-erinnerungen__felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .9rem; }
.therapie-app .therapie-erinnerung-hinweis a { color: var(--th-primary); }
.therapie-app .therapie-erinnerung-hinweis__mehr { align-self: flex-start; font-size: .9rem; }
@media (max-width: 640px) {
    .therapie-app .therapie-erinnerung .therapie-actions .therapie-btn { flex: 1 1 100%; justify-content: center; text-align: center; }
    .therapie-app .therapie-chip-btn { min-height: 44px; }
}

/* „Was kann ich hier tun?“ – Logo als Wortwolke (ab 2.20.0) -------------- */
.therapie-app .therapie-ub { display: flex; flex-direction: column; gap: 1.25rem; container-type: inline-size; }
.therapie-app .therapie-ub__kopf { display: flex; flex-direction: column; gap: .5rem; }
.therapie-app .therapie-ub__kopf h2 { margin: 0; }
/* Eine Zeile Luft zur Kopfzeile, wenn das Modul auf einer Website-Seite steht (ab 2.27.0) */
.therapie-app.therapie-app--ueberblick { padding-top: 1.75rem; }
.therapie-app .therapie-ub__kopf p { margin: 0; color: var(--th-muted); }
.therapie-app .therapie-ub button.therapie-tabs__item { background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.therapie-app .therapie-ub button.therapie-tabs__item.is-active { background: var(--th-primary); color: #fff; }
.therapie-app .therapie-ub__sicht[hidden] { display: none; }
.therapie-app .therapie-ub__buehne { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.therapie-app .therapie-ub__bild { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; }
.therapie-app .therapie-ub__bild img { display: block; width: 100%; height: auto; }
.therapie-app .therapie-ub__falter {
    position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 999px;
    background: rgba(33, 1, 53, .82); border: 1px solid #f3c24d; color: #ffe7a3;
    font-size: clamp(.68rem, 1.6cqi, .85rem); font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25); transition: transform .15s ease, background .15s ease;
}
.therapie-app .therapie-ub__falter.is-gross { font-size: clamp(.75rem, 1.9cqi, .98rem); }
.therapie-app .therapie-ub__falter.is-figur { background: #f3c24d; color: var(--th-dark); border-color: #fff; }
.therapie-app .therapie-ub__falter.is-aussen { background: #fff; color: var(--th-primary); border-color: var(--th-primary); }
.therapie-app .therapie-ub__falter:hover,
.therapie-app .therapie-ub__falter:focus-visible,
.therapie-app .therapie-ub__falter.is-aktiv { transform: translate(-50%, -50%) scale(1.1); background: var(--th-primary); color: #fff; border-color: #fff; outline: none; z-index: 2; }
.therapie-app .therapie-ub__falter .therapie-ub__nr { display: none; }
.therapie-app .therapie-ub__liste { display: flex; flex-direction: column; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.therapie-app .therapie-ub__karte {
    display: flex; gap: .8rem; padding: .75rem .9rem; border: 1px solid var(--th-line); border-radius: 12px; background: #fff;
    scroll-margin: 1rem; transition: border-color .15s ease, background .15s ease;
}
.therapie-app .therapie-ub__karte:target,
.therapie-app .therapie-ub__karte.is-aktiv { border-color: var(--th-primary); background: var(--th-primary-soft); outline: none; }
.therapie-app .therapie-ub__karte strong { color: var(--th-primary); }
.therapie-app .therapie-ub__karte p { margin: .15rem 0 .3rem; font-size: .92rem; }
.therapie-app .therapie-ub__karte a { font-weight: 600; color: var(--th-primary); }
.therapie-app .therapie-ub__nr {
    flex: none; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
    background: #f3c24d; color: var(--th-dark); font-size: .8rem; font-weight: 700;
}
.therapie-app .therapie-ub__start { padding: 1rem 1.2rem; border-radius: 12px; background: var(--th-primary-soft); display: flex; flex-direction: column; gap: .75rem; }
.therapie-app .therapie-ub__start p { margin: 0; }
/* Schmal: Bild über der Liste, auf den Schmetterlingen nur Nummern */
@container (max-width: 720px) {
    .therapie-app .therapie-ub__buehne { grid-template-columns: 1fr; }
    .therapie-app .therapie-ub__bild { margin-inline: auto; }
}
@container (max-width: 480px) {
    .therapie-app .therapie-ub__falter { padding: 0; border: 0; background: none; box-shadow: none; }
    .therapie-app .therapie-ub__falter .therapie-ub__wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .therapie-app .therapie-ub__falter .therapie-ub__nr { display: inline-grid; width: 2rem; height: 2rem; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .3); }
    .therapie-app .therapie-ub__falter.is-aktiv, .therapie-app .therapie-ub__falter:hover { background: none; }
    .therapie-app .therapie-ub__falter.is-aktiv .therapie-ub__nr { background: var(--th-primary); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .therapie-app .therapie-ub__falter, .therapie-app .therapie-ub__karte { transition: none; } }
.therapie-app .therapie-ub__daten {
    display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.25rem; padding: 1.1rem 1.3rem; border-radius: 14px;
    background: var(--th-dark); color: #fff; border-left: 6px solid #f3c24d;
}
.therapie-app .therapie-ub__daten h3 { margin: 0 0 .4rem; color: #f3c24d; font-size: 1.15rem; }
.therapie-app .therapie-ub__daten ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.therapie-app .therapie-ub__schloss { flex: none; width: 2.2rem; height: 2.2rem; fill: #f3c24d; }
@container (max-width: 480px) { .therapie-app .therapie-ub__schloss { display: none; } }

/* App-News und Wartungshinweis (ab 2.22.0) ------------------------------- */
.therapie-app .therapie-wartung {
    display: flex; gap: .75rem; align-items: flex-start; margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 12px;
    background: #fbefd4; border: 1px solid #e8c36a; color: #4a3500;
}
.therapie-app .therapie-wartung.is-laufend { background: #fde2e1; border-color: #e39a96; color: #5c1612; }
.therapie-app .therapie-wartung__icon { flex: none; width: 1.4rem; height: 1.4rem; fill: currentColor; margin-top: .1rem; }
.therapie-app .therapie-wartung div { display: flex; flex-direction: column; gap: .15rem; }
.therapie-app .therapie-wartung a { color: inherit; font-weight: 600; }
.therapie-app .therapie-appnews { display: flex; flex-direction: column; gap: 1.25rem; }
.therapie-app .therapie-appnews__intro p { margin: .3rem 0 0; color: var(--th-muted); }
.therapie-app .therapie-appnews__liste { display: flex; flex-direction: column; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.therapie-app .therapie-appnews__item { padding: 1rem 1.1rem; border: 1px solid var(--th-line); border-left: 5px solid var(--th-line); border-radius: 12px; background: #fff; }
.therapie-app .therapie-appnews__item.is-neu { border-left-color: var(--th-primary); }
.therapie-app .therapie-appnews__item.is-wartung { border-left-color: #e8c36a; }
.therapie-app .therapie-appnews__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; color: var(--th-muted); }
.therapie-app .therapie-appnews__item h3 { margin: .35rem 0; font-size: 1.1rem; }
.therapie-app .therapie-appnews__item h3 a { color: var(--th-primary); }
.therapie-app .therapie-appnews__wartung { margin: 0 0 .4rem; font-weight: 600; color: #7a5200; }
.therapie-app .therapie-appnews__text > :first-child { margin-top: 0; }
.therapie-app .therapie-appnews__text > :last-child { margin-bottom: 0; }
.therapie-app .therapie-appnews__mehr { display: inline-block; margin-top: .5rem; font-weight: 600; color: var(--th-primary); }
.therapie-app .therapie-tag--neu { border-color: var(--th-primary); background: var(--th-primary); color: #fff; }

/* Startseite „Heute“ (ab 2.24.0) ----------------------------------------- */
.therapie-app .therapie-heute { display: flex; flex-direction: column; gap: 1.25rem; }
.therapie-app .therapie-heute__kopf h2 { margin: 0; }
.therapie-app .therapie-heute__kopf p { margin: .3rem 0 0; color: var(--th-muted); }
.therapie-app .therapie-heute__schnell { display: flex; flex-wrap: wrap; gap: .5rem; }
.therapie-app .therapie-heute__abschnitt h3 { margin: 0 0 .75rem; }
.therapie-app .therapie-erinnerungen__details { margin-top: .5rem; }
.therapie-app .therapie-erinnerungen__details[open] > summary { margin-bottom: .75rem; }
.therapie-app .therapie-naechstes { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 .75rem; padding: 0; list-style: none; }
.therapie-app .therapie-naechstes__item { display: flex; gap: .9rem; align-items: center; padding: .6rem .9rem; border: 1px solid var(--th-line); border-left: 4px solid var(--th-line); border-radius: 10px; background: #fff; }
.therapie-app .therapie-naechstes__item--termin { border-left-color: var(--th-primary); }
.therapie-app .therapie-naechstes__item--aufgabe { border-left-color: var(--th-gold); }
.therapie-app .therapie-naechstes__item.is-ueberfaellig { border-left-color: #c62828; }
.therapie-app .therapie-naechstes__datum { flex: none; display: flex; flex-direction: column; min-width: 4.5rem; font-size: .85rem; color: var(--th-muted); }
.therapie-app .therapie-naechstes__datum strong { font-size: 1.05rem; color: var(--th-dark); }
.therapie-app .is-ueberfaellig .therapie-naechstes__datum span { color: #c62828; font-weight: 600; }
.therapie-app .therapie-naechstes__text { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.therapie-app .therapie-naechstes__text a { font-weight: 600; color: var(--th-primary); }
.therapie-app .therapie-abschnitt { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--th-line); }
.therapie-app .therapie-nav__link--profil { margin-left: auto; }

/* Feedback (ab 2.24.0) --------------------------------------------------- */
.therapie-app .therapie-feedback { display: flex; flex-direction: column; gap: 1.25rem; max-width: 760px; }
.therapie-app .therapie-feedback__intro h2 { margin: 0; }
.therapie-app .therapie-feedback__intro p { margin: .3rem 0 0; color: var(--th-muted); }
.therapie-app .therapie-feedback__bereiche { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .5rem; }
.therapie-app .therapie-feedback__bereich { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--th-line); border-radius: 10px; background: #fff; cursor: pointer; }
.therapie-app .therapie-feedback__bereich:has(input:checked) { border-color: var(--th-primary); background: var(--th-primary-soft); }
.therapie-app .therapie-feedback__bereich input { margin-top: .25rem; }
.therapie-app .therapie-feedback__bereich > span { display: flex; flex-direction: column; gap: .15rem; font-size: .9rem; }
.therapie-app .therapie-feedback__bereich strong { color: var(--th-primary); }
.therapie-app .therapie-feedback__datenschutz { padding: .7rem .9rem; border-radius: 10px; background: var(--th-primary-soft); }
.therapie-app .therapie-feedback-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; padding: .8rem 1rem; border: 1px dashed var(--th-primary); border-radius: 12px; }
.therapie-app .therapie-feedback-link p { margin: 0; }

/* Arbeitsblatt per Foto (ab 2.24.0) ------------------------------------- */
.therapie-app .therapie-blatt { display: flex; flex-direction: column; gap: .75rem; margin: 0 0 1.25rem; padding: 1rem 1.1rem; border: 1px dashed var(--th-primary); border-radius: 12px; background: var(--th-primary-soft); min-width: 0; }
.therapie-app .therapie-blatt.has-error { border-style: solid; border-color: var(--th-danger); }
.therapie-app .therapie-blatt__kopf { display: flex; flex-direction: column; gap: .5rem; }
.therapie-app .therapie-blatt__titel { margin: 0; font-size: 1.05rem; }
.therapie-app .therapie-blatt__text { margin: 0; max-width: 62ch; }
.therapie-app .therapie-blatt__waehlen { position: relative; overflow: hidden; }
.therapie-app .therapie-blatt__datei { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.therapie-app .therapie-blatt__waehlen:focus-within { outline: 2px solid var(--th-gold); outline-offset: 2px; }
.therapie-app .therapie-blatt__wahl { display: inline-flex; align-items: center; gap: .4rem; }
.therapie-app .therapie-blatt__wahl select { padding: .45rem .6rem; border: 1px solid var(--th-line); border-radius: 8px; background: #fff; font: inherit; }
.therapie-app .therapie-blatt__gespeichert .therapie-muted { margin: 0 0 .35rem; }
.therapie-app .therapie-blatt__foto-knopf { font-size: .9rem; }
.therapie-app .therapie-blatt__ansicht { display: flex; flex-direction: column; gap: .6rem; }
.therapie-app .therapie-blatt__bild { max-height: 55vh; overflow: auto; border: 1px solid var(--th-line); border-radius: 10px; background: #fff; -webkit-overflow-scrolling: touch; }
.therapie-app .therapie-blatt__bild img { display: block; width: 100%; height: auto; }
.therapie-app .therapie-blatt.is-gross .therapie-blatt__bild img { width: 200%; max-width: none; }
.therapie-app .therapie-blatt__aktionen { gap: .5rem; }
.therapie-app .therapie-blatt__fortschritt { width: 100%; height: 8px; accent-color: var(--th-primary); }
.therapie-app .therapie-blatt__status { margin: 0; font-size: .92rem; }
.therapie-app .therapie-blatt__status:empty { display: none; }
.therapie-app .therapie-blatt__status.is-ok { padding: .6rem .8rem; border-radius: 8px; background: #e6f2e8; color: var(--th-ok); }
.therapie-app .therapie-blatt__status.is-info { padding: .6rem .8rem; border-radius: 8px; background: #fff; color: var(--th-dark); }
.therapie-app .therapie-blatt__status.is-warn { padding: .6rem .8rem; border-radius: 8px; background: #fbe9ec; color: var(--th-danger); }

/* Vom Foto erkannte Werte: gut sichtbar, damit sie geprüft werden */
.therapie-app .is-vom-foto > input:not([type=checkbox]):not([type=radio]),
.therapie-app .is-vom-foto > textarea,
.therapie-app .is-vom-foto > select,
.therapie-app input.is-vom-foto,
.therapie-app textarea.is-vom-foto { background: #fff8e6; border-color: var(--th-gold); }
.therapie-app .therapie-input.is-vom-foto > label::after,
.therapie-app .therapie-fieldset.is-vom-foto > legend::after { content: ' · vom Foto, bitte prüfen'; font-weight: 400; font-size: .8rem; color: var(--th-gold); }
.therapie-app label.is-vom-foto { outline: 2px dashed var(--th-gold); outline-offset: 2px; }

/* Foto neben dem Formular (breite Bildschirme) */
@media (min-width: 1000px) {
    .therapie-app .therapie-blatt-wrap.has-blatt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.5rem; align-items: start; }
    .therapie-app .therapie-blatt-wrap.has-blatt > .therapie-blatt { position: sticky; top: 1rem; margin: 0; max-height: calc(100vh - 2rem); overflow: auto; }
    .therapie-app .therapie-blatt-wrap.has-blatt .therapie-blatt__bild { max-height: none; }
    .therapie-app .therapie-blatt__zeigen { display: none; }
}

/* Handy: Foto im Vollbild über einen Knopf */
.therapie-app .therapie-blatt__zeigen { position: fixed; left: 1rem; bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); z-index: 1001; min-height: 44px; padding: .4rem .9rem; border: 0; border-radius: 999px; background: var(--th-dark); color: #fff; font: inherit; font-weight: 600; box-shadow: 0 4px 14px rgba(33, 1, 53, .25); cursor: pointer; }
.therapie-app .therapie-blatt__zeigen[hidden] { display: none; }
.therapie-blatt__dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: .75rem; border: 0; background: #111; box-sizing: border-box; }
.therapie-blatt__dialog[open] { display: flex; flex-direction: column; gap: .6rem; }
.therapie-blatt__dialog::backdrop { background: rgba(0, 0, 0, .8); }
.therapie-blatt__dialog-bild { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pinch-zoom pan-x pan-y; }
.therapie-blatt__dialog-bild img { display: block; width: 100%; height: auto; }
.therapie-blatt__dialog .therapie-btn { align-self: center; }

/* Fotos in der Ansicht eines Eintrags */
.therapie-app .therapie-blatt-fotos h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.therapie-app .therapie-blatt-fotos__liste { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.therapie-app .therapie-blatt-fotos__foto { margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; max-width: 160px; }
.therapie-app .therapie-blatt-fotos__foto::before { content: none; }
.therapie-app .therapie-blatt-fotos__foto img { display: block; width: 160px; height: 226px; object-fit: cover; border: 1px solid var(--th-line); border-radius: 8px; }

/* Moduslandkarte vom Blatt */
.therapie-app .therapie-lk-zeile { padding: .75rem 0; border-bottom: 1px solid var(--th-line); }
.therapie-app .therapie-lk-zeile:last-child { border-bottom: 0; }
.therapie-app .therapie-lk-zeile.has-error { background: #fff5f6; }
.therapie-app .therapie-lk-zeile__kopf { margin-bottom: .4rem; }
.therapie-app .therapie-lk-zeile .therapie-hint { margin: 0 0 .4rem; }
.therapie-app .therapie-lk-gruppe--kind legend { color: var(--th-situation); }
.therapie-app .therapie-lk-gruppe--eltern legend { color: var(--th-aufgabe); }
.therapie-app .therapie-lk-gruppe--bewaeltigung legend { color: var(--th-termin); }
.therapie-app .therapie-lk-staerke input { max-width: 6rem; }
.therapie-app .therapie-blatt [hidden], .therapie-app .therapie-blatt-wrap [hidden] { display: none !important; }
@media (max-width: 640px) {
    .therapie-app .therapie-blatt__aktionen > .therapie-btn { flex: 1 1 calc(50% - .5rem); }
    .therapie-app .therapie-blatt__aktionen > .therapie-link-btn { flex: 1 1 100%; text-align: left; }
    .therapie-app .therapie-blatt__bild { max-height: 45vh; }
}

/* Arbeitsblatt (PDF) an Aufgaben (ab 2.27.0) */
.therapie-app .therapie-dokumente { display: flex; flex-direction: column; gap: .8rem; margin: 1.25rem 0; padding: 1rem 1.1rem; border: 1px solid var(--th-line); border-left: 4px solid var(--th-primary); border-radius: 0 12px 12px 0; background: #fff; }
.therapie-app .therapie-dokumente h3 { margin: 0; }
.therapie-app .therapie-dokumente__zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.therapie-app .therapie-dokumente__zeile .therapie-muted { overflow-wrap: anywhere; }
.therapie-app .therapie-dokumente__anleitung { padding: .6rem .9rem; border-radius: 10px; background: var(--th-primary-soft); }
.therapie-app .therapie-dokumente__anleitung > summary { font-weight: 600; color: var(--th-primary); cursor: pointer; }
.therapie-app .therapie-dokumente__anleitung ul { margin: .6rem 0 .4rem; padding-left: 1.2rem; }
.therapie-app .therapie-dokumente__anleitung li { margin: .25rem 0; }
.therapie-app .therapie-dokumente__anleitung p { margin: 0; }
.therapie-app .therapie-dokumente__upload { display: flex; flex-direction: column; gap: .5rem; padding-top: .6rem; border-top: 1px solid var(--th-line); }
.therapie-app .therapie-dokumente__upload p { margin: 0; }
.therapie-app .therapie-dokument-upload .therapie-input { margin: .5rem 0; }
.therapie-app .therapie-dokument-upload__ok { align-items: flex-start; font-weight: 600; }
.therapie-app .therapie-dokument { margin: .3rem 0; overflow-wrap: anywhere; }
.therapie-app input[type=file] { max-width: 100%; }

/* Telefonnummer für den Coach (ab 2.30.0) */
.therapie-telefon { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--th-line); }
.therapie-telefon__title { margin: 0 0 .5rem; font-size: 1rem; }
.therapie-telefon .therapie-check { align-items: flex-start; margin: .25rem 0 .5rem; }
.therapie-telefon__coach { margin-top: .25rem; }
.therapie-telefon__coach a { font-weight: 600; }

/* Ab 2.30.0: Das Theme schreibt Knöpfe mit jedem Wort groß („Kommentar Speichern“) – im Deutschen falsch */
.therapie-app .therapie-btn,
.therapie-app button,
.therapie-flyout .handle,
.therapie-flyout .handle * {
    text-transform: none;
}

/* Ab 2.30.0: Sprung zur Rückfrage „Mit … verbinden?“ nicht unter einer festen Kopfzeile verstecken */
#mein-coach { scroll-margin-top: 6rem; }


/* Reiter auf der Seite einer Person und „Meine nächsten Termine“ im Coach-Bereich (ab 2.32.0) */
.therapie-app .therapie-reiter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: 1rem 0; padding: .3rem; border: 1px solid var(--th-line); border-radius: 12px; background: #fff; }
.therapie-app .therapie-reiter__link { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; padding: .4rem .6rem; border-radius: 9px; color: var(--th-dark); text-align: center; text-decoration: none; font-weight: 600; line-height: 1.2; }
.therapie-app .therapie-reiter__link:hover { background: var(--th-primary-soft); }
.therapie-app .therapie-reiter__link.is-active { background: var(--th-primary); color: #fff; }
.therapie-app .therapie-reiter__link:focus-visible { outline: 2px solid var(--th-primary); outline-offset: 2px; }
.therapie-app .therapie-termine-block { margin-bottom: 1.5rem; }
.therapie-app .therapie-termine-block h2 { margin-top: 0; }
.therapie-app .therapie-termine-block__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.therapie-app .therapie-termine-block__item { margin: 0; padding: 0; }
.therapie-app .therapie-termine-block__item::before { content: none; }
.therapie-app .therapie-termine-block__link { display: flex; align-items: center; gap: .9rem; padding: .6rem .9rem; border: 1px solid var(--th-line); border-left: 4px solid var(--th-primary); border-radius: 10px; background: #fff; color: var(--th-dark); text-decoration: none; }
.therapie-app .therapie-termine-block__link:hover, .therapie-app .therapie-termine-block__link:focus-visible { background: var(--th-primary-soft); }
.therapie-app .therapie-termine-block__datum { display: grid; min-width: 4.5rem; font-size: 1.2rem; font-weight: 700; color: var(--th-primary); font-variant-numeric: tabular-nums; }
.therapie-app .therapie-termine-block__datum small { font-size: .75rem; font-weight: 400; color: var(--th-muted); }
.therapie-app .therapie-termine-block__text { display: grid; gap: .1rem; }
.therapie-app .therapie-termine-block__text span { font-size: .9rem; color: var(--th-muted); }
@media (max-width: 640px) {
    .therapie-app .therapie-reiter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Klient:innen-Liste links im Coach-Bereich (ab 2.32.0) */
.therapie-app .therapie-coach-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin-top: 1rem; }
.therapie-app .therapie-coach-layout__haupt { min-width: 0; }
.therapie-app .therapie-klientenliste { position: sticky; top: 1rem; border: 1px solid var(--th-line); border-radius: 12px; background: #fff; padding: .75rem; }
.therapie-app .therapie-klientenliste__toggle { display: none; }
.therapie-app .therapie-klientenliste__titel { margin: .1rem .25rem .6rem; font-size: 1.05rem; }
.therapie-app .therapie-klientenliste__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; max-height: calc(100vh - 12rem); overflow-y: auto; }
.therapie-app .therapie-klientenliste__item { margin: 0; padding: 0; }
.therapie-app .therapie-klientenliste__item::before { content: none; }
.therapie-app .therapie-klientenliste__link { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem .5rem; border-radius: 9px; color: var(--th-dark); text-decoration: none; }
.therapie-app .therapie-klientenliste__link:hover { background: var(--th-primary-soft); }
.therapie-app .therapie-klientenliste__link.is-active { background: var(--th-primary); color: #fff; }
.therapie-app .therapie-klientenliste__link.is-active .therapie-klientenliste__text span { color: var(--th-cream, #fff); }
.therapie-app .therapie-klientenliste__text { display: grid; min-width: 0; line-height: 1.25; }
.therapie-app .therapie-klientenliste__text strong { overflow-wrap: anywhere; }
.therapie-app .therapie-klientenliste__text span { font-size: .8rem; color: var(--th-muted); }
.therapie-app .therapie-klientenliste__einladen { margin: .6rem .25rem 0; font-size: .9rem; }
@media (max-width: 900px) {
    .therapie-app .therapie-coach-layout { grid-template-columns: 1fr; gap: 1rem; }
    .therapie-app .therapie-klientenliste { position: static; padding: 0; }
    .therapie-app .therapie-klientenliste__toggle { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 48px; padding: .6rem .9rem; border: 0; border-radius: 12px; background: transparent; color: var(--th-primary); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
    .therapie-app .therapie-klientenliste__toggle::after { content: "▾"; margin-left: auto; }
    .therapie-app .therapie-klientenliste.is-offen .therapie-klientenliste__toggle::after { content: "▴"; }
    .therapie-app .therapie-klientenliste__inhalt { display: none; padding: 0 .75rem .75rem; }
    .therapie-app .therapie-klientenliste.is-offen .therapie-klientenliste__inhalt { display: block; }
    .therapie-app .therapie-klientenliste__list { max-height: none; }
}
