/* Stand 495: Tippo, die Erklär-Figur im Kundenbereich. Knopf und Blase stehen in einer Stapelfläche unten rechts, immer über der Speichern-Leiste und über festen Meldungen. */
.tp-st{--tp-hl:#163B4C;position:fixed;right:max(12px,env(safe-area-inset-right,0px));bottom:calc(var(--tp-b,12px) + env(safe-area-inset-bottom,0px));z-index:118;display:flex;flex-direction:column;align-items:flex-end;gap:10px;pointer-events:none;max-width:calc(100vw - 24px)}
.tp-st>*{pointer-events:auto}
:root[data-theme="dark"] .tp-st,:root[data-theme="dark"] .tp-hl{--tp-hl:#5EDBC0}
.tp-btn{width:60px;height:60px;border:0;background:none;padding:0;position:relative;cursor:pointer;display:block;flex:none;border-radius:50%}
.tp-btn:focus-visible{outline:3px solid var(--orange,#DB5840);outline-offset:3px}
.tippo{position:relative;display:block;width:var(--ts,40px);transform-origin:50% 90%}
.tp-btn .tippo{position:absolute;right:0;bottom:0;transition:transform .15s}
@media (hover:hover){.tp-btn:hover .tippo{transform:scale(1.08)}}
.tippo[data-tf]{aspect-ratio:1130/1040;height:auto;overflow:visible}
.tippo[data-tf] .tfr{position:absolute;left:0;top:0;width:1254px;height:1254px;transform-origin:0 0;pointer-events:none}
.tippo[data-tf] .tff{position:absolute;left:0;top:0;width:1254px;height:1254px;transform-origin:590px 1100px}
.tippo[data-tf] img,.tippo[data-tf] .tfk,.tippo[data-tf] .tfa,.tippo[data-tf] .tfc,.tippo[data-tf] .tff>div{position:absolute;max-width:none;max-height:none;pointer-events:none;forced-color-adjust:none}
.tippo[data-tf] .tfk{left:0;top:0;width:1254px;height:1254px;transform-origin:742px 548px}
.tippo[data-tf] .tfa{overflow:hidden;border-radius:50%}
.tippo[data-tf] .tfg{opacity:0;transition:opacity .14s ease}
.tippo[data-tf] .tfh{opacity:0;transition:opacity .15s ease}
.tippo[data-tf] .tfw{opacity:0;transition:opacity .3s ease}
.tippo[data-tf] .tfc,.tippo[data-tf] .tff>img:first-child,.tippo[data-tf] .tff>div{transition:opacity .25s ease}
.tippo img{forced-color-adjust:none}
.tp-btn .lbl{position:absolute;right:66px;top:50%;transform:translateY(-50%);background:var(--navy,#163B4C);color:#fff;border-radius:999px;padding:4px 10px;font-size:.85rem;font-weight:600;white-space:nowrap;opacity:0;transition:opacity .2s;pointer-events:none;box-shadow:0 3px 10px rgba(0,0,0,.25)}
:root[data-theme="dark"] .tp-btn .lbl{background:#F2F6F8;color:#163B4C}
@media (hover:hover){.tp-btn:hover .lbl{opacity:1}}
.tp-btn:focus-visible .lbl,.tp-btn .lbl.an{opacity:1}
@media (max-width:420px){.tp-btn .lbl.an{white-space:normal;width:max-content;max-width:calc(100vw - 96px);border-radius:12px}}
.tp-bub{background:var(--card,#fff);color:var(--fg,#163B4C);border:1.5px solid var(--line,#D3DEE3);border-radius:16px;padding:12px 14px;box-shadow:0 12px 30px rgba(0,0,0,.28);width:min(360px,calc(100vw - 24px));max-height:var(--tp-mh,60vh);overflow:auto;display:grid;gap:8px;scrollbar-width:thin;scrollbar-color:var(--muted,#4A6270) transparent}
.tp-bub[hidden]{display:none}
.tp-bub .tr2{display:flex;gap:10px;align-items:flex-start}
.tp-bub .tr2 .tippo{flex:none}
.tp-bub h2{font-size:1rem;margin:0}
.tp-bub h2:focus{outline:none}
.tp-bub h2:focus-visible{outline:3px solid var(--orange,#DB5840);outline-offset:2px}
.tp-bub p{margin:0;font-size:.93rem;overflow-wrap:anywhere}
.tp-bub p.hint{margin:2px 0 0;font-size:.85rem;color:var(--muted,#4A6270)}
.tp-bub .k{font-weight:700;font-size:.82rem;color:var(--muted,#4A6270);display:block}
.tp-bub .tw{font-weight:700;font-size:.82rem;color:var(--muted,#4A6270);display:block;margin-bottom:2px}
.tp-bub .tt{font-weight:700;display:block;margin-bottom:2px}
.tp-bub .acts{display:flex;gap:8px;flex-wrap:wrap;position:sticky;bottom:-12px;background:var(--card,#fff);padding:6px 0 2px;margin-bottom:-4px}
.tp-bub .btn{min-height:44px;padding:2px 12px;font-size:.9rem}
.tp-bub.more .acts::before{content:"Weiter unten steht mehr ▾";flex:1 1 100%;font-size:.8rem;font-weight:700;color:var(--muted,#4A6270)}
.tp-hl{--tp-hl:#163B4C;outline:3px solid var(--tp-hl)!important;outline-offset:4px;border-radius:10px;box-shadow:0 0 0 8px rgba(94,219,192,.32)}
/* Platz schaffen, damit nichts unter Knopf und Blase festsitzt */
body.hat-tippo{padding-bottom:calc(var(--tp-sp,0px) + 84px)}
body.hat-tippo.hat-sbar{padding-bottom:calc(72px + 84px + var(--tp-h,0px))}
body.hat-tippo.tp-offen:not(.hat-sbar){padding-bottom:calc(84px + var(--tp-h,0px) + 12px)}
/* „Nach oben“ sitzt links neben Tippo und auf gleicher Höhe */
body.hat-tippo .nachoben{right:calc(84px + env(safe-area-inset-right,0px))!important;bottom:calc(var(--tp-b,12px) + 10px + env(safe-area-inset-bottom,0px))!important}
@media (max-width:600px){.tp-bub{padding:10px 12px}}
@media (max-height:520px){.tp-bub{padding:8px 12px;gap:4px}.tp-bub .tr2 .tippo{width:44px!important}.tp-bub h2{font-size:.95rem}.tp-bub p{font-size:.88rem}}
@media (prefers-reduced-motion:reduce){.tp-btn .tippo,.tp-btn .lbl,.tippo[data-tf] .tfg,.tippo[data-tf] .tfh{transition:none}}
@media (forced-colors:active){.tp-bub{border:2px solid CanvasText;background:Canvas;color:CanvasText}.tp-hl{outline:3px solid Highlight!important}}
@media print{.tp-st,#tpLive{display:none!important}}
html.im-rahmen:not(.tp-sp) .tp-st{display:none!important}
