.wd-gmt {
    --gmt-fg: #0b0e14;
    --gmt-muted: #6b7280;
    --gmt-border: #e5e7eb;
    --gmt-bg-soft: #f3f4f6;
    --gmt-radius: 16px;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px;
    color: var(--gmt-fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}
.wd-gmt *, .wd-gmt *::before, .wd-gmt *::after { box-sizing: border-box; }

.wd-gmt__head { text-align: center; margin-bottom: 28px; }
.wd-gmt__title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.wd-gmt__subtitle {
    font-size: clamp(1.1rem, 2.6vw, 1.5rem);
    color: var(--gmt-muted);
    font-weight: 500;
    margin: 0 0 16px;
}
.wd-gmt__intro {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
}

/* Nachrichten */
.wd-gmt__messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.wd-gmt__msg {
    padding: 14px 16px;
    border-radius: var(--gmt-radius);
    line-height: 1.55;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.wd-gmt__msg--user {
    align-self: flex-end;
    background: var(--gmt-fg);
    color: #fff;
    max-width: 85%;
}
.wd-gmt__msg--bot {
    align-self: flex-start;
    background: var(--gmt-bg-soft);
    color: var(--gmt-fg);
    max-width: 95%;
    /* Bot-Antworten sind gerendertes HTML, kein Rohtext. */
    white-space: normal;
}

/* Formatierte Bot-Antworten */
.wd-gmt__msg--bot > :first-child { margin-top: 0; }
.wd-gmt__msg--bot > :last-child { margin-bottom: 0; }
.wd-gmt__msg--bot p { margin: 0 0 0.75em; }
.wd-gmt__msg--bot ul,
.wd-gmt__msg--bot ol {
    margin: 0 0 0.75em;
    padding-left: 1.4em;
}
.wd-gmt__msg--bot li { margin: 0.25em 0; }
.wd-gmt__msg--bot h3,
.wd-gmt__msg--bot h4,
.wd-gmt__msg--bot h5,
.wd-gmt__msg--bot h6 {
    margin: 1em 0 0.4em;
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.3;
}
.wd-gmt__msg--bot code {
    background: rgba(11, 14, 20, 0.07);
    border-radius: 4px;
    padding: 0.1em 0.35em;
    font-size: 0.9em;
}
.wd-gmt__msg--bot a { color: inherit; text-decoration: underline; }
.wd-gmt__msg--bot hr {
    border: none;
    border-top: 1px solid var(--gmt-border);
    margin: 0.9em 0;
}
.wd-gmt__table {
    overflow-x: auto;
    margin: 0 0 0.75em;
}
.wd-gmt__msg--bot table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.95em;
}
.wd-gmt__msg--bot th,
.wd-gmt__msg--bot td {
    border: 1px solid var(--gmt-border);
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
    background: #fff;
}
.wd-gmt__msg--bot th {
    background: rgba(11, 14, 20, 0.05);
    font-weight: 700;
}
.wd-gmt__msg--error { background: #fee2e2; color: #991b1b; }

.wd-gmt__typing { display: inline-flex; gap: 4px; }
.wd-gmt__typing span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--gmt-muted);
    animation: wd-gmt-blink 1.2s infinite both;
}
.wd-gmt__typing span:nth-child(2) { animation-delay: .2s; }
.wd-gmt__typing span:nth-child(3) { animation-delay: .4s; }
@keyframes wd-gmt-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* Formular */
.wd-gmt__form { display: flex; flex-direction: column; gap: 14px; }
.wd-gmt__input {
    width: 100%;
    border: 1px solid var(--gmt-border);
    border-radius: var(--gmt-radius);
    padding: 18px 20px;
    font-size: 1.05rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 130px;
    font-family: inherit;
    color: var(--gmt-fg);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.wd-gmt__input:focus {
    outline: none;
    border-color: var(--gmt-fg);
    box-shadow: 0 0 0 3px rgba(11, 14, 20, 0.08);
}
.wd-gmt__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: none;
    border-radius: var(--gmt-radius);
    background: var(--gmt-fg);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 18px 24px;
    cursor: pointer;
    transition: opacity .15s ease, transform .05s ease;
    font-family: inherit;
}
.wd-gmt__submit:hover { opacity: .9; }
.wd-gmt__submit:active { transform: translateY(1px); }
.wd-gmt__submit:disabled { opacity: .5; cursor: not-allowed; }

/* Beispielfragen */
.wd-gmt__examples { margin-top: 28px; }
.wd-gmt__examples-label {
    display: block;
    color: var(--gmt-muted);
    font-size: .95rem;
    margin-bottom: 12px;
}
.wd-gmt__chips { display: flex; flex-wrap: wrap; gap: 12px; }
.wd-gmt__chip {
    border: none;
    background: var(--gmt-bg-soft);
    color: var(--gmt-fg);
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s ease;
}
.wd-gmt__chip:hover { background: #e5e7eb; }
