@keyframes inputBall {
  from {
    opacity: 0;
    box-shadow: 0 0 0px rgba(255, 87, 34, 0);
  }
  to {
    opacity: 1;
    box-shadow: 0 0 25px rgba(255, 87, 34, 0.6);
  }
}

@keyframes inputExpand {
  from {
    max-width: 50px;
    width: 50px;
  }
  to {
    max-width: 600px;
    width: 100%;
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.9);
  }
}

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

/* Typing Dots – im Chat-Log wie eine Bot-Message */
@keyframes typing-bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Typing Indicator als Chat-Message */
.chat-typing-indicator:where(:not(#oit-home-host *),[slot],[slot] *){
  max-width: 70%;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.5;
  font-family: inherit;
  word-break: break-word;
  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;
  margin: 4px 0;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s ease-out;
  display: none;
}

.chat-typing-indicator.show:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Dots */
.typing-dots:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
}
.typing-dot:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 8px;
  height: 8px;
  background-color: #888;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1):where(:not(#oit-home-host *),[slot],[slot] *){ animation-delay: -0.32s; }
.typing-dot:nth-child(2):where(:not(#oit-home-host *),[slot],[slot] *){ animation-delay: -0.16s; }
.typing-dot:nth-child(3):where(:not(#oit-home-host *),[slot],[slot] *){ animation-delay: 0s; }

/* Mobile Anpassungen für alle Seiten */
@media screen and (max-width: 600px) {
  .chat-typing-indicator:where(:not(#oit-home-host *),[slot],[slot] *){
    max-width: 90%;
    font-size: 15px;
    padding: 10px 14px;
  }
  .typing-dot:where(:not(#oit-home-host *),[slot],[slot] *){
    width: 6px;
    height: 6px;
  }
}

/* Mobile Anpassungen für Typing Indicator (Seite 32679) */
@media screen and (max-width: 600px) {
  .page-id-32679 .typing-indicator:where(:not(#oit-home-host *),[slot],[slot] *){
    padding: 10px 14px;
    max-width: 55px;
  }
  .page-id-32679 .typing-dot:where(:not(#oit-home-host *),[slot],[slot] *){
    width: 6px;
    height: 6px;
  }
}

/* Standard Pseudo-Element: Bild je Seitentyp */
body.single-post .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before,
body.single-custom_project .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before,
body.page .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
  bottom: 60px;
  position: inherit;
  width: 110px;
  right: 10px;
  opacity: 1;
  transition: opacity 0.5s ease;
}
body.single-post .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
  content: url(https://oit.digital/wp-content/uploads/2025/07/arrow_txt_25_subli.svg);
}
body.single-custom_project .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
  content: url(https://oit.digital/wp-content/uploads/2025/07/fragmich-projekt-1.svg);
}
body.page .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
  content: url(https://oit.digital/wp-content/uploads/2025/07/fragmich-seite.svg);
}

/* beim Scrollen ausblenden */
html.scrolling .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
  opacity: 0 !important;
}

/* Input / Buttons / Layout */
#kioitbot-user-input:where(:not(#oit-home-host *),[slot],[slot] *){
  background-color: #1a1a1a;
  color: #aaa;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  width: 50px;
  max-width: 50px;
  height: 50px;
  opacity: 0;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.15);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  animation:
    inputBall 0.3s ease-in 1.3s forwards,
    inputExpand 1s ease-out 1.8s forwards,
    glowPulse 4s ease-in-out 2s infinite;
}
#kioitbot-user-input:focus:where(:not(#oit-home-host *),[slot],[slot] *){
  box-shadow: none;
  background-color: #222;
  color: #fff;
}
#kioitbot-user-input:where(:not(#oit-home-host *),[slot],[slot] *)::placeholder{ color: #aaa; }

#kioitbot-send-btn:where(:not(#oit-home-host *),[slot],[slot] *){
  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:where(:not(#oit-home-host *),[slot],[slot] *){ transform: scale(1.1); }

.kioitbot-chatbox:where(:not(#oit-home-host *),[slot],[slot] *){
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  font-family: sans-serif;
  background: transparent;
}
button#kioitbot-send-btn:where(:not(#oit-home-host *),[slot],[slot] *){ display: none; }

.chat-input-row:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-input-row input:where(:not(#oit-home-host *),[slot],[slot] *){
  flex: 1;
  padding: 10px;
  font-size: 16px;
}
.chat-input-row button:where(:not(#oit-home-host *),[slot],[slot] *){
  font-size: 18px;
  padding: 0 15px;
  cursor: pointer;
}

.chat-log:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 10px;
  color: #aaa;
  scrollbar-width: none;
}
.chat-log:where(:not(#oit-home-host *),[slot],[slot] *)::-webkit-scrollbar{ display: none; }

.chat-message:where(:not(#oit-home-host *),[slot],[slot] *){
  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;
}
.chat-message.user:where(:not(#oit-home-host *),[slot],[slot] *){
  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;
}
.chat-message.bot:where(:not(#oit-home-host *),[slot],[slot] *){
  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;
}

/* iMessage-Style Typing Indicator (Seite 32679) */
.page-id-32679 .typing-indicator:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background-color: #121212;
  box-shadow: 0 0 14px rgba(255, 140, 40, 0.2);
  border-radius: 20px;
  border-bottom-left-radius: 0;
  margin: 4px 0;
  max-width: 60px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease-in-out;
  align-self: flex-start;
  font-size: 16px;
  line-height: 1.5;
  font-family: inherit;
  color: #cecece;
  word-break: break-word;
}
.page-id-32679 .typing-indicator.show:where(:not(#oit-home-host *),[slot],[slot] *){
  opacity: 1;
  transform: scale(1);
}
.page-id-32679 .typing-dots:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.page-id-32679 .typing-dot:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 8px;
  height: 8px;
  background-color: #888;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
  flex-shrink: 0;
}
.page-id-32679 .typing-dot:nth-child(1):where(:not(#oit-home-host *),[slot],[slot] *){ animation-delay: -0.32s; }
.page-id-32679 .typing-dot:nth-child(2):where(:not(#oit-home-host *),[slot],[slot] *){ animation-delay: -0.16s; }
.page-id-32679 .typing-dot:nth-child(3):where(:not(#oit-home-host *),[slot],[slot] *){ animation-delay: 0s; }

/* Mobile generelle Anpassungen */
@media screen and (max-width: 600px) {
  .chat-message:where(:not(#oit-home-host *),[slot],[slot] *){
    max-width: 90%;
    font-size: 15px;
    padding: 10px 14px;
  }
  .chat-log:where(:not(#oit-home-host *),[slot],[slot] *){
    padding: 12px;
    gap: 8px;
  }
  #chat-toggle:checked ~ #kioitbot-floating-chat-container:where(:not(#oit-home-host *),[slot],[slot] *){
    background-color: #fff !important;
    width: 90% !important;
  }
  .page-id-32679 .typing-indicator:where(:not(#oit-home-host *),[slot],[slot] *){
    padding: 10px 14px;
    max-width: 55px;
  }
  .page-id-32679 .typing-dot:where(:not(#oit-home-host *),[slot],[slot] *){
    width: 6px;
    height: 6px;
  }
}

#kioitbot-floating-chat-container:where(:not(#oit-home-host *),[slot],[slot] *){
  position: fixed;
  bottom: 4px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6.8px);
  -webkit-backdrop-filter: blur(6.8px);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 87, 34, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  z-index: 9999;
  flex-direction: column;
  animation: pulseGlow 3s ease-in-out infinite;
  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;
}
#kioitbot-floating-chat-container .chat-log:where(:not(#oit-home-host *),[slot],[slot] *),
#kioitbot-floating-chat-container .chat-input-row:where(:not(#oit-home-host *),[slot],[slot] *){ display: none; }

#chat-toggle:checked ~ #kioitbot-floating-chat-container:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 380px;
  height: auto;
  padding: 16px;
  background-color: #f3f3f3a3;
  border-radius: 32px;
  box-shadow: none;
  animation: none;
}
#chat-toggle:checked ~ #kioitbot-floating-chat-container .chat-log:where(:not(#oit-home-host *),[slot],[slot] *),
#chat-toggle:checked ~ #kioitbot-floating-chat-container .chat-input-row:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
}
#kioitbot-floating-chat-container:hover .chat-log:where(:not(#oit-home-host *),[slot],[slot] *),
#kioitbot-floating-chat-container:hover .chat-input-row:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
}
#kioitbot-floating-chat-container:where(:not(#oit-home-host *),[slot],[slot] *)::before{
  content: "";
  display: none;
  width: 28px;
  height: 28px;
  background-image: url("https://oit.digital/wp-content/uploads/2025/08/ChatGPT-Image-1.-Aug.-2025-11_14_29-2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
  margin-bottom: 12px;
}
#chat-toggle:checked ~ #kioitbot-floating-chat-container:where(:not(#oit-home-host *),[slot],[slot] *)::before{
  display: block;
}

.chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *){
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6.8px);
  -webkit-backdrop-filter: blur(6.8px);
  border-radius: 50%;
  background-image: url("https://oit.digital/wp-content/uploads/2025/08/ChatGPT-Image-1.-Aug.-2025-11_14_29-2.png");
  background-size: 70px;
  background-repeat: no-repeat;
  background-position: top;
  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:where(:not(#oit-home-host *),[slot],[slot] *){ display: none; }

.chat-close-button:where(:not(#oit-home-host *),[slot],[slot] *){
  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: inherit !important;
  text-align: center;
  cursor: pointer;
  z-index: 10001;
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: none;
}
.chat-close-button:hover:where(:not(#oit-home-host *),[slot],[slot] *){
  background-color: rgba(0, 0, 0, 0.12);
  transform: scale(1.1);
}
#chat-toggle:checked ~ #kioitbot-floating-chat-container .chat-close-button:where(:not(#oit-home-host *),[slot],[slot] *){ display: block; }

/* Standard: auf allen Seiten (Unterseiten, Archiv, etc.) */
#kioitbot-user-input:where(:not(#oit-home-host *),[slot],[slot] *){
  background-color: #1a1a1a;
  color: #aaa;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  width: 100%;
  max-width: 600px;
  height: auto;
  opacity: 1;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.15);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  animation: none;
}

/* Startseite: animierter Ball → Feld */
body.home #kioitbot-user-input:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 50px;
  max-width: 50px;
  height: 50px;
  opacity: 0;
  overflow: hidden;
  animation:
    inputBall 0.3s ease-in 1.3s forwards,
    inputExpand 1s ease-out 1.8s forwards,
    glowPulse 4s ease-in-out 2s infinite;
}

body:not(.home) .chat-input-row:where(:not(#oit-home-host *),[slot],[slot] *){ justify-content: center; }
body:not(.home) #kioitbot-user-input:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 100%;
  height: auto;
  opacity: 1;
  margin: 0 auto;
  animation: none;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.15);
  padding: 12px 14px;
  transition: none;
}
body:not(.home) .chat-input-row:where(:not(#oit-home-host *),[slot],[slot] *){ width: 100%; }
body:not(.home) .chat-log:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  max-height: 300px;
  width: 350px;
  overflow-y: auto;
  margin-bottom: 10px;
  color: #aaa;
  scrollbar-width: none;
}

@keyframes inputBall {
  from {
    opacity: 0;
    box-shadow: 0 0 0px rgba(255, 87, 34, 0);
  }
  to {
    opacity: 1;
    box-shadow: 0 0 25px rgba(255, 87, 34, 0.6);
  }
}

@keyframes inputExpand {
  from {
    max-width: 50px;
    width: 50px;
  }
  to {
    max-width: 600px;
    width: 100%;
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.9);
  }
}

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

/* Typing Dots – im Chat-Log wie eine Bot-Message */
@keyframes typing-bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Typing Indicator als Chat-Message */
.chat-typing-indicator:where(:not(#oit-home-host *),[slot],[slot] *){
  max-width: 70%;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.5;
  font-family: inherit;
  word-break: break-word;
  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;
  margin: 4px 0;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s ease-out;
  display: none;
}

.chat-typing-indicator.show:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Dots */
.typing-dots:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
}
.typing-dot:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 8px;
  height: 8px;
  background-color: #888;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1):where(:not(#oit-home-host *),[slot],[slot] *){ animation-delay: -0.32s; }
.typing-dot:nth-child(2):where(:not(#oit-home-host *),[slot],[slot] *){ animation-delay: -0.16s; }
.typing-dot:nth-child(3):where(:not(#oit-home-host *),[slot],[slot] *){ animation-delay: 0s; }

/* Mobile Anpassungen für alle Seiten */
@media screen and (max-width: 600px) {
  .chat-typing-indicator:where(:not(#oit-home-host *),[slot],[slot] *){
    max-width: 90%;
    font-size: 15px;
    padding: 10px 14px;
  }
  .typing-dot:where(:not(#oit-home-host *),[slot],[slot] *){
    width: 6px;
    height: 6px;
  }
}

/* Mobile Anpassungen für Typing Indicator (Seite 32679) */
@media screen and (max-width: 600px) {
  .page-id-32679 .typing-indicator:where(:not(#oit-home-host *),[slot],[slot] *){
    padding: 10px 14px;
    max-width: 55px;
  }
  .page-id-32679 .typing-dot:where(:not(#oit-home-host *),[slot],[slot] *){
    width: 6px;
    height: 6px;
  }
}

/* Standard Pseudo-Element: Bild je Seitentyp */
body.single-post .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before,
body.single-custom_project .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before,
body.page .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
  bottom: 60px;
  position: inherit;
  width: 110px;
  right: 10px;
  opacity: 1;
  transition: opacity 0.5s ease;
}
body.single-post .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
  content: url(https://oit.digital/wp-content/uploads/2025/07/arrow_txt_25_subli.svg);
}
body.single-custom_project .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
  content: url(https://oit.digital/wp-content/uploads/2025/07/fragmich-projekt-1.svg);
}
body.page .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
  content: url(https://oit.digital/wp-content/uploads/2025/07/fragmich-seite.svg);
}

/* beim Scrollen ausblenden */
html.scrolling .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
  opacity: 0 !important;
}

/* Input / Buttons / Layout */
#kioitbot-user-input:where(:not(#oit-home-host *),[slot],[slot] *){
  background-color: #1a1a1a;
  color: #aaa;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  width: 50px;
  max-width: 50px;
  height: 50px;
  opacity: 0;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.15);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  animation:
    inputBall 0.3s ease-in 1.3s forwards,
    inputExpand 1s ease-out 1.8s forwards,
    glowPulse 4s ease-in-out 2s infinite;
}
#kioitbot-user-input:focus:where(:not(#oit-home-host *),[slot],[slot] *){
  box-shadow: none;
  background-color: #222;
  color: #fff;
}
#kioitbot-user-input:where(:not(#oit-home-host *),[slot],[slot] *)::placeholder{ color: #aaa; }

#kioitbot-send-btn:where(:not(#oit-home-host *),[slot],[slot] *){
  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:where(:not(#oit-home-host *),[slot],[slot] *){ transform: scale(1.1); }

.kioitbot-chatbox:where(:not(#oit-home-host *),[slot],[slot] *){
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  font-family: sans-serif;
  background: transparent;
}
button#kioitbot-send-btn:where(:not(#oit-home-host *),[slot],[slot] *){ display: none; }

.chat-input-row:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-input-row input:where(:not(#oit-home-host *),[slot],[slot] *){
  flex: 1;
  padding: 10px;
  font-size: 16px;
}
.chat-input-row button:where(:not(#oit-home-host *),[slot],[slot] *){
  font-size: 18px;
  padding: 0 15px;
  cursor: pointer;
}

.chat-log:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 10px;
  color: #aaa;
  scrollbar-width: none;
}
.chat-log:where(:not(#oit-home-host *),[slot],[slot] *)::-webkit-scrollbar{ display: none; }

.chat-message:where(:not(#oit-home-host *),[slot],[slot] *){
  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;
}
.chat-message.user:where(:not(#oit-home-host *),[slot],[slot] *){
  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;
}
.chat-message.bot:where(:not(#oit-home-host *),[slot],[slot] *){
  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;
}

/* iMessage-Style Typing Indicator (Seite 32679) */
.page-id-32679 .typing-indicator:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background-color: #121212;
  box-shadow: 0 0 14px rgba(255, 140, 40, 0.2);
  border-radius: 20px;
  border-bottom-left-radius: 0;
  margin: 4px 0;
  max-width: 60px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease-in-out;
  align-self: flex-start;
  font-size: 16px;
  line-height: 1.5;
  font-family: inherit;
  color: #cecece;
  word-break: break-word;
}
.page-id-32679 .typing-indicator.show:where(:not(#oit-home-host *),[slot],[slot] *){
  opacity: 1;
  transform: scale(1);
}
.page-id-32679 .typing-dots:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.page-id-32679 .typing-dot:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 8px;
  height: 8px;
  background-color: #888;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
  flex-shrink: 0;
}
.page-id-32679 .typing-dot:nth-child(1):where(:not(#oit-home-host *),[slot],[slot] *){ animation-delay: -0.32s; }
.page-id-32679 .typing-dot:nth-child(2):where(:not(#oit-home-host *),[slot],[slot] *){ animation-delay: -0.16s; }
.page-id-32679 .typing-dot:nth-child(3):where(:not(#oit-home-host *),[slot],[slot] *){ animation-delay: 0s; }

/* Mobile generelle Anpassungen */
@media screen and (max-width: 600px) {
  .chat-message:where(:not(#oit-home-host *),[slot],[slot] *){
    max-width: 90%;
    font-size: 15px;
    padding: 10px 14px;
  }
  .chat-log:where(:not(#oit-home-host *),[slot],[slot] *){
    padding: 12px;
    gap: 8px;
  }
  #chat-toggle:checked ~ #kioitbot-floating-chat-container:where(:not(#oit-home-host *),[slot],[slot] *){
    background-color: #fff !important;
    width: 90% !important;
  }
  .page-id-32679 .typing-indicator:where(:not(#oit-home-host *),[slot],[slot] *){
    padding: 10px 14px;
    max-width: 55px;
  }
  .page-id-32679 .typing-dot:where(:not(#oit-home-host *),[slot],[slot] *){
    width: 6px;
    height: 6px;
  }
}

#kioitbot-floating-chat-container:where(:not(#oit-home-host *),[slot],[slot] *){
  position: fixed;
  bottom: 4px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6.8px);
  -webkit-backdrop-filter: blur(6.8px);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 87, 34, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  z-index: 9999;
  flex-direction: column;
  animation: pulseGlow 3s ease-in-out infinite;
  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;
}
#kioitbot-floating-chat-container .chat-log:where(:not(#oit-home-host *),[slot],[slot] *),
#kioitbot-floating-chat-container .chat-input-row:where(:not(#oit-home-host *),[slot],[slot] *){ display: none; }

#chat-toggle:checked ~ #kioitbot-floating-chat-container:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 380px;
  height: auto;
  padding: 16px;
  background-color: #f3f3f3a3;
  border-radius: 32px;
  box-shadow: none;
  animation: none;
}
#chat-toggle:checked ~ #kioitbot-floating-chat-container .chat-log:where(:not(#oit-home-host *),[slot],[slot] *),
#chat-toggle:checked ~ #kioitbot-floating-chat-container .chat-input-row:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
}
#kioitbot-floating-chat-container:hover .chat-log:where(:not(#oit-home-host *),[slot],[slot] *),
#kioitbot-floating-chat-container:hover .chat-input-row:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
}
#kioitbot-floating-chat-container:where(:not(#oit-home-host *),[slot],[slot] *)::before{
  content: "";
  display: none;
  width: 28px;
  height: 28px;
  background-image: url("https://oit.digital/wp-content/uploads/2025/08/ChatGPT-Image-1.-Aug.-2025-11_14_29-2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
  margin-bottom: 12px;
}
#chat-toggle:checked ~ #kioitbot-floating-chat-container:where(:not(#oit-home-host *),[slot],[slot] *)::before{
  display: block;
}

.chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *){
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6.8px);
  -webkit-backdrop-filter: blur(6.8px);
  border-radius: 50%;
  background-image: url("https://oit.digital/wp-content/uploads/2025/08/ChatGPT-Image-1.-Aug.-2025-11_14_29-2.png");
  background-size: 70px;
  background-repeat: no-repeat;
  background-position: top;
  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:where(:not(#oit-home-host *),[slot],[slot] *){ display: none; }

.chat-close-button:where(:not(#oit-home-host *),[slot],[slot] *){
  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: inherit !important;
  text-align: center;
  cursor: pointer;
  z-index: 10001;
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: none;
}
.chat-close-button:hover:where(:not(#oit-home-host *),[slot],[slot] *){
  background-color: rgba(0, 0, 0, 0.12);
  transform: scale(1.1);
}
#chat-toggle:checked ~ #kioitbot-floating-chat-container .chat-close-button:where(:not(#oit-home-host *),[slot],[slot] *){ display: block; }

/* Standard: auf allen Seiten (Unterseiten, Archiv, etc.) */
#kioitbot-user-input:where(:not(#oit-home-host *),[slot],[slot] *){
  background-color: #1a1a1a;
  color: #aaa;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  width: 100%;
  max-width: 600px;
  height: auto;
  opacity: 1;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.15);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  animation: none;
}

/* Startseite: animierter Ball → Feld */
body.home #kioitbot-user-input:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 50px;
  max-width: 50px;
  height: 50px;
  opacity: 0;
  overflow: hidden;
  animation:
    inputBall 0.3s ease-in 1.3s forwards,
    inputExpand 1s ease-out 1.8s forwards,
    glowPulse 4s ease-in-out 2s infinite;
}

body:not(.home) .chat-input-row:where(:not(#oit-home-host *),[slot],[slot] *){ justify-content: center; }
body:not(.home) #kioitbot-user-input:where(:not(#oit-home-host *),[slot],[slot] *){
  width: 100%;
  height: auto;
  opacity: 1;
  margin: 0 auto;
  animation: none;
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.15);
  padding: 12px 14px;
  transition: none;
}
body:not(.home) .chat-input-row:where(:not(#oit-home-host *),[slot],[slot] *){ width: 100%; }
body:not(.home) .chat-log:where(:not(#oit-home-host *),[slot],[slot] *){
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  max-height: 300px;
  width: 350px;
  overflow-y: auto;
  margin-bottom: 10px;
  color: #aaa;
  scrollbar-width: none;
}

/* ===== Mobile-Override: Text-SVG näher an den KI-Button ===== */
@media screen and (max-width: 600px) {
  body.single-post .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before,
  body.single-custom_project .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before,
  body.page .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
    position: fixed;
    left: auto;
    right: 12px;                          /* leicht nach innen */
    bottom: calc(16px + 44px + 3px);      /* dichter am Button: 6px Luft über dem 44px-Button */
    width: clamp(68px, 30vw, 96px);
    max-width: 45vw;
    height: auto;
    transform: none;
    pointer-events: none;
    z-index: 10001;
  }

  
}

/* Beim Scrollen weiterhin ausblenden */
html.scrolling .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
  opacity: 0 !important;
}


@media (max-width: 1000px) {	
	body.page .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
		display:none!important;}
	label.chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *)::before{display:none !important;}
	
	body.single-post .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before, body.single-custom_project .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before, body.page .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
display:none !important;
}
}




body.single-oitproducts .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
  display: none;
}


body.single-post .chat-toggle-button:where(:not(#oit-home-host *),[slot],[slot] *):before{
  display: none;
}