/**
 * Share-Dialog (Desktop-Fallback ohne Web Share API) + globaler Toast.
 * Pille selbst lebt in header.css.
 */

/* ───── Toast (oben mittig, einheitlich) ───── */
.creovate-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translate(-50%, -16px);
    z-index: 100001;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #1f1f1f;
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.creovate-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.creovate-toast.is-error { background: #b32d2e; }
.creovate-toast svg { display: block; }

/* ───── Share-Dialog ───── */
.share-dialog {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-dialog__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.share-dialog__box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    width: min(380px, 92vw);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.share-dialog__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #555;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s ease;
}
.share-dialog__close:hover { background: #f0f0f0; }
.share-dialog__qr {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-dialog__qr svg {
    width: 100%;
    height: 100%;
    display: block;
}
.share-dialog__description {
    font-size: 13.5px;
    line-height: 1.45;
    color: #333;
    text-align: center;
    margin: 0;
    /* Beschreibung kann lang werden — auf 4 Zeilen begrenzen */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.share-dialog__url {
    font-size: 11.5px;
    color: #888;
    word-break: break-all;
    text-align: center;
    margin: 0;
}
