/* ===== TEILEN-FENSTER (Bottom-Sheet wie TikTok) ===== */
.rt-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.rt-overlay.offen { opacity: 1; pointer-events: auto; }
.rt-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100001; box-sizing: border-box;
    max-width: 560px; margin: 0 auto; max-height: 86vh; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; color: #1b1c20; border-radius: 22px 22px 0 0; padding: 10px 0 calc(18px + env(safe-area-inset-bottom));
    transform: translateY(105%); transition: transform .26s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 40px rgba(0,0,0,.25);
    font-family: inherit;
}
.rt-sheet.offen { transform: translateY(0); }
.rt-griff { width: 40px; height: 4px; border-radius: 4px; background: #d6d7dc; margin: 0 auto 10px; }
.rt-kopf { display: flex; align-items: center; gap: 10px; padding: 2px 18px 12px; }
.rt-kopf h3 { margin: 0; font-size: 1.05rem; font-weight: 800; flex: 1; }
.rt-zu { border: 0; background: #f2f2f5; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: #555; font-size: .95rem; }
.rt-vorschau { margin: 0 18px 14px; padding: 10px 12px; background: #f6f6f8; border-radius: 14px; font-size: .85rem; line-height: 1.35; overflow: hidden; }
.rt-vorschau b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-vorschau span { color: #777; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.rt-abschnitt { padding: 0 18px; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #8a8c94; margin: 4px 0 8px; }
.rt-leute { display: flex; gap: 14px; overflow-x: auto; padding: 9px 18px 12px; scrollbar-width: none; }
.rt-leute::-webkit-scrollbar { display: none; }
.rt-person { flex: none; width: 66px; text-align: center; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.rt-av { position: relative; width: 56px; height: 56px; margin: 0 auto 5px; border-radius: 50%; background: #e6e7ec; color: #555; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: visible; }
.rt-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rt-person.gewaehlt .rt-av { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #a70909; }
.rt-haken { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: #a70909; color: #fff; font-size: .62rem; display: none; align-items: center; justify-content: center; border: 2px solid #fff; box-sizing: border-box; }
.rt-person.gewaehlt .rt-haken { display: flex; }
.rt-name { font-size: .72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rt-suche-btn .rt-av { background: #f2f2f5; color: #333; }
.rt-suchfeld { display: none; margin: 0 18px 10px; position: relative; }
.rt-suchfeld.offen { display: block; }
.rt-suchfeld input { width: 100%; box-sizing: border-box; border: 1px solid #dcdce2; border-radius: 14px; padding: 11px 14px; font: inherit; font-size: .9rem; }
.rt-suchfeld input:focus { outline: none; border-color: #a70909; box-shadow: 0 0 0 3px rgba(167,9,9,.1); }
.rt-treffer { margin-top: 6px; }
.rt-treffer .rt-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; cursor: pointer; width: 100%; background: none; border: 0; font: inherit; text-align: left; color: inherit; }
.rt-treffer .rt-zeile:hover { background: #f6f6f8; }
.rt-treffer .rt-av { width: 36px; height: 36px; margin: 0; font-size: .75rem; }
.rt-leer { padding: 6px 18px 12px; font-size: .84rem; color: #8a8c94; }

.rt-senden { display: none; padding: 0 18px 12px; gap: 8px; }
.rt-senden.offen { display: flex; }
.rt-senden input { flex: 1; min-width: 0; border: 1px solid #dcdce2; border-radius: 999px; padding: 11px 16px; font: inherit; font-size: .9rem; }
.rt-senden input:focus { outline: none; border-color: #a70909; }
.rt-senden button { border: 0; border-radius: 999px; background: #a70909; color: #fff; font: inherit; font-weight: 800; padding: 0 20px; cursor: pointer; white-space: nowrap; }
.rt-senden button:disabled { opacity: .6; }

.rt-aktionen { display: flex; gap: 14px; overflow-x: auto; padding: 8px 18px 4px; border-top: 1px solid #eeeef2; scrollbar-width: none; }
.rt-aktionen::-webkit-scrollbar { display: none; }
.rt-akt { flex: none; width: 72px; text-align: center; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-decoration: none; }
.rt-akt .rt-ic { width: 52px; height: 52px; margin: 0 auto 5px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff; background: #5b5e68; }
.rt-akt.kopieren .rt-ic { background: #1b1c20; }
.rt-akt.wa .rt-ic { background: #25d366; }
.rt-akt.tg .rt-ic { background: #229ed9; }
.rt-akt.x .rt-ic { background: #000; }
.rt-akt.mail .rt-ic { background: #7a7d86; }
.rt-akt.mehr .rt-ic { background: #a70909; }
.rt-akt span.t { font-size: .72rem; font-weight: 600; display: block; }
.rt-hinweis { padding: 0 18px 10px; font-size: .82rem; color: #6a6c75; }
.rt-hinweis a { color: #a70909; font-weight: 700; }

@media (min-width: 640px) {
    .rt-sheet { bottom: auto; top: 50%; left: 50%; right: auto; width: 480px; transform: translate(-50%, -40%); opacity: 0; pointer-events: none; border-radius: 22px; padding-bottom: 18px; transition: transform .2s, opacity .2s; }
    .rt-sheet.offen { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
    .rt-griff { display: none; }
}
@media (prefers-color-scheme: dark) { /* Seite ist hell gestaltet - Fenster bleibt bewusst hell */ }

/* Kleiner Teilen-Knopf zum Einhaengen (data-teilen-url) */
.rt-knopf { cursor: pointer; }

/* ===== LINK-KARTEN / MEDIEN IN PRIVATEN NACHRICHTEN ===== */
.pn-karte { display: block; margin-top: 6px; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.96); color: #1b1c20 !important; text-decoration: none !important; border: 1px solid rgba(0,0,0,.08); max-width: 300px; }
.pn-karte-bild { position: relative; display: block; aspect-ratio: 16/9; background: #1b1c20 center/cover no-repeat; }
.pn-karte-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pn-karte-play i { width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; padding-left: 3px; box-sizing: border-box; }
.pn-karte-text { display: block; padding: 9px 12px 10px; }
.pn-karte-domain { display: block; font-size: .68rem; font-weight: 700; color: #a70909; text-transform: uppercase; letter-spacing: .03em; }
.pn-karte-titel { display: block; font-size: .86rem; font-weight: 700; line-height: 1.3; margin-top: 2px; }
.pn-karte-desc { display: block; font-size: .76rem; color: #6a6c75; margin-top: 2px; line-height: 1.3; max-height: 2.6em; overflow: hidden; }
.pn-medium { display: block; margin-top: 6px; max-width: 300px; width: 100%; border-radius: 14px; background: #000; }
.pn-nur-karte > .pn-link-text { display: none; }

/* Teilen-Knopf als kleine Pille (Themenkopf u.a.) */
.rt-knopf-pille { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #f2f2f5; color: #444; font: inherit; font-size: .78rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; cursor: pointer; vertical-align: middle; }
.rt-knopf-pille:hover { background: #a70909; color: #fff; }

/* ===== NICHT ZOOMBAR / NICHT HERAUSRUTSCHEN ===== */
.rt-overlay, .rt-sheet { touch-action: pan-y; -webkit-touch-callout: none; -webkit-text-size-adjust: 100%; }
.rt-sheet button, .rt-sheet a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* >=16px: iOS zoomt sonst beim Fokus in ein Eingabefeld hinein und das Fenster rutscht weg */
.rt-sheet input, .rt-suchfeld input, .rt-senden input { font-size: 16px !important; }
.rt-sheet { -webkit-user-select: none; user-select: none; }
.rt-sheet input { -webkit-user-select: text; user-select: text; }

/* Beitrag mit Medien in der PN */
.pn-beitrag { margin-top: 6px; max-width: 300px; }
.pn-beitrag .pn-medium + .pn-medium { margin-top: 6px; }
.pn-beitrag-text { margin-top: 6px; font-size: .84rem; line-height: 1.4; opacity: .95; }
.pn-beitrag-link { display: flex; align-items: center; gap: 7px; margin-top: 7px; padding: 8px 11px; border-radius: 12px; background: rgba(255,255,255,.96); color: #1b1c20 !important; text-decoration: none !important; font-size: .76rem; font-weight: 700; line-height: 1.3; border: 1px solid rgba(0,0,0,.08); }
.pn-beitrag-link span { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pn-beitrag-link i { color: #a70909; flex: none; }
.pn-medium { max-height: 420px; object-fit: contain; }
