/* iota plus: Chat-Widget unten rechts. Farben aus site.css (Tinte, Papier, Basler Rot), Fenster als dunkles Glas. */
.cw-btn { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: var(--rot); box-shadow: 0 14px 30px -10px rgba(230, 64, 43, .7), 0 0 0 1px rgba(255, 255, 255, .08); display: grid; place-items: center; transition: transform .2s var(--ease), background .2s; }
.cw-btn:hover { transform: translateY(-2px); background: var(--rot-dunkel); }
.cw-btn svg { width: 26px; height: 26px; }
.cw-dot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--bernstein); border: 2px solid var(--papier); display: none; }
.cw-btn.neu .cw-dot { display: block; }
.cw { position: fixed; right: 20px; bottom: 90px; z-index: 41; width: 370px; max-width: calc(100vw - 24px); height: min(570px, calc(100dvh - 110px)); display: none; flex-direction: column; color: var(--papier); background: linear-gradient(150deg, rgba(13, 15, 20, .9), rgba(23, 27, 36, .84)); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 40px 80px -30px rgba(0, 0, 0, .7); overflow: hidden; font: 15px/1.5 var(--font); }
.cw.offen { display: flex; }
.cw-kopf { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--linie-hell); }
.cw-kopf img { width: 28px; height: 28px; }
.cw-kopf div { flex: 1; min-width: 0; }
.cw-kopf b { display: block; font-size: 15px; line-height: 1.2; letter-spacing: -.01em; }
.cw-kopf small { display: block; color: var(--grau-hell); font-size: 12px; line-height: 1.3; }
.cw-x { border: 0; background: none; color: var(--grau-hell); cursor: pointer; font-size: 22px; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.cw-x:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cw-log { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.cw-m { max-width: 86%; padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.cw-m.bot { align-self: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-bottom-left-radius: 4px; }
.cw-m.mensch { align-self: flex-start; background: rgba(46, 59, 255, .18); border: 1px solid rgba(174, 184, 255, .35); border-bottom-left-radius: 4px; }
.cw-m.mensch::before { content: attr(data-wer); display: block; font: 600 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--eis); margin-bottom: 2px; }
.cw-m.ich { align-self: flex-end; color: #fff; background: var(--rot); border-bottom-right-radius: 4px; }
.cw-m.tippt { color: var(--grau-hell); font-style: italic; }
.cw-m.fehl { align-self: center; color: var(--bernstein); font-size: 13px; text-align: center; }
.cw-form { display: flex; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--linie-hell); }
.cw-form textarea { flex: 1; resize: none; height: 44px; max-height: 96px; background: rgba(13, 15, 20, .5); color: var(--papier); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 16px; }
.cw-form textarea:focus { outline: none; border-color: var(--eis); }
.cw-form button { border: 0; cursor: pointer; border-radius: 14px; padding: 0 16px; font: 600 14px var(--font); color: #fff; background: var(--rot); }
.cw-form button:hover { background: var(--rot-dunkel); }
.cw-form button[disabled] { opacity: .5; cursor: wait; }
.cw-fuss { padding: 2px 14px 10px; color: var(--grau-hell); font-size: 11px; line-height: 1.4; }
.cw-fuss a { color: var(--grau-hell); text-decoration: underline; }
@media (max-width: 520px) {
  .cw { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .cw-btn.offen-m { display: none; }
  .cw-btn { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) { .cw-btn { transition: none; } }
