/* ✨ Glow-Animation */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 24px rgba(255, 120, 20, 0.5);
  }
  50% {
    box-shadow: 0 0 48px rgba(255, 140, 20, 0.9);
  }
  100% {
    box-shadow: 0 0 24px rgba(255, 120, 20, 0.5);
  }
}

/* ✨ Eingabefeld mit Glow und Dark-Mode-Design */
#kioitbot-user-input {
  background-color: #1a1a1a;
  color: #aaa;
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 400;
  outline: none;
  width: 100%;
  max-width: 600px;
  animation: glowPulse 4s ease-in-out infinite;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#kioitbot-user-input::placeholder {
  color: #aaa;
}

#kioitbot-user-input:focus {
  background-color: #222;
}

/* ✨ Chat-Container mit Dark-Fallback */
.kioitbot-chatbox {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  font-family: sans-serif;
  background: transparent;
}

/* 🚫 Sende-Button verstecken */
button#kioitbot-send-btn {
  display: none;
}

/* 🧾 Eingabezeile */
.chat-input-row {
  display: flex;
  gap: 10px;
}

.chat-input-row input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
}

.chat-input-row button {
  font-size: 18px;
  padding: 0 15px;
  cursor: pointer;
}

/* 💬 Chatbereich */
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 10px;
}

/* Allgemeine Nachricht */
.chat-message {
  max-width: 70%;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.5;
  font-family: inherit;
  color: #cecece;
  word-break: break-word;
}

/* ✍️ Eigene Nachricht */
.chat-message.user {
  align-self: flex-end;
  background-color: #1c1c1c;
  box-shadow: 0 0 18px rgba(255, 87, 34, 0.3);
  border-bottom-right-radius: 0;
  text-align: left;
}

/* 🤖 Bot-Nachricht */
.chat-message.bot {
  align-self: flex-start;
  background-color: #121212;
  box-shadow: 0 0 14px rgba(255, 140, 40, 0.2);
  border-bottom-left-radius: 0;
  text-align: left;
}

/* 📱 Responsive Anpassungen */
@media screen and (max-width: 600px) {
  .chat-message {
    max-width: 90%;
    font-size: 15px;
    padding: 10px 14px;
  }

  .chat-log {
    padding: 12px;
    gap: 8px;
  }
	
	#chat-toggle:checked~#kioitbot-floating-chat-container {
    width: 90% !important;
}

}
.chat-log {
  overflow-y: scroll;
  scrollbar-width: none;       /* Firefox */
}

.chat-log::-webkit-scrollbar {
  display: none;               /* Chrome, Safari */
}

#kioitbot-floating-chat-container::before {
  content: "";
  display: none;
  width: 28px;
  height: 28px;
  background-image: url("https://olbricht.it/wp-content/uploads/2025/05/chatbot-icon.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
  margin-bottom: 12px;
}

#chat-toggle:checked ~ #kioitbot-floating-chat-container::before {
  display: block;
}




#kioitbot-floating-chat-container {
  position: fixed;
  bottom: 64px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #F07E31;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 87, 34, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
transition:
  width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
  height 0.4s ease,
  padding 0.4s ease,
  background-color 0.4s ease,
  border-radius 0.4s ease,
  box-shadow 0.4s ease;

  overflow: hidden;
  cursor: pointer;
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 9999;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.3);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 140, 40, 0.8);
  }
}

#kioitbot-floating-chat-container .chat-log,
#kioitbot-floating-chat-container .chat-input-row {
  display: none;
}

#chat-toggle:checked ~ #kioitbot-floating-chat-container {
  width: 380px;
  height: auto;
  padding: 16px;
  background-color: #f3f3f3a3;
  border-radius: 32px;
  flex-direction: column;
  align-items: stretch;
  box-shadow: none;
  animation: none;
}

#chat-toggle:checked ~ #kioitbot-floating-chat-container .chat-log,
#chat-toggle:checked ~ #kioitbot-floating-chat-container .chat-input-row {
  display: flex;
}


#kioitbot-floating-chat-container:hover .chat-log,
#kioitbot-floating-chat-container:hover .chat-input-row {
  display: flex;
}

.chat-log {
  flex: 1;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  color: #aaa;
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

#kioitbot-user-input {
  flex: 1;
  background-color: #1a1a1a;
  color: #aaa;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 16px;
  outline: none;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.15);
  transition: box-shadow 0.3s ease;
}

#kioitbot-user-input:focus {
  box-shadow: none; 
}

#kioitbot-send-btn {
  background-color: #ff5722;
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.4);
  transition: transform 0.2s ease;
}

#kioitbot-send-btn:hover {
  transform: scale(1.1);
}

.chat-toggle-button {
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #F07E31;
  border-radius: 50%;
  background-image: url("https://olbricht.it/wp-content/uploads/2025/05/chatbot-icon.svg");
  background-size: 28px;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.5);
  animation: pulseGlow 3s ease-in-out infinite;
}

#chat-toggle:checked + .chat-toggle-button {
  display: none;
}

.chat-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  color: #111;
  font-size: 16px;
  font-weight: bold;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  z-index: 10001;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.chat-close-button:hover {
  background-color: rgba(0, 0, 0, 0.12);
  transform: scale(1.1);
}


.chat-close-button {
  display: none;
}

#chat-toggle:checked ~ #kioitbot-floating-chat-container .chat-close-button {
  display: block;
}

