/* ============================================================
   SITE-TOUR
   Tooltip + Spotlight-Overlay, kein externer Abhängigkeit.
   Passt zu Dark-Theme + vorhandenen CSS-Variablen.
============================================================ */

/* Overlay: abdunkelt alles außer dem Ziel-Element */
.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    /* Vier Segmente ergeben ein Loch (clip-path wäre eleganter,
       aber box-shadow + inset ist browseruniversell) */
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.62);
}

/* Highlight-Rahmen um das aktive Element */
.tour-highlight {
    outline: 2px solid var(--accent) !important;
    outline-offset: 4px;
    border-radius: var(--radius);
    position: relative;
    z-index: 9001;
}

/* Tooltip */
.tour-tooltip {
    position: fixed;
    z-index: 9002;
    width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 18px 20px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    font-family: var(--font-sans);
    color: var(--text-primary);
    pointer-events: all;
    animation: tourFadeIn 0.18s ease;
}

@keyframes tourFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* Pfeil (kleines Dreieck das auf das Ziel zeigt) */
.tour-tooltip::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--bg-card);
    border-left: 1px solid var(--accent);
    border-top: 1px solid var(--accent);
    transform: rotate(45deg);
}

.tour-tooltip[data-arrow="top"]::before          { bottom: -6px;  left: 20px;   transform: rotate(225deg); }
.tour-tooltip[data-arrow="bottom"]::before        { top: -6px;     left: 20px;   transform: rotate(45deg);  }
.tour-tooltip[data-arrow="left"]::before          { right: -6px;   top: 18px;    transform: rotate(135deg); }
.tour-tooltip[data-arrow="right"]::before         { left: -6px;    top: 18px;    transform: rotate(-45deg); }
.tour-tooltip[data-arrow="bottom-right"]::before  { top: -6px;     right: 20px;  left: auto; transform: rotate(45deg);  }
.tour-tooltip[data-arrow="top-right"]::before     { bottom: -6px;  right: 20px;  left: auto; transform: rotate(225deg); }
.tour-tooltip[data-last="1"]::before              { display: none; }

/* Schrittanzeige */
.tour-step-indicator {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tour-step-dots {
    display: flex;
    gap: 4px;
}

.tour-step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-strong);
    transition: background 0.2s;
}

.tour-step-dot.active { background: var(--accent); }
.tour-step-dot.done   { background: var(--success); }

/* Titel + Text */
.tour-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--accent);
}

.tour-text {
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* X-Schließen-Button oben rechts */
.tour-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.tour-close:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

/* Button-Zeile */
.tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
}

.tour-btn {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-strong);
    background: var(--bg-input, #1e2030);
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.tour-btn:hover { background: var(--border-strong); color: var(--text-primary); }

.tour-btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

.tour-btn--primary:hover { background: var(--accent-hover); }