/* Responsive Chat Widget Styles */

#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: Arial, sans-serif;
    z-index: 1000;
}

#chat-bubble {
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#chat-bubble-content {
    font-size: 30px;
}

#chat-box {
    display: none;
    width: 300px;
    max-width: 90%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    position: fixed;
    bottom: 5vh;
    right: 20px;
    max-height: 80vh;

}

#chat-header {
    background-color: #007bff;
    color: #fff;
    padding: 8px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 14px;
}

#chat-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

#chat-close {
    margin-right: -150px;
}


#chat-content {
    padding: 8px;
    overflow-y: auto;
    max-height: 70vh;
    font-size: 14px;
}

#chat-content p {
    margin-bottom: 8px;
}

#chat-content textarea,
#chat-content input {
    width: 95%;
    padding: 6px;
    margin: 4px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

#chat-send {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    position: sticky;
    bottom: 0;
    font-size: 14px;
}

#chat-send:hover {
    background-color: #0056b3;
}

/* Mobile Anpassung */
@media screen and (max-width: 600px) {
    #chat-box {
        width: 100%;
        height: 88vh;
        left: 5%;
        right: 5%;
        bottom: -2vh;
        border-radius: 10px;
        max-height: 90vh;
    }
    #chat-content {
        max-height: calc(90vh - 50px);
        overflow-y: auto;
    }
    #chat-bubble {
        width: 45px;
        height: 45px;
        font-size: 12px;
    }

    #chat-content textarea,
    #chat-content input {
        width: 93.5%;

    }

}
