:root {
    --ottoai-green: #6CA327;
    --ottoai-dark: #333333;
}

.ottoai-chatbot {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

.ottoai-chatbot.inline {
    max-width: 400px;
    border: 1px solid #ddd;
}

.ottoai-chatbot.float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    max-width: 90vw;
    height: 420px;
    display: none;
    z-index: 9999;
    flex-direction: column;
}

.ottoai-chatbot.float.open {
    display: flex;
}

.ottoai-chatbot-header {
    background: var(--ottoai-green);
    color: #fff;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.ottoai-chatbot-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.ottoai-chatbot-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
}

.ottoai-chatbot-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.ottoai-chatbot-message {
    padding: 6px 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 90%;
}

.ottoai-chatbot-user {
    background: #e3f2fd;
    align-self: flex-end;
}

.ottoai-chatbot-bot {
    background: #f5f5f5;
    align-self: flex-start;
}

.ottoai-chatbot-form {
    display: flex;
    padding: 8px;
    gap: 6px;
    background: #fff;
}

.ottoai-chatbot-form input[type="text"] {
    flex: 1;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.ottoai-chatbot-form button {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: var(--ottoai-green);
    color: #fff;
    font-size: 14px;
}

.ottoai-chatbot-form button:hover {
    opacity: 0.9;
}

.ottoai-chatbot-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--ottoai-green);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
}

/* Roboter-Kopf im Bubble */
.ottoai-bot-face {
    position: relative;
    width: 46px;
    height: 40px;
    background: #ffffff;
    border-radius: 10px;
    border: 2px solid var(--ottoai-dark);
    box-sizing: border-box;
}

/* Antenne */
.ottoai-bot-antenna {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 2px;
    height: 8px;
    background: var(--ottoai-dark);
    transform: translateX(-50%);
}
.ottoai-bot-antenna::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--ottoai-dark);
    transform: translateX(-50%);
}

/* Augen */
.ottoai-bot-eyes {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 70%;
    display: flex;
    justify-content: space-between;
    transform: translateX(-50%);
}

.ottoai-bot-eye {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ottoai-dark);
}

/* Mund */
.ottoai-bot-mouth {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 60%;
    height: 6px;
    border-radius: 4px;
    border: 2px solid var(--ottoai-dark);
    border-top: none;
    transform: translateX(-50%);
    background: transparent;
}
