/* streaming.css ? Nur für gestreamte LLM-Antworten über LiveRenderController */

.llm-output {
   /* padding: 1em; */
    font-size: 0.85rem;
    line-height: 1.3;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 0.5em;
    margin-top: 1em;
    max-height: 70vh;
    overflow-y: auto;
}

/* Kontext: plain ? Default-Ausgabe */
.llm-output span.plain {
    white-space: pre-wrap;
    display: inline;
    color: inherit;
}

/* Kontext: think */
.llm-output span.think {
    background-color: #fff3cd;
    border-left: 4px solid #ffeeba;
    padding: 0.25em 0.5em;
    margin: 0.25em 0;
    font-style: italic;
    display: block;
}

/* Kontext: fold */
.llm-output span.fold {
    font-family: monospace;
    background: #f1f1f1;
    padding: 0.25em 0.5em;
    display: inline-block;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin: 0.2em 0;
}

/* Kombiniert: fold + think */
.llm-output span.fold-think {
    background-color: #e8e2c7;
    border-left: 3px solid #cbb956;
    padding: 0.25em 0.5em;
    display: block;
    font-style: italic;
    font-family: monospace;
}

.llm-output .foldable .fold-content {
    display: none;
}

.llm-output .foldable .fold-content.visible {
    display: block;
}

.llm-output .fold-header {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 0.25em;
}

.llm-output .fold-header::before {
    content: "📂 ";
    font-weight: normal;
    margin-right: 0.25em;
}

.llm-output .thinking {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    color: #666;
    font-style: italic;
    position: relative;
}

.llm-output .thinking::before {
    content: "🔍 Hinweis: ";
    font-weight: bold;
    color: #444;
    margin-right: 0.25em;
}

.llm-output .thinking.fadeout {
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease-in-out, height 0.3s ease-in;
}




/* Responsiv optimiert */
@media (max-width: 768px) {
    .llm-output  span.think, span.fold, span.fold-think {
        font-size: 0.9em;
        padding: 0.4em;
    }
}
