/* ===========================================================================
   Mannschaftschat (Chat.php)
   ---------------------------------------------------------------------------
   Spezifikation: docs/specs/mannschaftschat.md

   Nur .ch-*-Klassen: keine :root-Variablen, keine nackten Element-Regeln.
   Karten, Hinweise und Knoepfe kommen aus 05-admin-konsole.css (.ad-card, .ad-hinweis)
   und 08-spielerorganisation-mannschaften.css (.so-btn, .so-inp).
   =========================================================================== */

.ch-rolle { font-size: 0.72rem; opacity: 0.8; }
.ch-fein { font-size: 0.75rem; opacity: 0.75; }
.ch-text { margin: 0; overflow-wrap: anywhere; line-height: 1.45; }

.ch-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ch-form .so-btn { align-self: flex-end; }
.ch-form textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 5.5rem; }
.ch-lbl { font-size: 0.85rem; font-weight: 600; }


/* Zieltreffer fuer Finger: Knoepfe mindestens 44 px hoch */
.ch-aktionen .so-btn, .ch-form .so-btn { min-height: 44px; }

@media (max-width: 640px) {
    .ch-form textarea { font-size: 1rem; }   /* 16 px: kein Zoom beim Fokus auf iOS */
    .ch-form .so-btn { width: 100%; justify-content: center; min-height: 48px; }
}

/* ---- Symbol im Seitenkopf und Popup (2026-11-02) ----
   Das Symbol sitzt neben der Lupe (.ti-cmdk-trigger hat margin-left: auto); ohne Lupe (Eltern) rueckt es selbst nach rechts. */
.ti-chat-knopf {
    position: relative; display: flex; align-items: center; justify-content: center; margin-left: auto;
    min-width: 44px; min-height: 44px; background: transparent; border: none; border-radius: 10px;
    color: inherit; font-size: 1.05rem; cursor: pointer; transition: background 0.15s ease;
}
.ti-cmdk-trigger + .ti-chat-knopf { margin-left: 0; }
.ti-chat-knopf:hover { background: rgba(255, 255, 255, 0.12); }
.ti-chat-knopf:focus-visible { outline: 2px solid var(--tigers-yellow); outline-offset: 2px; }
.ti-chat-zahl {
    position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
    border-radius: 9px; background: #d93025; color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 18px; text-align: center;
}

/* Bewusst KEINE display-Regel an .ch-dlg selbst: sie wuerde das [open]-Verhalten des <dialog> aushebeln.
   Oben angedockt mit fester Hoehe (2026-11-13): mittig gesetzt sprang das Fenster bei jedem Wechsel zwischen Liste, Chat und Formular. */
.ch-dlg { width: min(560px, calc(100vw - 24px)); max-width: none; height: min(760px, calc(100dvh - 48px)); max-height: none; margin: 24px auto auto;
    padding: 0; border: 1px solid var(--karte-border); border-radius: 14px; background: var(--bg-flaeche); color: rgb(var(--ink)); }
.ch-dlg[open] { display: flex; flex-direction: column; }
.ch-dlg::backdrop { background: rgba(0, 0, 0, 0.55); }
.ch-dlg-kopf { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--glass-22); }
.ch-dlg-knoepfe { display: flex; align-items: center; gap: 2px; }
.ch-dlg-zu { min-width: 40px; min-height: 40px; border: none; border-radius: 10px; background: transparent; color: inherit; font-size: 1.1rem; cursor: pointer; }
.ch-dlg-zu:hover { background: var(--glass-08); }
.ch-dlg-zu:focus-visible { outline: 2px solid var(--tigers-yellow); outline-offset: 2px; }
.ch-dlg-inhalt { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 12px; }
.ch-dlg-inhalt > * { flex: 0 0 auto; margin-top: 0; margin-bottom: 0; }
.ch-dlg .ch-verlauf { flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; min-height: 8rem; }   /* x: die Trefferflaeche des ⋮ ragt sonst 4 px hinaus (Rollbalken) */

.ch-chat-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ch-zurueck { margin-left: auto; font-size: 0.85rem; }
.ch-zahl { display: inline-block; min-width: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: #d93025; color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 20px; text-align: center; vertical-align: middle; }
.ch-meldung[hidden] { display: none; }

/* Handy: Vollbild. --ch-vh/--ch-top setzt ts/footer-chat.ts aus dem sichtbaren Bereich (Tastatur), ohne Skript gilt 100dvh. */
@media (max-width: 640px) {
    .ch-dlg { width: 100vw; height: var(--ch-vh, 100dvh); inset: var(--ch-top, 0px) 0 auto 0; margin: 0; border: 0; border-radius: 0; }
    .ch-dlg-kopf { padding-top: max(6px, env(safe-area-inset-top)); }
    .ch-dlg-inhalt { padding: 8px 10px max(10px, env(safe-area-inset-bottom)); }
}

/* Schmale Handys: mit Lupe, Chat, Glocke und Menueknopf ist der Kopf sonst breiter als der Bildschirm. Die Hoehe bleibt 44 px. */
@media (max-width: 420px) {
    nav .ti-cmdk-trigger, nav .ti-chat-knopf, nav .ti-glocke-knopf { min-width: 36px; width: 36px; }
}

/* ---- Gruppen (2026-11-02, Spec docs/specs/chat-gruppen.md) ---- */
.ch-gform .so-btn, .ch-personen > summary { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.ch-admin-gruppe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 8px 12px; border: 1px dashed var(--glass-22); border-radius: 12px; }
.ch-admin-gruppe form { margin: 0; }
.ch-gform input.so-inp { width: 100%; box-sizing: border-box; min-height: 44px; font-size: 1rem; }
.ch-rollen { border: 1px solid var(--glass-22); border-radius: 12px; padding: 8px 12px 10px; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ch-rollen legend { padding: 0 6px; }
.ch-haken { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.ch-haken input { width: 20px; height: 20px; }
.ch-personen { border: 1px solid var(--glass-22); border-radius: 12px; padding: 6px 12px 10px; }
.ch-person { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 6px 0; border-top: 1px solid var(--glass-08); }
.ch-person select { min-height: 44px; font-size: 1rem; max-width: 100%; }
@media (max-width: 640px) {
    .ch-person select { width: 100%; }
}

/* ---- Popup: Tabs, einklappbare Mannschaften, Einzelchats, Chat-Regeln (2026-11-02, Spec docs/specs/chat-einzel-und-popup.md) ----
   Zeilen, Tabs und Suche sind mindestens 44 px hoch. Das Werkzeugband ist ohne JavaScript verborgen (Seite Chat.php). */
.ch-werkzeug[hidden], .ch-leer[hidden], .ch-zeile[hidden], .ch-extra[hidden], .ch-team[hidden], .ch-meldung[hidden] { display: none; }
.ch-werkzeug { display: flex; flex-direction: column; gap: 8px; }
/* Reiter als Segment-Schalter (2026-11-13, Maik: Variante A statt Unterstrich): graue Schiene, aktiver Reiter gelb mit schwarzer
   Schrift, in beiden Designs lesbar. Eigene :hover-Regeln, sonst greift button:hover mit hellem Hintergrund. */
.ch-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--glass-08); }
.ch-tab { flex: 1; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px;
    background: transparent; border: 0; border-radius: 9px; color: inherit; font: inherit; font-size: 0.9rem; opacity: 0.85; cursor: pointer;
    transition: background 0.15s ease; }
.ch-tabs .ch-tab:hover { background: var(--glass-08); color: inherit; opacity: 1; }
.ch-tabs .ch-tab[aria-selected="true"], .ch-tabs .ch-tab[aria-selected="true"]:hover { opacity: 1; font-weight: 700; background: var(--tigers-yellow);
    color: var(--tigers-black); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.ch-tab:focus-visible, .ch-chat:focus-visible { outline: 2px solid var(--tigers-yellow); outline-offset: 2px; }
.ch-suche { position: relative; display: block; }
.ch-suche i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: 0.6; pointer-events: none; }
.ch-suche .ch-such { width: 100%; box-sizing: border-box; min-height: 44px; padding-left: 38px; font-size: 1rem; }

.ch-team { display: flex; flex-direction: column; }
/* Mannschaftskopf: gelbe Flaeche (feste Flaeche, darum dunkle Schrift in beiden Themes), rechts das Symbol "Neue Gruppe" */
.ch-team-kopf { display: flex; align-items: center; gap: 4px; min-height: 36px; margin: 10px 0 2px; padding: 0 6px 0 10px; border-radius: 10px;
    background: var(--tigers-yellow); color: var(--tigers-black); font-weight: 700; }
.ch-team-kopf .ad-dim { color: inherit; opacity: 0.7; font-weight: 600; }
.ch-team-kopf .ch-ic { opacity: 1; }
.ch-team-kopf .ch-ic:hover { background: rgba(0, 0, 0, 0.12); }
.ch-team-kopf :focus-visible { outline: 2px solid var(--tigers-black); outline-offset: -2px; }
.ch-fold { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 0; background: transparent; border: 0;
    border-radius: 0; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.ch-fold::after { content: ""; position: absolute; inset: -4px 0; }   /* Trefferflaeche 44 px */
.ch-fold i { transition: transform 0.15s ease; opacity: 0.7; }
.ch-fold[aria-expanded="false"] i { transform: rotate(-90deg); }
.ch-fold .ch-zahl { margin-left: auto; }
.ch-team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ch-chats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ch-chat { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-height: 52px; padding: 6px;
    border: 0; border-bottom: 1px solid var(--glass-08); border-radius: 0; background: transparent; color: inherit; font: inherit;
    text-align: left; text-decoration: none; cursor: pointer; transition: background 0.15s ease; }
.ch-chat:hover { background: var(--glass-06); }
.ch-zeile[data-art="g"] .ch-chat { padding-left: 18px; }
.ch-sym { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--glass-08); color: color-mix(in srgb, var(--tigers-yellow) 50%, rgb(var(--ink))); }
.ch-sym-person { border-radius: 50%; color: inherit; font-size: 0.85rem; font-weight: 700; }
.ch-mitte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-zeile1 { display: flex; justify-content: space-between; gap: 8px; }
.ch-zeile1 strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-zeit { flex: none; font-size: 0.75rem; opacity: 0.8; }
.ch-unter { font-size: 0.75rem; }
.ch-vorschau { display: block; font-size: 0.85rem; opacity: 0.8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-neu-nachricht .ch-vorschau { opacity: 1; font-weight: 600; }
.ch-chat .ch-zahl { flex: none; }

.ch-extra { margin: 0; }
.ch-einzel-neu { padding-top: 8px; }
.ch-einzel-neu .so-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.ch-person-form { margin: 0; }
.ch-leer { margin: 18px 0; text-align: center; }

.ch-regeln { display: flex; flex-direction: column; gap: 10px; }
.ch-regeln > * { margin-top: 0; margin-bottom: 0; }
.ch-regeln-sym { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--glass-08); color: var(--tigers-yellow); font-size: 1.5rem; }
.ch-regeln-titel { margin: 0; font-size: 1.1rem; }
.ch-regeln-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ch-regeln-liste li { display: flex; align-items: flex-start; gap: 10px; }
.ch-regeln-liste i { margin-top: 4px; }
.ch-nein i { color: #d93025; }
.ch-ja i, .ch-ok { color: #2e9e6b; }
.ch-regeln-haken { padding: 8px 12px; border: 1px solid var(--glass-22); border-radius: 10px; align-items: flex-start; }
.ch-regeln-haken input { flex: none; margin-top: 10px; }
.ch-regeln .so-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* ---- Verlauf als Blasen, alle linksbuendig (2026-11-13, Mockup im Vault; Maik: "alles links") ----
   Kreis, Name in fester Farbe je Person (.ch-n0 bis .ch-n5) und Rolle; eigene Nachrichten (.ch-eigen) in gelber Blase.
   Trainer (.ch-trainer) mit Abzeichen, fremde Trainer-Nachrichten zusaetzlich mit gelbem Balken. Trennzeile je Tag (.ch-tag), Uhrzeit unten rechts in der Blase (.ch-zeit).
   Folgenachrichten (.ch-folge) ohne Kreis und Namen, geloeschte als schmale Pille (.ch-weg), Aktionen hinter drei Punkten (.ch-menue). */
.ch-liste { list-style: none; margin: 0; padding: 0 2px; display: flex; flex-direction: column; }
.ch-msg { position: relative; display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; }   /* relative: Bezug fuer die Menueleiste */
.ch-folge { margin-top: 2px; }
.ch-body { min-width: 0; max-width: 80%; }
.ch-folge .ch-body { margin-left: 32px; }   /* Kreis 26 px + Abstand 6 px */
.ch-blase { position: relative; padding: 5px 10px 6px; border-radius: 6px 16px 16px 16px; background: var(--glass-08); }
.ch-eigen .ch-blase { background: var(--tigers-yellow); color: var(--tigers-black); }
.ch-eigen .ch-blase .ch-text, .ch-eigen .ch-kopf strong { color: inherit; }   /* auf Gelb keine Namensfarbe */
.ch-eigen .ch-abz { background: var(--tigers-black); color: var(--tigers-yellow); }
/* Uhrzeit unten rechts; der unsichtbare Platzhalter am Textende haelt ihr die letzte Zeile frei (nicht im textContent, das Bearbeiten liest) */
.ch-text::after { content: ""; display: inline-block; width: 2.9em; }
.ch-geaendert .ch-text::after { width: 7.4em; }
/* nur in der Blase: .ch-zeit heisst auch die Uhrzeit der Chatliste */
.ch-blase .ch-zeit { position: absolute; right: 9px; bottom: 5px; font-size: 0.66rem; line-height: 1; opacity: 0.75; white-space: nowrap; }
.ch-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin-bottom: 1px; font-size: 0.8rem; line-height: 1.35; }
/* Der Universalselektor (* { font-size: 1rem }) setzt jedes Kind sonst auf 16 px: Groessen hier ausdruecklich */
.ch-kopf strong { font-size: 0.82rem; }
.ch-regeln-zeile > *, .ch-bearb > *, .ch-menue > summary > i, .ch-mp > i, .ch-tag > span { font-size: inherit; }
/* Namensfarben: Grundton mit der Schriftfarbe gemischt, dadurch hell im dunklen und dunkel im hellen Design (ohne color-mix: Schriftfarbe); 55 %: Kontrast >= 4,5:1 auf beiden Blasen */
.ch-n0 { color: color-mix(in srgb, #3d8bfd 55%, rgb(var(--ink))); }
.ch-n1 { color: color-mix(in srgb, #f08a24 55%, rgb(var(--ink))); }
.ch-n2 { color: color-mix(in srgb, #3fae49 55%, rgb(var(--ink))); }
.ch-n3 { color: color-mix(in srgb, #b65fd6 55%, rgb(var(--ink))); }
.ch-n4 { color: color-mix(in srgb, #1fb3a5 55%, rgb(var(--ink))); }
.ch-n5 { color: color-mix(in srgb, #e5537a 55%, rgb(var(--ink))); }

/* Trainer: gelber Balken links (innerer Schatten folgt der Rundung), leicht gelbe Flaeche, Abzeichen statt grauer Rolle */
/* Balken: Gelb mit der Schriftfarbe gemischt, dadurch auch auf Weiss sichtbar (dunkler Goldton), im Dunkeln fast reines Gelb */
.ch-trainer:not(.ch-eigen) .ch-blase { background: color-mix(in srgb, var(--tigers-yellow) 16%, transparent); padding-left: 12px;
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--tigers-yellow) 80%, rgb(var(--ink))); }
.ch-abz { padding: 0 6px; border-radius: 999px; background: var(--tigers-yellow); color: var(--tigers-black); font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.03em; line-height: 1.6; text-transform: uppercase; }

/* Umfrage-Karte: volle Breite, keine Blase */
.ch-karte .ch-body { flex: 1; max-width: none; }
.ch-karte .ch-blase { padding: 0; background: none; }
.ch-karte .ch-blase .ch-zeit { position: static; display: block; margin-top: 2px; text-align: right; }

.ch-tag { display: flex; align-items: center; gap: 10px; margin: 14px 0 2px; font-size: 0.72rem; opacity: 0.8; }
.ch-tag:first-child { margin-top: 2px; }
.ch-tag::before, .ch-tag::after { content: ""; flex: 1; height: 1px; background: var(--glass-22); }

.ch-weg { align-self: center; margin-top: 8px; }
.ch-weg-text { margin: 0; padding: 2px 10px; border-radius: 999px; background: var(--glass-06); font-size: 0.72rem; font-style: italic; opacity: 0.85; }
.ch-weg-text i { font-size: 0.68rem; }

.ch-av { flex: none; width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
    background: var(--glass-08); font-size: 0.8rem; font-weight: 700; }
.ch-av-klein { width: 26px; height: 26px; font-size: 0.65rem; }
.ch-av-bild { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Gelbe Symbole: mit der Schriftfarbe gemischt, damit sie auf hellem Grund lesbar bleiben */
.ch-av-gruppe { border-radius: 12px; color: color-mix(in srgb, var(--tigers-yellow) 50%, rgb(var(--ink))); font-size: 1rem; }

.ch-ic { position: relative; width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 8px;
    background: transparent; color: inherit; font-size: 0.95rem; text-decoration: none; opacity: 0.75; cursor: pointer; transition: background 0.15s ease, opacity 0.15s ease; }
.ch-ic::after { content: ""; position: absolute; inset: -6px; }
.ch-ic:hover { background: var(--glass-08); opacity: 1; }
.ch-ic:focus-visible { outline: 2px solid var(--tigers-yellow); outline-offset: 2px; opacity: 1; }

/* Menue mit drei Punkten am rechten Rand der Zeile: am Desktop erst bei Hover/Fokus, am Handy (kein Hover) immer blass sichtbar.
   Die Leiste haengt an der Zeile (.ch-msg), nicht am Symbol: so bleibt sie auch bei kurzen Nachrichten im Bild. */
.ch-menue { flex: none; align-self: center; margin-left: auto; }   /* immer am rechten Rand der Zeile */
.ch-menue > summary { width: 28px; height: 28px; font-size: 0.85rem; list-style: none; opacity: 0; }
.ch-menue > summary::-webkit-details-marker { display: none; }
.ch-msg:hover .ch-menue > summary, .ch-msg:focus-within .ch-menue > summary, .ch-menue[open] > summary { opacity: 0.8; }
@media (hover: none) { .ch-menue > summary { opacity: 0.4; } }
.ch-menue-liste { position: absolute; top: 0; right: 32px; z-index: 2; display: flex; gap: 2px; padding: 2px; white-space: nowrap;
    border: 1px solid var(--glass-22); border-radius: 10px; background: var(--bg-flaeche); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }   /* deckend wie das Fenster: --karte-bg scheint durch */
.ch-menue .ch-loeschen { margin: 0; }
.ch-menue .ch-mp, .ch-menue a.ch-mp:visited { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px;
    background: transparent; color: inherit; font: inherit; font-size: 0.85rem; text-decoration: none; cursor: pointer; }
.ch-menue .ch-mp:hover, .ch-menue .ch-mp:focus-visible { background: var(--glass-08); color: inherit; }
.ch-menue .ch-mp:focus-visible { outline: 2px solid var(--tigers-yellow); outline-offset: 1px; }
.ch-menue .ch-mp-rot, .ch-menue .ch-mp-rot:hover, .ch-menue .ch-mp-rot:focus-visible { color: #d93025; }

/* Bearbeiten im Eingabefeld: schmale Zeile darueber mit Abbrechen */
.ch-bearb { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 0 0 10px; border-left: 3px solid var(--tigers-yellow); font-size: 0.8rem; }
.ch-bearb[hidden] { display: none; }
.ch-bearb span { flex: 1; }

.ch-kopfzeile { display: flex; align-items: center; gap: 8px; }
.ch-wer { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ch-wer strong, .ch-wer .ad-dim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-wer .ad-dim { font-size: 0.75rem; }
.ch-kopf-aktion { margin: 0; }

.ch-regeln-zeile { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 2px 0; border-top: 1px solid var(--glass-22); font-size: 0.72rem; line-height: 1.35; opacity: 0.9; }
.ch-regeln-zeile i { flex: none; color: #2e9e6b; }
.ch-regeln-zeile a { margin-left: auto; white-space: nowrap; }
.ch-neu { display: flex; align-items: flex-end; gap: 8px; margin: 0; }
.ch-feld { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 6px; padding: 4px 4px 4px 14px;
    border: 1px solid var(--glass-22); border-radius: 22px; background: var(--glass-06); }
.ch-feld:focus-within { border-color: var(--tigers-yellow); }
.ch-feld textarea { flex: 1; min-width: 0; box-sizing: border-box; min-height: 34px; max-height: 120px; padding: 6px 0; border: 0; outline: 0; resize: none;
    background: transparent; color: inherit; font: inherit; font-size: 1rem; line-height: 1.4; }
.ch-zaehler { align-self: center; padding-right: 8px; font-size: 0.7rem; opacity: 0.7; font-variant-numeric: tabular-nums; }
.ch-zaehler.ch-voll { color: #d93025; opacity: 1; }
.ch-senden { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%;
    background: var(--tigers-yellow); color: var(--tigers-black); cursor: pointer; }
.ch-senden::after { content: ""; position: absolute; inset: -2px; }
.ch-senden:focus-visible { outline: 2px solid var(--tigers-yellow); outline-offset: 2px; }
.ch-senden:disabled { opacity: 0.5; cursor: not-allowed; }

/* Chat: Knopf "Umfrage starten" neben dem Senden-Knopf, Zaehler nur kurz vor dem Limit */
.ch-neu .ch-um-neu { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; font-size: 1rem; color: rgb(var(--ink));
    background: transparent; border: 1px solid var(--glass-22); border-radius: 50%; cursor: pointer; }
.ch-neu .ch-um-neu:hover { background: var(--glass-22); color: rgb(var(--ink)); }
.ch-neu .ch-um-neu:focus-visible { outline: 2px solid var(--tigers-yellow); outline-offset: 2px; }
.ch-feld textarea { overflow-y: hidden; }
