/* Container & Box */
.uni-chatbot {
    max-width: 600px;
    margin: 30px auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.chatbot-header {
    background-color: #00457d; /* Schönes Uni-Blau */
    color: #ffffff;
    padding: 15px;
    font-weight: bold;
    font-size: 1.1em;
}

.chatbot-body {
    height: 380px;
    overflow-y: auto;
    background-color: #f9f9f9;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.initial-msg {
    text-align: center;
    color: #888888;
    margin: auto 0;
    font-size: 0.95em;
}

/* Chat-Bubbles mit Flexbox */
.chat-msg {
    max-width: 75%;
    padding: 11px 15px;
    border-radius: 18px;
    font-size: 0.95em;
    line-height: 1.4;
    word-break: break-word;
}

.chat-msg.user {
    background-color: #00457d;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-msg.bot {
    background-color: #e9ecef;
    color: #212529;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-msg.error {
    background-color: #f8d7da;
    color: #842029;
    align-self: center;
    border-radius: 8px;
    border: 1px solid #f5c2c7;
}

/* Eingabebereich am Fuß */
.chatbot-footer {
    padding: 15px;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
}

.input-wrapper {
    display: flex;
    gap: 10px;
}

.input-wrapper input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #cccccc;
    border-radius: 20px;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.2s;
}

.input-wrapper input:focus {
    border-color: #00457d;
}

.input-wrapper button {
    background-color: #00457d;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.input-wrapper button:hover {
    background-color: #002d54;
}

.input-wrapper button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 3-Punkte Lade-Animation */
.typing-loader {
    align-self: flex-start;
    background-color: #e9ecef;
    padding: 12px 18px;
    border-radius: 18px;
    border-bottom-left-radius: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.typing-loader span {
    height: 8px;
    width: 8px;
    background-color: #777777;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.2s infinite ease-in-out;
}

.typing-loader span:nth-child(2) { animation-delay: 0.2s; }
.typing-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
    0%, 100% { transform: scale(0.6); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 1; }
}
