/* ===== Chat-Look A „Ruhig“ (Visuell 16.11., u-chat-design-bau) – Lernbereich-Chat und Team-Chat =====
   Farben nur aus Tokens (app/design/tokens.css), Vorsilbe cl-. --cl-tag = Tagesfarbe (Fläche der eigenen Blasen), gesetzt am Chat-Wurzelelement. */
.cl-i { display: inline-block; vertical-align: middle; flex: none; }
.cl-o { color: var(--orange-tief, #C43D00); }
.cl-kick, .cl-day span { font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.cl-kick { color: var(--orange-tief, #C43D00); }
.cl-title { margin: 0; font-family: var(--font-display, "League Spartan", system-ui, sans-serif); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--tinte-tief, #231F1C); overflow-wrap: anywhere; }
html[data-theme="dark"] .cl-title { color: var(--tinte, #F1EDE4); }
.cl-sub { font-size: 13px; color: var(--tinte-leise, #6A6961); overflow-wrap: anywhere; }
.cl-ic { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--linie, #DFE0D2); background: var(--papier-hoch, #FFFFFB); color: var(--tinte, #545454); font-family: inherit; font-weight: 700; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cl-ic:focus-visible, .cl-btn:focus-visible, .cl-pill:focus-visible, .cl-opt:focus-visible, .cl-sugg button:focus-visible, .cl-menu button:focus-visible, .cl-bar button:focus-visible { outline: 2px solid var(--fokus, #C43D00); outline-offset: 2px; }
/* angeheftet */
.cl-pin { display: flex; align-items: stretch; gap: 0; background: var(--papier-hoch, #FFFFFB); border: 1.5px solid var(--linie, #DFE0D2); border-radius: 12px; min-width: 0; }
.cl-pin-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; font: inherit; color: var(--tinte, #545454); text-align: left; cursor: pointer; }
.cl-pin-go > span:nth-of-type(1) { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.cl-pin-go b { color: var(--tinte-tief, #231F1C); } html[data-theme="dark"] .cl-pin-go b { color: var(--tinte, #F1EDE4); }
.cl-x { width: 44px; flex: none; border: 0; border-left: 1px solid var(--linie, #DFE0D2); background: none; color: var(--tinte-leise, #6A6961); cursor: pointer; font: inherit; }
/* Verlauf */
.cl-day { display: flex; align-items: center; gap: 10px; color: var(--tinte-leise, #6A6961); margin: 6px 0; }
.cl-day::before, .cl-day::after { content: ""; flex: 1; border-top: 1px solid var(--linie, #DFE0D2); }
.cl-msg { display: flex; gap: 8px; align-items: flex-start; min-width: 0; max-width: 100%; }
.cl-msg.me { flex-direction: column; align-items: flex-end; }
.cl-col { display: flex; flex-direction: column; min-width: 0; max-width: min(300px, 82%); }
.cl-msg.me .cl-col { max-width: min(300px, 86%); align-items: flex-end; }
.cl-who { font-size: 12px; font-weight: 600; color: var(--tinte, #545454); margin: 0 0 3px 2px; overflow-wrap: anywhere; }
.cl-b { background: var(--papier-hoch, #FFFFFB); border: 1.5px solid var(--linie, #DFE0D2); border-radius: 18px 18px 18px 6px; padding: 10px 14px; color: var(--tinte-tief, #231F1C); font-size: 15px; line-height: 1.38; overflow-wrap: anywhere; position: relative; cursor: default; -webkit-touch-callout: none; }
html[data-theme="dark"] .cl-b { color: var(--tinte, #F1EDE4); }
.cl-msg.me .cl-b { background: var(--cl-tag, var(--tag-rose-farbe, #F7A8A6)); border-color: transparent; border-radius: 18px 18px 6px 18px; color: var(--tinte-tief, #231F1C); }
.cl-msg.me .cl-b a { color: var(--tinte-tief, #231F1C); }
.cl-b a { color: var(--orange-tief, #C43D00); }
.cl-msg.off .cl-b { opacity: .6; border-style: dashed; }
.cl-msg.urg .cl-b { border-color: var(--orange, #FC4C00); }
.cl-time { font-size: 12px; color: var(--tinte-leise, #6A6961); margin-top: 3px; }
.cl-msg.me .cl-time { text-align: right; }
.cl-b img { display: block; max-width: min(240px, 100%); max-height: 260px; border-radius: 10px; margin-top: 6px; }
.cl-file { display: inline-flex; gap: 6px; margin-top: 6px; color: inherit; overflow-wrap: anywhere; }
/* Avatar: Logo-Figur oder Foto */
.cl-av { position: relative; flex: none; display: inline-block; border-radius: 50%; overflow: hidden; }
.cl-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-av.cl-fig { overflow: visible; border-radius: 0; }
.cl-av.cl-fig svg { position: absolute; inset: 0; }
.cl-av.cl-fig b { position: absolute; left: 0; top: 30%; width: 85%; text-align: center; font-family: var(--font-display, "League Spartan", sans-serif); font-weight: 800; color: var(--tinte-tief, #231F1C); line-height: 1; }
/* Zitat */
.cl-quote { display: flex; flex-direction: column; gap: 1px; width: 100%; box-sizing: border-box; text-align: left; border: 0; border-left: 3px solid var(--orange, #FC4C00); background: var(--papier, #F6F8EF); border-radius: 6px; padding: 4px 8px; margin: 0 0 6px; font: inherit; font-size: 13px; color: var(--tinte, #545454); cursor: pointer; }
.cl-msg.me .cl-quote, html[data-theme="dark"] .cl-msg.me .cl-quote { background: rgba(255, 255, 255, .55); color: var(--tinte-tief, #231F1C); }
.cl-msg.me .cl-quote b { color: var(--tinte-tief, #231F1C) !important; }
.cl-quote b { color: var(--tinte-tief, #231F1C); } html[data-theme="dark"] .cl-msg:not(.me) .cl-quote b { color: var(--tinte, #F1EDE4); }
.cl-quote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Reaktionen */
.cl-reacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.cl-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 8px 0 4px; border-radius: 999px; background: var(--papier-hoch, #FFFFFB); border: 1.5px solid var(--linie, #DFE0D2); font-family: inherit; font-weight: 600; font-size: 13px; color: var(--tinte-tief, #231F1C); cursor: pointer; }
html[data-theme="dark"] .cl-pill { color: var(--tinte, #F1EDE4); }
.cl-pill.mine { border-color: var(--orange, #FC4C00); }
.cl-st { display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--tinte-tief, #231F1C); box-sizing: border-box; color: var(--tinte-tief, #231F1C); flex: none; }
.cl-st-aha, .cl-st-danke { border: 0; border-radius: 0; background: none; }
.cl-st-aha > * { grid-area: 1 / 1; } .cl-st-aha b { font-family: var(--font-display, "League Spartan", sans-serif); font-weight: 800; color: var(--tinte-tief, #231F1C); }
.cl-st-danke b { display: inline-block; padding: 2px 4px; border: 1.5px solid var(--orange-tief, #C43D00); border-radius: 4px; color: var(--orange-tief, #C43D00); font-family: var(--font-display, "League Spartan", sans-serif); font-weight: 800; letter-spacing: .04em; background: var(--papier-hoch, #FFFFFB); }
/* Karten */
.cl-card { margin-top: 8px; background: var(--papier, #F6F8EF); border: 1.5px solid var(--linie, #DFE0D2); border-radius: 12px; padding: 10px 12px; color: var(--tinte, #545454); }
.cl-word { font-family: var(--font-display, "League Spartan", sans-serif); font-weight: 800; font-size: 22px; color: var(--tinte-tief, #231F1C); margin-top: 4px; overflow-wrap: anywhere; }
html[data-theme="dark"] .cl-word, html[data-theme="dark"] .cl-pq { color: var(--tinte, #F1EDE4); }
.cl-satz { font-size: 14px; }
.cl-cbtn { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cl-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--linie, #DFE0D2); background: var(--papier-hoch, #FFFFFB); font-family: inherit; font-weight: 600; font-size: 14px; color: var(--tinte-tief, #231F1C); cursor: pointer; }
html[data-theme="dark"] .cl-btn { color: var(--tinte, #F1EDE4); }
.cl-btn.cl-prim { background: var(--orange, #FC4C00); border-color: var(--orange, #FC4C00); color: var(--tinte-tief, #231F1C); }
.cl-pq { font-weight: 600; color: var(--tinte-tief, #231F1C); margin: 4px 0 8px; overflow-wrap: anywhere; }
.cl-opt { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; margin-top: 6px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--linie, #DFE0D2); background: var(--papier-hoch, #FFFFFB); font-family: inherit; font-weight: 500; font-size: 14px; color: var(--tinte-tief, #231F1C); text-align: left; cursor: pointer; overflow: hidden; }
html[data-theme="dark"] .cl-opt { color: var(--tinte, #F1EDE4); }
.cl-opt i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--rosa-flaeche, #FAD0CF); }
.cl-opt span, .cl-opt b { position: relative; } .cl-opt span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cl-opt.mine { border-color: var(--orange, #FC4C00); } .cl-opt.mine b { color: var(--orange-tief, #C43D00); }
.cl-meta { display: block; margin-top: 6px; font-size: 12px; color: var(--tinte-leise, #6A6961); }
/* schreibt gerade */
.cl-typing { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tinte-leise, #6A6961); }
.cl-dots { display: inline-flex; gap: 3px; } .cl-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: cl-dot 1.2s infinite ease-in-out; } .cl-dots i:nth-child(2) { animation-delay: .15s; } .cl-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cl-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
/* leer */
.cl-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 8px 8px; color: var(--tinte, #545454); }
.cl-empty h2 { margin: 18px 0 0; font-family: var(--font-display, "League Spartan", sans-serif); font-weight: 800; font-size: 24px; color: var(--tinte-tief, #231F1C); }
html[data-theme="dark"] .cl-empty h2 { color: var(--tinte, #F1EDE4); }
.cl-empty p { margin: 6px 0 0; font-size: 15px; }
.cl-sugg { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 16px; }
.cl-sugg button { display: block; width: 100%; text-align: left; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--linie, #DFE0D2); background: var(--papier-hoch, #FFFFFB); font-family: inherit; font-weight: 500; font-size: 15px; color: var(--tinte-tief, #231F1C); cursor: pointer; }
html[data-theme="dark"] .cl-sugg button { color: var(--tinte, #F1EDE4); }
/* Eingabe */
.cl-cmp { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cl-cmp textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; box-sizing: border-box; border-radius: 22px; border: 1.5px solid var(--linie, #DFE0D2); background: var(--papier-hoch, #FFFFFB); padding: 11px 16px; font-family: inherit; font-weight: 400; font-size: 15px; line-height: 1.35; color: var(--tinte-tief, #231F1C); resize: none; }
html[data-theme="dark"] .cl-cmp textarea { color: var(--tinte, #F1EDE4); }
.cl-send { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--orange, #FC4C00); color: var(--tinte-tief, #231F1C); display: grid; place-items: center; cursor: pointer; --cl-cut: var(--orange, #FC4C00); }
.cl-replyto { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 10px; border-left: 3px solid var(--orange, #FC4C00); background: var(--papier, #F6F8EF); border-radius: 6px; font-size: 13px; color: var(--tinte, #545454); }
.cl-replyto span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-replyto button { border: 0; background: none; min-width: 32px; min-height: 32px; color: inherit; cursor: pointer; font: inherit; }
/* Menü (Lang-Druck) und Formulare */
.cl-ov { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: flex-end; justify-content: center; padding: 16px; box-sizing: border-box; }
@media (min-width: 700px) { .cl-ov { align-items: center; } }
.cl-ovb { position: absolute; inset: 0; background: rgba(35, 31, 28, .45); }
.cl-pop { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 14px; box-sizing: border-box; background: var(--papier, #F6F8EF); border-radius: 18px; border: 1.5px solid var(--tinte-tief, #231F1C); color: var(--tinte, #545454); }
.cl-bar { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; align-self: flex-start; background: var(--papier-hoch, #FFFFFB); border: 1.5px solid var(--tinte-tief, #231F1C); border-radius: 999px; padding: 4px 8px; box-shadow: 4px 4px 0 0 var(--orange, #FC4C00); }
.cl-bar button { border: 0; background: none; padding: 2px; min-width: 44px; min-height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.cl-prev { font-size: 14px; padding: 8px 12px; background: var(--papier-hoch, #FFFFFB); border: 1.5px solid var(--linie, #DFE0D2); border-radius: 14px; max-height: 90px; overflow: hidden; overflow-wrap: anywhere; color: var(--tinte-tief, #231F1C); }
html[data-theme="dark"] .cl-prev { color: var(--tinte, #F1EDE4); }
.cl-menu { display: flex; flex-direction: column; background: var(--papier-hoch, #FFFFFB); border: 1.5px solid var(--linie, #DFE0D2); border-radius: 14px; overflow: hidden; }
.cl-menu button { min-height: 46px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--linie, #DFE0D2); background: none; font-family: inherit; font-weight: 500; font-size: 15px; color: var(--tinte-tief, #231F1C); text-align: left; cursor: pointer; }
html[data-theme="dark"] .cl-menu button { color: var(--tinte, #F1EDE4); }
.cl-menu button:last-child { border-bottom: 0; } .cl-menu .cl-dgr { color: var(--orange-tief, #C43D00) !important; }
.cl-close { align-self: stretch; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--linie, #DFE0D2); background: none; font-family: inherit; font-weight: 600; font-size: 14px; color: var(--tinte, #545454); cursor: pointer; }
.cl-form h2 { margin: 0; font-family: var(--font-display, "League Spartan", sans-serif); font-weight: 800; font-size: 22px; color: var(--tinte-tief, #231F1C); }
html[data-theme="dark"] .cl-form h2 { color: var(--tinte, #F1EDE4); }
.cl-fl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.cl-fl input { min-height: 44px; box-sizing: border-box; border-radius: 12px; border: 1.5px solid var(--linie, #DFE0D2); background: var(--papier-hoch, #FFFFFB); padding: 0 12px; font-family: inherit; font-weight: 400; font-size: 15px; color: var(--tinte-tief, #231F1C); }
html[data-theme="dark"] .cl-fl input { color: var(--tinte, #F1EDE4); }
.cl-fl input[aria-invalid="true"] { border-color: var(--orange-tief, #C43D00); }
.cl-frow { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
/* Bewegung: neue Nachricht 200 ms + 8 px hoch, Sticker aufdrücken */
.cl-in { animation: cl-up .2s ease-out; }
@keyframes cl-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cl-pill:active .cl-st, .cl-bar button:active .cl-st { animation: cl-press .2s ease-out; }
@keyframes cl-press { from { transform: scale(1.15); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cl-in, .cl-pill:active .cl-st, .cl-bar button:active .cl-st, .cl-dots i { animation: none !important; } }

/* Kanal „Neuigkeiten & Events“: Event- und Umfrage-Karte */
.cl-ev .cl-evimg { display: block; width: calc(100% + 24px); max-width: none; margin: -10px -12px 8px; border-radius: 11px 11px 0 0; aspect-ratio: 16 / 9; object-fit: cover; }
.cl-btn.cl-go { background: var(--orange, #FC4C00); border-color: var(--orange, #FC4C00); color: #fff; }
.cl-svq { margin-top: 8px; } .cl-svopts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.cl-svopts .cl-opt { flex: 0 0 auto; min-width: 44px; justify-content: center; }
.cl-star { font-size: 18px; } .cl-star.mine { color: var(--orange, #FC4C00); }
.cl-svtext { width: 100%; box-sizing: border-box; margin-top: 4px; font: inherit; padding: 8px 10px; border: 1.5px solid var(--linie, #DFE0D2); border-radius: 10px; background: #fff; }
.cl-nwbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; }
.cl-svopts .cl-opt { width: auto; margin-top: 0; }
.cl-svopts .cl-star { min-width: 0; width: 40px; padding: 0; gap: 0; }
