/**
 * Branchenverzeichnis Guided Tour - CSS Styles
 * Mobile-optimierte Tour für das Verzeichnis-Modul
 */

/* ===== TOUR OVERLAY ===== */
/* Overlay komplett deaktiviert - blockiert keine Klicks */
.bp-tour-overlay {
    display: none !important;
}

/* ===== HIGHLIGHTED ELEMENT ===== */
/* Kein z-index mehr - blockiert keine Klicks */
.bp-tour-highlight {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.6), 0 0 30px rgba(13, 110, 253, 0.4) !important;
    border-radius: 8px;
    animation: bp-tour-pulse 2s infinite;
}

@keyframes bp-tour-pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.6), 0 0 30px rgba(13, 110, 253, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.8), 0 0 40px rgba(13, 110, 253, 0.6);
    }
}

/* ===== TOOLTIP ===== */
.bp-tour-tooltip {
    position: fixed;
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 380px;
    width: calc(100vw - 40px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
    pointer-events: none; /* Tooltip blockiert keine Klicks */
}

.bp-tour-tooltip.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Nur Buttons im Tooltip sind klickbar */
.bp-tour-tooltip .bp-tour-buttons {
    pointer-events: auto;
}

/* Tooltip Arrow */
.bp-tour-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 12px solid transparent;
}

.bp-tour-tooltip.arrow-top::before {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: white;
}

.bp-tour-tooltip.arrow-bottom::before {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: white;
}

.bp-tour-tooltip.arrow-left::before {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: white;
}

.bp-tour-tooltip.arrow-right::before {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: white;
}

/* ===== TOOLTIP CONTENT ===== */
.bp-tour-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #212529;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bp-tour-title i {
    color: #0d6efd;
    font-size: 1.3rem;
}

.bp-tour-text {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===== TOUR BUTTONS ===== */
.bp-tour-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.bp-tour-btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-height: 44px; /* Touch-friendly */
}

.bp-tour-btn-skip {
    background: #f8f9fa;
    color: #6c757d;
}

.bp-tour-btn-skip:hover {
    background: #e9ecef;
    color: #495057;
}

.bp-tour-btn-next {
    background: #0d6efd;
    color: white;
}

.bp-tour-btn-next:hover {
    background: #0b5ed7;
}

/* ===== TOUR PROGRESS ===== */
.bp-tour-progress {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.bp-tour-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
    transition: all 0.2s ease;
}

.bp-tour-progress-dot.active {
    background: #0d6efd;
    transform: scale(1.2);
}

.bp-tour-progress-dot.completed {
    background: #198754;
}

/* ===== STEP INDICATOR ===== */
.bp-tour-step-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #0d6efd;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4);
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
    .bp-tour-tooltip {
        max-width: calc(100vw - 30px);
        padding: 20px;
    }

    .bp-tour-tooltip.arrow-top::before,
    .bp-tour-tooltip.arrow-bottom::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .bp-tour-title {
        font-size: 1.05rem;
    }

    .bp-tour-text {
        font-size: 0.95rem;
    }

    .bp-tour-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .bp-tour-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Extra kleine Geräte */
@media (max-width: 480px) {
    .bp-tour-tooltip {
        padding: 16px;
        border-radius: 12px;
    }

    .bp-tour-title {
        font-size: 1rem;
    }

    .bp-tour-text {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .bp-tour-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .bp-tour-progress-dot {
        width: 8px;
        height: 8px;
    }
}

/* ===== DARK MODE OVERRIDE ===== */
.bp-tour-tooltip {
    background: white !important;
    color: #212529 !important;
}

.bp-tour-title {
    color: #212529 !important;
}

.bp-tour-text {
    color: #6c757d !important;
}
