/* 🔹 Allgemeine Schriftart für den gesamten Chatbot */
* {
    font-family: 'Trebuchet MS', sans-serif;
}

/* 🔹 Kleiner runder Chat-Button */
#chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #0086be;
    color: white;
    font-size: 24px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    display: flex;
    justify-content: center;  /* 🔹 Icon horizontal zentrieren */
    align-items: center;      /* 🔹 Icon vertikal zentrieren */
}

/* 🔹 Hover-Effekt für den Button */
#chatbot-button:hover {
    background-color: #0056b3;
}

/* 🔹 Chatbox (zuerst versteckt) */
#chatbox {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: white;
    border: 1px solid #7a7866;
    display: none; /* Standardmäßig versteckt */
    flex-direction: column;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

/* 🔹 Header-Bereich */
#chat-header {
    background: #0086be;
    color: white;
    padding: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Trebuchet MS', sans-serif;
}

/* 🔹 Titel links, Icon & Schließen-Button rechts */
#chat-title {
    font-weight: bold;
    font-family: 'Trebuchet MS', sans-serif;
}

/* 🔹 Icon */
#chatbot-icon {
    width: 50px;
    height: 30px;
    margin-left: auto;
}

/* 🔹 Schließen-Button */
#chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    font-family: 'Trebuchet MS', sans-serif;
}

/* 🔹 Nachrichtenbereich */
#chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

/* 🔹 Eingabebereich */
#chat-input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
}

/* 🔹 Eingabefeld */
#chat-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Trebuchet MS', sans-serif;
}

/* 🔹 Platzhaltertext im Eingabefeld */
#chat-input::placeholder {
    font-family: 'Trebuchet MS', sans-serif;
    color: #7a7866;
}

/* 🔹 Senden-Button */
#chat-send {
    padding: 8px;
    margin-left: 8px;
    background: #0086be;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Trebuchet MS', sans-serif;
}

/* 🔹 User- und Bot-Nachrichten */
.user-message {
    text-align: right;
    background: #0086be;
    color: white;
    padding: 5px;
    border-radius: 10px;
    margin: 5px;
    width: fit-content;
    font-family: 'Trebuchet MS', sans-serif;
}

.bot-message {
    text-align: left;
    background: #e5e5e5;
    padding: 5px;
    border-radius: 10px;
    margin: 5px;
    width: fit-content;
    font-family: 'Trebuchet MS', sans-serif;
}

/* 🔹 Tipp-Indikator („... schreibt“) */
#typing-indicator {
    font-style: italic;
    color: #7a7866;
    padding: 5px;
    margin-left: 5px;
    font-family: 'Trebuchet MS', sans-serif;
}

/* 🔹 Animation für die drei Punkte */
#typing-dots::after {
    content: " ";
    display: inline-block;
    animation: typingAnimation 1.5s infinite;
}

/* 🔹 Animation: Punkte erscheinen & verschwinden */
@keyframes typingAnimation {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}
