/* =====================================================================
   WebFriends – Design (Dusk)
   Modern, dunkel, eigenstaendig. Farben zentral als Variablen.
   ===================================================================== */

:root {
    --bg:       #0f1220;
    --bg2:      #151932;
    --surface:  #1c2140;
    --surface2: #232a4f;
    --text:     #e9ebf6;
    --muted:    #9aa1c4;
    --accent:   #6c8cff;
    --accent2:  #b57bff;
    --danger:   #ff6b7d;
    --ok:       #4ad6a0;
    --line:     rgba(255,255,255,.09);
    --radius:   16px;
    --shadow:   0 18px 50px rgba(0,0,0,.45);
    --ff-disp:  "Space Grotesk", system-ui, sans-serif;
    --ff-body:  "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(1100px 600px at 15% -10%, rgba(108,140,255,.20), transparent 60%),
        radial-gradient(900px 500px at 110% 10%, rgba(181,123,255,.16), transparent 55%),
        var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Wortmarke --- */
.brand {
    font-family: var(--ff-disp);
    font-weight: 700;
    letter-spacing: -.02em;
    font-size: 1.5rem;
}
.brand .b1 { color: var(--text); }
.brand .b2 {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Auth-Layout (Login / Registrierung / Install) --- */
.auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 18px 48px;
}
.card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, var(--surface), var(--bg2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 26px;
}
.card .brand { display: block; text-align: center; margin-bottom: 6px; }
.card h1 {
    font-family: var(--ff-disp);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin: 4px 0 4px;
    letter-spacing: -.01em;
}
.card .sub {
    text-align: center;
    color: var(--muted);
    font-size: .93rem;
    margin: 0 0 22px;
}

/* --- Formular --- */
label {
    display: block;
    font-size: .82rem;
    color: var(--muted);
    margin: 14px 0 6px;
    letter-spacing: .01em;
}
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 13px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--ff-body);
    font-size: 1rem;
    transition: border-color .15s, box-shadow .15s;
}
input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108,140,255,.25);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 22px;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #fff;
    font-family: var(--ff-disp);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn.secondary {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--line);
}
.btn.small { width: auto; margin-top: 0; padding: 9px 14px; font-size: .88rem; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }

.msg {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .9rem;
    margin-bottom: 8px;
}
.msg.error { background: rgba(255,107,125,.12); border: 1px solid rgba(255,107,125,.4); color: #ffd0d6; }
.msg.ok    { background: rgba(74,214,160,.12); border: 1px solid rgba(74,214,160,.4); color: #c4f5e4; }
.msg.info  { background: rgba(108,140,255,.10); border: 1px solid rgba(108,140,255,.3); color: #d6def9; }

.foot-links { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--muted); }

/* --- Avatar-Auswahl --- */
.avatar-pick {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
}
.avatar-preview {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg);
    border: 2px dashed var(--line);
    flex: 0 0 auto;
}
.avatar-pick .hint { color: var(--muted); font-size: .82rem; }
/* Nur die per Knopf ausgeloesten Datei-Felder verstecken (Chat).
   Sichtbare Felder (Profil, Registrierung) bleiben nutzbar. */
#mediaInput, #groupAvatarInput, #avatar { display: none; }
input[type="file"] {
    color: var(--muted);
    font-size: .92rem;
    max-width: 100%;
}
input[type="file"]::file-selector-button {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 14px;
    margin-right: 10px;
    cursor: pointer;
    font: inherit;
}
input[type="file"]::file-selector-button:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* --- App-Layout --- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(15,18,32,.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar .right { display: flex; align-items: center; gap: 10px; }
.wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 18px 60px;
}

.avatar-sm {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; border: 1px solid var(--line);
}
.avatar-md {
    width: 64px; height: 64px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--line);
}

.panel {
    background: linear-gradient(180deg, var(--surface), var(--bg2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 18px;
}
.panel h2 {
    font-family: var(--ff-disp);
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0 0 4px;
}
.panel .sub { color: var(--muted); font-size: .88rem; margin: 0 0 14px; }

.profile-row { display: flex; align-items: center; gap: 14px; }
.profile-row .name { font-family: var(--ff-disp); font-weight: 600; font-size: 1.1rem; }
.profile-row .role { color: var(--muted); font-size: .82rem; }

/* --- Einladungslink --- */
.invite-box {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.invite-box input {
    flex: 1 1 100%;
    min-width: 0;
    background: var(--bg);
    font-size: .86rem;
    color: var(--muted);
}
.invite-box .btn { flex: 1 1 auto; }

/* --- Kontaktliste --- */
.contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 6px;
    border-bottom: 1px solid var(--line);
}
.contact:last-child { border-bottom: none; }
.contact .cname { font-weight: 500; }
.empty {
    text-align: center;
    color: var(--muted);
    padding: 26px 10px;
    font-size: .92rem;
}

/* --- Tabelle (Admin) --- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.stat {
    background: linear-gradient(180deg, var(--surface), var(--bg2));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}
.stat .num { font-family: var(--ff-disp); font-size: 1.7rem; font-weight: 700; }
.stat .lab { color: var(--muted); font-size: .8rem; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    min-width: 560px;
}
table.data th, table.data td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
table.data th { color: var(--muted); font-weight: 500; font-size: .78rem; }
.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .74rem;
    border: 1px solid var(--line);
}
.badge.admin { background: rgba(181,123,255,.15); color: #d9c4ff; border-color: rgba(181,123,255,.4); }
.badge.on   { background: rgba(74,214,160,.14); color: #c4f5e4; border-color: rgba(74,214,160,.4); }
.badge.off  { background: rgba(255,107,125,.12); color: #ffd0d6; border-color: rgba(255,107,125,.4); }

.pill-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--surface2); border: 1px solid var(--line);
    color: var(--text); font-size: .84rem;
}

.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

@media (max-width: 460px) {
    .stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* =====================================================================
   Eingangsseite (Landing) + Installations-Anleitung
   ===================================================================== */
.landing { align-items: flex-start; }
.landing-inner {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}
.landing-inner .card,
.landing-inner .install-zone { margin-bottom: 16px; }

/* Marke / Logo */
.brand-zone { text-align: center; margin: 8px 0 22px; }
.brand-logo {
    max-width: 260px;
    max-height: 120px;
    width: auto;
    height: auto;
    display: inline-block;
}
.brand-big { font-size: 2.1rem; }
.tagline {
    color: var(--muted);
    font-size: .95rem;
    margin: 12px 0 0;
}

/* Installations-Bereich */
.install-zone .steps {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.install-zone .steps li {
    position: relative;
    padding: 8px 0 8px 40px;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
    line-height: 1.45;
}
.install-zone .steps li:last-child { border-bottom: none; }
.install-zone .steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-family: var(--ff-disp);
    font-weight: 600;
    font-size: .82rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.install-zone #installBtn { margin: 4px 0 14px; }
.install-zone .inst[hidden] { display: none; }

.landing-foot {
    text-align: center;
    color: var(--muted);
    font-family: var(--ff-disp);
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 8px 0 0;
    opacity: .6;
}

/* =====================================================================
   CHAT (Phase 2)
   ===================================================================== */
body.chat-body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}
#chatApp {
    height: 100vh;
    height: 100dvh;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    background: var(--bg2);
}

/* Ansichten */
.view { display: none; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
#chatApp[data-view="list"]  .view-list  { display: flex; }
#chatApp[data-view="conv"]  .view-conv  { display: flex; }
#chatApp[data-view="new"]   .view-new   { display: flex; }
#chatApp[data-view="group"] .view-group { display: flex; }

/* Kopfzeile */
.chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(15,18,32,.9);
    border-bottom: 1px solid var(--line);
    min-height: 58px;
    flex: 0 0 auto;
}
.chat-head .brand { font-size: 1.25rem; }
.head-actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn {
    width: 40px; height: 40px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.icon-btn:hover { background: var(--surface2); text-decoration: none; }
.icon-btn.back { font-size: 1.9rem; }

.conv-head .avatar-sm { width: 40px; height: 40px; }
.conv-title { min-width: 0; }
.ct-name { font-family: var(--ff-disp); font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-sub  { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }

/* Chatliste */
.chat-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.chat-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}
.chat-row:hover { background: var(--surface); }
.chat-row .avatar-md { width: 50px; height: 50px; }
.cr-mid { flex: 1; min-width: 0; }
.cr-top { display: flex; align-items: baseline; gap: 8px; }
.cr-name { font-weight: 600; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-time { margin-left: auto; color: var(--muted); font-size: .72rem; flex: 0 0 auto; }
.cr-prev { color: var(--muted); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.badge-unread {
    flex: 0 0 auto;
    min-width: 22px; height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; font-size: .74rem; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Nachrichten */
.messages {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(181,123,255,.06), transparent 60%),
        var(--bg);
}
.day-sep { text-align: center; margin: 12px 0; }
.day-sep span {
    background: var(--surface2);
    color: var(--muted);
    font-size: .72rem;
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
}
.msg-row { display: flex; margin-top: 2px; }
.msg-row.mine  { justify-content: flex-end; }
.msg-row.other { justify-content: flex-start; }
.bubble {
    max-width: 78%;
    padding: 8px 12px 6px;
    border-radius: 16px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.msg-row.other .bubble {
    background: var(--surface);
    border: 1px solid var(--line);
    border-bottom-left-radius: 5px;
}
.msg-row.mine .bubble {
    background: linear-gradient(135deg, #3a4bb0, #6c4bd0);
    border-bottom-right-radius: 5px;
}
.msg-name { font-size: .76rem; font-weight: 600; color: var(--accent2); margin-bottom: 2px; }
.msg-text { white-space: pre-wrap; font-size: .95rem; line-height: 1.4; }
.msg-time { font-size: .66rem; color: rgba(233,235,246,.55); text-align: right; margin-top: 3px; }

/* Eingabe */
.composer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    background: var(--bg2);
    flex: 0 0 auto;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.composer textarea {
    flex: 1;
    resize: none;
    max-height: 140px;
    padding: 11px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--text);
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.35;
}
.composer textarea:focus { outline: none; border-color: var(--accent); }
.send-btn {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.send-btn:active { transform: scale(.94); }

/* Overlays (Neuer Chat / Gruppe) */
.overlay-body { flex: 1; overflow-y: auto; padding: 18px 16px 40px; }
.pick-list { margin-top: 4px; }
.pick-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 6px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}
.pick-row:hover { background: var(--surface); }
.pick-row.check { cursor: pointer; }
.pick-row .avatar-sm { width: 42px; height: 42px; }
.pick-name { font-weight: 500; }
.pick-row input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--accent); }
#btnGroupCreate { margin-top: 22px; }

/* Desktop-Platzhalter (rechte Spalte) */
.conv-placeholder { display: none; }

/* ---------- Mobil: eine Ansicht zur Zeit (Standard oben) ---------- */
/* Desktop: Liste + Gespraech nebeneinander, Overlays als Panel ---------- */
@media (min-width: 820px) {
    #chatApp { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

    .view-list {
        display: flex !important;
        flex: 0 0 340px;
        border-right: 1px solid var(--line);
    }
    .view-conv { display: flex !important; flex: 1; }
    .conv-head .back, .icon-btn.back#btnBack { display: none; }

    /* Wenn kein Chat gewaehlt: Platzhalter statt leerem Gespraech */
    #chatApp[data-haschat="0"] .conv-head,
    #chatApp[data-haschat="0"] .messages,
    #chatApp[data-haschat="0"] .composer { display: none; }
    #chatApp[data-haschat="0"] .conv-placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        flex: 1;
        color: var(--muted);
    }
    #chatApp[data-haschat="0"] .conv-placeholder .brand { font-size: 2rem; opacity: .5; }
    #chatApp[data-haschat="1"] .conv-placeholder { display: none; }

    /* Overlays zentriert ueber allem */
    .overlay { display: none !important; }
    #chatApp[data-view="new"]   .view-new,
    #chatApp[data-view="group"] .view-group {
        display: flex !important;
        position: fixed;
        inset: 0;
        z-index: 50;
        max-width: 460px;
        margin: auto;
        height: min(80dvh, 640px);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        overflow: hidden;
        background: var(--bg2);
    }
    #chatApp[data-view="new"]::before,
    #chatApp[data-view="group"]::before {
        content: "";
        position: fixed; inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 40;
    }
}

/* Anklickbare Kontakte auf der Profilseite */
a.contact { text-decoration: none; color: var(--text); }
a.contact:hover { background: var(--surface); text-decoration: none; }
a.contact .contact-go { margin-left: auto; color: var(--muted); font-size: 1.4rem; line-height: 1; }

/* Gruppen-Avatar im Kopf: fuer den Ersteller anklickbar */
.conv-head .avatar-sm.editierbar { cursor: pointer; box-shadow: 0 0 0 2px var(--accent); }
.conv-head .avatar-sm.editierbar:hover { opacity: .85; }

/* =====================================================================
   MEDIEN & ONLINE-STATUS (Phase 3a)
   ===================================================================== */

/* Medien in Nachrichten */
.bubble.has-media { padding: 4px 4px 6px; }
.msg-img { max-width: 240px; max-height: 320px; border-radius: 12px; display: block; cursor: pointer; }
.msg-video { max-width: 260px; max-height: 340px; border-radius: 12px; display: block; background: #000; }
.msg-audio { width: 240px; max-width: 62vw; display: block; margin: 2px 0; }
.bubble.has-media .msg-text { padding: 5px 8px 0; }
.bubble.has-media .msg-time { padding: 0 8px; }

/* Online-Punkt am Avatar */
.av-wrap { position: relative; flex: 0 0 auto; line-height: 0; }
.av-wrap .avatar-md, .av-wrap .avatar-sm { display: block; }
.presence {
    position: absolute; right: 0; bottom: 0;
    width: 13px; height: 13px; border-radius: 50%;
    border: 2px solid var(--bg2); box-sizing: border-box;
}
.presence.on  { background: #39c46e; }
.presence.off { background: #d9544f; }

/* Online-Untertitel im Gespraechskopf */
.ct-sub.online { color: #39c46e; }

/* Composer-Buttons (Anhang, Mikrofon) */
.comp-btn {
    flex: 0 0 auto; width: 42px; height: 42px;
    border: none; background: transparent; color: var(--muted);
    border-radius: 50%; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.comp-btn:hover { background: var(--surface2); color: var(--text); }

/* Aufnahme-Leiste */
.rec-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    background: var(--bg2);
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #d9544f; animation: recpuls 1s infinite; }
@keyframes recpuls { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.rec-hint { color: var(--muted); flex: 1; }

/* =====================================================================
   ANRUF-OVERLAY (Phase 3b)
   ===================================================================== */
.call-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: #0b0d17;
    display: flex; flex-direction: column;
    color: #fff;
    overflow: hidden;
}
body.im-anruf { overflow: hidden; }

/* Hintergrund solange kein Fernvideo da ist */
.call-overlay:not(.aktiv)::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 36%, #26305a, #0b0d17 70%);
}
.call-overlay:not(.aktiv) .call-remote { display: none; }

.call-remote {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; background: #0b0d17;
    z-index: 1;
}
.call-local {
    position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top));
    width: 104px; height: 146px;
    object-fit: cover; border-radius: 12px;
    border: 2px solid rgba(255,255,255,.5);
    background: #000; z-index: 3;
    transform: scaleX(-1);
}

.call-head {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 12px;
    padding: calc(20px + env(safe-area-inset-top)) 18px 18px;
    background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
}
.call-ava {
    width: 54px; height: 54px; border-radius: 50%;
    object-fit: cover; border: 2px solid rgba(255,255,255,.4);
}
.call-overlay:not(.aktiv) .call-ava { animation: callpuls 1.6s infinite; }
@keyframes callpuls {
    0%,100% { box-shadow: 0 0 0 0 rgba(108,140,255,.55); }
    50%     { box-shadow: 0 0 0 15px rgba(108,140,255,0); }
}
.call-name { font-size: 1.15rem; font-weight: 600; }
.call-status { font-size: .9rem; opacity: .85; }

.call-incoming, .call-controls {
    position: relative; z-index: 2;
    margin-top: auto;
    display: flex; justify-content: center; gap: 28px;
    padding: 22px 18px calc(30px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
.call-btn {
    width: 62px; height: 62px; border-radius: 50%;
    border: none; cursor: pointer; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.18);
    transition: transform .1s, background .15s;
}
.call-btn:hover { background: rgba(255,255,255,.28); }
.call-btn:active { transform: scale(.93); }
.call-btn.accept { background: #2fb457; }
.call-btn.accept:hover { background: #35c561; }
.call-btn.decline, .call-btn.hangup { background: #e0484f; }
.call-btn.decline:hover, .call-btn.hangup:hover { background: #ea565d; }
.call-btn.decline svg, .call-btn.hangup svg { transform: rotate(135deg); }
.call-btn.toggle.aus { background: #e0484f; }

/* =====================================================================
   FIX: Das hidden-Attribut muss Flex-/Block-Layouts uebersteuern
   (sonst zeigt z. B. .call-overlay sich trotz hidden als Vollbild-Layer)
   ===================================================================== */
[hidden] { display: none !important; }

/* Logo neben der Wortmarke (Header + Platzhalter); skaliert mit der Schriftgröße */
.brand-mit-logo { display: inline-flex; align-items: center; gap: .42em; }
.brand-mark { height: 1.15em; width: auto; display: block; }
.conv-placeholder .brand-mark { height: 1.05em; }

/* Grüner Punkt bei neuen Nachrichten (Chat-Kopf) */
.neu-dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: #39c46e;
    flex: 0 0 auto;
    margin-left: 2px;
    animation: neupuls 1.6s infinite;
}
@keyframes neupuls {
    0%,100% { box-shadow: 0 0 0 0 rgba(57,196,110,.55); }
    50%     { box-shadow: 0 0 0 7px rgba(57,196,110,0); }
}

/* Anruf-Eintrag im Chat */
.anruf-inhalt {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 2px 0;
    color: var(--text);
}
.anruf-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--surface2); color: var(--muted);
    flex: 0 0 auto;
}
.anruf-txt { font-size: .95rem; }
.anruf-inhalt.verpasst { color: #e0484f; }
.anruf-inhalt.verpasst .anruf-ic { background: rgba(224,72,79,.16); color: #e0484f; }

/* Profil-Status */
.status-zeile { color: var(--muted); font-size: .9rem; margin-top: 3px; font-style: italic; }

/* Positionsbasis fuer das Anhang-Menue */
.view-conv { position: relative; }

/* Anhang-Menue (Foto/Video, Standort) */
.attach-menu {
    position: absolute; left: 10px; bottom: 68px; z-index: 40;
    background: var(--surface2); border: 1px solid var(--line);
    border-radius: 12px; padding: 6px;
    box-shadow: 0 10px 28px rgba(0,0,0,.4);
    display: flex; flex-direction: column; gap: 2px; min-width: 190px;
}
.attach-menu button {
    text-align: left; background: transparent; border: none; color: var(--text);
    padding: 11px 12px; border-radius: 8px; cursor: pointer; font: inherit; font-size: .95rem;
}
.attach-menu button:hover { background: var(--surface); }

/* Standort im Chat */
.standort-box { display: block; text-decoration: none; color: var(--text); }
.standort-img { display: block; width: 260px; max-width: 62vw; border-radius: 10px; background: var(--surface2); min-height: 40px; }
.standort-label {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 8px 2px; font-size: .9rem; color: var(--accent);
}
.standort-label::before { content: "\1F4CD"; }

/* Status in der Kontaktliste */
.pick-mid { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pick-status { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Nachrichten-Kontextmenue (Loeschen) */
.msg-menu {
    position: fixed; z-index: 60;
    background: var(--surface2); border: 1px solid var(--line);
    border-radius: 12px; padding: 6px; min-width: 200px;
    box-shadow: 0 12px 32px rgba(0,0,0,.45);
    display: flex; flex-direction: column; gap: 2px;
}
.msg-menu button {
    text-align: left; background: transparent; border: none; color: var(--text);
    padding: 11px 12px; border-radius: 8px; cursor: pointer; font: inherit; font-size: .95rem;
}
.msg-menu button:hover { background: var(--surface); }
.msg-menu button[data-modus="alle"] { color: #e0484f; }

/* Geloeschte Nachricht */
.bubble.msg-geloescht { opacity: .85; }
.bubble.msg-geloescht .msg-text { font-style: italic; color: var(--muted); }

/* Lese-Haekchen */
.haken { color: var(--muted); margin-left: 4px; vertical-align: middle; line-height: 0; }
.haken svg { display: inline-block; vertical-align: middle; }
.haken-gelesen { color: #39c46e; }

/* "schreibt gerade" */
.tipp-anzeige {
    display: flex; align-items: center; gap: 8px;
    padding: 2px 14px 8px; color: var(--muted); font-size: .85rem;
}
.tipp-blase {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--surface2); border-radius: 14px; padding: 9px 13px;
}
.tipp-punkt {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--muted); display: inline-block;
    animation: tipppuls 1.4s infinite;
}
.tipp-punkt:nth-child(2) { animation-delay: .2s; }
.tipp-punkt:nth-child(3) { animation-delay: .4s; }
@keyframes tipppuls {
    0%, 60%, 100% { opacity: .3; transform: translateY(0); }
    30%           { opacity: 1;  transform: translateY(-3px); }
}

/* Umschalter im Profil */
.switch-row { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }

/* Slogan im Chat-Kopf */
.ct-slogan { color: var(--muted); font-size: .78rem; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* AGB-Seite + Registrierungs-Checkbox */
.card-wide { max-width: 560px; }
.agb-text { text-align: left; margin: 6px 0 4px; }
.agb-text h2 { font-size: .96rem; margin: 15px 0 4px; color: var(--text); }
.agb-text p { font-size: .88rem; color: var(--muted); line-height: 1.55; margin: 0; }
.agb-text a { color: var(--accent); }
.agb-check { display: flex; align-items: flex-start; gap: 9px; text-align: left; font-size: .85rem; color: var(--muted); margin: 8px 0 6px; cursor: pointer; }
.agb-check input { margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.agb-check a { color: var(--accent); }

/* Feedback / Kontakt Modal */
.brand-klick { cursor: pointer; }
.brand-klick:hover { opacity: .85; }
.fb-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(6,8,18,.72); display: flex; align-items: center; justify-content: center; padding: 20px; }
.fb-overlay[hidden] { display: none; }
.fb-box { position: relative; width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px 20px; }
.fb-box h2 { margin: 0 0 4px; font-size: 1.15rem; color: var(--text); }
.fb-box .sub { margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
.fb-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px; }
.fb-close:hover { color: var(--text); }
.fb-box input, .fb-box textarea { width: 100%; box-sizing: border-box; margin-bottom: 10px; padding: 11px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: inherit; font-size: .92rem; }
.fb-box textarea { resize: vertical; min-height: 90px; }
.fb-box input:focus, .fb-box textarea:focus { outline: none; border-color: var(--accent); }
#fbSend { width: 100%; }
.fb-msg { color: var(--danger); font-size: .85rem; margin: 0 0 10px; }
.fb-mail { text-align: center; font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.fb-mail a { color: var(--accent); }
.fb-check { width: 54px; height: 54px; margin: 8px auto 12px; border-radius: 50%; background: var(--ok); color: #08210f; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; }
#fbDanke { text-align: center; padding: 10px 0 6px; }
#fbDanke p { color: var(--text); font-size: .95rem; margin: 0; }

/* Gefahrenzone: Konto loeschen */
.panel-danger { border: 1px solid rgba(255,107,125,.35); }
.panel-danger h2 { color: var(--danger); }
.panel-danger input[type="password"] { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); font: inherit; }
.btn.danger { background: var(--danger); color: #2a0709; border: none; }
.btn.danger:hover { filter: brightness(1.08); }

/* Einladung teilen – Fallback-Sheet, wenn kein nativer Teilen-Dialog da ist */
.share-sheet { margin-top: 12px; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.share-title { margin: 0 0 10px; font-size: .88rem; color: var(--muted); }
.share-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.share-opt { flex: 1 1 calc(50% - 4px); box-sizing: border-box; text-align: center; padding: 11px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; font-family: inherit; font-size: .9rem; cursor: pointer; }
.share-opt:hover { border-color: var(--accent); }

/* ===== Antworten / Zitat (in der Bubble) ===== */
.reply-vorschau {
    border-left: 3px solid var(--accent);
    background: rgba(108,140,255,0.10);
    border-radius: 8px;
    padding: 4px 8px;
    margin-bottom: 5px;
    max-width: 100%;
    overflow: hidden;
}
.msg-row.mine .reply-vorschau {
    border-left-color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.14);
}
.reply-vorschau-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msg-row.mine .reply-vorschau-name { color: rgba(255,255,255,0.92); }
.reply-vorschau-text {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msg-row.mine .reply-vorschau-text { color: rgba(255,255,255,0.85); }

/* ===== Antwort-Leiste ueber dem Eingabefeld ===== */
.reply-leiste {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--surface2);
    border-top: 1px solid var(--line);
    border-left: 3px solid var(--accent);
}
.reply-leiste-inhalt { flex: 1; min-width: 0; }
.reply-leiste-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reply-leiste-text {
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reply-leiste-x {
    flex: 0 0 auto;
    background: none; border: none;
    color: var(--muted);
    font-size: 1.5rem; line-height: 1;
    cursor: pointer; padding: 2px 6px;
}
.reply-leiste-x:hover { color: var(--text); }

/* ===== Emoji-Leiste im Nachrichten-Menue ===== */
.msg-menu-emojis {
    display: flex;
    gap: 2px;
    padding: 6px 6px 4px;
    border-bottom: 1px solid var(--line);
}
.emoji-wahl {
    flex: 1;
    background: none; border: none;
    font-size: 1.35rem; line-height: 1;
    padding: 6px 0;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.08s ease, background 0.12s ease;
}
.emoji-wahl:hover { background: var(--surface); transform: scale(1.18); }

/* ===== Reaktions-Chips unter der Nachricht ===== */
.msg-row { flex-wrap: wrap; }
.reaktionen {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
    padding: 0 2px;
}
.msg-row.mine  .reaktionen { justify-content: flex-end; }
.msg-row.other .reaktionen { justify-content: flex-start; }
.reaktion {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--surface2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1px 8px;
    font-size: 0.82rem;
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
}
.reaktion:hover { background: var(--surface); }
.reaktion.meine {
    background: rgba(108,140,255,0.22);
    border-color: var(--accent);
}

/* ===================== Suche ===================== */
.suchleiste {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(15,18,32,.6);
    border-bottom: 1px solid var(--line);
    flex: 0 0 auto;
}
.such-lupe { font-size: .95rem; opacity: .55; flex: 0 0 auto; }
#sucheInput {
    flex: 1;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 9px 14px;
    color: var(--text);
    font-size: .92rem;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
#sucheInput:focus { border-color: var(--accent); }
#sucheInput::placeholder { color: var(--muted); }
#sucheInput::-webkit-search-cancel-button { -webkit-appearance: none; }
.such-x {
    flex: 0 0 auto;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}
.such-x:hover { color: var(--text); }

.such-treffer {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.such-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}
.such-row:hover { background: var(--surface); }
.such-row .avatar-md { width: 46px; height: 46px; flex: 0 0 auto; }
.sr-mid { flex: 1; min-width: 0; }
.sr-top { display: flex; align-items: baseline; gap: 8px; }
.sr-name { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-time { margin-left: auto; color: var(--muted); font-size: .72rem; flex: 0 0 auto; }
.sr-snip {
    color: var(--muted); font-size: .86rem; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
mark.such-mark {
    background: rgba(108,140,255,.32);
    color: var(--text);
    border-radius: 3px;
    padding: 0 1px;
}
.such-leer {
    padding: 30px 16px;
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
}

/* In-Chat-Suche: hoch/runter */
.such-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex: 0 0 auto;
}
.such-nav-begriff {
    color: var(--text);
    font-size: .88rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 45%;
}
.such-nav-zaehler {
    color: var(--muted);
    font-size: .8rem;
    flex: 0 0 auto;
}
.such-nav-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 9px;
    border-radius: 8px;
    flex: 0 0 auto;
}
.such-nav-btn:hover { background: var(--surface2); }
#suchNavHoch { margin-left: auto; }
.such-nav-schliessen { font-size: 1.4rem; color: var(--muted); }
.such-nav-schliessen:hover { color: var(--text); }

/* Ziel-Nachricht kurz hervorheben (Sprung aus der Suche) */
@keyframes zielPuls {
    0%   { box-shadow: 0 0 0 3px rgba(108,140,255,.75); }
    100% { box-shadow: 0 0 0 3px rgba(108,140,255,0); }
}
.msg-row.ziel-puls .bubble {
    animation: zielPuls 2.2s ease-out;
}

/* ===================== Medien-Galerie (Vollbild) ===================== */
.media-viewer {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,.95);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.media-viewer[hidden] { display: none; }
body.mv-offen { overflow: hidden; }
.mv-buehne {
    max-width: 100vw; max-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    touch-action: none;
    will-change: transform, opacity;
}
.mv-img {
    max-width: 100vw; max-height: 100vh;
    object-fit: contain;
    transform-origin: center center;
    user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
}
.mv-video { max-width: 100vw; max-height: 90vh; outline: none; }
.mv-close {
    position: absolute; top: 12px; right: 14px; z-index: 2;
    background: rgba(0,0,0,.4); border: none; color: #fff;
    font-size: 1.9rem; line-height: 44px; text-align: center;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    padding: 0;
}
.mv-close:hover { background: rgba(0,0,0,.65); }
.mv-zaehler {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: .88rem; z-index: 2;
    background: rgba(0,0,0,.4); padding: 5px 13px; border-radius: 12px;
    letter-spacing: .02em;
}
.mv-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    background: rgba(0,0,0,.35); border: none; color: #fff;
    font-size: 2.2rem; line-height: 1; width: 48px; height: 64px;
    cursor: pointer; border-radius: 10px;
}
.mv-nav:hover { background: rgba(0,0,0,.6); }
.mv-prev { left: 10px; }
.mv-next { right: 10px; }
/* Auf Touch-Geraeten wischt man statt zu klicken -> Pfeile ausblenden */
@media (hover: none) and (pointer: coarse) {
    .mv-nav { display: none; }
}

/* ===================== Hilfe / Anleitung ===================== */
.hilfe-titel { margin: 0 0 6px; font-size: 1.3rem; }
.hilfe-intro { color: var(--muted); margin: 0; line-height: 1.5; }
.hilfe-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 10px 0;
    overflow: hidden;
}
.hilfe-block > summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
}
.hilfe-block > summary::-webkit-details-marker { display: none; }
.hilfe-block > summary::after {
    content: '\203A';
    color: var(--muted);
    font-size: 1.4rem; line-height: 1;
    transition: transform .18s ease;
    transform: rotate(90deg);
}
.hilfe-block[open] > summary::after { transform: rotate(-90deg); }
.hilfe-block > summary:hover { background: var(--surface2); }
.hilfe-inhalt {
    padding: 2px 16px 16px;
    color: var(--text);
    line-height: 1.55;
    border-top: 1px solid var(--line);
}
.hilfe-inhalt p { margin: 10px 0; }
.hilfe-inhalt ul { margin: 10px 0; padding-left: 20px; }
.hilfe-inhalt li { margin: 6px 0; }
.hilfe-inhalt strong { color: var(--text); }
.hilfe-dot {
    display: inline-block; width: 11px; height: 11px; border-radius: 50%;
    background: var(--ok); vertical-align: middle; margin-right: 2px;
}
.hilfe-badge {
    display: inline-block; min-width: 20px; height: 20px; line-height: 20px;
    padding: 0 6px; border-radius: 10px; text-align: center;
    background: var(--accent); color: #fff; font-size: .78rem; font-weight: 600;
    vertical-align: middle;
}
.hilfe-ui {
    display: inline-block; min-width: 24px; height: 24px; line-height: 22px;
    padding: 0 7px; border-radius: 7px; text-align: center;
    background: var(--surface2); border: 1px solid var(--line);
    color: var(--text); font-weight: 700; vertical-align: middle;
}

/* ===================== Zwei-Faktor / Sicherheit ===================== */
.totp-secret {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.15rem; letter-spacing: .08em;
    background: var(--surface2); border: 1px solid var(--line);
    border-radius: 10px; padding: 12px 14px; margin: 8px 0 14px;
    word-break: break-all; user-select: all;
}
.backup-codes {
    margin-top: 16px; padding: 14px;
    border: 1px solid var(--accent); border-radius: 12px;
    background: rgba(108,140,255,.08);
}
.backup-codes p { margin: 0 0 10px; line-height: 1.5; }
.backup-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.backup-grid code {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.05rem; letter-spacing: .06em; text-align: center;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 8px; padding: 8px; user-select: all;
}
@media (max-width: 380px) { .backup-grid { grid-template-columns: 1fr; } }

/* ===================== Bearbeiten + Wischen zum Antworten ===================== */
.bearbeitet-tag {
    font-style: italic;
    opacity: .75;
    margin-right: 6px;
}
.msg-time .bearbeitet-tag::after { content: ' \00b7'; }

/* Blase folgt dem Finger beim Wischen, federt danach zurück */
.bubble { transition: transform .18s ease; }
.bubble.swiping { transition: none; }

/* Antwort-Icon, das beim Wischen nach rechts erscheint */
.msg-row { position: relative; }
.msg-row::before {
    content: '\21A9';
    position: absolute;
    left: 6px;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--accent);
    background: var(--surface2);
    border-radius: 50%;
    opacity: var(--swipe-op, 0);
    transform: scale(calc(.55 + var(--swipe-op, 0) * .45));
    pointer-events: none;
    z-index: 0;
}

/* Bearbeiten-Leiste: gleiche Optik wie Antwort-Leiste, eigener Akzent */
.edit-leiste { border-left: 3px solid var(--accent2, var(--accent)); }

/* ===================== Chats anheften ===================== */
.cr-pin {
    display: inline-flex;
    align-items: center;
    align-self: center;
    color: var(--muted);
    flex: 0 0 auto;
    margin-left: 2px;
}
.chat-row.angeheftet { background: rgba(108, 140, 255, .06); }
.chat-row.angeheftet:hover { background: rgba(108, 140, 255, .10); }

/* Chats stummschalten */
.cr-stumm {
    display: inline-flex;
    align-items: center;
    align-self: center;
    color: var(--muted);
    flex: 0 0 auto;
    margin-left: 2px;
    opacity: .8;
}
