/* ═══════════════════════════════════════════════════
   Sharing-Modul [eg_share_aktion]
   Praefix: eg-share-
   ═══════════════════════════════════════════════════ */

.eg-share-modul {
    font-family: var(--eg-tr-font, var(--body_typography-font-family, 'Fira Sans', system-ui, sans-serif));
    color: var(--awb-color8, #212934);
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.eg-share-modul *,
.eg-share-modul *::before,
.eg-share-modul *::after {
    box-sizing: inherit;
}

/* ─── Link kopieren ───────────────────────────────── */

.eg-share-url-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--awb-color4, #d8d8d8);
    height: 38px;
    min-width: 0;
    max-width: 100%;
}

.eg-share-url-display {
    padding: 0 12px;
    font-size: 13px;
    color: var(--awb-color6, #4a4e57);
    background: var(--awb-color3, #f5f5f5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 38px;
    flex: 0 1 220px;
    min-width: 0;
}

.eg-share-copy-btn {
    flex-shrink: 0;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--awb-color5, #0f8345);
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s ease;
    white-space: nowrap;
    height: 38px;
    line-height: 38px;
}

.eg-share-copy-btn:hover {
    opacity: .85;
}

.eg-share-kopiert {
    font-size: 12px;
    color: var(--awb-color5, #0f8345);
    margin: 0 !important;
}

/* ─── Share-Buttons ───────────────────────────────── */

.eg-share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.eg-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: opacity .15s ease;
    line-height: 1;
    white-space: nowrap;
}

.eg-share-btn,
.eg-share-btn:hover,
.eg-share-btn:focus,
.eg-share-btn:visited {
    text-decoration: none !important;
}

.eg-share-btn:hover {
    opacity: .85;
}

/* Icon in Buttons */
.eg-share-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Nativer Teilen-Button */
.eg-share-native {
    background: var(--awb-color5, #0f8345);
    color: #fff;
}

/* WhatsApp – Brand #25D366 */
.eg-share-wa {
    background: #25D366;
    color: #fff;
}

.eg-share-wa:hover {
    color: #fff;
}

/* E-Mail – Neutral dunkel */
.eg-share-mail {
    background: var(--awb-color6, #4a4e57);
    color: #fff;
}

.eg-share-mail:hover {
    color: #fff;
}

/* Facebook – Brand #1877F2 */
.eg-share-fb {
    background: #1877F2;
    color: #fff;
}

.eg-share-fb:hover {
    color: #fff;
}

/* ─── Responsiv ───────────────────────────────────── */

@media (max-width: 600px) {
    .eg-share-modul {
        flex-direction: column;
        align-items: stretch;
    }

    .eg-share-url-display {
        max-width: none;
    }
}
