/* Loaded inside the widget's Shadow DOM; page/theme rules cannot reach it. */
:host { all: initial; position: fixed !important; right: 24px !important; bottom: 24px !important; z-index: 999999 !important; display: block; width: 68px; height: 68px; color-scheme: light; }
.hirschgpt-shell { --red: #e2001a; --ink: #24272a; --muted: #686d73; position: relative; width: 100%; height: 100%; font: 14px/1.6 "HIRSCHgpt Open Sans", "Open Sans", Arial, sans-serif; color: var(--ink); text-align: left; letter-spacing: normal; }
*, *::before, *::after { box-sizing: border-box; }
button, textarea { margin: 0; font: inherit; text-transform: none; letter-spacing: normal; }
button { appearance: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .45; }
[hidden] { display: none !important; }
.screen-reader-text, .hirschgpt__honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; padding: 0 !important; border: 0 !important; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.hirschgpt__launcher { display: grid; place-items: center; width: 68px; height: 68px; padding: 7px; background: #fff; border: 1px solid #e1e2e4; border-radius: 50%; box-shadow: 0 5px 24px #171a2326; transition: transform .18s ease, box-shadow .18s ease; }
.hirschgpt__launcher::after { content: ""; position: absolute; right: 1px; top: 2px; width: 15px; height: 15px; border: 3px solid #fff; border-radius: 50%; background: var(--red); }
.hirschgpt__launcher:hover { transform: translateY(-3px); box-shadow: 0 10px 32px #171a2333; }
.hirschgpt__avatar { display: block; flex: 0 0 auto; width: 50px; height: 50px; object-fit: cover; border-radius: 50%; background: #fff; }
.hirschgpt__avatar svg { display: block; width: 100%; height: 100%; }
.hirschgpt__teaser { position: absolute; right: 82px; bottom: 9px; width: max-content; max-width: min(250px, calc(100vw - 125px)); padding: 12px 16px; background: #26292c; color: #fff; border-radius: 8px 8px 2px 8px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 20px #171a231a; animation: hg-enter .2s ease; }
.hirschgpt__dialog { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(416px, calc(100vw - 32px)); height: min(620px, calc(100vh - 48px)); height: min(620px, calc(100dvh - 48px)); overflow: hidden; background: #fff; border: 1px solid #dfe1e5; border-top: 3px solid var(--red); border-radius: 14px; box-shadow: 0 16px 60px #171a232b, 0 2px 10px #171a2314; animation: hg-enter .2s ease; }
.hirschgpt__header { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; padding: 18px 20px; background: #fff; border-bottom: 1px solid #eceef0; }
.hirschgpt__header .hirschgpt__avatar { width: 42px; height: 42px; border: 1px solid #eceef0; }
.hirschgpt__identity { min-width: 0; }
.hirschgpt__identity h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; font-weight: 750; line-height: 1.3; color: var(--ink); letter-spacing: -.5px; }
.hirschgpt__identity p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.hirschgpt__ai { display: inline-block; padding: 2px 5px; border: 1px solid #efced2; border-radius: 4px; color: #b70017; font-size: 9px; font-weight: 700; letter-spacing: .03em; }
.hirschgpt__close { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 11px; border: 0; border-radius: 7px; background: transparent; color: #697078; transition: background .18s ease; }
.hirschgpt__close:hover { background: #f1f2f4; color: var(--ink); }
.hirschgpt__close svg, .hirschgpt__send svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hirschgpt__messages { flex: 1 1 auto; min-height: 100px; padding: 24px 20px 16px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c5c9ce transparent; background: #fff; }
.hirschgpt__consent { display: flex; flex: 1 1 auto; align-items: flex-start; min-height: 0; padding: 24px 20px; overflow-y: auto; background: #fff; }
.hirschgpt__consent-copy { padding: 22px; background: #f5f6f7; border: 1px solid #eceef0; border-radius: 8px; font-size: 14px; line-height: 1.75; }
.hirschgpt__consent-copy p { margin: 0 0 22px; }
.hirschgpt__consent-copy a { color: #b50016; text-decoration: underline; text-underline-offset: 3px; }
.hirschgpt__accept { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border: 0; border-radius: 6px; background: var(--red); color: #fff; font-size: 14px; font-weight: 600; }
.hirschgpt__accept:hover { background: #b90015; }
.hirschgpt__message { width: fit-content; max-width: 94%; margin: 0 0 20px; padding: 0 2px; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.hirschgpt__message p { margin: 0 0 12px; }
.hirschgpt__message p:last-child { margin-bottom: 0; }
.hirschgpt__message strong { font-weight: 700; }
.hirschgpt__message a { color: #b50016; text-decoration: underline; text-underline-offset: 3px; }
.hirschgpt__message--assistant { padding: 14px 16px; background: #f5f6f7; border: 1px solid #eceef0; border-radius: 8px 8px 8px 2px; }
.hirschgpt__message--welcome { max-width: 100%; padding: 18px; background: #f5f6f7; border: 1px solid #eceef0; border-radius: 8px; }
.hirschgpt__message--welcome::before { content: "HIRSCH SERVO GRUPPE"; display: block; margin-bottom: 13px; color: #737980; font-size: 9px; font-weight: 700; letter-spacing: .11em; }
.hirschgpt__message--user { max-width: 86%; margin-left: auto; padding: 11px 15px; color: #fff; background: var(--red); border-radius: 10px 10px 2px 10px; }
.hirschgpt__message--user a { color: #fff; }
.hirschgpt__typing { display: flex; align-items: center; gap: 5px; width: 55px; padding: 15px 8px; }
.hirschgpt__typing span { width: 6px; height: 6px; border-radius: 50%; background: #9298a0; animation: hg-dot 1.1s infinite ease-in-out; }
.hirschgpt__typing span:nth-child(2) { animation-delay: .14s; }
.hirschgpt__typing span:nth-child(3) { animation-delay: .28s; }
.hirschgpt__retry { display: block; min-height: 36px; margin-top: 10px; padding: 6px 12px; border: 1px solid #cbd0d5; border-radius: 4px; background: #fff; color: var(--ink); }
.hirschgpt__composer { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 10px; margin: 0 16px; padding: 8px; background: #f6f7f8; border: 1px solid #dadee3; border-radius: 9px; transition: border-color .18s, box-shadow .18s; }
.hirschgpt__composer:focus-within { border-color: #b4b9c0; box-shadow: 0 0 0 3px #e2001a0d; }
.hirschgpt__composer textarea { display: block; flex: 1; min-width: 0; width: 100%; height: 44px; max-height: 100px; resize: none; padding: 10px 4px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 14px; line-height: 24px; outline: none; box-shadow: none; }
.hirschgpt__composer textarea::placeholder { color: #777e85; }
.hirschgpt__send { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: var(--red); color: #fff; transition: background .18s; }
.hirschgpt__send:hover { background: #b90015; }
.hirschgpt__privacy { flex: 0 0 auto; padding: 12px 20px 16px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.hirschgpt__privacy summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; list-style: none; cursor: pointer; }
.hirschgpt__privacy summary::-webkit-details-marker { display: none; }
.hirschgpt__privacy summary::before { content: "i"; display: inline-grid; place-items: center; width: 13px; height: 13px; border: 1px solid #91979d; border-radius: 50%; font-size: 9px; font-weight: 700; line-height: 1; }
.hirschgpt__privacy summary::after { content: "+"; margin-left: auto; font-size: 15px; }
.hirschgpt__privacy[open] summary::after { content: "−"; }
.hirschgpt__privacy div { max-height: 130px; padding-top: 8px; overflow-y: auto; }
.hirschgpt__privacy p { margin: 0; }
.hirschgpt__privacy a { color: #ad0014; text-decoration: underline; }
@keyframes hg-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hg-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (max-width: 600px) {
    :host { right: 16px !important; bottom: max(16px, env(safe-area-inset-bottom)) !important; width: 60px; height: 60px; }
    .hirschgpt__launcher { width: 60px; height: 60px; padding: 5px; }
    .hirschgpt__launcher .hirschgpt__avatar { width: 46px; height: 46px; }
    .hirschgpt__teaser { right: 72px; bottom: 5px; }
    .hirschgpt__dialog { position: fixed; inset: auto 10px max(10px, env(safe-area-inset-bottom)); width: calc(100vw - 20px); height: min(650px, calc(100vh - 20px)); height: min(650px, calc(100dvh - 20px)); border-radius: 12px; }
    .hirschgpt__header { padding: 14px 16px; }
    .hirschgpt__messages { padding: 18px 16px; }
    .hirschgpt__composer textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
