.thorty-chatbot-toggle {
    width: 58px;
    height: 58px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #0868f7;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.thorty-chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.chatbot-robot {
    position: relative;
    display: block;
    width: 35px;
    height: 35px;

    animation: robot-float 2.2s ease-in-out infinite;
}

/* Antenne */

.robot-antenna {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 8px;
    background: white;
    border-radius: 3px;
    transform: translateX(-50%);
}

.robot-antenna::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    transform: translateX(-50%);

    animation: antenna-pulse 1.5s ease-in-out infinite;
}

/* Kopf */

.robot-head {
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 34px;
    height: 25px;
    border-radius: 9px;
    background: white;
    transform: translateX(-50%);
}

/* Augen */

.robot-eye {
    position: absolute;
    top: 7px;
    width: 5px;
    height: 6px;
    border-radius: 50%;
    background: #0868f7;

    animation: robot-blink 4s infinite;
}

.robot-eye-left {
    left: 8px;
}

.robot-eye-right {
    right: 8px;
}

/* Mund */

.robot-mouth {
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 10px;
    height: 3px;
    border-radius: 0 0 8px 8px;
    border-bottom: 2px solid #0868f7;
    transform: translateX(-50%);
}

/* Schwebende Bewegung */

@keyframes robot-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-4px) rotate(2deg);
    }
}

/* Augen blinzeln */

@keyframes robot-blink {
    0%,
    45%,
    55%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.1);
    }
}

/* Antenne leuchtet leicht */

@keyframes antenna-pulse {
    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) scale(1.35);
        opacity: 0.65;
    }
}

/* =========================================================
   THORTY FAQ-CHATBOT
   ========================================================= */

.thorty-chatbot {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    font-family: Arial, Helvetica, sans-serif;
}

.thorty-chatbot-toggle {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: #0d6efd;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.thorty-chatbot-toggle:hover {
    background: #0b5ed7;
    transform: scale(1.06);
}

.thorty-chatbot-toggle:focus-visible,
.thorty-chatbot-close:focus-visible,
.thorty-chatbot-send:focus-visible,
.thorty-chatbot-input:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.35);
    outline-offset: 2px;
}

.thorty-chatbot-window {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 360px;
    max-width: calc(100vw - 30px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.thorty-chatbot-window[hidden] {
    display: none;
}

.thorty-chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 18px;
    background: #111111;
    color: #ffffff;
    border-bottom: 4px solid #0d6efd;
}

.thorty-chatbot-header strong {
    display: block;
    font-size: 18px;
}

.thorty-chatbot-header span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #cfcfcf;
}

.thorty-chatbot-close {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.thorty-chatbot-messages {
    height: calc(100% - 145px);
    padding: 16px;
    overflow-y: auto;
    background: #f4f5f7;
    scroll-behavior: smooth;
    white-space: pre-line;
}

.thorty-chatbot-message {
    width: fit-content;
    max-width: 85%;
    margin-bottom: 12px;
    padding: 11px 13px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.thorty-chatbot-message-bot {
    margin-right: auto;
    background: #ffffff;
    color: #1c1c1c;
    border: 1px solid #dedede;
    border-bottom-left-radius: 4px;
}

.thorty-chatbot-message-user {
    margin-left: auto;
    background: #0d6efd;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.thorty-chatbot-form {
    padding: 13px;
    background: #ffffff;
    border-top: 1px solid #dedede;
}

.thorty-chatbot-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.thorty-chatbot-input-row {
    display: flex;
    gap: 8px;
}

.thorty-chatbot-input {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    font-size: 14px;
    color: #1c1c1c;
    background: #ffffff;
}

.thorty-chatbot-input::placeholder {
    color: #777777;
}

.thorty-chatbot-send {
    border: none;
    border-radius: 10px;
    padding: 0 15px;
    background: #0d6efd;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.thorty-chatbot-send:hover {
    background: #0b5ed7;
}

@media (max-width: 600px) {
    .thorty-chatbot {
        right: 14px;
        bottom: 14px;
    }

    .thorty-chatbot-window {
        position: fixed;
        right: 10px;
        bottom: 82px;
        left: 10px;
        width: auto;
        height: 68vh;
        max-width: none;
        max-height: none;
    }

    .thorty-chatbot-toggle {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }

    .thorty-chatbot-input-row {
        align-items: stretch;
    }

    .thorty-chatbot-send {
        padding: 0 12px;
    }
}

.thorty-chatbot-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0 14px 0;
}

.thorty-chatbot-suggestion {
    width: 100%;
    border: 1px solid #0d6efd;
    border-radius: 10px;
    padding: 7px 10px;
    background: #ffffff;
    color: #0d6efd;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.thorty-chatbot-suggestion:hover {
    background: #0d6efd;
    color: #ffffff;
    transform: translateX(3px);
}

.thorty-chatbot-suggestion:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.3);
    outline-offset: 2px;
}

.thorty-chatbot-answer-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	margin-top: 10px;
	padding: 10px 12px;
	border: 2px solid #006fff;
	border-radius: 10px;
	background-color: #006fff;
	color: #ffffff !important;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.thorty-chatbot-answer-link:hover {
	background-color: #0058cc;
	color: #ffffff !important;
	text-decoration: none !important;
	transform: translateY(-1px);
}

.thorty-chatbot-answer-link:focus-visible {
	outline: 3px solid rgba(0, 111, 255, 0.35);
	outline-offset: 2px;
}