/* ======================================================================
   epnox Floating Contact
   Farben: Dunkelblau #264462, Orange #f1800e
   ====================================================================== */

.epnox-fc {
    --epnox-blue: #264462;
    --epnox-blue-dark: #1b324a;
    --epnox-blue-deep: #122538;
    --epnox-orange: #f1800e;
    --epnox-orange-light: #ffa446;
    --epnox-white: #ffffff;
    --epnox-bg: #ffffff;
    --epnox-text: #2a3a4d;
    --epnox-muted: #6b7a8c;
    --epnox-border: #e6ecf3;
    --epnox-shadow: 0 18px 50px -12px rgba(18, 37, 56, 0.32), 0 6px 16px -6px rgba(18, 37, 56, 0.18);
    --epnox-shadow-trigger: 0 14px 32px -8px rgba(241, 128, 14, 0.55), 0 6px 14px -4px rgba(38, 68, 98, 0.35);

    position: fixed;
    z-index: 999999;
    bottom: 130px; /* Platz über reCAPTCHA-Badge */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--epnox-text);
    line-height: 1.4;
}

.epnox-fc--bottom-right { right: 24px; }
.epnox-fc--bottom-left  { left: 24px; }

/* ---------------- Trigger (geschlossen) ---------------- */

.epnox-fc-trigger {
    position: relative;
    width: 68px;
    height: 68px;
    padding: 0;
    border: none;
    background: linear-gradient(135deg, var(--epnox-blue) 0%, var(--epnox-blue-deep) 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--epnox-shadow-trigger);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--epnox-white);
    overflow: visible;
}

.epnox-fc-trigger:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 22px 40px -8px rgba(241, 128, 14, 0.7), 0 8px 18px -4px rgba(38, 68, 98, 0.4);
}

.epnox-fc-trigger:active { transform: translateY(-1px) scale(1.01); }
.epnox-fc-trigger:focus-visible { outline: 3px solid var(--epnox-orange-light); outline-offset: 3px; }

/* Orange Ring */
.epnox-fc-trigger-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 140deg, var(--epnox-orange) 0deg, var(--epnox-orange-light) 90deg, var(--epnox-orange) 180deg, var(--epnox-blue) 270deg, var(--epnox-orange) 360deg);
    z-index: -1;
    opacity: 0.95;
}

.epnox-fc-trigger-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--epnox-blue-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
}

.epnox-fc-trigger-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.epnox-fc-trigger-avatar svg {
    width: 28px;
    height: 28px;
    color: var(--epnox-white);
}

.epnox-fc-trigger-initials {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--epnox-white);
}

/* Puls-Effekt */
.epnox-fc-trigger-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(241, 128, 14, 0.6);
    animation: epnox-fc-pulse 2.4s ease-out infinite;
}

@keyframes epnox-fc-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(241, 128, 14, 0.5); }
    70%  { box-shadow: 0 0 0 18px rgba(241, 128, 14, 0); }
    100% { box-shadow: 0 0 0 0 rgba(241, 128, 14, 0); }
}

.epnox-fc.is-open .epnox-fc-trigger-pulse { animation: none; }

/* ---------------- Card (offen) ---------------- */

.epnox-fc-card {
    position: absolute;
    bottom: calc(100% + 16px);
    width: 320px;
    background: var(--epnox-bg);
    border-radius: 16px;
    padding: 28px 24px 24px;
    box-shadow: var(--epnox-shadow);
    border: 1px solid var(--epnox-border);
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transform-origin: bottom center;
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
    pointer-events: none;
    overflow: hidden;
}

.epnox-fc--bottom-right .epnox-fc-card { right: 0; transform-origin: bottom right; }
.epnox-fc--bottom-left  .epnox-fc-card { left: 0;  transform-origin: bottom left; }

.epnox-fc-card[hidden] { display: none; }

.epnox-fc.is-open .epnox-fc-card {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Orange Akzentstreifen oben */
.epnox-fc-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--epnox-orange) 0%, var(--epnox-orange-light) 50%, var(--epnox-orange) 100%);
}

.epnox-fc-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--epnox-muted);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.epnox-fc-close:hover {
    background: #f3f6fa;
    color: var(--epnox-blue);
}

.epnox-fc-close svg { width: 16px; height: 16px; }

.epnox-fc-card-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 6px auto 14px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--epnox-blue) 0%, var(--epnox-blue-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--epnox-white);
    box-shadow: 0 6px 18px -6px rgba(38, 68, 98, 0.35), inset 0 0 0 3px var(--epnox-white);
    position: relative;
}

.epnox-fc-card-avatar::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--epnox-orange) 0%, transparent 60%);
    z-index: -1;
}

.epnox-fc-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.epnox-fc-card-avatar svg { width: 38px; height: 38px; }

.epnox-fc-card-initials {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.epnox-fc-card-title {
    margin: 0 0 6px;
    text-align: center;
    font-size: 19px;
    font-weight: 700;
    color: var(--epnox-blue-deep);
    letter-spacing: -0.2px;
}

.epnox-fc-card-name {
    margin: 0 0 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--epnox-text);
}

.epnox-fc-card-role {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    color: var(--epnox-muted);
}

.epnox-fc-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.epnox-fc-card-list li { margin: 0; padding: 0; }

.epnox-fc-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: #f7f9fc;
    border-radius: 10px;
    text-decoration: none;
    color: var(--epnox-blue-deep);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid transparent;
}

.epnox-fc-card-link:hover {
    background: var(--epnox-white);
    border-color: var(--epnox-orange);
    color: var(--epnox-blue-deep);
    transform: translateX(2px);
    box-shadow: 0 4px 14px -4px rgba(241, 128, 14, 0.3);
}

.epnox-fc-card-link:focus-visible {
    outline: 2px solid var(--epnox-orange);
    outline-offset: 2px;
}

.epnox-fc-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--epnox-blue) 0%, var(--epnox-blue-deep) 100%);
    color: var(--epnox-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.18s ease;
}

.epnox-fc-card-link:hover .epnox-fc-card-icon {
    background: linear-gradient(135deg, var(--epnox-orange) 0%, #d96a00 100%);
}

.epnox-fc-card-icon svg { width: 16px; height: 16px; }

/* ---------------- Mobile ---------------- */

@media (max-width: 480px) {
    .epnox-fc { bottom: 120px; }
    .epnox-fc--bottom-right { right: 16px; }
    .epnox-fc--bottom-left  { left: 16px; }

    .epnox-fc-trigger { width: 60px; height: 60px; }
    .epnox-fc-trigger-avatar { width: 48px; height: 48px; }

    .epnox-fc-card {
        width: calc(100vw - 32px);
        max-width: 340px;
        padding: 24px 20px 20px;
    }
}

/* ---------------- Reduced Motion ---------------- */

@media (prefers-reduced-motion: reduce) {
    .epnox-fc-trigger,
    .epnox-fc-card,
    .epnox-fc-card-link { transition: none; }
    .epnox-fc-trigger-pulse { animation: none; }
}
