body {
    font-family: Arial, sans-serif;
    background-color: #e5ddd5; /* Hintergrundfarbe für WhatsApp-Stil */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    height: 100vh;
    margin: 0; /* Kein Margin, um den Bildschirm vollständig auszufüllen */
}

.chat {
    width: 100%;
    max-width: 400px; /* Maximale Breite des Chats */
    background: white;
    border-radius: 8px;
    padding: 10px;
    height: 70vh; /* Höhe des Chatbereichs */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.message {
    margin: 5px;
    padding: 10px;
    border-radius: 8px;
    max-width: 70%;
    word-wrap: break-word; /* Wörter umbrechen, wenn sie zu lang sind */
}

.user {
    align-self: flex-end; /* Benutzer-Nachricht rechts ausrichten */
    background-color: #dcf8c6; /* Benutzer-Nachricht Hintergrundfarbe */
}

.bot {
    align-self: flex-start; /* Bot-Nachricht links ausrichten */
    background-color: #f1f1f1; /* Bot-Nachricht Hintergrundfarbe */
    position: relative; /* Für die Positionierung des Typing-Indikators */
}

.typing-indicator {
    display: flex;
    align-items: center;
    font-size: 0.8em; /* Kleinere Schriftgröße */
    color: #888;
    margin-top: 5px;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #888;
    margin: 0 2px;
    animation: typing 1s infinite; /* Animation hinzufügen */
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 20% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    80%, 100% {
        opacity: 0.5;
    }
}

.input-container {
    display: flex;
    width: 100%;
    max-width: 400px; /* Maximale Breite der Eingabefelder */
    margin-top: 10px;
}

input[type="text"] {
    flex-grow: 1; /* Eingabefeld wächst */
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    margin-right: 5px; /* Abstand zwischen Eingabefeld und Button */
}

button {
    background-color: #007bff; /* Blau für den Senden-Button */
    color: white;
    border: none;
    border-radius: 20px; /* Abgerundete Ecken */
    padding: 10px 15px; /* Innenabstand */
    cursor: pointer;
    transition: background-color 0.3s; /* Übergangseffekt */
}

button:hover {
    background-color: #0056b3; /* Dunkleres Blau bei Hover */
}

/* Bestehendes CSS */

.badge {
    display: none; /* Standardmäßig ausgeblendet */
    margin-top: 10px;
    padding: 10px;
    background-color: #dcf8c6; /* Hintergrundfarbe für den Badge */
    border-radius: 8px;
    text-align: center;
    font-size: 1.2em; /* Größere Schriftgröße */
    color: #007bff; /* Textfarbe */
}

.badge.hidden {
    display: none; /* Versteckt */
}
