body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 600px;
}

h1 {
    color: #6a0dad;
    /* Ein schönes Lila */
    margin-bottom: 10px;
}

p {
    margin-bottom: 25px;
    color: #555;
}

.chat-area {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #e9f0f9;
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Neue Nachrichten unten */
}

#messages {
    flex-grow: 1;
    /* Nimmt den verfügbaren Platz ein */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Nachrichten von oben nach unten */
}

.message {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
    text-align: left;
}

.user-message {
    background-color: #d1e7dd;
    /* Hellgrün für Benutzer */
    align-self: flex-end;
    /* Rechtsbündig */
}

.system-message {
    background-color: #cfe2ff;
    /* Hellblau für System */
    align-self: flex-start;
    /* Linksbündig */
}

.input-area {
    display: flex;
    margin-top: 15px;
}

#user-input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 25px;
    margin-right: 10px;
    font-size: 1rem;
}

#send-button {
    background-color: #6a0dad;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#send-button:hover {
    background-color: #53008a;
}


footer {
    background-color: #e8e8e8;
    /* Helleres, unauffälligeres Grau für den Footer */
    color: #555;
    /* Dunklere Schriftfarbe für Lesbarkeit auf hellem Grund */
    padding: 15px 0;
    text-align: center;
    margin-top: auto;
    /* Schiebt den Footer ganz nach unten */
    width: 100%;
    border-radius: 8px;
    margin-top: 15px;
}

.footer-links {
    max-width: 800px;
    /* Breite wie Ihr Haupt-Container (optional) */
    margin: 0 auto;
    /* Zentriert die Links im Footer */
    padding: 0 15px;
    /* Etwas Innenabstand für kleine Bildschirme */
}

.footer-links a {
    color: #555;
    /* Links in der gleichen dunkleren Schriftfarbe */
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #6a0dad;
    /* Akzent-Lila beim Hover beibehalten */
}