/* John Chat 2.1 – Ergaenzungen */

/* Scrollbalken ueberall unsichtbar (Scrollen funktioniert weiter) */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }

/* Font-Awesome statt Emoji in CSS */
.av-aendern::after { content: "\f030"; font: var(--fa-font-solid); font-size: 14px; color: #fff; }
.option.gewaehlt .kreis::after { content: "\f00c"; font: var(--fa-font-solid); font-size: 10px; color: #fff; }
.logo-gross { color: var(--o); }
.v-icon { margin-right: 5px; color: var(--t3); font-size: .9em; }
.eintrag.neu .v-icon { color: var(--o); }
#toast span { margin-right: 8px; color: var(--o2); }

/* Offizieller Haken (Admin) */
.name-z { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.name-z .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verifiziert { color: #1d9bf0; font-size: .85em; flex-shrink: 0; display: inline-grid; place-items: center; }
.verifiziert i { filter: drop-shadow(0 0 1px rgba(255,255,255,.6)); }
.vb-tag.admin-tag { display: inline-flex; gap: 6px; align-items: center; margin: 8px auto 4px; background: #1d9bf0; font-size: 12px; padding: 5px 10px; border-radius: 10px; }

/* Dialoge: X oben rechts */
.dialog { position: relative; }
.dialog .dialog-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; z-index: 2; }
.dialog h3 { padding-right: 40px; }
.dialog-text { margin: 0; color: var(--t2); line-height: 1.5; }
.dialog .spalte { display: flex; flex-direction: column; gap: 8px; }
.dialog .spalte .btn { width: 100%; }
.btn-rot { background: #e5484d; color: #fff; }
.ikon.rot { color: #e5484d; }

/* Vollbild-Seite (Kontakt-/Gruppen-Info) */
.vb-seite .vb-kopf h1 { flex: 1; }
.vb-seite .vb-x { margin-left: auto; font-size: 20px; }
.vb-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.vb-mitte { max-width: 680px; margin: 0 auto; padding: 18px 16px calc(40px + var(--safe-b)); }
.vb-mitte .vb-profil { text-align: center; padding: 10px 0 14px; }
.vb-mitte .vb-profil .av { margin: 0 auto 12px; }
.vb-mitte .vb-profil h2 { margin: 0 0 2px; display: flex; justify-content: center; }
.av-gross-klick { display: inline-block; cursor: pointer; }
.info-knoepfe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.info-knoepfe button { background: var(--k); border-radius: 16px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--o); font-size: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: transform .12s; }
.info-knoepfe button span { font-size: 13px; color: var(--t); font-weight: 600; }
.info-knoepfe button:hover { transform: translateY(-2px); }
.knopf-zeile { width: 100%; text-align: left; }
.knopf-zeile.rot .vb-text, .knopf-zeile.rot .vb-icon { color: #e5484d; }
.knopf-zeile.rot .vb-icon { background: rgba(229,72,77,.12); }
.sicherheitsnr { font-size: 15px; letter-spacing: 1px; text-align: center; margin: 10px 0 2px; color: var(--t); }
.info-medien { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.info-bild { aspect-ratio: 1; border-radius: 10px; overflow: hidden; position: relative; background: var(--bg2); }
.info-bild img { width: 100%; height: 100%; object-fit: cover; }
.info-bild .v { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.info-datei { aspect-ratio: 1; border-radius: 10px; background: var(--o3); color: var(--o); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 24px; padding: 6px; }
.info-datei span { font-size: 11px; color: var(--t2); width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-seite .zeile-opt { display: flex; align-items: center; gap: 10px; padding: 10px 4px; cursor: pointer; border-radius: 10px; }

/* Nachrichten: Optionen-Pfeil (Maus/Touchpad), lange druecken ohne Textauswahl auf Touch */
.blase { position: relative; }
.msg-pfeil { position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--t2);
  background: inherit; box-shadow: -6px 0 8px -2px var(--me); opacity: 0; pointer-events: none; transition: opacity .12s; }
.msg:not(.ich) .msg-pfeil { box-shadow: -6px 0 8px -2px var(--they); }
@media (hover: hover) { .msg:hover .msg-pfeil { opacity: 1; pointer-events: auto; } }
.msg-pfeil:hover { color: var(--o); }
@media (pointer: coarse) {
  .msg .blase, .eintrag, .sticker-raster button { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .msg-pfeil { display: none; }
}
.msg .blase img { -webkit-touch-callout: none; }

/* Mehrfachauswahl */
.verlauf.auswahl-modus .msg { cursor: pointer; position: relative; }
.verlauf.auswahl-modus .msg::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--t3); align-self: center; margin: 0 10px 0 4px; flex-shrink: 0; order: -1; }
.verlauf.auswahl-modus .msg.ich::before { margin-right: auto; }
.verlauf.auswahl-modus .msg.gewaehlt { background: rgba(255,122,26,.10); }
.verlauf.auswahl-modus .msg.gewaehlt::before { background: var(--o); border-color: var(--o); content: "\f00c"; font: var(--fa-font-solid); font-size: 11px; color: #fff; display: grid; place-items: center; }
.verlauf.auswahl-modus .msg-pfeil { display: none; }

/* Datei-Icons */
.datei .dicon { font-size: 22px; color: var(--o); background: var(--o3); display: grid; place-items: center; }

/* Eingeblendete Benachrichtigung (App offen) */
.banner { position: fixed; top: calc(10px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 90; width: min(420px, calc(100% - 20px));
  display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 12px; border-radius: 18px; background: var(--k); color: var(--t);
  box-shadow: 0 10px 30px rgba(0,0,0,.18); cursor: pointer; animation: bannerRein .25s ease-out; transition: opacity .3s, transform .3s; }
.banner.weg { opacity: 0; transform: translateX(-50%) translateY(-20px); }
.banner .av { width: 40px; height: 40px; font-size: 15px; }
.banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.banner-text span { color: var(--t2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes bannerRein { from { opacity: 0; transform: translateX(-50%) translateY(-24px); } }

/* Verbindungsanzeige */
.verbindung { position: fixed; top: calc(8px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 88; background: #2b2622; color: #fff; padding: 8px 14px; border-radius: 12px; font-size: 13.5px; box-shadow: var(--shadow); }
.verbindung i { margin-right: 6px; color: var(--o2); }
