/* ============================================================
   TEILEN-BUTTON + Popup mit QR-Code
   ============================================================ */
.wi-share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px;
    border: 1px solid var(--border-hover, rgba(201,162,39,.3));
    border-radius: var(--wi-radius-pill, 9999px);
    background: transparent;
    color: var(--accent, #c9a227);
    font-family: inherit; font-size: .78rem; font-weight: 600;
    letter-spacing: .03em; cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.wi-share-btn i { font-size: 1.05rem; }
.wi-share-btn:hover { background: var(--accent, #c9a227); color: #12181d; transform: translateY(-1px); }
.wi-share-btn:focus-visible { outline: 2px solid var(--accent, #c9a227); outline-offset: 3px; }

/* DE-Anzeige ohne Umschaltfunktion */
.wi-toggle-group--static .wi-toggle-group__btn[disabled] { cursor: default; opacity: 1; }

/* ---------- Popup ---------- */
.shr-overlay {
    position: fixed; inset: 0;
    z-index: var(--wi-z-modal, 900);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(6, 12, 16, .86);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.shr-overlay.active { opacity: 1; visibility: visible; }

.shr-box {
    position: relative;
    width: min(380px, 100%);
    max-height: 92vh; overflow-y: auto;
    padding: 26px 24px 20px;
    border-radius: 20px;
    background: var(--bg-elevated, #1a2d39);
    border: 1px solid var(--border, rgba(201,162,39,.16));
    box-shadow: 0 28px 70px rgba(0,0,0,.6);
    text-align: center;
    transform: translateY(12px) scale(.985);
    transition: transform .25s cubic-bezier(.2,.8,.3,1);
}
.shr-overlay.active .shr-box { transform: none; }

.shr-close {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--text-muted, rgba(255,255,255,.6));
    font-size: 1.15rem; cursor: pointer;
}
.shr-close:hover { background: var(--accent, #c9a227); color: #12181d; }

/* Teilbare Karte: Logo + Tagline + QR */
.shr-karte {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 20px 16px 16px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(201,162,39,.10), rgba(255,255,255,.02));
    border: 1px solid rgba(201,162,39,.2);
}
.shr-logo { max-width: 170px; height: auto; }
.shr-logo--icon {
    width: 96px; height: 96px; max-width: 96px;
    border-radius: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    display: none;                      /* am PC das breite Logo zeigen */
}
.shr-tagline {
    font-size: .95rem; font-weight: 600; letter-spacing: .05em;
    color: var(--accent, #c9a227); text-transform: uppercase;
}
.shr-qr {
    padding: 10px; border-radius: 12px; background: #fff; line-height: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.shr-qr img { display: block; width: 180px; height: 180px; }
.shr-url { font-size: .88rem; color: var(--text, #f0f0f5); letter-spacing: .04em; }

.shr-aktionen {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
    margin-top: 16px;
}
.shr-btn {
    padding: 11px 12px;
    border: 1px solid var(--border-hover, rgba(201,162,39,.3));
    border-radius: 10px;
    background: transparent; color: var(--accent, #c9a227);
    font-family: inherit; font-size: .84rem; font-weight: 600;
    text-decoration: none; text-align: center; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: background .16s ease, color .16s ease;
}
.shr-btn:hover { background: var(--accent, #c9a227); color: #12181d; }
.shr-btn--voll { grid-column: 1 / -1; background: var(--accent, #c9a227); color: #12181d; }
.shr-btn--voll:hover { filter: brightness(1.08); }
.shr-hinweis {
    margin: 12px 0 0; font-size: .72rem;
    color: var(--text-dim, rgba(255,255,255,.4));
}

@media (prefers-reduced-motion: reduce) {
    .shr-overlay, .shr-box { transition: none; }
    .shr-box { transform: none; }
}

@media (max-width: 600px) {
    .wi-share-btn span { display: none; }          /* nur Icon — spart Platz */
    .wi-share-btn { padding: 8px 10px; min-height: 38px; }
    .shr-box { padding: 22px 16px 16px; border-radius: 16px; }
    .shr-qr img { width: 160px; height: 160px; }

    /* Auf Mobil wirkt das breite Logo gequetscht — dort nur das Icon */
    .shr-logo--voll { display: none; }
    .shr-logo--icon { display: block; }
    .shr-karte { gap: 10px; padding: 18px 14px 14px; }
}
