/* Chat-Beilagen (12.11.2026): Link-Vorschau, Standort, Dokument, Umfrage, Kontakt, Timer-Hinweis, @Erwähnungen — chat_beilagen.js */
.cb-link { display: flex; gap: 10px; align-items: center; margin-top: 6px; padding: 6px; border-radius: 10px; background: rgba(0,0,0,.18);
  color: inherit; text-decoration: none; max-width: 320px; overflow: hidden; }
.cb-link img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.cb-link-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cb-link-text b { font-size: 14px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cb-link-text small { opacity: .75; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-huelle { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .cb-huelle { align-items: center; } }
.cb-blatt { background: var(--nacht, #1d1426); color: var(--milch, #fff); width: min(440px, 100%); max-height: 86vh; overflow: auto; border-radius: 18px 18px 0 0;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
@media (min-width: 700px) { .cb-blatt { border-radius: 18px; } }
.cb-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.cb-zu { background: transparent; border: 0; color: inherit; font-size: 18px; cursor: pointer; padding: 6px; }
.cb-inhalt { display: grid; gap: 10px; }
.cb-feld { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linie, rgba(255,255,255,.2)); background: rgba(255,255,255,.06); color: inherit; font: inherit; }
.cb-knopf { border: 1px solid var(--linie, rgba(255,255,255,.2)); background: transparent; color: inherit; border-radius: 12px; padding: 10px 12px; font: inherit; cursor: pointer; text-align: left; }
.cb-haupt { background: var(--korall, #ff6b6b); border-color: transparent; color: #fff; font-weight: 700; text-align: center; }
.cb-knopf:disabled { opacity: .6; }
.cb-fehler { color: #ffb4b4; margin: 8px 0 0; }
.cb-plus-huelle { position: relative; display: inline-flex; }
.cb-plus { background: transparent; border: 1px solid var(--linie, rgba(255,255,255,.2)); color: inherit; border-radius: 10px; width: 40px; height: 40px; font-size: 20px; cursor: pointer; }
.cb-plus-menue { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 30; display: grid; gap: 4px; padding: 6px; min-width: 190px; background: var(--pflaume, #2a1f35); border-radius: 12px; }
.cb-beilage { margin: 2px 0 4px; }
.cb-ort { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.18); color: inherit; text-decoration: none; min-width: 200px; max-width: 300px; box-sizing: border-box; }
.cb-ort-sym { font-size: 26px; }
.cb-ort-text { display: flex; flex-direction: column; min-width: 0; }
.cb-ort-text small { opacity: .75; font-size: 12px; }
.cb-dok { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.18); min-width: 200px; max-width: 300px; box-sizing: border-box; }
.cb-dok-sym { flex: none; width: 40px; height: 48px; border-radius: 6px; background: #fff; color: #b3261e; font-weight: 800; font-size: 11px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; box-sizing: border-box; }
.cb-dok-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cb-dok-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-dok-text small { opacity: .75; font-size: 12px; }
.cb-dok-holen { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; font-size: 16px; }
.cb-musik-spielen { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; font-size: 15px; }
.cb-musik { display: block; width: 100%; max-width: 300px; margin-top: 6px; }
.cb-u { display: grid; gap: 6px; min-width: 220px; max-width: 320px; }
.cb-u-titel { font-size: 15px; }
.cb-u-wahl { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.14); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cb-u-wahl:disabled { cursor: default; }
.cb-u-wahl.gewaehlt { border-color: currentColor; font-weight: 700; }
.cb-u-wahl.mit-balken::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--anteil, 0%); background: rgba(255,255,255,.18); }
.cb-u-text, .cb-u-zahl { position: relative; }
.cb-u-fuss { opacity: .75; font-size: 12px; }
.cb-u-liste { display: grid; gap: 8px; }
.cb-k-huelle { display: grid; gap: 6px; min-width: 220px; max-width: 300px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.18); box-sizing: border-box; }
.cb-k { display: flex; gap: 10px; align-items: center; }
.cb-k-av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--violett, #7b4bd6); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cb-k-text { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.cb-k-text small { opacity: .75; }
.cb-k-fuss { display: flex; gap: 8px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 6px; }
.cb-k-knopf { flex: 1; text-align: center; padding: 6px; border-radius: 8px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.cb-k-liste { display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.cb-k-wahl { display: flex; gap: 10px; align-items: center; }
.cb-t-hinweis { display: block; font-size: 13px; opacity: .9; text-align: center; }
.cb-system { align-self: center !important; margin-left: auto !important; margin-right: auto !important; background: rgba(255,255,255,.08) !important; color: inherit !important; max-width: 92% !important; }
.cb-t-wahl.gewaehlt { border-color: var(--korall, #ff4f7a); font-weight: 700; }
.cb-at { font-weight: 700; color: var(--korall, #ff4f7a); }
.ich .cb-at { color: inherit; text-decoration: underline; }
.cb-erwaehnt-mich { box-shadow: inset 3px 0 0 var(--korall, #ff4f7a); }
.cb-at-liste { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 40; display: grid; gap: 2px; padding: 6px; border-radius: 12px;
  background: var(--pflaume, #2a1f35); box-shadow: 0 8px 24px rgba(0,0,0,.35); max-height: 40vh; overflow: auto; }
.cb-at-wahl { text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.cb-at-wahl.aktiv, .cb-at-wahl:hover { background: rgba(255,255,255,.1); }
#ew-chat-form { position: relative; }

/* 13.11.2026 «Weiterlesen» (Owner: «mit dem Button wie WhatsApp, nachher unten weiter lesen») — CB.weiterlesen; Absätze langer Texte bleiben */
.gr-n > p, .tc-t { white-space: pre-wrap; word-break: break-word; }
.cb-weiterlesen { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 700; color: var(--korall-schrift, #ff8fa8); cursor: pointer; display: inline; }
.nachricht.ich .cb-weiterlesen, .ew-chat-nachricht.ich .cb-weiterlesen, .gr-n.meins .cb-weiterlesen, .mp-z.du .cb-weiterlesen { color: inherit; text-decoration: underline; }
.cb-weiterlesen:hover, .cb-weiterlesen:focus-visible { text-decoration: underline; }
/* 14.11.2026: Links im Text antippbar (chat_beilagen.js verlinken) — unterstrichen in der Schriftfarbe der Blase, lange Adressen brechen um */
.cb-text-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; word-break: break-word; }
.cb-text-link:hover, .cb-text-link:focus-visible { opacity: .85; }
/* 13.11.2026 (Abgleich c.hintergrund): Chat-Design — seit 24.11.2026 in darstellung.css (Farben, Schrift hell/dunkel, Foto). */
/* 13.11.2026 (Abgleich c.standort / g.umfragen): Live-Standort und Erlebnis-Karte im Chat */
.cb-live-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.cb-live-stopp { margin-top: 6px; width: 100%; }
.cb-erlebnis { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.18); color: inherit; text-decoration: none; min-width: 200px; max-width: 300px; box-sizing: border-box; }
.cb-erlebnis small { opacity: .8; }
.cb-erlebnis-los { font-weight: 700; }
.cb-e-wahl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%; }
/* 13.11.2026 (Abgleich p.hinge): 💬 auf einem Foto / einer Antwort in Entdecken */
.hg-foto { position: absolute; right: 12px; bottom: 120px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(22,10,28,.75); color: #fff; font-size: 20px; cursor: pointer; z-index: 3; }
.prompt-kachel { position: relative; }
.hg-prompt { position: absolute; right: 6px; top: 6px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.hg-text { width: 100%; box-sizing: border-box; }
/* 14.11.2026 (Owner-Entscheid «GIFs ohne fremden Dienst», backend/chat_sticker.py): bewegte Sticker — ein Bildstreifen je Sticker
   (steps), der bewegte Avatar mit einer CSS-Bewegung. Ohne Blase (cb-ohne-blase), «Bewegung reduzieren» = still. */
.cb-ohne-blase { background: transparent !important; box-shadow: none !important; border-color: transparent !important; padding: 2px !important }
.cb-st { display: inline-block; width: var(--s, 120px); height: var(--s, 120px); background-repeat: no-repeat; background-position: 0 0;
  background-size: calc(var(--s, 120px) * var(--n, 12)) var(--s, 120px); animation: cb-st var(--d, 1080ms) steps(var(--n, 12)) infinite }
@keyframes cb-st { to { background-position: calc(var(--s, 120px) * var(--n, 12) * -1) 0 } }
.cb-st-weg { font-size: 3rem; line-height: 1 }
.cb-av { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--s, 120px); height: var(--s, 120px) }
.cb-av-bild { width: 92%; height: 92%; object-fit: contain; transform-origin: 50% 90% }
.cb-av-zeichen { position: absolute; right: 4%; top: 4%; font-size: calc(var(--s, 120px) * .2); animation: cb-av-steigen 1.1s ease-in-out infinite }
.cb-av-huepfen .cb-av-bild { animation: cb-av-huepfen 1.1s ease-in-out infinite }
.cb-av-winken .cb-av-bild { animation: cb-av-winken 1.1s ease-in-out infinite }
.cb-av-herz .cb-av-bild { animation: cb-av-herz 1.1s ease-in-out infinite }
.cb-av-drehen { perspective: 400px } .cb-av-drehen .cb-av-bild { animation: cb-av-drehen 1.6s linear infinite }
.cb-av-wackeln .cb-av-bild { animation: cb-av-wackeln 1.1s ease-in-out infinite }
.cb-av-jubeln .cb-av-bild { animation: cb-av-jubeln 1.1s ease-in-out infinite }
@keyframes cb-av-huepfen { 0%, 100% { transform: translateY(0) } 45% { transform: translateY(-16px) scaleY(1.04) } 90% { transform: translateY(0) scaleY(.94) } }
@keyframes cb-av-winken { 0%, 100% { transform: rotate(0) } 25% { transform: rotate(-12deg) } 75% { transform: rotate(12deg) } }
@keyframes cb-av-herz { 0%, 50%, 100% { transform: scale(1) } 30% { transform: scale(1.08) } }
@keyframes cb-av-drehen { to { transform: rotateY(360deg) } }
@keyframes cb-av-wackeln { 0%, 60%, 100% { transform: translateX(0) } 15% { transform: translateX(-8px) } 30% { transform: translateX(8px) } 45% { transform: translateX(-6px) } }
@keyframes cb-av-jubeln { 0%, 70%, 100% { transform: translateY(0) rotate(0) } 35% { transform: translateY(-18px) rotate(-6deg) } }
@keyframes cb-av-steigen { 0% { opacity: 0; transform: translateY(10px) } 50% { opacity: 1 } 100% { opacity: 0; transform: translateY(-20px) } }
@media (prefers-reduced-motion: reduce) { .cb-st, .cb-av-bild, .cb-av-zeichen { animation: none !important } }
/* Sticker-Feld (emoji.js) */
.emo-st-box { padding: 6px 8px } .emo-st-box[hidden] { display: none }
.emo-st-suche { width: 100%; box-sizing: border-box; min-height: 40px; border-radius: 20px; border: 1px solid var(--linie); background: var(--pflaume-hell); color: var(--milch); padding: 6px 14px; font: inherit }
.emo-st-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 4px; margin-top: 6px }
.emo-st-k { display: grid; place-items: center; gap: 2px; min-height: 84px; border: 0; border-radius: 14px; background: transparent; color: var(--nebel); font: inherit; font-size: .72rem; cursor: pointer }
.emo-st-k:hover, .emo-st-k:focus-visible { background: var(--pflaume-hell) }
.emo-st-titel { display: block; color: var(--nebel); font-size: .75rem; font-weight: 800; margin: 10px 4px 2px }
