/* Avatar Suisse – Kunden-App, zweite Ausbaustufe: Story, Zusammenhänge, Begleitung, Fragebogen, Teilen */

html { overflow-x: hidden; }   /* Sicherheitsnetz: nichts darf die Seite breiter machen als den Bildschirm */

/* ---------- Knopf «Ihre Analyse in 2 Minuten» im Kopf ---------- */
.story-knopf { display: inline-flex; align-items: center; gap: .6em; margin-top: 18px; padding: .55em 1.15em .55em .6em; min-height: 46px; border-radius: 999px;
  border: 1px solid rgba(56, 179, 201, .55); background: rgba(56, 179, 201, .14); color: #fff; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background .2s, transform .15s var(--ease); }
.story-knopf:hover { background: rgba(56, 179, 201, .26); }
.story-knopf:active { transform: scale(.98); }
.story-knopf svg { width: 28px; height: 28px; color: var(--teal); }

/* ---------- Hinweisband (Fragebogen, Auswertung läuft) ---------- */
.band { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-top: 22px; text-decoration: none; border: 1.5px solid transparent; transition: border-color .2s, box-shadow .2s; }
a.band:hover { border-color: var(--teal); box-shadow: var(--schatten-h); }
.band .sym { width: 46px; height: 46px; border-radius: 14px; background: rgba(56, 179, 201, .14); color: var(--ink); display: grid; place-items: center; flex: none; }
.band .sym svg { width: 24px; height: 24px; }
.band > div { flex: 1; min-width: 0; }
.band b { display: block; font-size: 1.02rem; }
.band div span { display: block; color: var(--text-2); font-size: .92rem; line-height: 1.45; margin-top: 2px; }
@media (max-width: 560px) { .band { flex-wrap: wrap; } .band .btn { width: 100%; } }

/* ---------- Schritte: Stand ---------- */
.schritte-stand { float: right; font-size: .84rem; color: var(--text-3); font-weight: 500; }
.schritte-stand.fertig { color: var(--ink); }

/* ---------- Zusammenhänge ---------- */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.link { padding: 20px; min-width: 0; }
.link .paar { display: grid; justify-items: start; }
.link .kn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .98rem; text-decoration: none; line-height: 1.2; min-width: 0; }
.link .kn .sym { width: 38px; height: 38px; border-radius: 12px; background: var(--flaeche); display: grid; place-items: center; flex: none; }
.link .kn .sym svg { width: 20px; height: 20px; }
.link a.kn:hover .sym { background: rgba(56, 179, 201, .18); }
.strang { width: 2px; height: 22px; margin: 3px 0 3px 18px; background: linear-gradient(180deg, var(--line-2) 50%, transparent 50%) 0 0 / 2px 8px; position: relative; display: block; }
.strang i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: strang 2.4s var(--ease) infinite; }
@keyframes strang { 0% { top: -2px; opacity: 0; } 20%, 80% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
.link p { margin-top: 14px; color: var(--text-2); font-size: .98rem; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .strang i { animation: none; top: calc(50% - 4px); } }

/* ---------- Regler (Check-in und Fragebogen) ---------- */
.regler { display: grid; gap: 6px; }
.rg-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rg-kopf span { font-weight: 600; font-size: 1rem; line-height: 1.35; }
.rg-kopf output { font-size: 1.5rem; font-weight: 600; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.regler.leer .rg-kopf output { color: var(--text-3); }
.regler input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; padding: 0; border: 0; min-height: 0; cursor: pointer; --p: 50%; }
.regler input[type=range]:focus { box-shadow: none; outline: none; }
.regler input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--teal) var(--p), #E1E8EE var(--p)); }
.regler input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; background: #E1E8EE; }
.regler input[type=range]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--teal); }
.regler input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); box-shadow: 0 2px 8px rgba(11, 24, 38, .22); }
.regler input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); box-shadow: 0 2px 8px rgba(11, 24, 38, .22); }
.regler input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(56, 179, 201, .3); }
.regler.leer input[type=range]::-webkit-slider-runnable-track { background: #E1E8EE; }
.regler.leer input[type=range]::-webkit-slider-thumb { border-color: var(--line-2); }
.regler.leer input[type=range]::-moz-range-progress { background: #E1E8EE; }
.rg-pole { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-3); margin-top: -6px; }
.rg-hinweis { font-size: .84rem; color: var(--text-3); }

/* ---------- Wochen-Check-in ---------- */
.checkin { padding: 26px; display: grid; gap: 22px; }
.checkin h2 { font-size: 1.4rem; font-weight: 300; margin: 0; }
.checkin h2 b { font-weight: 600; }
.checkin .ci-text { color: var(--text-2); margin-top: 6px; max-width: 58ch; }
.ci-regler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) { .ci-regler { grid-template-columns: 1fr; gap: 20px; } }
.ci-fuss { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ci-fuss .fehlertext { min-height: 0; }
.ci-trend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ci-trend > div { background: var(--flaeche); border-radius: 16px; padding: 14px 16px 12px; min-width: 0; }
.ci-trend span { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--text-2); font-weight: 600; }
.ci-trend span svg { width: 17px; height: 17px; }
.ci-trend b { display: block; font-size: 1.7rem; font-weight: 300; line-height: 1.2; margin: 4px 0 6px; }
.ci-trend b small { font-size: .84rem; color: var(--text-3); font-weight: 500; }
.ci-trend em { font-style: normal; font-size: .78rem; color: var(--text-3); display: block; margin-top: 6px; }
@media (max-width: 560px) { .ci-trend span svg { display: none; } .ci-trend { gap: 8px; } .ci-trend > div { padding: 12px 10px 10px; } .ci-trend b { font-size: 1.4rem; } .ci-trend span { font-size: .76rem; } .checkin { padding: 22px 18px; } }

/* ---------- Vier Ebenen ---------- */
.ebenen4 { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: center; padding: 24px; }
.ebenen4 svg { width: 100%; max-width: 330px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.ebenen4 ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ebenen4 li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; }
.ebenen4 li b { font-size: 1.02rem; }
.ebenen4 li em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.ebenen4 li em small { color: var(--text-3); font-weight: 500; }
.ebenen4 li span { grid-column: 1 / -1; font-size: .86rem; color: var(--text-2); }
.ebenen4 li i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #E9EEF2; overflow: hidden; display: block; margin-top: 4px; }
.ebenen4 li i u { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
@media (max-width: 700px) { .ebenen4 { grid-template-columns: 1fr; } }

/* ---------- Fragebogen ---------- */
.fb { max-width: 720px; margin: 0 auto; }
.fb-fortschritt { display: flex; gap: 6px; margin: 4px 0 22px; }
.fb-fortschritt i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.fb-fortschritt i.voll { background: var(--teal); }
.fb-fortschritt i.aktiv { background: var(--ink); }
.fb-karte { padding: 26px; display: grid; gap: 24px; }
.fb-karte h2 { font-size: 1.45rem; font-weight: 600; }
.fb-karte .fb-ein { color: var(--text-2); margin-top: -14px; }
.fb-karte .feld > span { font-size: 1rem; color: var(--text); line-height: 1.4; }
.fb-karte textarea { min-height: 110px; }
.fb-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.fb-nav .fb-stand { color: var(--text-3); font-size: .86rem; }
.fb-dank { text-align: center; padding: 44px 26px; display: grid; gap: 14px; justify-items: center; }
.fb-dank .rund { width: 76px; height: 76px; border-radius: 50%; background: rgba(56, 179, 201, .16); display: grid; place-items: center; color: var(--teal); }
.fb-dank .rund svg { width: 40px; height: 40px; }
.fb-dank h2 { font-size: 1.6rem; font-weight: 300; }
.fb-dank h2 b { font-weight: 600; }
.fb-dank p { color: var(--text-2); max-width: 46ch; }
@media (max-width: 560px) { .fb-karte { padding: 22px 18px; } .fb-nav .btn { flex: 1; } .fb-nav .fb-stand { order: 3; width: 100%; text-align: center; } }

/* ---------- Dokumente: Bericht und Teilen ---------- */
.aktionen2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.aktion { padding: 22px; display: grid; gap: 14px; align-content: start; }
.aktion .kopf { display: flex; gap: 14px; align-items: center; }
.aktion .sym { width: 46px; height: 46px; border-radius: 14px; background: var(--flaeche); display: grid; place-items: center; flex: none; }
.aktion .sym svg { width: 24px; height: 24px; }
.aktion h3 { font-size: 1.1rem; }
.aktion p { color: var(--text-2); font-size: .94rem; }
.aktion .zeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.aktion .zeile .feld { flex: 1; min-width: 160px; }
.haken-feld { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-2); cursor: pointer; }
.haken-feld input { width: 20px; height: 20px; margin-top: 2px; accent-color: #193755; flex: none; }
.linkbox { background: var(--flaeche); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.linkbox code { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; word-break: break-all; user-select: all; color: var(--ink); }
.freigaben { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.freigabe-zeile { display: flex; align-items: center; gap: 12px 14px; padding: 14px 16px; flex-wrap: wrap; }
.freigabe-zeile .name { flex: 1 1 160px; }
.freigabe-zeile > svg { width: 24px; height: 24px; color: var(--teal); flex: none; }
.freigabe-zeile .name { flex: 1; min-width: 0; }
.freigabe-zeile .name b { display: block; }
.freigabe-zeile .name small { color: var(--text-3); font-size: .84rem; }

/* ---------- Profil ---------- */
.profil-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; align-items: start; }
.profil-raster .profil { max-width: none; }
.profil form { display: grid; gap: 12px; }
.profil h3 { font-size: 1.1rem; }

/* ============================ Die Story ============================ */
.story { position: fixed; inset: 0; z-index: 300; color: #fff; overflow: hidden; opacity: 0; transition: opacity .3s;
  background: radial-gradient(110% 70% at 50% 0%, #1e4064 0%, #0B1826 62%); }
.story.da { opacity: 1; } .story.weg { opacity: 0; pointer-events: none; }
.st-balken { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 16px; right: 64px; display: flex; gap: 5px; z-index: 3; }
.st-balken i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); transition: background .4s; }
.st-balken i.voll { background: rgba(255, 255, 255, .85); }
.st-balken i.aktiv { background: var(--teal); }
.st-zu { position: absolute; top: calc(2px + env(safe-area-inset-top)); right: 8px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: none; color: rgba(255, 255, 255, .8); cursor: pointer; z-index: 4; display: grid; place-items: center; }
.st-zu:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.st-zu svg { width: 24px; height: 24px; }
.st-buehne { position: absolute; inset: 0; }
.st-folie { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s; }
.st-folie.aktiv { visibility: visible; opacity: 1; transition: opacity .35s; }
.st-inhalt { position: absolute; inset: calc(40px + env(safe-area-inset-top)) 0 calc(96px + env(safe-area-inset-bottom)) 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 22px; padding: 16px max(24px, calc(50vw - 300px)); }
.st-inhalt > * { flex: none; }
/* Mittig, solange Platz ist. Ist der Inhalt höher als der Bildschirm, beginnt er oben und lässt sich ganz durchblättern. */
.st-inhalt > :first-child { margin-top: auto; }
.st-inhalt > :last-child { margin-bottom: auto; }
/* Kinder gleiten gestaffelt herein */
.st-folie [style*="--i"] { opacity: 0; transform: translateY(16px); }
.st-folie.aktiv [style*="--i"] { opacity: 1; transform: none; transition: opacity .6s var(--ease) calc(.12s + var(--i) * .11s), transform .7s var(--ease) calc(.12s + var(--i) * .11s); }
@media (prefers-reduced-motion: reduce) { .st-folie [style*="--i"] { opacity: 1; transform: none; transition: none !important; } }
.st-text { display: grid; gap: 12px; }
.st-vor { color: var(--teal); font-weight: 600; font-size: .98rem; }
.story h2 { font-size: clamp(1.9rem, 6.2vw, 2.9rem); font-weight: 300; line-height: 1.14; letter-spacing: -.02em; }
.story h2 b { font-weight: 600; }
.st-sub { color: rgba(255, 255, 255, .72); font-size: 1.08rem; line-height: 1.6; }
.st-satz { font-size: 1.2rem; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.st-chip { display: inline-flex; align-items: center; gap: 8px; padding: .4em .9em .4em .5em; border-radius: 999px; background: rgba(255, 255, 255, .09); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.st-chip svg { width: 20px; height: 20px; color: var(--teal); }
.st-reihe { display: flex; }

.stf-intro .st-kopf { position: absolute; left: 0; top: 0; width: 100%; height: 58%; pointer-events: none; }
.stf-intro .st-inhalt { padding-bottom: 28px; }
.stf-intro .st-inhalt > .st-text { margin-top: auto; margin-bottom: 0; }

.st-module { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-mod { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); font-size: .92rem; font-weight: 600; line-height: 1.2; min-width: 0; }
.st-mod .sym { width: 36px; height: 36px; border-radius: 11px; background: rgba(56, 179, 201, .16); display: grid; place-items: center; flex: none; color: var(--teal); }
.st-mod .sym svg { width: 20px; height: 20px; }
.st-mod > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.st-mod .hk { width: 18px; height: 18px; color: var(--teal); flex: none; }
@media (max-width: 380px) { .st-module { grid-template-columns: 1fr; } }

.st-bilanz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st-bilanz > div { position: relative; padding: 16px 10px 12px; min-width: 0; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.st-bilanz b { display: block; font-size: clamp(2.3rem, 10vw, 3.8rem); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.st-bilanz span { display: block; margin-top: 10px; font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .85); line-height: 1.25; }
.st-bilanz span svg { position: absolute; top: 12px; right: 10px; width: 20px; height: 20px; }
.st-bilanz .gut svg { color: var(--teal); } .st-bilanz .beobachten span { color: #f7c97f; } .st-bilanz .auffaellig span { color: #f29b9b; }
.st-anteil { display: flex; gap: 3px; height: 10px; }
.st-anteil i { border-radius: 5px; min-width: 10px; }
.st-anteil .gut { background: var(--teal); } .st-anteil .beobachten { background: var(--beobachten); } .st-anteil .auffaellig { background: var(--auffaellig); }

.st-karte { padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); display: grid; gap: 14px; }
.st-zahl { font-size: clamp(3rem, 14vw, 4.6rem); font-weight: 300; line-height: 1; letter-spacing: -.03em; }
.st-zahl small { font-size: 1.1rem; font-weight: 500; color: rgba(255, 255, 255, .6); margin-left: 8px; letter-spacing: 0; }
.st-delta { display: block; margin-top: 8px; font-size: .9rem; color: rgba(255, 255, 255, .65); }
.st-ziel { font-size: .84rem; color: rgba(255, 255, 255, .55); margin-top: -6px; }
.story .skala .spur { background: rgba(255, 255, 255, .14); }
.story .skala .grenz { background: rgba(242, 169, 59, .4); }
.story .skala .marke { background: #fff; border-color: #0B1826; }
.story .skala .marke.vorher { background: transparent; border-color: rgba(255, 255, 255, .6); }
.story .skala .zahlen { color: rgba(255, 255, 255, .55); }

.st-besser { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.st-besser > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.st-besser .lbl { font-weight: 600; font-size: 1rem; line-height: 1.25; min-width: 0; }
.st-besser .w { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; flex: none; }
.st-besser .w em { font-style: normal; color: rgba(255, 255, 255, .5); font-size: 1.1rem; }
.st-besser .w svg { width: 16px; height: 16px; color: var(--teal); align-self: center; }
.st-besser .w b { font-size: 1.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-besser .w small { color: rgba(255, 255, 255, .6); font-size: .86rem; }

.st-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.st-link { padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.st-link .paar { display: grid; justify-items: start; }
.st-link .st-chip { font-size: .88rem; }
.st-link .strang { margin-left: 17px; height: 16px; }
.st-link .strang { background: linear-gradient(180deg, rgba(255, 255, 255, .3) 50%, transparent 50%) 0 0 / 2px 8px; }
.st-link p { margin-top: 12px; color: rgba(255, 255, 255, .86); line-height: 1.55; font-size: 1rem; }

.stf-aerztin blockquote { margin: 0; font-size: clamp(1.12rem, 4.4vw, 1.4rem); line-height: 1.62; font-weight: 400; padding-left: 20px; border-left: 3px solid var(--teal); }

.st-schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.st-schritte li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); font-size: 1.02rem; line-height: 1.45; }
.st-schritte li span { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #0B1826; font-weight: 700; font-size: .9rem; display: grid; place-items: center; flex: none; }

/* Begrüssung beim ersten Öffnen */
.st-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.st-liste li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.st-liste .sym { width: 40px; height: 40px; border-radius: 12px; background: rgba(56, 179, 201, .16); display: grid; place-items: center; flex: none; color: var(--teal); }
.st-liste .sym svg { width: 22px; height: 22px; }
.st-liste li > span:last-child { min-width: 0; }
.st-liste b { display: block; font-weight: 600; font-size: 1.04rem; line-height: 1.3; }
.st-liste .t { display: block; margin-top: 3px; color: rgba(255, 255, 255, .72); font-size: .96rem; line-height: 1.45; }
.st-symbol { display: grid; justify-items: start; gap: 8px; }
.st-symbol img { width: 78px; height: 78px; border-radius: 19px; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
.st-symbol span { font-size: .84rem; font-weight: 500; color: rgba(255, 255, 255, .8); }
.stf-home .st-schritte li { align-items: center; }
.stf-home .st-schritte b { font-weight: 600; }
.st-inl { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 4px; border-radius: 8px; background: rgba(255, 255, 255, .12); vertical-align: middle; }
.st-inl svg { width: 18px; height: 18px; color: var(--teal); }
.stf-home .btn svg { width: 20px; height: 20px; }

.st-nav { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px max(20px, calc(50vw - 300px)) calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(11, 24, 38, .92) 38%); }
.st-zurueck { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: none; color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.st-zurueck:hover { background: rgba(255, 255, 255, .08); }
.st-zurueck svg { width: 22px; height: 22px; }
.st-zaehler { flex: 1; text-align: center; color: rgba(255, 255, 255, .5); font-size: .84rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-weiter { min-height: 52px; padding: .7em 1.5em; font-size: 1.02rem; margin-left: auto; flex: 0 1 auto; min-width: 0; }
.st-weiter span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 360px) { .st-weiter { padding: .65em 1.1em; font-size: .95rem; } .st-nav { gap: 10px; } }
.st-weiter:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 3px; }

/* Meldung nicht über die Reiterleiste legen */
@media (max-width: 760px) { .toast { bottom: calc(92px + env(safe-area-inset-bottom)); } }

/* ============================ Dritte Ausbaustufe ============================ */
/* Markierung «neu» an den Reitern */
[data-r="fragen"] { position: relative; }
[data-r="fragen"].neu::after { content: ''; position: absolute; top: 4px; right: calc(50% - 20px); width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px #fff; }
.kopfband [data-r="fragen"].neu::after { top: 6px; right: 4px; box-shadow: none; }

/* Vorher und nachher in 3D */
.vn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vn figure { margin: 0; min-width: 0; }
.viewer-vn { height: min(52vh, 440px); }
.vn figcaption { margin-top: 8px; font-size: .9rem; color: var(--text-2); }
.vn figcaption b { color: var(--text); font-weight: 600; margin-right: 6px; }
.vn-hinweis { font-size: .86rem; color: var(--text-3); margin: 10px 0 14px; }
@media (max-width: 760px) { .vn { grid-template-columns: 1fr; gap: 10px; } .viewer-vn { height: 232px; } .vn figcaption { margin-top: 5px; font-size: .86rem; } }

/* Fragen an die Praxis */
.frage-knopf { margin: 26px 0 4px; }
.fragen { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.fragen .gruppe-titel { margin: 16px 0 0; }
.frage-neu { padding: 26px; display: grid; gap: 16px; }
.frage-neu h2 { font-size: 1.45rem; font-weight: 300; }
.frage-neu h2 b { font-weight: 600; }
.bezug { display: inline-flex; align-items: center; gap: 8px; padding: .35em .9em .35em .55em; border-radius: 999px; background: var(--flaeche); font-size: .86rem; font-weight: 600; line-height: 1.25; }
.bezug svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.bezug-zeile { display: flex; align-items: center; gap: 4px; margin-bottom: -4px; }
.bezug-zeile .icon-btn { width: 36px; height: 36px; color: var(--text-3); }
.bezug-zeile .icon-btn svg { width: 18px; height: 18px; }
.fr-fuss { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fr-hinweis { font-size: .86rem; color: var(--text-3); line-height: 1.5; }
.faden { padding: 20px 22px; display: grid; gap: 12px; }
.faden header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nachricht { padding: 12px 16px; border-radius: 16px; max-width: 88%; line-height: 1.55; }
.nachricht p { white-space: pre-line; overflow-wrap: anywhere; }
.nachricht time { display: block; font-size: .76rem; margin-top: 4px; opacity: .65; }
.nachricht.kunde { background: var(--ink); color: #fff; justify-self: end; border-bottom-right-radius: 5px; }
.nachricht.praxis { background: var(--flaeche); justify-self: start; border-bottom-left-radius: 5px; }
.nachricht.praxis b { display: block; font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: 3px; }
.faden .rueck { display: grid; gap: 10px; }
.faden .rueck-auf { justify-self: start; }
@media (max-width: 560px) { .frage-neu { padding: 22px 18px; } .faden { padding: 18px 16px; } .nachricht { max-width: 94%; } }
@media (max-width: 760px) { .reiter a { font-size: .66rem; } }

/* ---------- Feinschliff der Formatierung ---------- */
.held-status { margin-left: auto; }
.bilanz i { font-style: normal; }
.bilanz .kurz { display: none; }
@media (max-width: 760px) {
  .bilanz .lang { display: none; } .bilanz .kurz { display: inline; }
  .modul-held .reihe { flex-wrap: wrap; row-gap: 12px; }
  .held-status { margin-left: 0; flex-basis: 100%; }
}
.seiten .bal { white-space: nowrap; }
.masse + .werte-liste, .werte-liste + .masse, .werte-liste + .werte-liste { margin-top: 14px; }
.bezug .punkte { clip-path: inset(0 0 0 1.05em); }
.modul .kurz .punkte { row-gap: 0; }
