/* bpannen.de – Online-Zähler und Chat-Fenster */
.chat-knopf { position: fixed; right: max(8px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); z-index: 40; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer; color: #050816; background: linear-gradient(120deg, var(--cyan), var(--blue) 35%, var(--violet) 70%, var(--magenta)); box-shadow: 0 10px 30px rgba(var(--blue-rgb), .45), 0 0 0 1px rgba(255, 255, 255, .1) inset; display: grid; place-items: center; transition: transform .25s ease, opacity .25s ease; -webkit-tap-highlight-color: transparent; }
.chat-knopf:hover { transform: translateY(-2px); }
.chat-knopf svg { width: 23px; height: 23px; }
/* Beim Herunterscrollen weicht der Knopf in die Ecke aus und kommt zurück, sobald man anhält oder hochscrollt */
.chat-knopf.weicht:not(.chat-knopf--kopf):not(.an) { transform: translate(58%, 58%) scale(.72); opacity: .45; }
.chat-knopf.weicht:not(.chat-knopf--kopf):not(.an):hover { transform: none; opacity: 1; }
.chat-knopf.an { transform: scale(.92); }
.chat-knopf[hidden], .chat[hidden], .chat__fuss[hidden], .chat__hinweis[hidden], [data-online][hidden] { display: none !important; }
.chat-knopf__neu { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #fd5c78; color: #fff; font: 700 .75rem/22px -apple-system, "Segoe UI", Roboto, sans-serif; box-shadow: 0 0 0 2px #04060f; }
.chat { position: fixed; right: 16px; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 60px); z-index: 40; width: min(370px, calc(100vw - 32px)); height: min(520px, calc(100dvh - 120px)); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; color: #eef3ff; font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: rgba(var(--tief-rgb), .97); box-shadow: inset 0 0 0 1px rgba(var(--indigo-rgb), .3), 0 24px 60px rgba(0, 0, 0, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chat__kopf { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(var(--indigo-rgb), .22); }
.chat__kopf b { font-size: 1.05rem; }
.chat__online, [data-online] { display: inline-flex; align-items: center; gap: 6px; color: #9aa6c7; font-size: .82rem; }
.chat__online::before, [data-online]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); animation: bp-puls 2s infinite; }
@keyframes bp-puls { 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.chat__zu { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: #9aa6c7; cursor: pointer; font-size: 1rem; }
.chat__zu:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.chat__liste { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
.chat__liste:empty::before { content: "Noch keine Nachrichten – sag Hallo! 👋"; color: #9aa6c7; text-align: center; margin: auto; font-size: .9rem; }
.chat__msg { max-width: 85%; align-self: flex-start; }
.chat__msg p { margin: 0; padding: 7px 11px; border-radius: 14px 14px 14px 4px; background: rgba(255, 255, 255, .08); white-space: pre-wrap; overflow-wrap: anywhere; }
.chat__msg--ich { align-self: flex-end; text-align: right; }
.chat__msg--ich p { border-radius: 14px 14px 4px 14px; background: linear-gradient(120deg, rgba(var(--cyan-rgb), .3), rgba(var(--violet-rgb), .35)); text-align: left; }
.chat__wer { display: block; margin: 8px 4px 2px; color: #9aa6c7; font-size: .74rem; }
.chat__hinweis { padding: 12px 14px; border-top: 1px solid rgba(var(--indigo-rgb), .22); color: #9aa6c7; font-size: .88rem; text-align: center; }
.chat__hinweis a { color: var(--cyan); }
.chat__fuss { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid rgba(var(--indigo-rgb), .22); }
.chat__fuss textarea { flex: 1; resize: none; min-height: 42px; max-height: 110px; font: inherit; font-size: 16px; color: #eef3ff; padding: 9px 12px; border-radius: 12px; background: rgba(var(--bg-rgb), .7); border: 1px solid rgba(var(--indigo-rgb), .3); }
.chat__fuss textarea:focus { outline: none; border-color: var(--cyan); }
.chat__senden { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; cursor: pointer; color: #050816; background: linear-gradient(120deg, var(--cyan), var(--violet)); display: grid; place-items: center; }
.chat__senden svg { width: 18px; height: 18px; }
.chat__senden:disabled { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .chat__online::before, [data-online]::before { animation: none; } }
/* Knopf in der Kopfzeile (Spielseiten) */
.chat-knopf--kopf { position: relative; right: auto; bottom: auto; width: 38px; height: 38px; flex: none; box-shadow: 0 4px 16px rgba(var(--blue-rgb), .35); }
.chat-knopf--kopf svg { width: 19px; height: 19px; }
.chat-knopf--kopf .chat-knopf__neu { top: -6px; right: -6px; min-width: 18px; height: 18px; line-height: 18px; font-size: .68rem; padding: 0 4px; }
.chat--oben { top: 66px; bottom: auto; height: min(520px, calc(100dvh - 90px)); }
/* Spiel-Einladungen im Chat */
.chat__msg--duell { max-width: 92%; }
.chat__duell { padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(var(--cyan-rgb), .14), rgba(var(--magenta-rgb), .14)); box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb), .4); text-align: left; }
.chat__duell-kopf { display: flex; align-items: center; gap: 8px; }
.chat__duell-icon { font-size: 1.1rem; }
.chat__duell p { margin: 4px 0 10px !important; padding: 0 !important; background: none !important; color: #c9d2ee; font-size: .9rem; }
.chat__duell-knopf { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: .9rem; text-decoration: none; color: #050816; background: linear-gradient(120deg, var(--cyan), var(--violet) 60%, var(--magenta)); box-shadow: 0 6px 18px rgba(var(--blue-rgb), .35); }
.chat__duell-knopf--leise { color: #eef3ff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(var(--indigo-rgb), .35); }
.chat__duell-zu { color: #9aa6c7; font-size: .85rem; }
.chat-toast { position: fixed; left: 50%; top: calc(max(14px, env(safe-area-inset-top)) + 58px); transform: translateX(-50%); z-index: 50; width: min(420px, calc(100vw - 24px)); display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 16px; color: #eef3ff; font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: rgba(var(--tief-rgb), .97); box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb), .5), 0 18px 50px rgba(0, 0, 0, .55); animation: bp-toast .35s cubic-bezier(.22, .61, .36, 1); }
.chat-toast__text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.chat-toast__text span { color: #9aa6c7; font-size: .85rem; }
.chat-toast__zu { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #9aa6c7; cursor: pointer; }
@keyframes bp-toast { from { opacity: 0; transform: translate(-50%, -16px); } }
/* Reaktionen */
.chat__reakt { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.chat__msg--ich .chat__reakt { justify-content: flex-end; }
.chat__reakt:empty { display: none; }
.chat__reakt-k { border: 0; border-radius: 99px; padding: 2px 8px; font-size: .78rem; color: #eef3ff; background: rgba(255, 255, 255, .08); cursor: pointer; }
.chat__reakt-k.an { background: rgba(var(--cyan-rgb), .25); box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb), .6); }
.chat__leiste { position: absolute; z-index: 2; display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: #1b2140; box-shadow: 0 8px 24px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(var(--indigo-rgb), .4); }
.chat__leiste[hidden] { display: none; }
.chat__leiste button { width: 38px; height: 34px; border: 0; border-radius: 99px; background: transparent; font-size: 1.2rem; cursor: pointer; }
.chat__leiste button:hover { background: rgba(255, 255, 255, .1); }
.chat__wer a { color: inherit; text-decoration: none; font-weight: 600; }
.chat__wer a:hover { color: var(--cyan); }
.chat__msg[data-id] { cursor: default; }
.zaehler { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #fd5c78; color: #fff; font: 700 .68rem/18px sans-serif; font-style: normal; text-align: center; }
.zaehler[hidden] { display: none; }
.chat__msg p a { color: var(--cyan); }

/* Zähler für neue Nachrichten: kurz aufploppen */
.chat-knopf__neu.poppt { animation: chatNeuPop .6s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes chatNeuPop { 0% { transform: scale(0); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .chat-knopf__neu.poppt { animation: none; } }

/* ---------- Reiter „Alle“ / „Privat“ ---------- */
.chat__kopf { gap: 8px; }
.chat__reiter { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(130, 119, 254, .25); }
.chat__tab { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 9px; cursor: pointer; font: inherit; font-size: .84rem; font-weight: 700; color: #9aa6c7; background: transparent; }
.chat__tab:hover { color: #eef3ff; }
.chat__tab.an { color: #050816; background: linear-gradient(90deg, #18d5fe, #8277fe, #c94dff); }
.zaehler--tab { position: static; display: inline-block; min-width: 18px; height: 18px; line-height: 18px; }
.chat__tab.an .zaehler--tab { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.chat__online { margin-left: auto; }
/* Privat: Mitgliederliste */
.chat__privat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat__privat[hidden], .chat__pliste[hidden], .chat__pg[hidden] { display: none; }
.chat__pliste { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat__psuche { margin: 10px 12px 4px; padding: 9px 12px; border: 0; border-radius: 10px; font: inherit; font-size: .9rem; color: #eef3ff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(130, 119, 254, .3); outline: none; }
.chat__psuche:focus { box-shadow: inset 0 0 0 1.5px rgba(24, 213, 254, .8); }
.chat__pleute { flex: 1; overflow-y: auto; padding: 4px 8px 10px; }
.chat__pgruppe { margin: 10px 6px 4px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9aa6c7; }
.chat__p { display: flex; align-items: center; gap: 4px; border-radius: 12px; }
.chat__p:hover { background: rgba(255, 255, 255, .05); }
.chat__p-wahl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; color: #eef3ff; background: none; text-align: left; }
.chat__p-av { position: relative; flex: none; display: inline-flex; }
.chat__p-av .avatar, .chat__p-av img, .chat__p-av > span { width: 34px !important; height: 34px !important; border-radius: 50%; font-size: .85rem; }
.chat__p-online { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 2px #0b1024; }
.chat__p-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .92rem; }
.chat__p--neu .chat__p-name { font-weight: 800; }
.chat__stern { flex: none; width: 34px; height: 34px; border: 0; border-radius: 10px; cursor: pointer; font-size: 1.15rem; line-height: 1; color: #9aa6c7; background: none; }
.chat__stern:hover { color: #fbbf24; background: rgba(251, 191, 36, .1); }
.chat__stern.an { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, .5); }
.chat__pleer { margin: 18px 12px; text-align: center; font-size: .88rem; color: #9aa6c7; }
/* Privat: Gespräch */
.chat__pg { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat__pg-kopf { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid rgba(130, 119, 254, .2); }
.chat__pg-zurueck { width: 34px; height: 34px; border: 0; border-radius: 10px; cursor: pointer; font-size: 1.5rem; line-height: 1; color: #eef3ff; background: rgba(255, 255, 255, .06); }
.chat__pg-wer { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; color: #eef3ff; text-decoration: none; }
.chat__pg-wer b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__pg-liste { flex: 1; }
/* Kacheln: rote Zahl am Symbol, Verwaltung */
.choice__icon { position: relative; }
.choice__zaehler { top: -6px; right: -6px; }
.admin-link--verwaltung, .chip--verwaltung { position: relative; }
.zaehler.poppt { animation: hinweisPop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes hinweisPop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: none; } }
.chat [hidden] { display: none !important; }
.chat .avatar { border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(24, 213, 254, .35); }
.chat .avatar--initial { display: inline-grid; place-items: center; font-weight: 800; color: #050816; background: var(--f); }

/* ---------- Sticker, Bilder/GIFs, Umfragen ---------- */
.chat__plus { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; cursor: pointer; font-size: 1.35rem; line-height: 1; color: #eef3ff; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(var(--indigo-rgb), .3); transition: transform .2s, background .2s; }
.chat__plus:hover { background: rgba(255, 255, 255, .12); }
.chat__plus.an { color: #050816; background: linear-gradient(120deg, var(--cyan), var(--violet)); }
.chat__ablage { position: absolute; left: 8px; right: 8px; bottom: 70px; z-index: 3; display: flex; flex-direction: column; max-height: min(330px, calc(100% - 130px)); border-radius: 16px; overflow: hidden; background: #0b1024; background: rgb(var(--tief-rgb)); box-shadow: inset 0 0 0 1px rgba(var(--indigo-rgb), .4), 0 -10px 40px rgba(0, 0, 0, .5); animation: chatAblage .18s ease-out; }
@keyframes chatAblage { from { opacity: 0; transform: translateY(10px); } }
.chat__ablage-reiter { flex: none; display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid rgba(var(--indigo-rgb), .25); overflow-x: auto; scrollbar-width: none; }
.chat__ablage-tab { flex: 1 0 auto; padding: 7px 10px; border: 0; border-radius: 9px; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700; color: #9aa6c7; background: transparent; }
.chat__ablage-tab.an { color: #050816; background: linear-gradient(90deg, #18d5fe, #8277fe, #c94dff); }
.chat__ablage-inhalt { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.chat__ablage-inhalt--sticker { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; align-content: start; }
.chat__stickerwahl { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border: 0; border-radius: 12px; cursor: pointer; background: none; color: #9aa6c7; font: inherit; }
.chat__stickerwahl span { font-size: 2rem; line-height: 1.15; transition: transform .15s; }
.chat__stickerwahl small { font-size: .66rem; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__stickerwahl:hover { background: rgba(255, 255, 255, .06); }
.chat__stickerwahl:hover span { transform: scale(1.2) rotate(-6deg); }
.chat__gifsuche { width: 100%; box-sizing: border-box; margin-bottom: 8px; padding: 9px 12px; border: 0; border-radius: 10px; font: inherit; font-size: 16px; color: #eef3ff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(130, 119, 254, .3); outline: none; }
.chat__gifs { columns: 3 90px; column-gap: 6px; }
.chat__gif { display: block; width: 100%; margin: 0 0 6px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: rgba(255, 255, 255, .05); break-inside: avoid; }
.chat__gif img { display: block; width: 100%; height: auto; min-height: 50px; }
.chat__giphy-hinweis { display: block; margin-top: 4px; text-align: center; font-size: .68rem; color: #9aa6c7; }
.chat__bildwahl { width: 100%; display: grid; justify-items: center; gap: 4px; padding: 22px 12px; border: 1.5px dashed rgba(var(--cyan-rgb), .45); border-radius: 14px; cursor: pointer; font: inherit; color: #eef3ff; background: rgba(var(--cyan-rgb), .05); }
.chat__bildwahl span { font-size: 2rem; }
.chat__bildwahl small, .chat__ablage-info { color: #9aa6c7; font-size: .78rem; }
.chat__ablage-info { margin: 8px 2px 0; text-align: center; }
.chat__uform { display: grid; gap: 8px; }
.chat__uform input:not([type=checkbox]) { width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(var(--indigo-rgb), .3); font: inherit; font-size: 16px; color: #eef3ff; background: rgba(var(--bg-rgb), .7); }
.chat__uform input:focus { outline: none; border-color: var(--cyan); }
.chat__uopts { display: grid; gap: 6px; }
.chat__umehr { justify-self: start; padding: 5px 10px; border: 0; border-radius: 8px; cursor: pointer; font: inherit; font-size: .82rem; color: var(--cyan); background: rgba(var(--cyan-rgb), .08); }
.chat__umehr[hidden] { display: none; }
.chat__umf { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: #c8d1ea; }
.chat__umf input { accent-color: var(--cyan); width: 17px; height: 17px; }
.chat__uform .chat__duell-knopf { justify-self: stretch; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
/* Sticker in der Nachricht */
.chat__msg--medien { max-width: 75%; }
.chat__sticker { display: inline-grid; justify-items: center; gap: 0; padding: 4px 8px 2px; }
.chat__sticker-e { font-size: 3.6rem; line-height: 1.1; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff) drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); transform-origin: 50% 80%; }
.chat__sticker-t { margin-top: -6px; padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 900; letter-spacing: .02em; color: #050816; background: linear-gradient(90deg, #18d5fe, #8277fe, #c94dff); box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 0, 0, .35); transform: rotate(-4deg); white-space: nowrap; }
.chat__sticker--winken .chat__sticker-e { animation: stWinken 1.6s ease-in-out infinite; transform-origin: 70% 90%; }
.chat__sticker--hops .chat__sticker-e { animation: stHops 1.1s cubic-bezier(.3, 0, .4, 1) infinite; }
.chat__sticker--pochen .chat__sticker-e { animation: stPochen 1.2s ease-in-out infinite; }
.chat__sticker--wackeln .chat__sticker-e { animation: stWackeln .9s ease-in-out infinite; }
.chat__sticker--schweben .chat__sticker-e { animation: stSchweben 2.4s ease-in-out infinite; }
.chat__sticker--drehen .chat__sticker-e { animation: stDrehen 4s linear infinite; transform-origin: 50% 50%; }
.chat__sticker--pop .chat__sticker-e { animation: stPop 1.8s cubic-bezier(.3, 1.8, .5, 1) infinite; }
.chat__sticker--flackern .chat__sticker-e { animation: stFlackern 1.3s steps(2) infinite, stPochen 1.3s ease-in-out infinite; }
.chat__sticker--neigen .chat__sticker-e { animation: stNeigen 2.2s ease-in-out infinite; }
.chat__sticker--rakete .chat__sticker-e { animation: stRakete 1.8s ease-in-out infinite; }
@keyframes stWinken { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(18deg); } 20%, 40% { transform: rotate(-10deg); } }
@keyframes stHops { 0%, 100% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(0) scale(1.1, .88); } 45% { transform: translateY(-14px) scale(.95, 1.06); } 75% { transform: translateY(0) scale(1.06, .94); } }
@keyframes stPochen { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes stWackeln { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes stSchweben { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes stDrehen { to { transform: rotate(360deg); } }
@keyframes stPop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.3); } }
@keyframes stFlackern { 50% { opacity: .82; } }
@keyframes stNeigen { 0%, 100% { transform: rotate(0); } 30%, 60% { transform: rotate(-14deg) translateX(-2px); } }
@keyframes stRakete { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(5px, -9px) rotate(4deg); } 52% { transform: translate(4px, -8px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .chat__sticker-e { animation: none !important; } }
/* Bilder und GIFs */
.chat__bild { position: relative; display: block; max-width: 230px; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(var(--indigo-rgb), .25); }
.chat__msg--ich .chat__bild { margin-left: auto; }
.chat__bild img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; }
.chat__giphy { position: absolute; right: 6px; bottom: 5px; padding: 1px 5px; border-radius: 5px; font-size: .58rem; font-weight: 800; letter-spacing: .06em; color: #fff; background: rgba(0, 0, 0, .55); }
/* Umfragen */
.chat__msg--umfrage { max-width: 92%; width: 92%; }
.chat__umfrage { display: grid; gap: 7px; padding: 11px 12px; border-radius: 14px; text-align: left; background: linear-gradient(135deg, rgba(var(--violet-rgb), .16), rgba(var(--cyan-rgb), .1)); box-shadow: inset 0 0 0 1px rgba(var(--violet-rgb), .45); }
.chat__umfrage-frage { font-size: .95rem; overflow-wrap: anywhere; }
.chat__umfrage-opts { display: grid; gap: 5px; }
.chat__opt { position: relative; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; font: inherit; font-size: .88rem; text-align: left; color: #eef3ff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.chat__opt:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.chat__opt:disabled { cursor: default; }
.chat__opt-balken { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(var(--cyan-rgb), .22); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.chat__opt-text, .chat__opt-n { position: relative; }
.chat__opt-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.chat__opt-n { flex: none; font-size: .76rem; color: #c8d1ea; font-variant-numeric: tabular-nums; }
.chat__opt.an { box-shadow: inset 0 0 0 1.5px var(--cyan); }
.chat__opt.an .chat__opt-text::before { content: "✓ "; color: var(--cyan); font-weight: 800; }
.chat__opt.vorne .chat__opt-balken { background: rgba(52, 211, 153, .3); }
.chat__umfrage-fuss { color: #9aa6c7; font-size: .74rem; }
.chat__umfrage-ende { padding: 0; border: 0; background: none; color: var(--cyan); font: inherit; font-size: .74rem; cursor: pointer; text-decoration: underline; }

/* Rezeptkarte in Nachrichten */
.chat__rezept { display: flex; gap: 10px; align-items: stretch; width: min(280px, 100%); padding: 8px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: rgba(var(--bg-rgb), .55); box-shadow: inset 0 0 0 1px rgba(var(--cyan-rgb), .35); }
.chat__rezept:hover { box-shadow: inset 0 0 0 1.5px rgba(var(--cyan-rgb), .8); }
.chat__rezept-bild { position: relative; flex: none; width: 72px; min-height: 72px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; font-size: 2rem;
  background: linear-gradient(140deg, rgba(var(--cyan-rgb), .18), rgba(var(--magenta-rgb), .18)); }
.chat__rezept-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chat__rezept-text { display: grid; align-content: center; gap: 2px; min-width: 0; }
.chat__rezept-text b { line-height: 1.25; overflow-wrap: anywhere; }
.chat__rezept-text small { color: var(--muted); font-size: .75rem; }
.chat__rezept-los { color: var(--cyan); font-size: .8rem; font-weight: 700; }

.chat__pn-einladung { display: grid; gap: 8px; justify-items: start; }
.chat__pn-einladung p { margin: 0; }
.pn__mitspielen { margin-top: 4px; color: #050816 !important; text-decoration: none !important; }
