/* Die CSS-Datei wird auf der Zielseite gehostet und genutzt. */

.chatbot-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 84px;
    height: 84px;
    border: none;
    border-radius: 50%;
    background: #004b89;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    z-index: 10000;
    overflow: hidden;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.chatbot-button:focus-visible {
    outline: 3px solid rgba(0, 75, 137, 0.45);
    outline-offset: 3px;
}

.chatbot-button img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.chatbot-window {
    display: none;
    position: fixed;
    right: 24px;
    bottom: 122px;
    width: min(66vw, 720px);
    height: min(66vh, 760px);
    min-width: 420px;
    min-height: 560px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    z-index: 9999;
}

.chatbot-window.open {
    display: block;
}

.chatbot-header {
    height: 64px;
    background: linear-gradient(135deg, #2f6aa0, #004b89, #003867);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 0 22px;
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatbot-restart,
.chatbot-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 10px;
}

.chatbot-restart:hover,
.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.chatbot-restart:focus-visible,
.chatbot-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 2px;
}

.chatbot-window iframe {
    display: block;
    width: 100%;
    height: calc(100% - 64px);
    border: 0;
    background: #fafafa;
}

@media (max-width: 768px) {
    .chatbot-window {
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        min-width: 0;
        min-height: 0;
        border-radius: 0;
    }

    .chatbot-button {
        right: 16px;
        bottom: 16px;
        width: 74px;
        height: 74px;
    }
}