:root { --akzent:#4b2a86; --akzent2:#6a45b5; --grau:#f3f2f6; --text:#1f1b29; --rand:#d9d5e3; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 16px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--grau); display: flex; flex-direction: column; }
.kopf { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--rand); }
.logo { height: 32px; }
.wer { margin-left: auto; font-size: 14px; color: #555; }
main { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 16px; }
.karte { background: #fff; border: 1px solid var(--rand); border-radius: 10px; padding: 24px; width: 100%; max-width: 420px; margin-top: 8vh; }
h1 { margin: 0 0 12px; font-size: 22px; }
label { display: block; margin: 12px 0; font-size: 14px; }
input, textarea { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--rand); border-radius: 8px; margin-top: 4px; }
button { font: inherit; padding: 10px 16px; border: 0; border-radius: 8px; background: var(--akzent); color: #fff; cursor: pointer; }
button:hover { background: var(--akzent2); }
button:disabled { opacity: .5; cursor: default; }
button.link { background: none; color: var(--akzent); padding: 6px 0; text-decoration: underline; }
button.klein { padding: 10px 14px; font-size: 20px; line-height: 1; }
.fehler { color: #b00020; min-height: 1.2em; margin: 8px 0 0; font-size: 14px; }
.hinweis { color: #444; text-align: center; margin-top: 8vh; }
.chat { background: #fff; border: 1px solid var(--rand); border-radius: 10px; width: 100%; max-width: 820px; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.titel { padding: 10px 14px; border-bottom: 1px solid var(--rand); font-size: 14px; color: #444; }
.titel b { color: var(--text); }
.liste { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #faf9fc; }
.msg { max-width: 78%; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--rand); align-self: flex-start; word-wrap: break-word; overflow-wrap: anywhere; }
.msg.meine { align-self: flex-end; background: #ece6f7; border-color: #d4c8ee; }
.msg .von { font-size: 12px; color: #666; margin-bottom: 2px; }
.msg .t { white-space: pre-wrap; }
.msg .zeit { font-size: 11px; color: #888; text-align: right; margin-top: 2px; }
.msg img { max-width: 100%; max-height: 260px; border-radius: 6px; margin-top: 6px; display: block; }
.msg a.datei { display: inline-block; margin-top: 6px; color: var(--akzent); }
.anhaenge { padding: 0 14px; font-size: 13px; color: #444; }
.anhaenge span { display: inline-block; background: #ece6f7; border-radius: 6px; padding: 2px 8px; margin: 4px 6px 0 0; }
.senden { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--rand); align-items: flex-end; }
.senden textarea { margin: 0; resize: none; max-height: 140px; }
