/* ==========================================================================
   Gruppen- und Videoanrufe (10.10.2026, js/core/callx.js)
   Kein backdrop-filter (im Spiel schwarze Rechtecke) - nur deckende/halbtransparente Flaechen.
   ========================================================================== */

/* ---------------- Audio-Anruf: Erweiterungen ---------------- */
.cs-grid.six { display: grid; grid-template-columns: repeat(3, 78px); justify-content: center; gap: 20px 26px; bottom: 190px; }
.cs-stack { display: flex; justify-content: center; margin-bottom: 16px; cursor: pointer; }
.cs-stack > * { border-radius: 50%; box-shadow: 0 0 0 3px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .3); }
.cs-stack > * + * { margin-left: -18px; }
.cs-kind { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; font-size: 16px; color: rgba(255, 255, 255, .75); max-width: 330px; }
.cs-kind span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-incoming-extra { gap: 48px; }
.callscreen.cs-is-video { background: #000; }

/* ---------------- Video-Ansicht ---------------- */
.cv { position: absolute; inset: 0; background: #000; color: #fff; overflow: hidden; }
.cv-stage { position: absolute; inset: 0; display: grid; gap: 5px; }
.cv.n1 .cv-stage { grid-template: 1fr / 1fr; }
.cv.n2 .cv-stage { padding: 104px 6px 132px; grid-template-rows: 1fr 1fr; }
.cv.n3 .cv-stage, .cv.n4 .cv-stage { padding: 104px 6px 132px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.cv.n5 .cv-stage, .cv.n6 .cv-stage { padding: 104px 6px 132px; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); }
.cv.n7 .cv-stage { padding: 104px 6px 132px; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 1fr); }
.cv.n3 .cv-tile:nth-child(3), .cv.n5 .cv-tile:nth-child(5), .cv.n7 .cv-tile:nth-child(7) { grid-column: span 2; }
.cv-tile { position: relative; overflow: hidden; background: #1c1c1e; border-radius: 18px; min-height: 0; }
.cv.n1 .cv-tile { border-radius: 0; }
.cv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #1c1c1e; }
.cv-img.wait { opacity: 0; }
.cv-weak {
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 5px; white-space: nowrap;
    padding: 4px 10px; border-radius: 10px; background: rgba(0, 0, 0, .55);
    font-size: 11.5px; font-weight: 600; color: #ffd60a;
}
.cv-off {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: radial-gradient(circle at 50% 42%, #3a3a40, #1c1c1e 72%);
    font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .72);
}
.cv-tile.ringing .cv-off span { animation: cvBlink 1.4s ease-in-out infinite; }
@keyframes cvBlink { 50% { opacity: .35; } }
.cv-label {
    position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
    display: flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 10px; background: rgba(0, 0, 0, .5);
    font-size: 12px; font-weight: 600;
}
.cv.n1 .cv-label { display: none; }

/* eigenes Bild: klein unten rechts, gross solange niemand verbunden ist */
.cv-self {
    position: absolute; right: 14px; bottom: 136px; width: 104px; height: 139px; z-index: 3;
    border-radius: 16px; overflow: hidden; background: #2c2c2e;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
    transition: right .35s var(--ease-out), bottom .35s var(--ease-out), width .35s var(--ease-out), height .35s var(--ease-out), border-radius .35s;
}
.cv:not(.n1):not(.self-big) .cv-self { width: 84px; height: 112px; bottom: 140px; }
.cv-self.big { right: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; z-index: 0; }
.cv-canvas, .cv-demo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-canvas.mirror, .cv-canvas.mirror + .cv-demo { transform: scaleX(-1); }
.cv-self-off {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: #1c1c1e; color: rgba(255, 255, 255, .6); font-size: 15px; font-weight: 500;
}

.cv-top {
    position: absolute; top: 0; left: 0; right: 0; z-index: 4;
    display: flex; align-items: center; gap: 6px;
    padding: 50px 10px 28px;
    background: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
    transition: opacity .2s;
}
.cv-title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: default; }
.cv-title b { font-size: 18px; font-weight: 600; max-width: 100%; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.cv-title span { font-size: 13px; color: rgba(255, 255, 255, .78); margin-top: 1px; }
.cv-ic { width: 38px; height: 38px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(255, 255, 255, .16); }
.cv-ic:active { transform: scale(.94); }
.cv-ic:disabled { opacity: .4; }

.cv-bar {
    position: absolute; left: 10px; right: 10px; bottom: 30px; z-index: 4;
    display: flex; justify-content: space-between;
    padding: 10px 10px 8px; border-radius: 26px;
    background: rgba(28, 28, 30, .86);
    transition: opacity .2s;
}
.cv-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; color: #fff; }
.cv-c { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; }
.cv-btn:active .cv-c { transform: scale(.93); }
.cv-btn.on .cv-c { background: #fff; color: #000; }
.cv-btn.red .cv-c { background: #ff3b30; }
.cv-btn small { font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.cv-btn:disabled { opacity: .4; }
.cv.look .cv-bar, .cv.look .cv-top { opacity: .35; }
.cv-look {
    position: absolute; left: 16px; right: 16px; bottom: 124px; z-index: 5;
    display: flex; align-items: center; gap: 9px;
    padding: 10px 13px; border-radius: 14px; background: rgba(0, 0, 0, .72);
    font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .9);
}
.cv.self-big .cv-look { bottom: 128px; }

/* ---------------- Teilnehmer-Blatt ---------------- */
.cm { position: absolute; inset: 0; z-index: 20; color: #fff; }
.cm-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.cm-sheet {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 74%;
    display: flex; flex-direction: column;
    background: #1c1c1e; border-radius: 24px 24px 0 0; padding: 8px 0 34px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .4);
}
.cm-grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .28); margin: 0 auto 8px; }
.cm-head { display: flex; align-items: center; gap: 8px; padding: 4px 18px 10px; }
.cm-head b { font-size: 20px; font-weight: 700; }
.cm-head span { flex: 1; color: rgba(255, 255, 255, .55); font-size: 14px; }
.cm-x { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; }
.cm-list { overflow-y: auto; padding: 0 12px; }
.cm-row { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cm-row:last-child { border-bottom: 0; }
.cm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm-text b { font-size: 16px; font-weight: 600; }
.cm-text small { color: rgba(255, 255, 255, .55); font-size: 13px; }
.cm-row.ringing small { color: #30d158; }
.cm-ico { color: rgba(255, 255, 255, .7); flex: none; }
.cm-ico.red { color: #ff453a; }
.cm-add {
    margin: 14px 18px 0; height: 50px; border-radius: 14px;
    background: #30d158; color: #fff; font-weight: 600; font-size: 16px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cm-add:disabled { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .5); }
.cm-sheet-enter-active, .cm-sheet-leave-active { transition: opacity .3s; }
.cm-sheet-enter-active .cm-sheet, .cm-sheet-leave-active .cm-sheet { transition: transform .3s var(--ease-out); }
.cm-sheet-enter-from, .cm-sheet-leave-to { opacity: 0; }
.cm-sheet-enter-from .cm-sheet, .cm-sheet-leave-to .cm-sheet { transform: translateY(100%); }

/* ---------------- Anrufliste / Kontakt ---------------- */
.app-phone .pc-actions.five { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.app-phone .pc-kind { display: inline-flex; vertical-align: -2px; margin-right: 3px; color: var(--label2, rgba(128, 128, 128, .9)); }
