/* Sokrates – nur Struktur */

.sokrates-widget {
    max-width: 680px;
    margin: 0 auto;
}

.sk-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.sk-message {
    max-width: 85%;
    animation: sk-in 0.2s ease;
}

@keyframes sk-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Theme-Stile erben, nur Abstände und Bubbles */
.sk-message p,
.sk-message ul,
.sk-message li {
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.sk-message p:last-child,
.sk-message ul:last-child { margin-bottom: 0 !important; }

.sk-message ul {
    padding-left: 1.2em !important;
    list-style: disc !important;
}

/* Sokrates-Antwort – dezenter Hintergrund */
.sk-assistant {
    align-self: flex-start;
    padding: 12px 15px;
    border-radius: 3px 12px 12px 12px;
    background: rgba(0,0,0,0.04) !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
}

/* Nutzer-Nachricht – dunkle Bubble */
.sk-user {
    align-self: flex-end;
    padding: 10px 14px;
    border-radius: 12px 3px 12px 12px;
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
}

/* Typing dots */
.sk-typing {
    align-self: flex-start;
    padding: 14px 18px;
    border-radius: 3px 12px 12px 12px;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    gap: 5px;
    align-items: center;
}

.sk-typing span {
    width: 6px; height: 6px;
    background: currentColor; opacity: 0.35;
    border-radius: 50%; display: block;
    animation: sk-bounce 1.2s infinite ease-in-out;
}
.sk-typing span:nth-child(2) { animation-delay: 0.2s; }
.sk-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes sk-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.25; }
    40%           { transform: scale(1);   opacity: 0.75; }
}

/* Eingabe */
.sk-input-area {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.sk-input {
    flex: 1;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: 1.5 !important;
    color: inherit !important;
    background: transparent !important;
    border: 1px solid rgba(0,0,0,0.2) !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    resize: none !important;
    outline: none !important;
    box-shadow: none !important;
    min-height: 44px;
    max-height: 140px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    overflow-y: hidden;
}

.sk-input:focus {
    border-color: rgba(0,0,0,0.45) !important;
    box-shadow: none !important;
    outline: none !important;
}

.sk-send {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 11px !important;
    box-shadow: none !important;
    transition: opacity 0.15s, transform 0.1s;
    line-height: 1;
}

.sk-send:hover   { opacity: 0.75; }
.sk-send:active  { transform: scale(0.93); }
.sk-send:disabled { opacity: 0.2; cursor: not-allowed; transform: none; }
.sk-send svg { width: 15px; height: 15px; display: block; }

/* Fehlermeldung */
.sk-error {
    font-size: 0.85rem;
    color: #c0392b;
    padding: 8px 0;
}
