/* style.css v10.2 - Zentrierter Dialogstrom */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@300;400;700&display=swap');

:root {
    --background-color: #02030a;
    --text-color: #e0e0e0;
    --primary-accent: #CEFF00;
    --secondary-accent: #89b4fa;
    --container-bg: rgba(10, 12, 24, 0.8);
    --font-title: 'Orbitron', sans-serif;
    --font-text: 'Inter', sans-serif;
    --border-color: rgba(255, 255, 255, 0.1);
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-text);
    display: flex;
    flex-direction: column;
}

#particle-canvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

header {
    flex-shrink: 0;
    background: rgba(2, 3, 10, 0.5);
    backdrop-filter: blur(10px);
    z-index: 10;
    padding: 0.8rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

nav a {
    color: var(--text-color); text-decoration: none;
    margin: 0 20px; font-size: 1rem;
    font-family: var(--font-title);
    text-transform: uppercase; letter-spacing: 1.5px;
    transition: color 0.3s ease;
}
nav a:hover { color: var(--primary-accent); }

main#chat-log {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center; /* NEU: Zentriert alle Nachrichtenblöcke */
}

.message {
    max-width: 80ch;
    width: 100%; /* Passt sich an den Container an, wird durch max-width begrenzt */
    box-sizing: border-box; /* Stellt sicher, dass Padding die Breite nicht sprengt */
    padding: 1rem 1.5rem;
    border-radius: 8px;
    line-height: 1.7;
    border: 1px solid var(--border-color);
    animation: fadeInMessage 0.5s ease;
}

@keyframes fadeInMessage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    background: rgba(137, 180, 250, 0.1);
    /* align-self wird nicht mehr benötigt */
}

.arakelos-response {
    background: var(--container-bg);
    /* align-self wird nicht mehr benötigt */
}

.arakelos-response p { margin: 0 0 1em 0; }
.arakelos-response p:last-child { margin-bottom: 0; }

footer#input-area {
    flex-shrink: 0;
    padding: 1rem 2rem; /* Passt das Padding an main an */
    background: rgba(2, 3, 10, 0.7);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    z-index: 10;
}

.input-wrapper {
    max-width: 80ch;
    margin: 0 auto;
    display: flex;
    background: #1c1d26;
    border-radius: 25px;
    padding: 5px;
    border: 1px solid var(--border-color);
}

#user-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    padding: 0 20px;
    outline: none;
}

#send-btn {
    background: var(--primary-accent);
    color: #000;
    border: none;
    border-radius: 20px;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#send-btn:hover { background: #b8e600; }