/* ============================================================ Einfuehrungstour */
.tour-layer { position: fixed; inset: 0; z-index: 2000; }
/* Interaktive Schritte: Seite bleibt bedienbar, nur die Sprechblase faengt Klicks */
.tour-layer.interactive { pointer-events: none; }
.tour-layer.interactive .tour-pop { pointer-events: auto; }
.tour-hint { font-size: .8rem; color: var(--muted, #949bb0); margin-top: -8px !important; }
.tour-pop code, .tour-pop kbd { font-size: .85em; }
.tour-spot.pulse { animation: tour-pulse 1.6s ease-in-out infinite; }
@keyframes tour-pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--accent, #c9a227), 0 0 0 9999px rgba(6, 8, 12, .5); }
    50% { box-shadow: 0 0 0 6px var(--accent-2, #e2bd4a), 0 0 0 9999px rgba(6, 8, 12, .5); }
}

/* Ausschnitt um das hervorgehobene Element; der riesige Schatten dunkelt den Rest ab */
.tour-spot {
    position: fixed; pointer-events: none; border-radius: var(--radius, 8px);
    box-shadow: 0 0 0 3px var(--accent, #c9a227), 0 0 0 9999px rgba(6, 8, 12, .62);
    transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease;
}
.tour-spot.none { box-shadow: 0 0 0 9999px rgba(6, 8, 12, .62); }

.tour-pop {
    position: fixed; left: 50%; top: 40%; width: min(380px, calc(100vw - 32px));
    background: var(--panel, #1e2330); border: 1px solid var(--accent, #c9a227); border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6); padding: 14px 16px 12px;
    transition: left .2s ease, top .2s ease;
}
.tour-pop h2 { margin: 4px 0 8px; font-size: 1.1rem; color: var(--accent-2, #e2bd4a); }
.tour-pop p { margin: 0 0 14px; line-height: 1.45; }
.tour-progress { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted, #949bb0); }
.tour-chapter strong { color: var(--text, #e6e8ee); font-weight: 600; }
.tour-progress-actions { display: flex; align-items: center; gap: 8px; }
.tour-progress .tour-skip { font-size: .78rem; }
.tour-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tour-actions .grow { flex: 1; }
.tour-skip {
    background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: .85rem;
    color: var(--muted, #949bb0); text-decoration: underline;
}
.tour-skip:hover { color: var(--text, #e6e8ee); }

@media (prefers-reduced-motion: reduce) {
    .tour-spot, .tour-pop { transition: none; }
    .tour-spot.pulse { animation: none; }
}
