/* ── TQ Chatbot / Baumix ────────────────────────────────────── */

#tq-chatbot-wrapper {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #16392d;
    box-sizing: border-box;
}

#tq-chatbot-wrapper *,
#tq-chatbot-wrapper *::before,
#tq-chatbot-wrapper *::after {
    box-sizing: border-box;
}

#tq-chatbot-launcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Baumix ausblenden, solange die Chatbox offen ist */
#tq-chatbot-wrapper.tq-chat-is-open #tq-chatbot-launcher {
    display: none !important;
}

/* Toggle Button / Baumix Figur */
#tq-chatbot-toggle {
    width: 98px !important;
    height: 108px !important;
    border: 1px solid rgba(18, 89, 61, 0.18) !important;
    border-radius: 30px !important;
    background:
        radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.82) 0 12%, transparent 13%),
        linear-gradient(180deg, #f4fff1 0%, #dff6d7 52%, #c5eab9 100%) !important;
    color: #fff;
    box-shadow:
        0 20px 44px rgba(9, 48, 32, 0.22),
        0 8px 18px rgba(9, 48, 32, 0.16) !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    position: relative;
    overflow: visible;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

#tq-chatbot-toggle:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(18, 89, 61, 0.28) !important;
    box-shadow:
        0 24px 54px rgba(9, 48, 32, 0.28),
        0 9px 20px rgba(9, 48, 32, 0.18) !important;
}

#tq-chatbot-toggle:active {
    transform: translateY(0) scale(0.98);
}

#tq-chatbot-toggle:focus-visible,
#tq-chatbot-close:focus-visible,
#tq-chatbot-send:focus-visible,
#tq-baumio-intro-close:focus-visible,
.tq-btn:focus-visible {
    outline: 3px solid rgba(0, 109, 103, 0.26);
    outline-offset: 3px;
}

#tq-chatbot-toggle .tq-chat-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
    line-height: 1 !important;
}

#tq-chatbot-toggle .tq-chat-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.tq-chat-icon,
.tq-chat-label {
    line-height: 1;
}

/* Baumix Baum-Figur – technische Klassen bleiben tq-baumio-* */
.tq-baumio-tree {
    width: 74px;
    height: 86px;
    position: relative;
    display: block;
    filter: drop-shadow(0 7px 8px rgba(9, 48, 32, 0.22));
    animation: tq-baumio-float 3.3s ease-in-out infinite;
}

.tq-baumio-crown {
    position: absolute;
    left: 5px;
    top: 0;
    width: 64px;
    height: 61px;
    border-radius: 48% 52% 44% 56% / 54% 48% 52% 46%;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.38) 0 12%, transparent 13%),
        radial-gradient(circle at 70% 20%, rgba(214, 255, 203, 0.42) 0 13%, transparent 14%),
        linear-gradient(145deg, #62c954 0%, #2e9c42 54%, #176c32 100%);
    box-shadow:
        inset 0 -11px 15px rgba(9, 75, 29, 0.25),
        inset 0 8px 13px rgba(255, 255, 255, 0.24);
}

.tq-baumio-crown::before,
.tq-baumio-crown::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
}

.tq-baumio-crown::before {
    width: 40px;
    height: 40px;
    left: -10px;
    top: 13px;
}

.tq-baumio-crown::after {
    width: 43px;
    height: 43px;
    right: -10px;
    top: 10px;
}

.tq-baumio-face {
    position: absolute;
    left: 50%;
    top: 49%;
    transform: translate(-50%, -50%);
    width: 43px;
    height: 28px;
}

.tq-baumio-eye {
    position: absolute;
    top: 4px;
    width: 9px;
    height: 10px;
    border-radius: 999px;
    background: #14341d;
    animation: tq-baumio-blink 4.7s infinite;
    transform-origin: center;
}

.tq-baumio-eye-left {
    left: 9px;
}

.tq-baumio-eye-right {
    right: 9px;
}

.tq-baumio-mouth {
    position: absolute;
    left: 50%;
    top: 18px;
    width: 15px;
    height: 9px;
    border-bottom: 3px solid rgba(20, 52, 29, 0.82);
    border-radius: 0 0 999px 999px;
    transform: translateX(-50%);
}

.tq-baumio-trunk {
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 22px;
    height: 36px;
    border-radius: 9px 9px 6px 6px;
    background: linear-gradient(180deg, #a66a39 0%, #714120 100%);
    transform: translateX(-50%);
    box-shadow:
        inset 4px 0 0 rgba(255, 255, 255, 0.11),
        inset -4px 0 0 rgba(35, 17, 8, 0.13);
    z-index: -1;
}

.tq-baumio-trunk::before,
.tq-baumio-trunk::after {
    content: "";
    position: absolute;
    bottom: 5px;
    width: 20px;
    height: 9px;
    border-radius: 999px;
    background: #714120;
}

.tq-baumio-trunk::before {
    left: -12px;
    transform: rotate(-22deg);
}

.tq-baumio-trunk::after {
    right: -12px;
    transform: rotate(22deg);
}

@keyframes tq-baumio-blink {
    0%,
    88%,
    100% {
        height: 10px;
        transform: scaleY(1);
    }

    90%,
    94% {
        height: 2px;
        transform: scaleY(0.25);
    }
}

@keyframes tq-baumio-float {
    0%,
    100% {
        transform: translateY(0);
    }

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

/* Baumix Hover-Hinweis */
#tq-baumio-intro {
    position: absolute;
    right: 112px;
    bottom: 18px;
    width: min(310px, calc(100vw - 156px));
    background: #ffffff;
    color: #16392d;
    border: 1px solid rgba(25, 107, 72, 0.18);
    border-radius: 20px;
    box-shadow: 0 18px 46px rgba(9, 48, 32, 0.18);
    padding: 15px 42px 15px 16px;
    font-size: 14px;
    line-height: 1.42;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0.16s ease;
}

#tq-baumio-intro::after {
    content: "";
    position: absolute;
    right: -9px;
    bottom: 28px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-right: 1px solid rgba(25, 107, 72, 0.18);
    border-bottom: 1px solid rgba(25, 107, 72, 0.18);
    transform: rotate(-45deg);
}

#tq-baumio-intro strong {
    display: block;
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 800;
    color: #123427;
}

#tq-baumio-intro span {
    display: block;
    color: #31564a;
}

#tq-baumio-intro-close {
    position: absolute;
    right: 10px;
    top: 9px;
    width: 25px;
    height: 25px;
    border: 0;
    border-radius: 999px;
    background: #edf7ea;
    color: #1c5b32;
    cursor: pointer;
    font-size: 17px;
    line-height: 25px;
    text-align: center;
    padding: 0;
    z-index: 2;
    transition: background 0.15s ease, color 0.15s ease;
}

#tq-baumio-intro-close:hover {
    background: #dcefd7;
    color: #123427;
}

#tq-chatbot-launcher:hover #tq-baumio-intro,
#tq-chatbot-launcher:focus-within #tq-baumio-intro,
#tq-baumio-intro.tq-is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#tq-baumio-intro.tq-is-dismissed {
    display: none !important;
}

/* Chat Window */
#tq-chatbot-window {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 0;
    bottom: 122px;
    width: 390px;
    max-width: calc(100vw - 32px);
    height: min(650px, calc(100vh - 150px));
    background: #f7fbf6;
    border: 1px solid rgba(14, 76, 55, 0.14);
    border-radius: 24px;
    box-shadow:
        0 24px 70px rgba(6, 34, 25, 0.26),
        0 8px 22px rgba(6, 34, 25, 0.16);
    overflow: hidden;
}

#tq-chatbot-window.tq-open {
    display: flex;
}

/* Chatbox unten rechts, sobald Baumix ausgeblendet ist */
#tq-chatbot-wrapper.tq-chat-is-open #tq-chatbot-window {
    bottom: 0 !important;
}

/* Header */
#tq-chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background:
        radial-gradient(circle at 18% 0%, rgba(210, 255, 209, 0.2) 0 18%, transparent 19%),
        linear-gradient(135deg, #00716b 0%, #005b55 52%, #123c33 100%);
    color: #ffffff !important;
    padding: 15px 17px;
    font-weight: 900;
    font-size: 15.5px;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

#tq-chatbot-header,
#tq-chatbot-header span,
#tq-chatbot-header strong,
#tq-chatbot-header em,
#tq-chatbot-header button {
    color: #ffffff !important;
}

#tq-chatbot-header span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

#tq-chatbot-close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

#tq-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.04);
}

/* Messages */
#tq-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    background:
        linear-gradient(180deg, rgba(247, 251, 246, 0.96), rgba(240, 247, 236, 0.96));
    scroll-behavior: smooth;
}

.tq-msg {
    max-width: 88%;
    padding: 11px 14px;
    border-radius: 16px;
    font-size: 14.5px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.tq-msg-bot {
    background: #ffffff;
    border: 1px solid rgba(19, 83, 59, 0.12);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    color: #1f332b;
    box-shadow: 0 6px 16px rgba(20, 62, 45, 0.06);
}

.tq-msg-user {
    background: linear-gradient(135deg, #00716b 0%, #005b55 100%);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    box-shadow: 0 8px 18px rgba(0, 91, 85, 0.18);
}

/* Rechtlicher Hinweis innerhalb der ersten Baumix-Nachricht */
.tq-msg-legal-note {
    display: block;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(19, 83, 59, 0.12);
    color: #4a5e56;
    font-size: 11.5px;
    line-height: 1.42;
    font-weight: 400;
    white-space: normal;
}

.tq-msg-legal-note strong {
    color: #0b5f4a;
    font-weight: 800;
}

.tq-msg-legal-note a {
    color: #006b55;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tq-msg-legal-note a:hover {
    color: #004f3f;
}

/* Foto Preview */
.tq-photo-preview {
    padding: 6px !important;
    background: #00716b !important;
}

.tq-photo-preview img {
    display: block;
    max-width: 210px;
    max-height: 210px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

/* Typing Indicator */
.tq-typing {
    display: flex !important;
    gap: 4px;
    padding: 12px 16px !important;
    align-items: center;
    width: auto;
    max-width: 82px;
}

.tq-typing span {
    width: 7px;
    height: 7px;
    background: #00716b;
    border-radius: 50%;
    animation: tq-bounce 1.2s infinite;
}

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

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

@keyframes tq-bounce {
    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }
}

/* Input Area */
#tq-chatbot-input-area {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border-top: 1px solid rgba(19, 83, 59, 0.12);
    background: #ffffff;
    flex-shrink: 0;
}

#tq-chatbot-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 1px solid rgba(0, 113, 107, 0.36);
    border-radius: 999px;
    padding: 9px 15px;
    font-size: 14.5px;
    color: #18382d;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

#tq-chatbot-input::placeholder {
    color: #7a8e86;
}

#tq-chatbot-input:focus {
    border-color: #00716b;
    box-shadow: 0 0 0 4px rgba(0, 113, 107, 0.11);
}

#tq-chatbot-input:disabled {
    background: #f2f5f0;
    color: #8a938d;
}

#tq-chatbot-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00716b 0%, #005b55 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, opacity 0.2s, transform 0.15s ease;
}

#tq-chatbot-send:hover {
    background: linear-gradient(135deg, #00645f 0%, #10463e 100%);
    transform: translateY(-1px);
}

#tq-chatbot-send:disabled {
    opacity: 0.55;
    cursor: default;
    transform: none;
}

/* Angebot-Buttons */
.tq-angebot {
    max-width: 96% !important;
}

.tq-angebot p {
    margin: 0 0 8px;
}

.tq-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
}

.tq-btn {
    appearance: none;
    background: #eef8f4;
    border: 1px solid rgba(0, 113, 107, 0.48);
    color: #00645f;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1.25;
    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s,
        opacity 0.15s,
        transform 0.15s;
}

.tq-btn:hover {
    background: #00716b;
    color: #ffffff;
    border-color: #00716b;
    transform: translateY(-1px);
}

.tq-btn:disabled {
    opacity: 0.48;
    cursor: default;
}

.tq-btn:disabled:hover {
    background: #eef8f4;
    color: #00645f;
    transform: none;
}

.tq-btn-ja {
    background: #00716b;
    color: #ffffff;
    border-color: #00716b;
}

.tq-btn-ja:hover {
    background: #005b55;
    border-color: #005b55;
}

.tq-btn-photo {
    border-color: rgba(47, 143, 58, 0.55);
    color: #2f7f39;
    background: #f1fbef;
}

.tq-btn-photo:hover {
    background: #2f8f3a;
    border-color: #2f8f3a;
    color: #ffffff;
}

/* Flexible Vorschläge */
.tq-suggestions {
    max-width: 96% !important;
    background: #ffffff;
    border: 1px solid rgba(19, 83, 59, 0.12);
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    z-index: 1 !important;
    margin-top: 10px !important;
    white-space: normal !important;
}

.tq-suggestions-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 900;
    color: #00716b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tq-suggestion-row {
    gap: 7px;
}

.tq-btn-suggestion {
    background: #ffffff;
    border-color: rgba(0, 113, 107, 0.28);
    color: #005b55;
    font-size: 12.5px;
    padding: 7px 12px;
}

.tq-btn-suggestion:hover {
    background: #e9f6f4;
    color: #005b55;
    border-color: #00716b;
}

/* ── Strukturierter Steckbrief ─────────────────────────────── */

#tq-chatbot-messages .tq-msg.tq-steckbrief,
#tq-chatbot-messages .tq-msg.tq-steckbrief-structured {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    align-self: flex-start !important;
    width: 100% !important;
    max-width: 98% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
    white-space: normal !important;
    background: #ffffff !important;
    border: 1px solid #dfece9 !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 24px rgba(10, 57, 43, 0.08) !important;
}

#tq-chatbot-messages .tq-msg.tq-steckbrief::after,
#tq-chatbot-messages .tq-msg.tq-steckbrief-structured::after {
    content: "" !important;
    display: block !important;
    clear: both !important;
}

#tq-chatbot-messages .tq-steckbrief *,
#tq-chatbot-messages .tq-steckbrief-structured * {
    box-sizing: border-box !important;
}

#tq-chatbot-messages .tq-steckbrief-structured > * {
    position: relative !important;
    float: none !important;
    clear: both !important;
}

#tq-chatbot-messages .tq-steck-header {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px 18px 14px !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(210, 255, 209, 0.2) 0 18%, transparent 19%),
        linear-gradient(135deg, #006b60 0%, #004f49 58%, #123c33 100%) !important;
    color: #ffffff !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#tq-chatbot-messages .tq-steck-header h3 {
    display: block !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#tq-chatbot-messages .tq-steck-header p,
#tq-chatbot-messages .tq-steck-lat {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    opacity: 0.96 !important;
    visibility: visible !important;
}

#tq-chatbot-messages .tq-steck-header em,
#tq-chatbot-messages .tq-steck-lat em {
    color: #ffffff !important;
    font-style: italic !important;
}

#tq-chatbot-messages .tq-steck-body {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 0 14px !important;
    background: #ffffff !important;
    white-space: normal !important;
}

#tq-chatbot-messages .tq-steck-sections {
    display: flex !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 14px 16px 6px !important;
    white-space: normal !important;
}

#tq-chatbot-messages .tq-steck-section {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 0 11px !important;
    border-bottom: 1px solid #edf2ef !important;
    white-space: normal !important;
}

#tq-chatbot-messages .tq-steck-section:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#tq-chatbot-messages .tq-steck-section-title {
    display: flex !important;
    position: relative !important;
    float: none !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #005f55 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 900 !important;
    white-space: normal !important;
}

#tq-chatbot-messages .tq-steck-section-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    min-width: 20px !important;
    color: inherit !important;
}

#tq-chatbot-messages .tq-steck-section-rows {
    display: flex !important;
    position: relative !important;
    float: none !important;
    flex-direction: column !important;
    gap: 7px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
}

#tq-chatbot-messages .tq-steck-section-row,
#tq-chatbot-messages .tq-steck-row {
    display: grid !important;
    position: relative !important;
    float: none !important;
    grid-template-columns: minmax(112px, 38%) 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    align-items: start !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.42 !important;
    white-space: normal !important;
}

#tq-chatbot-messages .tq-steck-section-label,
#tq-chatbot-messages .tq-steck-row-label {
    display: block !important;
    color: #6a7772 !important;
    font-weight: 800 !important;
    white-space: normal !important;
}

#tq-chatbot-messages .tq-steck-section-value,
#tq-chatbot-messages .tq-steck-row-value {
    display: block !important;
    color: #26342f !important;
    font-weight: 600 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    white-space: normal !important;
}

/* Alte Feldliste bleibt als Fallback sauber sichtbar */
#tq-chatbot-messages .tq-steck-felder {
    display: flex !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    flex-direction: column !important;
    gap: 7px !important;
    width: 100% !important;
    padding: 12px 16px 6px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#tq-chatbot-messages .tq-steck-zeile {
    display: grid !important;
    grid-template-columns: 24px minmax(92px, auto) 1fr !important;
    gap: 8px !important;
    align-items: start !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

#tq-chatbot-messages .tq-steck-icon,
#tq-chatbot-messages .tq-steck-label,
#tq-chatbot-messages .tq-steck-wert {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#tq-chatbot-messages .tq-steck-label {
    color: #6e7b75 !important;
    font-weight: 700 !important;
}

#tq-chatbot-messages .tq-steck-wert {
    color: #26342f !important;
    font-weight: 600 !important;
}

/* Beschreibung / Hinweise */
#tq-chatbot-messages .tq-steck-desc {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    margin: 10px 16px 0 !important;
    padding-top: 10px !important;
    border-top: 1px solid #eef2ef !important;
    color: #41534c !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#tq-chatbot-messages .tq-steck-special {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    margin: 10px 16px 0 !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    background: #eef8ef !important;
    color: #005f55 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fotos im Steckbrief */
#tq-chatbot-messages .tq-steck-fotos {
    display: flex !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    flex-direction: column !important;
    gap: 9px !important;
    width: 100% !important;
    height: auto !important;
    margin: 8px 0 0 !important;
    padding: 12px 16px !important;
    border-top: 1px solid #edf2ef !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#tq-chatbot-messages .tq-steck-foto-gruppe {
    display: block !important;
    position: relative !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

#tq-chatbot-messages .tq-steck-foto-label {
    display: block !important;
    margin: 0 0 6px !important;
    color: #5f746d !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.35px !important;
}

#tq-chatbot-messages .tq-steck-foto-reihe {
    display: flex !important;
    position: relative !important;
    float: none !important;
    flex-direction: row !important;
    gap: 7px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 2px !important;
}

#tq-chatbot-messages .tq-steck-foto-reihe img {
    display: block !important;
    width: 94px !important;
    height: 72px !important;
    min-width: 94px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid #dfe8e3 !important;
    flex: 0 0 auto !important;
}

/* Link / Datenstand / Frage */
#tq-chatbot-messages .tq-steck-link,
#tq-chatbot-messages .tq-steck-datenstand,
#tq-chatbot-messages .tq-steck-frage {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    width: auto !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    white-space: normal !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#tq-chatbot-messages .tq-steck-link {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
}

#tq-chatbot-messages .tq-steck-link a {
    color: #005f55 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(0, 95, 85, 0.24) !important;
}

#tq-chatbot-messages .tq-steck-link a:hover {
    color: #003f39 !important;
    border-bottom-color: #003f39 !important;
}

#tq-chatbot-messages .tq-steck-datenstand {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    color: #7a8580 !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
}

#tq-chatbot-messages .tq-steck-frage {
    margin-top: 12px !important;
    margin-bottom: 16px !important;
    color: #005f55 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 900 !important;
}

/* Scrollbar dezent */
#tq-chatbot-messages::-webkit-scrollbar,
.tq-steck-foto-reihe::-webkit-scrollbar {
    width: 8px;
    height: 6px;
}

#tq-chatbot-messages::-webkit-scrollbar-thumb,
.tq-steck-foto-reihe::-webkit-scrollbar-thumb {
    background: rgba(0, 113, 107, 0.26);
    border-radius: 999px;
}

#tq-chatbot-messages::-webkit-scrollbar-track,
.tq-steck-foto-reihe::-webkit-scrollbar-track {
    background: transparent;
}

/* Tablet / kleine Screens */
@media (max-width: 720px) {
    #tq-chatbot-wrapper {
        right: 16px;
        bottom: 16px;
    }

    #tq-chatbot-window {
        width: 380px;
        height: min(640px, calc(100dvh - 90px));
    }
}

/* Mobile */
@media (max-width: 520px) {
    #tq-chatbot-wrapper {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
    }

    #tq-chatbot-launcher {
        margin-left: auto;
    }

    #tq-chatbot-wrapper.tq-chat-is-open #tq-chatbot-launcher {
        display: none !important;
    }

    #tq-chatbot-toggle {
        width: 84px !important;
        height: 94px !important;
        margin-left: auto;
        border-radius: 26px !important;
    }

    #tq-chatbot-toggle .tq-chat-icon {
        transform: scale(0.86);
    }

    #tq-baumio-intro {
        right: 94px;
        bottom: 13px;
        width: min(255px, calc(100vw - 122px));
        font-size: 13px;
        padding: 13px 38px 13px 14px;
        border-radius: 17px;
    }

    #tq-chatbot-window {
        position: absolute;
        right: 0;
        left: 0;
        width: auto;
        max-width: none;
        bottom: 108px;
        height: min(660px, calc(100dvh - 24px));
        border-radius: 22px;
    }

    #tq-chatbot-wrapper.tq-chat-is-open #tq-chatbot-window {
        bottom: 0 !important;
    }

    #tq-chatbot-header {
        padding: 14px 15px;
        font-size: 15px;
    }

    #tq-chatbot-close {
        width: 32px;
        height: 32px;
    }

    #tq-chatbot-messages {
        padding: 12px;
        gap: 8px;
    }

    .tq-msg {
        max-width: 93%;
        font-size: 14px;
        padding: 10px 13px;
    }

    .tq-msg-legal-note {
        font-size: 10.8px;
        line-height: 1.38;
        margin-top: 9px;
        padding-top: 8px;
    }

    #tq-chatbot-input-area {
        padding: 10px;
        gap: 8px;
    }

    #tq-chatbot-input {
        height: 42px;
        font-size: 14px;
    }

    #tq-chatbot-send {
        width: 42px;
        height: 42px;
    }

    .tq-angebot,
    .tq-suggestions {
        max-width: 100% !important;
    }

    .tq-btn-row {
        gap: 7px;
    }

    .tq-btn {
        font-size: 12.5px;
        padding: 7px 11px;
    }

    #tq-chatbot-messages .tq-msg.tq-steckbrief,
    #tq-chatbot-messages .tq-msg.tq-steckbrief-structured {
        max-width: 100% !important;
        border-radius: 18px !important;
    }

    #tq-chatbot-messages .tq-steck-header {
        padding: 15px 16px 13px !important;
    }

    #tq-chatbot-messages .tq-steck-header h3 {
        font-size: 19px !important;
    }

    #tq-chatbot-messages .tq-steck-sections {
        padding: 13px 14px 5px !important;
        gap: 11px !important;
    }

    #tq-chatbot-messages .tq-steck-section-title {
        font-size: 14.5px !important;
    }

    #tq-chatbot-messages .tq-steck-section-row,
    #tq-chatbot-messages .tq-steck-row {
        grid-template-columns: 1fr !important;
        gap: 2px !important;
        font-size: 13.5px !important;
    }

    #tq-chatbot-messages .tq-steck-section-label,
    #tq-chatbot-messages .tq-steck-row-label {
        color: #62746d !important;
    }

    #tq-chatbot-messages .tq-steck-felder {
        padding: 12px 14px 6px !important;
    }

    #tq-chatbot-messages .tq-steck-zeile {
        grid-template-columns: 22px 1fr !important;
        gap: 4px 8px !important;
    }

    #tq-chatbot-messages .tq-steck-label {
        grid-column: 2 !important;
    }

    #tq-chatbot-messages .tq-steck-wert {
        grid-column: 2 !important;
    }

    #tq-chatbot-messages .tq-steck-fotos {
        padding: 11px 14px !important;
    }

    #tq-chatbot-messages .tq-steck-foto-reihe img {
        width: 88px !important;
        height: 66px !important;
        min-width: 88px !important;
    }

    #tq-chatbot-messages .tq-steck-link,
    #tq-chatbot-messages .tq-steck-datenstand,
    #tq-chatbot-messages .tq-steck-frage {
        margin-left: 14px !important;
        margin-right: 14px !important;
    }
}

/* Sehr kleine Geräte */
@media (max-width: 380px) {
    #tq-chatbot-wrapper {
        right: 8px;
        bottom: 8px;
        left: 8px;
    }

    #tq-chatbot-window {
        height: min(640px, calc(100dvh - 18px));
        border-radius: 20px;
    }

    #tq-chatbot-header {
        font-size: 14px;
        padding: 13px 14px;
    }

    #tq-chatbot-messages {
        padding: 10px;
    }

    .tq-msg {
        max-width: 95%;
        font-size: 13.5px;
    }

    .tq-msg-legal-note {
        font-size: 10.4px;
        line-height: 1.36;
    }

    #tq-baumio-intro {
        right: 88px;
        width: min(238px, calc(100vw - 112px));
    }
}

/* Bewegungen reduzieren, wenn Nutzer das systemweit eingestellt hat */
@media (prefers-reduced-motion: reduce) {
    .tq-baumio-tree,
    .tq-baumio-eye,
    .tq-typing span {
        animation: none !important;
    }

    #tq-chatbot-toggle,
    #tq-chatbot-close,
    #tq-chatbot-send,
    .tq-btn,
    #tq-baumio-intro {
        transition: none !important;
    }
}

/* ── Baumix Notfall-Fix: Steckbrief wieder sichtbar ─────────── */

#tq-chatbot-messages .tq-msg.tq-steckbrief,
#tq-chatbot-messages .tq-msg.tq-steckbrief-structured {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    align-self: flex-start !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: unset !important;
    max-height: none !important;

    overflow: visible !important;
    padding: 0 !important;
    margin: 0 0 12px 0 !important;

    background: #ffffff !important;
    border: 1px solid #dfece9 !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 24px rgba(10, 57, 43, 0.08) !important;
    z-index: 1 !important;
}

#tq-chatbot-messages .tq-steck-header,
#tq-chatbot-messages .tq-steck-body,
#tq-chatbot-messages .tq-steck-sections,
#tq-chatbot-messages .tq-steck-section,
#tq-chatbot-messages .tq-steck-fotos,
#tq-chatbot-messages .tq-steck-link,
#tq-chatbot-messages .tq-steck-datenstand {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    overflow: visible !important;
}

#tq-chatbot-messages .tq-steck-header {
    width: 100% !important;
    padding: 16px 18px 14px !important;
    background: linear-gradient(135deg, #006b60 0%, #004f49 58%, #123c33 100%) !important;
    color: #ffffff !important;
}

#tq-chatbot-messages .tq-steck-header h3,
#tq-chatbot-messages .tq-steck-header p,
#tq-chatbot-messages .tq-steck-header em,
#tq-chatbot-messages .tq-steck-lat,
#tq-chatbot-messages .tq-steck-lat em {
    color: #ffffff !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#tq-chatbot-messages .tq-steck-body {
    width: 100% !important;
    padding: 0 0 14px !important;
    background: #ffffff !important;
}

#tq-chatbot-messages .tq-steck-sections {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 14px 16px 6px !important;
}

#tq-chatbot-messages .tq-steck-section-row,
#tq-chatbot-messages .tq-steck-row {
    display: grid !important;
    grid-template-columns: minmax(110px, 38%) 1fr !important;
    gap: 10px !important;
    width: 100% !important;
}

#tq-chatbot-messages .tq-steck-fotos {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    padding: 12px 16px !important;
}

#tq-chatbot-messages .tq-steck-foto-reihe {
    display: flex !important;
    flex-direction: row !important;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

#tq-chatbot-messages .tq-steck-foto-reihe img {
    display: block !important;
    width: 94px !important;
    height: 72px !important;
    min-width: 94px !important;
    object-fit: cover !important;
}
