/* === Chatbot-Container (Position der gesamten Box) === */
#hs-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;

    /* wichtig: kein flex, kein grid */
    display: block;
    width: auto;
    height: auto;
}


/* === Chat-Button === */

.hs-chatbot-toggle {
    position: relative;
    z-index: 2;

    background: #00aa44 !important; /* grün, damit du es siehst */
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    text-align: center;
    /*display: inline-block;*/
    margin-bottom: 8px; /* Abstand zum Fenster */
	
	/* alter toggle Button abschalten */
	 display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* === Chat-Fenster (Start: unsichtbar) === */
.hs-chatbot-window {
    position: absolute;
    right: 0;
    bottom: 100px; /* sitzt über dem Button */

    display: flex;
    flex-direction: column;
    width: 320px;
    height: 420px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.35);
    overflow: hidden;

    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hs-chatbot-close {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    xxfont-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 9999;
    user-select: none;
	color:#fff;
}
.hs-chatbot-close:hover {
    opacity: 0.6;
}



.hs-chatbot-window.hs-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
	border: 1px solid #fff;
}


/* === Header === */
.hs-chatbot-header {
    background: #285677 !important;
    color: #ffffff;
    padding: 10px;
    font-size: 18px;
	text-align: center;
}

/* === Nachrichtenbereich === */
.hs-chatbot-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 13px;
    background: #f7f7f7 url(./assets/background.jpg);
}

/* === Eingabebereich === */
.hs-chatbot-input {
    display: flex;
    border-top: 1px solid #cccccc;
}

.hs-chatbot-input input {
    flex: 1;
    border: none;
    padding: 8px;
    font-size: 14px;
    outline: none;
	color:#000;
}

.hs-chatbot-input button {
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 15px;
    background: green !important;
    color: #ffffff;
}

/* === Nachrichtenblasen === */
.hs-msg {
    margin-bottom: 8px;
    display: flex;
}

.hs-msg-user {
    justify-content: flex-end;
}

.hs-msg-bot {
    justify-content: flex-start;
}

.hs-msg-bubble {
    max-width: 80%;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}


.hs-msg-user .hs-msg-bubble {
    background: #e0f0ff;
	color:#000;
}

.hs-msg-bot .hs-msg-bubble {
    background: #fee5c0;
    border: 1px solid #dddddd;
	color:#000;
}

.hs-msg-bot .hs-msg-bubble a { #850000 !important;}

/* Chat-Button unten rechts */
.chat-button {
    position: fixed;
    right: 50px;
    bottom: 50px;
    padding: 14px 20px;
    background: #285677;  /* später je Kunde anpassen */
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 9999;

    /* Für Pop-In-Startzustand */
    opacity: 0;
    transform: scale(0.3);
    transform-origin: center center;

    /* wichtig für den Blubb-Ring */
    position: fixed;
}

/* Pop-In beim Laden (einmal) */
.chat-button.pop-in {
    animation: chatButtonPop 0.6s ease-out forwards;
}

/* Der Blubb-Ring außen herum – läuft dauerhaft */
.chat-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(18, 95, 61, 0.6); /* selbe Farbe wie Button, etwas transparent */
    pointer-events: none;
    animation: chatButtonBlubb 1.8s ease-out infinite;
}

/* Pop-In-Animation */
@keyframes chatButtonPop {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    60% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Blubb-Animation (pulsierender Ring) */
@keyframes chatButtonBlubb {
    0% {
        transform: scale(1);
        opacity: 0.7;
        box-shadow: 0 0 0 0 rgba(18, 95, 61, 0.6);
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
        box-shadow: 0 0 0 24px #6F8EA4;
    }
}

.hs-chatbot-figure {
    position: absolute;
    top: 0px;
    right: -10px;
    width: 90px; /* Größe anpassen */
    pointer-events: none; /* Bild nicht anklickbar */
    z-index: 99999;
}

.hs-chatbot-input {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hs-chatbot-input-row {
    display: flex;
    gap: 6px;
}

.hs-chatbot-input-row input[type="text"] {
    flex: 1;
}

.hs-chatbot-input {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hs-chatbot-input-row {
    display: flex;
    gap: 6px;
	border-bottom: 1px solid #c1c1c1;
}

.hs-chatbot-input-row input[type="text"] {
    flex: 1;
}

.hs-chatbot-hint {
    font-size: 12px;
    color: #fff;
    xxmargin-left: 2px;
    user-select: none;
	line-height: 130%;
    padding: 10px;
	text-align:center;
	background:#285677;
}
