/* TNA Chat, Gestaltung nach Markendesign v2 (Schwarz #0D0D0D, Gold #C4962A, Charcoal #1F1F1F, Archivo) */
.tna-chat__knopf, .tna-chat__fenster { font-family: Archivo, system-ui, sans-serif; box-sizing: border-box; }
.tna-chat__fenster *, .tna-chat__fenster *::before, .tna-chat__fenster *::after { box-sizing: border-box; }

.tna-chat__knopf {
  position: fixed; right: 20px; bottom: 20px; z-index: 9990;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border: 0; border-radius: 999px;
  background: #C4962A; color: #0D0D0D; font-size: 16px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tna-chat__knopf::before {
  content: ""; width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v12H7l-3 3z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v12H7l-3 3z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tna-chat__knopf:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.tna-chat__knopf:focus-visible, .tna-chat__fenster :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tna-chat__knopf--offen { display: none; }

.tna-chat__fenster {
  position: fixed; right: 20px; bottom: 20px; z-index: 9991;
  width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100vh - 40px));
  display: flex; flex-direction: column;
  background: #1F1F1F; color: #fff; border: 1px solid #3a3a3a; border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.5); overflow: hidden;
}
.tna-chat__fenster[hidden] { display: none; }
.tna-chat__kopf { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #0D0D0D; border-bottom: 2px solid #C4962A; }
.tna-chat__titel { margin: 0; font-size: 17px; font-weight: 700; }
.tna-chat__zu { border: 0; background: transparent; color: #fff; font-size: 28px; line-height: 1; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; }
.tna-chat__zu:hover { background: #2b2b2b; }
.tna-chat__hinweis { margin: 0; padding: 10px 16px; font-size: 13px; line-height: 1.45; color: #d8d8d8; background: #262626; border-bottom: 1px solid #333; }
.tna-chat__hinweis a, .tna-chat__blase a { color: #E0B65A; }

.tna-chat__liste { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.tna-chat__nachricht { display: flex; flex-direction: column; gap: 4px; max-width: 88%; }
.tna-chat__nachricht--du { align-self: flex-end; align-items: flex-end; }
.tna-chat__wer { font-size: 12px; color: #a9a9a9; }
.tna-chat__blase { padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.tna-chat__nachricht--ki .tna-chat__blase { background: #0D0D0D; border: 1px solid #333; border-top-left-radius: 4px; }
.tna-chat__nachricht--du .tna-chat__blase { background: #C4962A; color: #0D0D0D; border-top-right-radius: 4px; }
.tna-chat__nachricht--tippt .tna-chat__blase { color: #a9a9a9; font-style: italic; }

.tna-chat__entwurf { margin-top: 6px; padding: 12px 14px; border: 2px solid #C4962A; border-radius: 12px; background: #1a1408; }
.tna-chat__entwurf-titel { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #C4962A; }
.tna-chat__entwurf-text { margin: 0 0 10px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.tna-chat__entwurf-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.tna-chat__entwurf-knopf { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid #C4962A; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.tna-chat__entwurf-knopf--gold { background: #C4962A; color: #0D0D0D; }
.tna-chat__entwurf-hinweis { margin: 8px 0 0; font-size: 12px; color: #bdbdbd; }

.tna-chat__eingabe { padding: 12px 16px 14px; border-top: 1px solid #333; background: #1A1A1A; }
.tna-chat__feld { width: 100%; resize: none; padding: 10px 12px; border: 1px solid #444; border-radius: 10px; background: #0D0D0D; color: #fff; font: inherit; font-size: 15px; }
.tna-chat__feld:focus { border-color: #C4962A; outline: none; }
.tna-chat__unten { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.tna-chat__zaehler { font-size: 12px; color: #a9a9a9; }
.tna-chat__senden { padding: 10px 20px; border: 0; border-radius: 999px; background: #C4962A; color: #0D0D0D; font-weight: 700; font-size: 15px; cursor: pointer; }
.tna-chat__senden:disabled { opacity: .5; cursor: wait; }

@media (max-width: 480px) {
  .tna-chat__fenster { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .tna-chat__knopf { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tna-chat__knopf { transition: none; } }
