/* ========================================
 * Guest-Bar: Sticky Anmelde-Hinweis für Gäste
 * Neo-Brutalism Style
 * ======================================== */

.guest-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-card);
    border-top: 3px solid var(--border-color);
    box-shadow: 0 -4px 0 var(--border-color);
    padding: 0.75rem 1rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Versteckt nach Klick auf X */
.guest-bar--hidden {
    transform: translateY(calc(100% + 100px));
    opacity: 0;
    pointer-events: none;
}

.guest-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guest-bar-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-main);
}

.guest-bar-text strong {
    color: var(--color-coral);
}

.guest-bar-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.guest-bar-close {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    transition: background 0.15s ease;
}

.guest-bar-close:hover {
    background: var(--bg-surface-3);
    color: var(--text-main);
}

/* ========================================
 * Mobile: Über der Bottom-Navigation
 * ======================================== */
@media (max-width: 768px) {
    .guest-bar {
        /* Bottom-Nav ist ca. 56px hoch */
        bottom: 56px;
        padding: 0.6rem 0.75rem;
    }

    .guest-bar-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        position: relative;
    }

    .guest-bar-text {
        font-size: 0.82rem;
        padding-right: 2rem;
    }

    .guest-bar-actions {
        width: 100%;
        justify-content: center;
    }

    .guest-bar-actions .btn {
        flex: 1;
        text-align: center;
    }

    .guest-bar-close {
        position: absolute;
        top: -0.15rem;
        right: -0.25rem;
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

/* ========================================
 * KIM-Teaser-Bubble: Floating Vorschau für Gäste
 * ======================================== */

.kim-teaser-bubble {
    position: fixed;
    bottom: 90px;
    right: 1.25rem;
    z-index: 1001;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.kim-teaser-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-emerald);
    border: 3px solid var(--border-color);
    box-shadow: 3px 3px 0 var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-on-bright);
    /* Always black on emerald */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.kim-teaser-bubble:hover .kim-teaser-icon {
    transform: scale(1.08);
    box-shadow: 4px 4px 0 var(--shadow-hard);
}

/* Reset: Kein globaler gelber Link-Hover-Effekt auf KIM-Teaser */
.kim-teaser-bubble:hover {
    background-color: transparent !important;
    text-decoration: none;
}

.kim-teaser-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    box-shadow: 3px 3px 0 var(--shadow-sm);
    color: var(--text-main);
    padding: 0.6rem 0.8rem;
    font-size: 0.82rem;
    line-height: 1.4;
    width: 220px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.kim-teaser-bubble:hover .kim-teaser-tooltip {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mobile: Bubble kleiner, Tooltip immer sichtbar (kurz) */
@media (max-width: 768px) {
    .kim-teaser-bubble {
        display: none;
    }

    .kim-teaser-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    /* Tooltip auf Mobile nicht zeigen – zu viel Platz */
    .kim-teaser-tooltip {
        display: none;
    }
}