/**
 * Floating Dual-Button – Fußzeit Studio
 *
 * Zwei runde Icon-Buttons (Termin buchen oben, WhatsApp unten),
 * fixiert unten LINKS – gestapelt oberhalb des Cookie-Buttons.
 * Stil: border-radius 50%, gleiche Größe wie Cookie-Consent-Button.
 * Keine externen Abhängigkeiten – reines CSS + Inline-SVG.
 */

/* ── Container ─────────────────────────────────────────────────── */
.fz-floating-wrap {
    position: fixed;
    bottom: 74px; /* Cookie-Oberkante (~66px) + 8px Gap = gleicher Abstand wie zwischen den Buttons */
    left: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    /* Sanftes Einblenden beim Laden */
    opacity: 0;
    transform: translateY(16px);
    animation: fz-btn-fadein 0.5s ease 0.8s forwards;
}

/* ── Basis-Button ───────────────────────────────────────────────── */
.fz-floating-btn {
    position: relative; /* Anker für Tooltip */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);

    transition:
        background-color 0.25s ease,
        transform        0.25s ease,
        box-shadow       0.25s ease;
    will-change: transform;
}

/* ── Tooltip-Label – standardmäßig versteckt ────────────────────── */
.fz-floating-btn .fz-floating-btn__label {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(-8px);

    padding: 5px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: #ffffff;
    pointer-events: none;
    opacity: 0;
}

/* Pfeilspitze (zeigt zum Button) */
.fz-floating-btn .fz-floating-btn__label::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
}

/* Farbe: Termin */
.fz-floating-btn--booking .fz-floating-btn__label   { background-color: #5D4B3C; }
.fz-floating-btn--booking .fz-floating-btn__label::before { border-right-color: #5D4B3C; }

/* Farbe + Animation: Termin – einmalig nach 1 s, danach weg */
.fz-floating-btn--booking .fz-floating-btn__label {
    animation: fz-tooltip-blink 2.1s ease-in-out 1s 1 forwards;
}

/* Farbe: WhatsApp */
.fz-floating-btn--whatsapp .fz-floating-btn__label   { background-color: #25D366; }
.fz-floating-btn--whatsapp .fz-floating-btn__label::before { border-right-color: #25D366; }

/* Farbe + Animation: WhatsApp – einmalig nach 3.5 s, danach weg */
.fz-floating-btn--whatsapp .fz-floating-btn__label {
    animation: fz-tooltip-blink 2.1s ease-in-out 3.5s 1 forwards;
}

/* Hover: leicht hochspringen */
.fz-floating-btn:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.26);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ── SVG-Icons ──────────────────────────────────────────────────── */
.fz-floating-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

/* ── WhatsApp-Button ────────────────────────────────────────────── */
.fz-floating-btn--whatsapp {
    position: relative;
    background-color: #25D366;
}

.fz-floating-btn--whatsapp:hover {
    background-color: #1ebe5a;
}

/* Puls-Ring – rund passend zu border-radius: 50% */
.fz-floating-btn--whatsapp::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0;
    animation: fz-pulse 2.4s ease-out 1.5s infinite;
    z-index: -1;
    pointer-events: none;
}

/* ── Termin-Button ──────────────────────────────────────────────── */
.fz-floating-btn--booking {
    background-color: #5D4B3C;
}

.fz-floating-btn--booking:hover {
    background-color: #3C2E21;
}

/* ── Keyframes ──────────────────────────────────────────────────── */

@keyframes fz-btn-fadein {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fz-pulse {
    0%   { transform: scale(1);   opacity: 0.5; }
    70%  { transform: scale(1.5); opacity: 0;   }
    100% { transform: scale(1.5); opacity: 0;   }
}

/*
 * fz-tooltip-blink – spielt EINMAL ab, danach weg.
 *   0.0 – 0.3 s  einblenden
 *   0.3 – 1.8 s  sichtbar
 *   1.8 – 2.1 s  ausblenden
 */
@keyframes fz-tooltip-blink {
    0%   { opacity: 0; transform: translateY(-50%) translateX(-8px); }
    14%  { opacity: 1; transform: translateY(-50%) translateX(0);    }
    86%  { opacity: 1; transform: translateY(-50%) translateX(0);    }
    100% { opacity: 0; transform: translateY(-50%) translateX(-8px); }
}

/* ── Responsive: Mobile ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .fz-floating-wrap {
        bottom: 70px;
        left: 16px;
        gap: 7px;
    }

    .fz-floating-btn {
        width: 42px;
        height: 42px;
    }

    .fz-floating-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ── WordPress Admin-Bar-Kompensation ───────────────────────────── */
.admin-bar .fz-floating-wrap {
    bottom: 72px;
}

@media (max-width: 782px) {
    .admin-bar .fz-floating-wrap {
        bottom: 126px;
    }
}
/* v1.1.2 */
