/* ════════════════════════════════════════════════════════════════
   freigabe.css — Teilen-Auswahl und Fenster „Ansichtslink teilen“
   (24.11.2026). Flach, App-Farben, keine Verläufe.
   ════════════════════════════════════════════════════════════════ */
.teilen-menue {
    position: absolute;
    z-index: 6500;
    width: 320px;
    padding: 6px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(29, 29, 31, 0.08);
    box-shadow: 0 18px 50px rgba(40, 40, 80, 0.22);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    animation: tmEin 0.14s ease;
}
@keyframes tmEin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.tm-punkt {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    text-align: left;
    font: inherit;
    color: #1d1d1f;
    cursor: pointer;
}
.tm-punkt:hover { background: rgba(91, 84, 168, 0.08); }
.tm-icon {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(91, 84, 168, 0.12);
    color: #5b54a8;
}
.tm-icon svg, .tm-schloss, .freigabe-icon svg, .freigabe-weg svg {
    width: 18px; height: 18px;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.tm-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tm-text strong { font-size: 13.5px; font-weight: 800; }
.tm-text span { font-size: 12px; color: rgba(29, 29, 31, 0.55); line-height: 1.35; }
.tm-punkt.is-gesperrt .tm-icon { background: rgba(29, 29, 31, 0.06); color: rgba(29, 29, 31, 0.45); }
.tm-punkt.is-gesperrt strong { color: rgba(29, 29, 31, 0.7); }
.tm-schloss { flex: 0 0 16px; width: 16px; height: 16px; color: rgba(29, 29, 31, 0.4); }
.tm-marke {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 7px;
    background: rgba(91, 84, 168, 0.12);
    color: #4f4a8c;
    font-size: 10.5px;
    font-weight: 800;
}
.tm-marke .tm-schloss { width: 12px; height: 12px; flex-basis: 12px; color: currentColor; }
.tm-marke-business { background: rgba(244, 196, 168, 0.35); color: #8a4a26; }

/* ── Fenster ──────────────────────────────────────────────────────── */
.freigabe-huelle {
    position: fixed;
    inset: 0;
    z-index: 6600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 18, 40, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.freigabe-karte {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 22px;
    padding: 28px 26px 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1d1d1f;
}
.freigabe-laedt { padding: 30px 0; text-align: center; color: rgba(29, 29, 31, 0.5); font-weight: 600; }
.freigabe-zu {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    font-size: 18px; line-height: 1;
    color: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}
.freigabe-icon {
    width: 50px; height: 50px;
    border-radius: 15px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(91, 84, 168, 0.12);
    color: #5b54a8;
    margin-bottom: 14px;
}
.freigabe-icon svg { width: 24px; height: 24px; }
.freigabe-karte h3 { margin: 0 0 8px; font-size: 21px; font-weight: 900; letter-spacing: -0.5px; }
.freigabe-text { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: rgba(29, 29, 31, 0.68); }
.freigabe-punkte { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.freigabe-punkte li { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.45; color: rgba(29, 29, 31, 0.78); }
.freigabe-punkte li::before {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 10px; height: 5px;
    border-left: 2px solid #4f4a8c;
    border-bottom: 2px solid #4f4a8c;
    transform: rotate(-45deg);
}
.freigabe-haupt, .freigabe-kopieren {
    border: 0;
    border-radius: 12px;
    background: #1d1d1f;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.freigabe-haupt { width: 100%; padding: 13px 20px; }
.freigabe-haupt:hover, .freigabe-kopieren:hover { background: #3a3a40; }
.freigabe-haupt:disabled { opacity: 0.6; }
.freigabe-link { display: flex; gap: 8px; margin-bottom: 12px; }
.freigabe-feld {
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    background: #f7f7fb;
    font: inherit;
    font-size: 13px;
    color: #1d1d1f;
}
.freigabe-kopieren { flex: 0 0 auto; padding: 0 16px; }
.freigabe-wege { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.freigabe-weg {
    flex: 1 1 0;
    min-width: 110px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    border: 1px solid rgba(29, 29, 31, 0.1);
    border-radius: 12px;
    background: #fff;
    color: #1d1d1f;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.freigabe-weg:hover { background: rgba(91, 84, 168, 0.07); border-color: rgba(91, 84, 168, 0.25); }
.freigabe-info { font-size: 12.5px; line-height: 1.5; color: rgba(29, 29, 31, 0.55); margin-bottom: 14px; }
.freigabe-info a { color: #4f4a8c; font-weight: 700; }
.freigabe-fuss { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(29, 29, 31, 0.07); }
.freigabe-still {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: rgba(29, 29, 31, 0.6);
    padding: 6px 2px;
    cursor: pointer;
}
.freigabe-still:hover { color: #1d1d1f; }
.freigabe-rot { color: #c0392b; }
.freigabe-rot:hover { color: #962d22; }
.freigabe-fehler { color: #c0392b; font-weight: 600; font-size: 13.5px; }

@media (max-width: 480px) {
    .teilen-menue { width: calc(100vw - 16px); }
    .freigabe-karte { padding: 24px 18px 18px; }
}
