/* Madame Tutu — Chat Widget CSS */

.tutu-chat-wrapper {
    display: flex;
    flex-direction: column;
    font-family: 'Georgia', serif;
    font-size: 15px;
    background: #fafaf8;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Header */
.tutu-header {
    background: #2c2c2c;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.tutu-name {
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.03em;
}
.tutu-subtitle {
    font-size: 11px;
    color: #aaa;
    font-style: italic;
}

/* Nachrichten */
.tutu-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 300px;
}

.tutu-message {
    display: flex;
}
.tutu-message--tutu  { justify-content: flex-start; }
.tutu-message--human { justify-content: flex-end; }

.tutu-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 16px;
    line-height: 1.5;
}
.tutu-message--tutu  .tutu-bubble { background: #f0ece4; color: #222; border-bottom-left-radius: 4px; }
.tutu-message--human .tutu-bubble { background: #2c2c2c; color: #fff; border-bottom-right-radius: 4px; }

/* Typing-Indikator */
.tutu-typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 12px 14px;
}
.tutu-typing-indicator span {
    width: 7px; height: 7px;
    background: #888;
    border-radius: 50%;
    animation: tutu-bounce 1.2s infinite;
}
.tutu-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.tutu-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes tutu-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%           { transform: translateY(-6px); }
}

/* Datenschutzhinweis */
.tutu-privacy-notice {
    background: #fffbe6;
    border-top: 1px solid #e8d96b;
    padding: 10px 16px;
    font-size: 13px;
    color: #555;
}
.tutu-privacy-notice p { margin: 0 0 8px; }
.tutu-privacy-notice button {
    background: #2c2c2c;
    color: #fff;
    border: none;
    padding: 5px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

/* Fortsetzungsangebot */
.tutu-continuation {
    background: #f0ece4;
    border-top: 1px solid #d6cfc3;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
}
.tutu-continuation p { margin: 0 0 10px; line-height: 1.5; }
.tutu-continuation button {
    margin-right: 8px;
    padding: 6px 14px;
    border: 1px solid #888;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    background: #fff;
}
.tutu-continuation button:first-of-type {
    background: #2c2c2c;
    color: #fff;
    border-color: #2c2c2c;
}

/* Eingabe */
.tutu-input-area {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #ddd;
    background: #fff;
}
#tutu-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    line-height: 1.4;
}
#tutu-input:focus { outline: none; border-color: #888; }

#tutu-send {
    background: #2c2c2c;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    align-self: flex-end;
    transition: background 0.2s;
}
#tutu-send:hover    { background: #444; }
#tutu-send:disabled { background: #aaa; cursor: not-allowed; }

/* Turn-Info */
.tutu-turn-info {
    display: none;
    padding: 6px 16px;
    font-size: 12px;
    color: #888;
    background: #fafaf8;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Reset-Button */
.tutu-reset-area {
    padding: 4px 12px 8px;
    text-align: right;
    background: #fafaf8;
}
#tutu-reset {
    background: none;
    border: none;
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: color 0.2s;
}
#tutu-reset:hover { color: #555; }
