iframe {
    height: 1300px;
}
body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    background-color: #02070c5e; 
    margin: 0; 
    padding: 20px; 
    min-height: auto; 
    position: relative; 
}

.chat-container { 
    width: 100%; 
    max-width: auto; 
    margin: 0 auto; 
    background: #fff; 
    border-radius: 15px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    display: block; 
}

.chat-header { 
    background-color: var(--topbar-1);
    color: white; 
    padding: 15px; 
    text-align: center; 
    font-size: 1.2em; 
    font-weight: bold; 
    border-top-left-radius: 15px; 
    border-top-right-radius: 15px; 
}

.chat-history { 
    padding: 5px; 
    height: 60vh; 
    overflow-y: auto; 
    background: #fafafa; 
    display: block; 
}

.message { 
    margin-bottom: 15px; 
    display: block; 
}

.user-message, .bot-message { 
    padding: 12px 18px; 
    border-radius: 12px; 
    max-width: 100%; 
    word-wrap: break-word; 
    display: inline-block; 
}

.user-message { 
    background-color: #007bff; 
    color: white; 
    float: right; 
    border-bottom-right-radius: 0; 
    clear: both; 
}

.bot-message { 
    background-color: #f5f7fa; 
    color: #333; 
    float: left; 
    border-bottom-left-radius: 0; 
    clear: both; 
    padding: 5px; 
}

.form-container { 
    margin: 0; 
    padding: 15px; 
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 10px; 
    float: left; 
    clear: both; 
}

.form-container h3 { 
    margin-top: 0; 
    font-size: 1.1em; 
    color: #333; 
}

.form-container label { 
    font-weight: bold; 
    margin-bottom: 5px; 
    display: block; 
}

.form-container input, .form-container select { 
    width: 100%; 
    padding: 8px; 
    margin-bottom: 10px; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    box-sizing: border-box; 
}

.form-container input[type="checkbox"] { 
    width: auto; 
    margin-right: 5px; 
}

.form-container input[type="submit"] { 
    background-color: #007bff; 
    color: white; 
    border: none; 
    padding: 10px; 
    cursor: pointer; 
    transition: background-color 0.3s; 
}

.form-container input[type="submit"]:hover { 
    background-color: #0056b3; 
}

.form-container input[type="submit"]:disabled { 
    background-color: #ccc; 
    cursor: not-allowed; 
}

.select2-container { 
    width: 100% !important; 
}

.typing-indicator { 
    display: none; 
    margin: 10px 20px; 
    clear: both; 
}

.typing-indicator span { 
    display: inline-block; 
    width: 8px; 
    height: 8px; 
    background-color: #007bff; 
    border-radius: 50%; 
    margin: 0 2px; 
    animation: bounce 0.6s infinite alternate; 
}

.typing-indicator span:nth-child(2) { 
    animation-delay: 0.2s; 
}

.typing-indicator span:nth-child(3) { 
    animation-delay: 0.4s; 
}

@keyframes bounce { 
    from { transform: translateY(0); } 
    to { transform: translateY(-10px); } 
}

.voice-animation { 
    display: none; 
    margin: 10px 20px; 
    clear: both; 
    text-align: center; 
}

.voice-animation .wave { 
    display: inline-block; 
    width: 6px; 
    height: 20px; 
    background-color: #007bff; 
    margin: 0 3px; 
    border-radius: 3px; 
    animation: wave 1.2s infinite ease-in-out; 
}

.voice-animation .wave:nth-child(2) { 
    animation-delay: 0.2s; 
}

.voice-animation .wave:nth-child(3) { 
    animation-delay: 0.4s; 
}

.voice-animation .wave:nth-child(4) { 
    animation-delay: 0.6s; 
}

.voice-animation .wave:nth-child(5) { 
    animation-delay: 0.8s; 
}

@keyframes wave { 
    0%, 100% { transform: scaleY(1); } 
    50% { transform: scaleY(2.5); } 
}

.chat-input { 
    padding: 15px; 
    background: #fff; 
    border-top: 1px solid #ddd; 
    display: flex; 
    align-items: center; 
    flex-wrap: nowrap; 
}

.chat-input textarea { 
    width: 60%; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    resize: none; 
    font-size: 1em; 
    outline: none; 
    display: inline-block; 
    vertical-align: middle; 
}

.chat-input textarea:focus { 
    border-color: #007bff; 
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3); 
}

.chat-input button { 
    width: 50px; 
    height: 50px; 
    border: none; 
    border-radius: 50%; 
    color: white; 
    font-size: 1.2em; 
    cursor: pointer; 
    display: inline-block; 
    vertical-align: middle; 
    margin-left: 10px; 
    transition: background-color 0.3s; 
}

.send-button { 
    background-color: #007bff; 
}

.send-button:hover { 
    background-color: #0056b3; 
}

.mic-button { 
    background-color: #ff4444; /* Passiv: Rot */ 
}

.mic-button.listening { 
    background-color: #00cc00; /* Aktiv: Grün */ 
}

.mic-button.paused { 
    background-color: #ffcc00; /* Pause: Gelb */ 
}

.mic-button:hover { 
    background-color: #cc0000; /* Passiv Hover: Dunkleres Rot */ 
}

.mic-button.listening:hover { 
    background-color: #009900; /* Aktiv Hover: Dunkleres Grün */ 
}

.mic-button.paused:hover { 
    background-color: #e6b800; /* Pause Hover: Dunkleres Gelb */ 
}

.chat-input button:disabled { 
    background-color: #ccc; 
    cursor: not-allowed; 
    opacity: 0.6; 
}

.company-info { 
    font-size: 0.9em; 
    color: #666; 
    text-align: center; 
    margin-top: 10px; 
}

/* Medienabfrage für mobile Geräte (max-width: 768px) */
@media (max-width: 768px) {
    .chat-input { 
        flex-direction: column; 
        align-items: stretch; 
        padding: 10px; 
    }

    .chat-input textarea { 
        width: auto; 
        margin-bottom: 10px; 
    }

    .chat-input button { 
        width: 100%; 
        margin-left: 0; 
        margin-top: 10px; 
        border-radius: 25px; 
    }

    .chat-input button:first-of-type { 
        margin-top: 0; 
    }
}

iframe { 
    width: 100%; 
    border: none; 
    min-height: 200px; 
}
.voice-toggle-button {
    background-color: #f1c40f; /* Gelb als Beispiel, passe es an */
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 5px;
    font-size: 16px;
}

.voice-toggle-button:hover {
    background-color: #e1b10e;
}
.buts {
    display: flex
;
    align-items: flex-end;
}
.buts button {
    margin: 4px;
}
.mic-button.paused {
    /* Stil für den Pause-Zustand während des Sprechens */
}

.mic-button.listening {
    color: #ffffff; /* Mikrofon grün, wenn es aktiv/hörend ist */
}

.mic-button.stopped {
    color: #ffffff; /* Mikrofon rot, wenn abgebrochen */
}