/* The guided tour of the report (public/tour.js; W3-C 13.11.2026, before that 29.10.2026). Not modal and without a veil: the page
   stays readable, scrollable and usable; the part the tour speaks of gets a green line of its own (.tour-lit), the words a dark
   card beside it on wide screens, the opening card in the corner, a bar at the bottom on phones that sits above the guest bar
   (.over-guest-bar with its height as --tour-lift, set by tour.js through the CSSOM, never a style attribute). The root lets
   every click through (pointer-events), only the card takes them. Above the page and its bars (head 25, guest bar 30), under the
   toast (40), the language notice and the Clarity banner (60). Buttons at least 44 px, logical properties for right to left. */
.tour{position:fixed;inset:0;z-index:35;pointer-events:none}
.tour-card{position:fixed;pointer-events:auto;width:min(360px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow-y:auto;padding:14px 18px 16px;
  border:1px solid var(--graphite-line);border-top:3px solid var(--lime);border-radius:14px;background:var(--graphite);color:var(--on-dark);
  box-shadow:0 18px 44px oklch(0.2 0.02 140 / .32);overflow-wrap:break-word;hyphens:auto;transition:opacity .2s var(--ease)}
.tour.is-moving .tour-card{opacity:0;pointer-events:none}
/* The opening: no part to stand beside yet, so the corner at the reading end, clear of the report's first lines. */
.tour-card.is-corner{inset-inline-end:max(24px,env(safe-area-inset-right,0px));bottom:max(24px,env(safe-area-inset-bottom,0px));width:min(400px,calc(100vw - 48px))}
.tour-card.is-bar{inset-inline:max(12px,env(safe-area-inset-left,0px)) max(12px,env(safe-area-inset-right,0px));bottom:max(12px,env(safe-area-inset-bottom,0px));
  width:auto;max-width:640px;max-height:min(62vh,calc(100vh - 150px));margin-inline:auto}
/* Above the guest bar fixed at the bottom of a phone (style.css), never over it; the bar's height holds its safe area already. */
.tour-card.is-bar.over-guest-bar{bottom:calc(var(--tour-lift,56px) + 10px);max-height:min(56vh,calc(100vh - var(--tour-lift,56px) - 150px))}
html.consent-open .tour-card.is-bar{bottom:calc(var(--consent-h,0px) + 28px)}
/* The lit part: its own green line, no veil. Inside the edge where the part spans the whole width (the X band, the guest bar). */
.tour-lit{outline:2px solid var(--accent)!important;outline-offset:5px!important}
#sec-x.tour-lit,#guest-bar.tour-lit{outline-offset:-4px!important}
/* The Wächter of a guest lights the guest bar button (21.11.2026): close around it, inside the bar, which ends at the screen's
   bottom edge on a phone. */
#guest-bar .tour-lit{outline-offset:3px!important}
.tour-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px;margin-inline-end:-8px}
.tour-count{font:600 13px/1 var(--mono);color:var(--lime);letter-spacing:.04em}
.tour-title{margin:0;font:650 17px/1.3 var(--sans);color:var(--on-dark)}
.tour-text{margin:6px 0 0;font-size:14.5px;line-height:1.55;color:var(--on-dark-muted)}
.tour-wait{display:flex;gap:8px;align-items:baseline;margin:8px 0 0;font-size:14px;line-height:1.5;color:var(--on-dark)}
.tour-wait::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--lime);animation:tour-pulse 1.4s ease-in-out infinite}
@keyframes tour-pulse{50%{opacity:.35}}
/* What TRACER has read: one line of parts, "läuft" with a pulsing dot or a check mark. */
.tour-progress{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;margin:12px 0 0;padding:8px 12px;border-radius:10px;background:var(--graphite-2);
  list-style:none;font-size:13.5px;line-height:1.45;color:var(--on-dark)}
.tour-progress li{display:inline-flex;align-items:center;gap:5px}
.tour-progress li+li::before{content:"·";margin-inline:8px;color:var(--on-dark-muted)}
.tour-progress .ph-check{font-size:15px;color:var(--lime)}
.tour-progress-run{display:inline-flex;align-items:center;gap:5px;color:var(--on-dark-muted)}
.tour-progress-run::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--lime);animation:tour-pulse 1.4s ease-in-out infinite}
.tour-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:14px}
/* The guest's end: the sign-up on top, full width, "Erst weiterlesen" under it (two long labels never fit side by side). */
.tour-card.is-signup .tour-actions{flex-direction:column;align-items:stretch}
.tour-card button,.tour-link{min-height:44px;min-width:44px;border-radius:10px;font:inherit;font-size:14.5px;font-weight:650;line-height:1.2;cursor:pointer}
.tour-next{padding:10px 20px;border:0;background:var(--lime);color:var(--graphite);transition:filter .15s var(--ease)}
.tour-next:hover{filter:brightness(1.06)}
.tour-link{display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
.tour-back,.tour-other{padding:10px 16px;border:1.5px solid var(--graphite-line);background:transparent;color:var(--on-dark)}
.tour-back:hover,.tour-other:hover{border-color:var(--on-dark-muted)}
.tour-skip{padding:8px 10px;border:0;background:none;color:var(--on-dark-muted);font-size:13.5px;font-weight:600}
.tour-skip:hover{color:var(--on-dark);text-decoration:underline}
.tour-card :focus-visible{outline:2px solid var(--on-dark);outline-offset:3px}
/* "Tour" to see it again on the guest report: in the guest bar on wide screens, in the head on phones (the bar holds the account
   button down there). */
.tour-again{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:0;border-radius:9px;background:none;font:inherit;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap}
.tour-again i.ph{font-size:17px}
.tour-again.is-head{color:var(--on-dark)}
.tour-again.is-head i.ph{color:var(--on-dark-muted)}
.tour-again.is-head:hover{background:var(--graphite-2)}
.tour-again.is-bar{margin-inline-start:8px;color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.tour-again.is-bar:hover{background:var(--lime-wash)}
.tour-again:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tour-again.is-head:focus-visible{outline-color:var(--lime)}
@media(min-width:641px){.tour-again.is-head{display:none}}
@media(max-width:640px){
  .tour-again.is-bar{display:none}
  .tour-card{padding:12px 14px 14px}
  .tour-title{font-size:16px}
  .tour-text{margin-top:4px;font-size:14px;line-height:1.5}
  .tour-progress{margin-top:10px;font-size:13px}
  .tour-actions{margin-top:10px}
  .tour-next{flex:1}
}
html.reduce-motion .tour-card{transition:none}
html.reduce-motion .tour-wait::before,html.reduce-motion .tour-progress-run::before{animation:none}
@media(prefers-reduced-motion:reduce){.tour-card{transition:none}.tour-wait::before,.tour-progress-run::before{animation:none}}
