/* 🔘 Chatbot-Button unten rechts */
#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#chatbot-toggle:hover {
  background-color: #0056b3;
}

/* 💬 Modal-Fenster */
#chatbot-modal {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 360px;
  height: 500px;
  background-color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  font-family: 'Segoe UI', sans-serif;
}

/* 🔵 Header */
.chatbot-header {
  background-color: #007bff;
  color: white;
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header span {
  display: flex;
  align-items: center;
  gap: 8px;
}

#chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* 📩 Nachrichtenbereich */
#chatbot-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background-color: #f1f1f1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Nachricht-Stil */
.chatbot-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.chatbot-message.bot {
  background-color: #e8f0fe;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.chatbot-message.user {
  background-color: #c6f6d5;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

/* Eingabezeile */
.chatbot-input-area {
  display: flex;
  padding: 10px;
  background-color: #fff;
  border-top: 1px solid #ddd;
}

#chatbot-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 18px;
  font-size: 14px;
}

#chatbot-send {
  margin-left: 8px;
  background-color: #007bff;
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 14px;
}

#chatbot-send:hover {
  background-color: #0056b3;
}

/* 🌙 Darkmode für Chatbot */
body.darkmode #chatbot-modal {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

body.darkmode .chatbot-header {
  background-color: #222;
  color: #00d8ff;
}

body.darkmode #chatbot-messages {
  background-color: #2a2a2a;
}

body.darkmode .chatbot-message.bot {
  background-color: #444;
  color: #fff;
}

body.darkmode .chatbot-message.user {
  background-color: #2e8b57;
  color: #fff;
}

body.darkmode .chatbot-input-area {
  background-color: #1e1e1e;
  border-top: 1px solid #444;
}

body.darkmode #chatbot-input {
  background-color: #2c2c2c;
  border: 1px solid #555;
  color: #fff;
}

body.darkmode #chatbot-send {
  background-color: #00aaff;
}

body.darkmode #chatbot-send:hover {
  background-color: #0088cc;
}
