/*
 * HobbyWorld Share – v1.1.0
 * Trackerfrei, ohne externe Icon-Bibliothek
 */

.hw-share {
    --hw-share-primary: #018be4;
    --hw-share-primary-dark: #0073bd;
    --hw-share-text: #30343a;
    --hw-share-muted: #66707a;
    --hw-share-border: #dfe5ea;
    --hw-share-soft: #f5fbff;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    color: var(--hw-share-text);
    font-size: 15px;
    line-height: 1.5;
}

.hw-share--card {
    padding: 18px 20px;
    border: 1px solid rgba(1, 139, 228, .5);
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(1, 139, 228, .035), #fff 45%);
}

.hw-share--minimal {
    padding: 14px 0;
    border-top: 1px solid var(--hw-share-border);
    border-bottom: 1px solid var(--hw-share-border);
}

.hw-share--center {
    flex-direction: column;
    text-align: center;
}

.hw-share__text {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hw-share__copy {
    min-width: 0;
}

.hw-share__main-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--hw-share-primary);
}

.hw-share__main-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hw-share__headline {
    color: var(--hw-share-primary);
    font-size: 17px;
    font-weight: 700;
}

.hw-share__intro {
    margin-top: 2px;
    color: var(--hw-share-muted);
    font-size: 14px;
}

.hw-share__actions,
.hw-share__desktop {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hw-share__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--hw-share-border);
    border-radius: 8px;
    background: #fff;
    color: var(--hw-share-text);
    font: inherit;
    font-weight: 650;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hw-share__button--primary,
.hw-share__button--native {
    border-color: var(--hw-share-primary);
    background: var(--hw-share-primary);
    color: #fff;
}

.hw-share__button--outline {
    border-color: var(--hw-share-primary);
    background: #fff;
    color: var(--hw-share-primary);
}

.hw-share__button:hover,
.hw-share__button:focus-visible {
    transform: translateY(-1px);
}

.hw-share__button--primary:hover,
.hw-share__button--primary:focus-visible,
.hw-share__button--native:hover,
.hw-share__button--native:focus-visible {
    border-color: var(--hw-share-primary-dark);
    background: var(--hw-share-primary-dark);
    color: #fff;
    box-shadow: 0 5px 14px rgba(1, 139, 228, .18);
}

.hw-share__button--outline:hover,
.hw-share__button--outline:focus-visible {
    border-color: var(--hw-share-primary-dark);
    background: var(--hw-share-soft);
    color: var(--hw-share-primary-dark);
}

.hw-share__button:focus-visible {
    outline: 3px solid rgba(1, 139, 228, .2);
    outline-offset: 2px;
}

.hw-share__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.hw-share__button-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hw-share__button-icon .hw-share__social-svg {
    fill: currentColor;
    stroke: none;
}

.hw-share__button-icon .hw-share__fill {
    fill: currentColor;
    stroke: none;
}

.hw-share__button--native {
    display: none;
}

.hw-share__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .hw-share {
        display: block;
    }

    .hw-share--card {
        padding: 16px;
    }

    .hw-share__text {
        gap: 9px;
    }

    .hw-share__main-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .hw-share__main-icon svg {
        width: 28px;
        height: 28px;
    }

    .hw-share__headline {
        font-size: 16px;
    }

    .hw-share__actions {
        display: block;
        margin-top: 12px;
    }

    .hw-share__desktop {
        display: none;
    }

    .hw-share__button--native {
        display: inline-flex;
        width: 100%;
        min-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hw-share__button {
        transition: none;
    }
}
