#chatbot-button {
    position: fixed;
    bottom: 5.2rem;
    right: 4.5rem;
    background: white;
    color: white;
    border-radius: 50%;
    border: 0px solid rgb(0, 72, 118);
    height: 2.5rem;
    width: 2.5rem;
    cursor: pointer;
    z-index: 9999;
    box-shadow: grey 1px 1px 10px 1px;
    background-image: url("../../Icons/white_speech_bubble3.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    background-color: rgb(24, 7, 59);
    transition: bottom 0.5s ease-out, background-color 0.2s ease;

    /* Animation hinzufügen */
    animation: colorPulse 1s infinite alternate;
}

@keyframes colorPulse {
    0% {
        background-color: rgb(24, 7, 59);       /* hellblau */
    }
    100% {
        background-color: rgb(148,193,30); /* grün */
    }
}

#chatbot-modal.hidden {
    display: none;
}

#chatbot-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.chatbot-transparent-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* Abdunkelung */
}

.chatbot-window {
    position: absolute;
    bottom: 60px;
    right: 20px;
    width: 600px;
    height: 80vh;
    max-width: 90vw;
    max-height: 80vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.chatbot-window:focus {
    outline: none;
}


.chatbot-header {
    background-color: rgb(24, 7, 59);
    color: #fff;
    font-weight: bold;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#infoBtn:focus {
    border: 2px solid #004877;
}

.c-header__btn:focus, c-input__sendBtn:focus {
    outline: 2px solid #004877;
    outline-offset: 2px;
}

.chatbot-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.25rem;
    cursor: pointer;
    line-height: 1;
}

.chatbot-close-btn:hover {
    color: #ccc;
}

#chatbot-container {
    flex: 1 1 auto;
    height: 100%;
    width: 100%;
    display: flex;
}

#chatbot-container iframe {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    border: none;
}

/* Scroll-Lock wenn Chat offen */
body.chatbot-no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    .chatbot-window {
        width: 90vw;
        height: 80vh;
        right: 5%;
        bottom: 5%;
    }

    #chatbot-button {
        background-size: 50%;
        bottom: 1rem;
    }
}

@media (min-width: 768px) {
    #chatbot-button {
        bottom: 1rem;
        width: 5.2rem;
        height: 5.2rem;
        right: 5.5rem;
    }
}

@media (min-width: 1790px) {
    #chatbot-button {
        bottom: 0.875rem;
    }
}

@media (max-width: 480px) {
    #chatbot-button {
        background-size: 50%;
    }
}
