/* --- CHAT-FENSTER --- */
#rusono-chat-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    overflow: hidden;
    z-index: 99999;
    font-family: Arial, sans-serif;
    display: none; /* Start: geschlossen */
}

.chat-header {
    background: #00c57b;
    padding: 12px;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.chat-body {
    height: 360px;
    padding: 10px;
    overflow-y: auto;
    background: #f7f7f7;
}

.msg {
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    max-width: 80%;
    white-space: pre-wrap;
}

.msg.bot {
    background: #e8ffe5;
    color: #0a330a;
}

.msg.user {
    background: #dff5ff;
    color: #083b55;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
}

.chat-input button {
    width: 50px;
    border: none;
    background: #00c57b;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}


/* --- TEXT-TOGGLE BUTTON: KI-BOT ÖFFNEN --- */
#rusono-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00c57b;
    color: #fff;
    padding: 12px 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    z-index: 100000;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    font-size: 16px;
    font-family: Arial, sans-serif;
    transition: background 0.2s, transform 0.2s;
}

#rusono-chat-toggle:hover {
    background: #00e48c;
    transform: scale(1.05);
}


/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 480px) {
    #rusono-chat-widget {
        width: 92%;
        right: 4%;
        bottom: 90px;
    }
    #rusono-chat-toggle {
        bottom: 10px;
        right: 10px;
        padding: 14px 18px;
        font-size: 15px;
    }
}
