#chat-container {
      width: 100%;
      max-width: 420px;
      background: #fff;
      border-radius: 1.5rem;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      min-height: 600px;
      max-height: 90vh;
      font-family: 'Inter', sans-serif;
    }

    #chat-header {
      background: #4caf50;
      color: #fff;
      padding: 1rem 1.5rem;
      display: flex;
      align-items: center;
      border-top-left-radius: 1.5rem;
      border-top-right-radius: 1.5rem;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    #chat-messages {
      flex-grow: 1;
      padding: 1.5rem;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      background: #f9fafb;
    }

    .message-bubble {
      max-width: 80%;
      padding: 0.75rem 1rem;
      border-radius: 1rem;
      line-height: 1.4;
      word-wrap: break-word;
    }

    .message-user {
      background: #e0f7fa;
      align-self: flex-end;
      border-bottom-right-radius: 0.25rem;
    }

    .message-bot {
      background: #fff;
      align-self: flex-start;
      border: 1px solid #e5e7eb;
      border-bottom-left-radius: 0.25rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    #chat-input-area {
      padding: 1rem 1.5rem;
      border-top: 1px solid #e5e7eb;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      background: #fff;
      border-bottom-left-radius: 1.5rem;
      border-bottom-right-radius: 1.5rem;
    }

    #chat-input {
      flex-grow: 1;
      padding: 0.75rem 1rem;
      border: 1px solid #d1d5db;
      border-radius: 9999px;
      outline: none;
      font-size: 0.95rem;
    }

    #chat-input:focus {
      border-color: #4caf50;
      box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    }

    #send-button {
      background: #4caf50;
      color: #fff;
      border: none;
      border-radius: 9999px;
      width: 44px;
      height: 44px;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      transition: background 0.2s ease;
    }

    #send-button:hover,
    #send-button:focus {
      background: #45a049;
      outline: none;
    }

    .avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 0.75rem;
      border: 2px solid #fff;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .bot-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 0.5rem;
    }

    .message-row {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
    }

    .message-row.user {
      justify-content: flex-end;
    }

    .message-row.bot {
      justify-content: flex-start;
    }

    .loading-dots {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 20px;
    }

    .loading-dots span {
      width: 8px;
      height: 8px;
      margin: 0 2px;
      background: #4caf50;
      border-radius: 50%;
      animation: bounce 1.4s infinite ease-in-out both;
    }

    .loading-dots span:nth-child(1) {
      animation-delay: -0.32s;
    }

    .loading-dots span:nth-child(2) {
      animation-delay: -0.16s;
    }

    .loading-dots span:nth-child(3) {
      animation-delay: 0s;
    }

    @keyframes bounce {
      0%,
      80%,
      100% {
        transform: scale(0);
      }

      40% {
        transform: scale(1);
      }
    }

    #powered-by {
      text-align: center;
      font-size: 0.75rem;
      color: #9ca3af;
      padding: 0.5rem;
      background: #f9fafb;
      border-bottom-left-radius: 1.5rem;
      border-bottom-right-radius: 1.5rem;
    }

    /* Responsive fix Chatbot Größe */
    @media (max-width: 480px) {
      #chat-container {
        min-height: 400px;
        max-height: 70vh;
        max-width: 90vw;
      }

      #chat-input-area {
        padding: 0.5rem 1rem;
      }
    }
    /* Füge diese Styles in deine CSS oder im <style> Tag ein */
#chatbot-template #chat-container {
  width: 100% !important;
  max-width: 360px !important;
  height: 90vh !important;
  max-height: 90vh !important;
  border-radius: 1rem !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden !important;
  position: relative;
  margin: 0 auto;
  display: flex !important;
  flex-direction: column !important;
}

@media (max-width: 480px) {
  /* Overlay */
  .chatbot-overlay {
    width: 100vw !important;
    height: 100vh !important;
    padding: 0 10px 10px 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
  }

  /* Chatfenster */
  #chatbot-template #chat-container {
    max-width: 320px !important;
    height: 85vh !important;
    max-height: 85vh !important;
    border-radius: 1rem !important;
  }

  /* Schließen Button */
  #chatbot-template button[title="Schließen"] {
    top: 10px !important;
    right: 10px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1.5rem !important;
  }
}