/* Website-Chatbot (Entwurf 2026-10-26). Nutzt die Farben aus site.css, mit Rückfallwerten für Kundenseiten. */
.necchat-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--gold-ink, #10131a); background: var(--gold, #e0a458);
  box-shadow: 0 6px 24px rgb(0 0 0 / .35);
}
.necchat-btn:hover { background: var(--gold-deep, #b9823d); }
.necchat-btn:focus-visible, .necchat-panel :focus-visible { outline: 2px solid var(--gold, #e0a458); outline-offset: 2px; }

.necchat-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 901;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--night-2, #161a24); color: var(--text, #e8eaf0);
  border: 1px solid var(--edge, #2a3040); border-radius: var(--stage-radius, 4px);
  box-shadow: 0 12px 40px rgb(0 0 0 / .45);
  font: 400 .95rem/1.5 var(--font-body, system-ui, sans-serif);
}
.necchat-panel[hidden] { display: none; }
@media (max-width: 480px) {
  .necchat-panel { right: 16px; left: 16px; width: auto; bottom: 80px; }
  .necchat-btn { right: 16px; bottom: 16px; }
}

.necchat-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid var(--edge, #2a3040); }
.necchat-head strong { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display, system-ui, sans-serif); font-weight: 600; }
.necchat-head strong img { display: block; border-radius: 4px; }
.necchat-close { background: none; border: 0; color: var(--text-dim, #8b93a6); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: .2rem .4rem; }

.necchat-note { margin: 0; padding: .7rem 1rem; font-size: .82rem; color: var(--text-read, #b4bacb); background: var(--night-3, #191e29); border-bottom: 1px solid var(--edge, #2a3040); }
.necchat-note a { color: var(--gold, #e0a458); }

.necchat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.necchat-msg { max-width: 85%; padding: .55rem .8rem; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.necchat-msg a { color: inherit; text-decoration: underline; }
.necchat-msg--bot { align-self: flex-start; background: var(--night-3, #191e29); border: 1px solid var(--edge, #2a3040); }
.necchat-msg--user { align-self: flex-end; background: var(--gold, #e0a458); color: var(--gold-ink, #10131a); }
.necchat-msg--wait { color: var(--text-dim, #8b93a6); font-style: italic; }

.necchat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--edge, #2a3040); }
.necchat-form textarea {
  flex: 1; resize: none; min-height: 2.6rem; max-height: 7rem; padding: .55rem .7rem;
  font: inherit; color: var(--text, #e8eaf0); background: var(--night, #10131a);
  border: 1px solid var(--edge, #2a3040); border-radius: var(--stage-radius, 4px);
}
.necchat-form button {
  padding: 0 1rem; border: 0; border-radius: var(--stage-radius, 4px); cursor: pointer;
  font: 600 .9rem var(--font-body, system-ui, sans-serif);
  color: var(--gold-ink, #10131a); background: var(--gold, #e0a458);
}
.necchat-form button:disabled { opacity: .5; cursor: default; }

@media (prefers-reduced-motion: no-preference) {
  .necchat-panel:not([hidden]) { animation: necchat-in .18s ease-out; }
  @keyframes necchat-in { from { opacity: 0; transform: translateY(8px); } }
}
