/* Comb-Tutorial v2: geblurrte Seite, scharfer Zielbereich, Glow-Punkt mit fließender Linie */
.tr-root { position: fixed; inset: 0; z-index: 300; font-family: inherit; animation: tr-fade .3s ease both; pointer-events: none; }
.tr-pn, .tr-hole, .tr-card { pointer-events: auto; }
.tr-root.is-out { opacity: 0; transition: opacity .25s ease; pointer-events: none; }
/* Vier Blur-Flächen rund um das Ziel: alles außerhalb wird unscharf und abgedunkelt */
.tr-pn { position: fixed; background: rgba(10, 12, 26, .5); -webkit-backdrop-filter: blur(9px) saturate(.85); backdrop-filter: blur(9px) saturate(.85);
  transition: left .5s cubic-bezier(.22, 1, .36, 1), top .5s cubic-bezier(.22, 1, .36, 1), width .5s cubic-bezier(.22, 1, .36, 1), height .5s cubic-bezier(.22, 1, .36, 1); }
.tr-hole { position: fixed; background: transparent; }
.tr-ring2 { position: fixed; border-radius: 14px; pointer-events: none; border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 4px rgba(244, 213, 138, .35), 0 0 34px 6px rgba(244, 213, 138, .4);
  transition: left .5s cubic-bezier(.22, 1, .36, 1), top .5s cubic-bezier(.22, 1, .36, 1), width .5s cubic-bezier(.22, 1, .36, 1), height .5s cubic-bezier(.22, 1, .36, 1); animation: tr-pulse 2.4s ease-in-out infinite; }
.tr-root.is-act .tr-ring2 { border-color: #f4d58a; animation-duration: 1.3s; }

/* Linie, Punkt und Funke */
.tr-svg { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; transition: opacity .25s ease; }
.tr-svg.is-off { opacity: 0; }
.tr-line { fill: none; stroke: url(#tr-grad); stroke-width: 2.6; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(244, 213, 138, .75)); }
.tr-svg.is-draw .tr-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tr-drawline .75s .12s cubic-bezier(.22, 1, .36, 1) forwards; }
.tr-flow { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 14; animation: tr-flow 1.1s linear infinite; }
.tr-dot { fill: #fff3cf; filter: drop-shadow(0 0 7px #f4d58a) drop-shadow(0 0 14px rgba(244, 213, 138, .9)); }
.tr-halo { fill: none; stroke: #f4d58a; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: tr-halo 1.8s ease-out infinite; }
.tr-spark { fill: #fff; filter: drop-shadow(0 0 6px #b78bff) drop-shadow(0 0 10px #f4d58a); }
.tr-svg.is-draw .tr-dot { animation: tr-popdot .5s cubic-bezier(.2, 1.6, .4, 1) both; transform-box: fill-box; transform-origin: center; }

.tr-card { position: fixed; z-index: 2; width: min(25rem, calc(100vw - 28px)); box-sizing: border-box; display: grid; gap: 12px; padding: 22px 22px 18px; border-radius: 24px; color: var(--ink, #1b1b24); outline: 0;
  background: var(--paper, #fff); border: 1px solid var(--line, rgba(255, 255, 255, .7));
  box-shadow: 0 30px 80px rgba(8, 8, 24, .5), 0 0 0 1px rgba(244, 213, 138, .25); transition: left .5s cubic-bezier(.22, 1, .36, 1), top .5s cubic-bezier(.22, 1, .36, 1); }
.tr-card.tr-in { animation: tr-in .42s cubic-bezier(.22, 1, .36, 1) both; }
.tr-card--big { width: min(31rem, calc(100vw - 28px)); padding: 34px 32px 24px; text-align: center; justify-items: center; }
.tr-card--big .tr-head { flex-direction: column; }
.tr-card--big .tr-badge { width: 76px; height: 76px; border-radius: 24px; }
.tr-card--big .tr-badge__i { width: 38px; height: 38px; }
.tr-card--big .tr-title { font-size: 1.7rem; }
.tr-card--big .tr-text { font-size: 1.02rem; }
.tr-head { display: flex; align-items: center; gap: 14px; }
.tr-badge { position: relative; flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; color: #fff;
  background: linear-gradient(135deg, var(--brass, #b8923a) 0%, #7a5aa6 120%); box-shadow: 0 10px 24px rgba(122, 90, 166, .35), 0 1px 0 rgba(255, 255, 255, .5) inset; animation: tr-float 3.6s ease-in-out infinite; }
.tr-badge__i { width: 26px; height: 26px; }
.tr-ring { position: absolute; inset: -8px; border-radius: inherit; border: 2px solid rgba(184, 146, 58, .55); animation: tr-ring 2.2s ease-out infinite; }
.tr-card--done .tr-badge { background: linear-gradient(135deg, #3c9d6b, #2a7a8c); }
.tr-card--done .tr-badge__i path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tr-draw .7s .25s ease forwards; }
.tr-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tr-count, .tr-chip { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--brass-soft, #f1e7cf); color: var(--brass, #6d5116); }
.tr-chip--try { background: linear-gradient(135deg, #f4d58a, #e0b24f); color: #3b2c08; animation: tr-blink 1.6s ease-in-out infinite; }
.tr-title { margin: 0; font-size: 1.28rem; line-height: 1.25; letter-spacing: -.01em; }
.tr-text { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--slate, rgba(27, 27, 36, .82)); }
.tr-act { font-size: .9rem; font-weight: 700; padding: 8px 12px; border-radius: 12px; border: 1.5px dashed var(--brass, #b8923a); color: var(--brass, #6d5116); text-align: center; width: 100%; box-sizing: border-box; }
.tr-act.is-warn { border-style: solid; color: var(--danger, #a3302a); border-color: var(--danger, #a3302a); animation: tr-shake .4s ease; }
.tr-tip { text-align: left; font-size: .86rem; line-height: 1.5; padding: 10px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(184, 146, 58, .16), rgba(184, 146, 58, .06)); border-left: 3px solid var(--brass, #b8923a); }
.tr-prog { display: flex; gap: 3px; margin-top: 2px; width: 100%; }
.tr-seg { flex: 1 1 0; height: 4px; border-radius: 4px; background: var(--line, rgba(27, 27, 36, .12)); transition: background .3s, transform .3s; }
.tr-seg.is-done { background: rgba(184, 146, 58, .65); }
.tr-seg.is-on { background: var(--brass, #b8923a); transform: scaleY(1.5); }
.tr-foot { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 2px; }
.tr-sp { flex: 1 1 auto; }
.tr-skip { font: inherit; font-size: .86rem; border: 0; background: transparent; color: var(--slate, rgba(27, 27, 36, .6)); cursor: pointer; padding: 8px 6px; border-radius: 10px; }
.tr-skip:hover { color: var(--ink, #1b1b24); text-decoration: underline; }
.tr-back, .tr-next { font: inherit; font-size: .92rem; font-weight: 700; padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.tr-back { border: 1px solid var(--line, #d9d6cc); background: transparent; color: inherit; }
.tr-back:hover { background: rgba(127, 127, 127, .12); }
.tr-next { border: 0; color: #fff; background: linear-gradient(135deg, #2b2640, #1b1b24); box-shadow: 0 8px 20px rgba(27, 27, 36, .35); }
.tr-next:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(27, 27, 36, .4); }
.tr-next--soft { white-space: nowrap; padding: 10px 14px; font-size: .86rem; background: transparent; color: var(--slate, #556070); box-shadow: none; border: 1px solid var(--line, #d9d6cc); font-weight: 600; }
.tr-card--big .tr-next { background: linear-gradient(135deg, var(--brass, #b8923a), #8d6a1f); padding: 12px 30px; }
.tr-back:focus-visible, .tr-next:focus-visible, .tr-skip:focus-visible, .tr-help:focus-visible { outline: 3px solid var(--brass, #b8923a); outline-offset: 2px; }
.tr-card.is-sheet { left: 14px !important; right: 14px; top: auto !important; bottom: 14px; width: auto; }

/* Knopf zum erneuten Starten */
.tr-help { position: fixed; left: 16px; bottom: 80px; z-index: 94; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line, #d9d6cc); background: var(--paper, #fff); color: var(--ink, #1b1b24); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); transition: transform .15s; }
.tr-help:hover { transform: scale(1.08); }

@keyframes tr-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tr-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(244, 213, 138, .3), 0 0 28px 4px rgba(244, 213, 138, .35); } 50% { box-shadow: 0 0 0 8px rgba(244, 213, 138, .2), 0 0 46px 10px rgba(244, 213, 138, .55); } }
@keyframes tr-drawline { to { stroke-dashoffset: 0; } }
@keyframes tr-flow { to { stroke-dashoffset: -32; } }
@keyframes tr-halo { 0% { transform: scale(.7); opacity: .95; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes tr-popdot { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes tr-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes tr-blink { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
@keyframes tr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes tr-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes tr-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tr-pn, .tr-ring2, .tr-card, .tr-badge, .tr-ring, .tr-card.tr-in, .tr-root, .tr-halo, .tr-flow, .tr-chip--try, .tr-seg, .tr-svg.is-draw .tr-line, .tr-svg.is-draw .tr-dot, .tr-card--done .tr-badge__i path { animation: none !important; transition: none !important; }
  .tr-svg.is-draw .tr-line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .tr-card--done .tr-badge__i path { stroke-dashoffset: 0; }
  .tr-spark { display: none; }
}
