/* ============================================================
 * chat-widget.css — Floating-Button + Panel (A1-L01 T5, 2026-06-10)
 * Selbst-gehostet. Token-konsistent zur Landing.
 * ============================================================ */

.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 9000;
  width: 56px; height: 56px; border-radius: 50%;
  background: #2563eb; color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(37,99,235,0.35);
  cursor: pointer;
}
.chat-fab:hover { background: #1d4ed8; }
.chat-fab:focus { outline: 2px solid #fff; outline-offset: 3px; }
.chat-fab svg { width: 26px; height: 26px; }

.chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 9000;
  width: min(360px, calc(100vw - 32px));
  background: #fff; border-radius: 16px;
  box-shadow: 0 12px 36px rgba(15,23,42,0.18);
  border: 1px solid #e2e8f0;
  display: none;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.chat-panel.is-open { display: block; }
.chat-panel-head {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff; padding: 16px 18px; position: relative;
}
.chat-panel-head h3 {
  font-size: 15px; font-weight: 700; margin: 0;
}
.chat-panel-head p {
  font-size: 12px; margin: 4px 0 0; opacity: 0.85;
}
.chat-panel-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.18); border: none;
  width: 28px; height: 28px; border-radius: 50%;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chat-panel-close:hover { background: rgba(255,255,255,0.28); }
.chat-panel-close svg { width: 14px; height: 14px; }

.chat-form { padding: 16px 18px; }
.chat-form label {
  display: block; font-size: 12px; font-weight: 600;
  color: #334155; margin-bottom: 4px;
}
.chat-form input,
.chat-form textarea {
  width: 100%; padding: 9px 11px; font-size: 14px;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-family: inherit; color: #0f172a; background: #fff;
  margin-bottom: 12px; box-sizing: border-box;
}
.chat-form input:focus,
.chat-form textarea:focus {
  outline: none; border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
.chat-form textarea { resize: vertical; min-height: 78px; }
.chat-form-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.chat-submit {
  width: 100%; padding: 11px 14px;
  background: #2563eb; color: #fff; border: none;
  border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.chat-submit:hover { background: #1d4ed8; }
.chat-submit[disabled] { opacity: 0.6; cursor: wait; }
.chat-submit svg { width: 16px; height: 16px; }

.chat-status {
  padding: 8px 12px; margin-bottom: 12px;
  border-radius: 8px; font-size: 13px;
  display: none;
}
.chat-status.is-info {
  display: block; background: #fef3c7; color: #854d0e; border: 1px solid #fcd34d;
}
.chat-status.is-ok {
  display: block; background: #dcfce7; color: #14532d; border: 1px solid #86efac;
}
.chat-status.is-err {
  display: block; background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5;
}

.chat-footnote {
  font-size: 11px; color: #64748b; padding: 0 18px 14px;
}
.chat-footnote a { color: #2563eb; }
