/* Erlaubt Zeilenumbrüche und verbessert die Lesbarkeit */
#anything-llm-chat p.allm-text-slate-400 {
    text-align: left !important; /* Optional: Linksbündig statt zentriert */
    line-height: 1.5 !important;
    display: block !important;
}

/* Macht den ACHTUNG-Text etwas auffälliger, falls gewünscht */
#anything-llm-chat p.allm-text-slate-400 b {
    color: #d11212; /* Ein dezentes Rot für den Warnhinweis */
    font-weight: 700;
}

/* --- Hinweisschild neben dem Chatbot-Button ----------------------------------- */
/* Die Position orientiert sich am AnythingLLM-Button: 56px Durchmesser,
   je 16px Abstand zum rechten und unteren Rand des Viewports. Das Schild sitzt
   links daneben und wird über translateY auf die Button-Mitte zentriert. */
.lrz-chatbot-hint {
    position: fixed;
    right: 84px;
    bottom: 44px;
    z-index: 50;
    display: flex;
    align-items: stretch;
    max-width: 260px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.22));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(10px, 50%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s;
}

/* Wird von lrz-chatbot-init.js gesetzt, sobald der Chatbot-Button da ist. */
.lrz-chatbot-hint.lrz-chatbot-hint-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(50%);
}

.lrz-chatbot-hint button {
    margin: 0;
    background-color: #ffffff;
    border: 1px solid #c9d3e0;
    color: #262626;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.2s ease-in-out;
}

.lrz-chatbot-hint button:hover,
.lrz-chatbot-hint button:focus {
    background-color: #eef3f8;
}

.lrz-chatbot-hint-body {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-right: none !important;
    border-left-width: 3px !important;
    border-left-color: #205081 !important;
    border-radius: 5px 0 0 5px;
    text-align: left;
}

.lrz-chatbot-hint-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-right: 9px;
    color: #205081;
}

.lrz-chatbot-hint-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.lrz-chatbot-hint-text {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: #4c5766;
}

.lrz-chatbot-hint-close {
    position: relative;
    flex: 0 0 auto;
    width: 26px;
    padding: 0;
    border-left: 1px solid #e1e7ee !important;
    border-radius: 0 5px 5px 0;
    color: #6b7684;
    line-height: 0;
}

.lrz-chatbot-hint-close svg {
    width: 10px;
    height: 10px;
}

/* Sprechblasen-Zipfel, zeigt auf den Chatbot-Button */
.lrz-chatbot-hint-close::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    background-color: inherit;
    border-top: 1px solid #c9d3e0;
    border-right: 1px solid #c9d3e0;
    border-radius: 0 3px 0 0;
    transform: rotate(45deg);
}

@media screen and (max-width: 600px) {
    .lrz-chatbot-hint {
        right: 80px;
        max-width: calc(100vw - 100px);
    }

    .lrz-chatbot-hint-icon {
        display: none;
    }

    .lrz-chatbot-hint-title {
        font-size: 12px;
    }

    .lrz-chatbot-hint-text {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lrz-chatbot-hint,
    .lrz-chatbot-hint.lrz-chatbot-hint-visible {
        transform: translateY(50%);
        transition: none;
    }
}

@media print {
    .lrz-chatbot-hint {
        display: none !important;
    }
}
