/* ============================================================
   EIT Hilfe-Chat Widget
   ============================================================ */

.eit-chat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(0, 180, 220, 0.35);
  background: linear-gradient(135deg, #0a1020, #0d1628);
  color: #00d4ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 212, 255, 0.12);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.eit-chat-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 212, 255, 0.25);
  border-color: rgba(0, 212, 255, 0.5);
}
.eit-chat-trigger svg {
  width: 26px;
  height: 26px;
}
.eit-chat-trigger.open {
  display: none;
}

/* ── Chat Window ─────────────────────────────────────────── */

.eit-chat-window {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 380px;
  height: 520px;
  background: #070b14;
  border: 1px solid rgba(0, 180, 220, 0.22);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 212, 255, 0.08);
  font-family: 'Rajdhani', sans-serif;
}
.eit-chat-window.open {
  display: flex;
}

/* ── Header ──────────────────────────────────────────────── */

.eit-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #0a1020;
  border-bottom: 1px solid rgba(0, 180, 220, 0.15);
  flex-shrink: 0;
}
.eit-chat-header-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: #00d4ff;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eit-chat-header-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  flex-shrink: 0;
}
.eit-chat-close {
  background: none;
  border: none;
  color: #4a6580;
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
  transition: color 0.2s;
}
.eit-chat-close:hover {
  color: #d0e4f5;
}

/* ── Messages ────────────────────────────────────────────── */

.eit-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eit-chat-messages::-webkit-scrollbar { width: 4px; }
.eit-chat-messages::-webkit-scrollbar-track { background: transparent; }
.eit-chat-messages::-webkit-scrollbar-thumb { background: rgba(0, 180, 220, 0.2); border-radius: 2px; }

.eit-chat-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #d0e4f5;
  word-break: break-word;
}
.eit-chat-msg.bot {
  align-self: flex-start;
  background: #0d1628;
  border: 1px solid rgba(0, 180, 220, 0.1);
  border-top-left-radius: 2px;
}
.eit-chat-msg.user {
  align-self: flex-end;
  background: rgba(0, 180, 220, 0.12);
  border: 1px solid rgba(0, 180, 220, 0.2);
  border-top-right-radius: 2px;
  color: #b0d8f0;
}

.eit-chat-msg.bot .msg-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: #4a6580;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ── Quick Replies ───────────────────────────────────────── */

.eit-chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.eit-chat-quick-btn {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 14px;
  padding: 5px 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  color: #00d4ff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.eit-chat-quick-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.4);
}

/* ── Suggestion Buttons (Meinst du...?) ──────────────────── */

.eit-chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.eit-chat-suggestion-btn {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 6px;
  padding: 7px 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  color: #7a9bbf;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.eit-chat-suggestion-btn:hover {
  background: rgba(0, 212, 255, 0.12);
  color: #00d4ff;
}

/* ── Input ───────────────────────────────────────────────── */

.eit-chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #0a1020;
  border-top: 1px solid rgba(0, 180, 220, 0.12);
  flex-shrink: 0;
}
.eit-chat-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 180, 220, 0.18);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  color: #d0e4f5;
  outline: none;
  transition: border-color 0.2s;
}
.eit-chat-input::placeholder { color: #3a5570; }
.eit-chat-input:focus { border-color: rgba(0, 212, 255, 0.4); }
.eit-chat-send {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #00d4ff;
  transition: background 0.2s;
  flex-shrink: 0;
}
.eit-chat-send:hover { background: rgba(0, 212, 255, 0.2); }
.eit-chat-send svg { width: 16px; height: 16px; }

/* ── Typing indicator ────────────────────────────────────── */

.eit-chat-typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  align-self: flex-start;
}
.eit-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4a6580;
  animation: eit-bounce 1.2s infinite;
}
.eit-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.eit-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes eit-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 480px) {
  .eit-chat-window {
    width: calc(100vw - 16px);
    height: calc(100vh - 100px);
    bottom: 8px;
    right: 8px;
    border-radius: 10px;
  }
  .eit-chat-trigger {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
}
