/* style2.css */
#chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #4f46e5;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999 !important; /* Ganz nach oben */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#chatbot-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex; /* Standardanzeige als Flex */
    flex-direction: column;
    z-index: 9999 !important;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* Wichtig: Das überschreibt den Tailwind-Konflikt */
#chatbot-widget.hidden, #chat-icon.hidden {
    display: none !important;
}

#chat-header {
    background: #4f46e5;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9fafb;
}

#input-section {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
}

#user-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    outline: none;
}

.bot-message { background: #e0e7ff; margin-bottom: 10px; padding: 8px; border-radius: 8px; align-self: flex-start; }
.user-message { background: #4f46e5; color: white; margin-bottom: 10px; padding: 8px; border-radius: 8px; align-self: flex-end; }