#chat-toggle {
  position: fixed;
  bottom: 40px;
  right: 50px;
  padding: 12px 16px;
  background: #00fac9;
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 9999;
  z-index: 10;
  font-family: Arial;
}

/* =========================
   CHAT WINDOW
========================= */
#chat-window {
  position: fixed;
  bottom: 100px;
  right: 70px;
  width: 320px;
  height: 420px;
  background: #ffffff;
  border: 1px solid #ddd;
  xxxxxdisplay: none; /* wichtig: JS steuert Anzeige */
  display: flex; /* statt none */
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  z-index: 9999;
  z-index: 10;
  font-family: Arial;
}

/* =========================
   HEADER
========================= */
#chat-header { 
  background:#00fac9;
  color: #000;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

/* Close Button */
#chat-close {
  background: transparent;
  border: none;
  color: #000;
  font-size: 16px;
  cursor: pointer;
}

/* =========================
   MESSAGES AREA
========================= */
#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #ffffff;
  font-size: 14px;
}

/* Bot Messages */
.bot-message {
  background: #f1f1f1;
  color: #111;
  padding: 10px;
  margin: 6px 0;
  border-radius: 5px;
  max-width: 85%;
  line-height: 1.4;
}

/* User Messages */
.user-message {
  background: #00fac9;
  color: #000;
  padding: 10px;
  margin: 6px 0;
  border-radius: 5px;
  max-width: 95%;
  margin-left: auto;
  text-align: right;
  line-height: 1.4;
}

/* =========================
   INPUT AREA
========================= */
#chat-form {
  display: flex;
  border-top: 1px solid #ddd;
  background: #fff;
}

#chat-input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: Arial;
  background: #fff;
  color: #111;
}

#chat-form button {
  padding: 10px 14px;
  border: none;
  background:#00fac9;
  color: #000;
  cursor: pointer;
  transition: 0.2s;
}

#chat-form button:hover {
  background: #005fa3;
  background:#3f9786;
}

/* =========================
   SCROLLBAR (optional nicer)
========================= */
#chat-messages::-webkit-scrollbar {
  width: 6px;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}