.sl-chat {
  --sl-green: #125440;
  --sl-accent: #007f3b;
  color: #18251f;
  font: 16px/1.5 system-ui, sans-serif;
}
.sl-chat *, .sl-chat *::before, .sl-chat *::after { box-sizing: border-box; }
.sl-chat [hidden] { display: none !important; }
.sl-chat-panel {
  position: fixed;
  inset: auto 24px 94px auto;
  z-index: 99990;
  width: min(440px, calc(100% - 48px));
  height: min(580px, calc(100vh - 145px));
  height: min(580px, calc(100dvh - 145px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dde3dc;
  border-radius: 22px;
  box-shadow: 0 12px 36px #172b2030;
}
.sl-chat-kopf { display: flex; align-items: center; gap: 8px; margin: 0 14px; padding: 12px 4px; border-bottom: 2px solid var(--sl-green); }
.sl-chat-kopf div { flex: 1; }
.sl-chat-kopf h2 { margin: 0; padding: 0; color: inherit; font: 700 19px/1.2 system-ui, sans-serif; }
.sl-chat-kopf p { font-size: 13px; margin: 4px 0 0; }
.sl-chat button { cursor: pointer; font: inherit; }
.sl-chat button:disabled { opacity: .55; cursor: default; }
.sl-chat button:focus-visible, .sl-chat a:focus-visible, .sl-chat textarea:focus-visible { outline: 3px solid #138456; outline-offset: 2px; }
.sl-chat-kopf button { width: 40px; height: 44px; border: 0; border-radius: 8px; background: #f1f5f0; color: var(--sl-green); font-size: 23px; }
.sl-chat-verlauf { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px; }
.sl-chat-text { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 95%; width: fit-content; margin: 0 0 10px; padding: 11px 14px; background: #f2f1ea; border-radius: 16px 16px 16px 5px; }
.sl-chat-nutzer { margin-left: auto; background: var(--sl-green); color: #fff; border-radius: 16px 16px 5px 16px; }
.sl-chat-text a { display: block; margin-top: 6px; color: #055c38; text-decoration: underline; }
.sl-chat-themen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sl-chat-themen button { min-height: 44px; padding: 5px; border-radius: 24px; border: 1px solid var(--sl-green); color: var(--sl-green); background: #fff; }
.sl-chat-status { margin: 6px 0 0; font-size: 13px; }
.sl-chat-formular { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px 5px; }
.sl-chat-formular textarea { width: 100%; min-width: 0; resize: none; padding: 8px 10px; border: 1px solid #aab8ad; border-radius: 13px; color: #18251f; background: #fff; font: inherit; }
.sl-chat-formular button, .sl-chat-blase { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--sl-accent); }
.sl-chat-blase { position: fixed; z-index: 99991; right: 24px; bottom: 20px; width: 60px; height: 60px; background: var(--sl-green); box-shadow: 0 5px 17px #164d383a; }
.sl-chat svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sl-chat-blase svg { width: 32px; height: 32px; }
.sl-chat-hinweis { margin: 0 14px 10px; color: #325344; font-size: 12px; }
.sl-chat-hinweis a { color: inherit; text-decoration: underline; }
.sl-chat-startaktionen { display: grid; gap: 12px; }
.sl-chat-startaktionen button { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 24px; background: var(--sl-green); color: #fff; }
.sl-chat-startaktionen a { color: var(--sl-green); text-decoration: underline; }
.sl-chat-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .sl-chat-panel { right: 10px; bottom: 76px; width: calc(100% - 20px); border-radius: 16px; }
  .sl-chat-blase { right: 12px; bottom: 12px; width: 54px; height: 54px; }
}
.sl-chat-kopf h2 { flex: 1; text-align: center; font-size: 16px; }
.sl-chat-kopf button { flex-shrink: 0; }
.sl-chat-panel.sl-chat-gross { width: min(760px, calc(100% - 32px)); height: min(820px, calc(100dvh - 110px)); }
.sl-chat [data-sl-menu] { flex: 1; padding: 20px; overflow: auto; }
.sl-chat [data-sl-menu] a, .sl-chat [data-sl-menu] button { display: block; margin: 12px 0; }
.sl-chat-themen { grid-template-columns: 1fr; }
.sl-chat-themen button { text-align: left; padding-inline: 14px; }
@media (max-width: 600px) {
  .sl-chat-panel, .sl-chat-panel.sl-chat-gross { max-height: calc(100dvh - 82px); }
  .sl-chat-panel.sl-chat-gross { inset: 0; width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; z-index: 99992; }
}
@media (max-width: 600px) {
  .sl-chat-panel { bottom: max(76px, var(--sl-keyboard, 0px)); max-height: calc(var(--sl-visible-height, 100dvh) - 48px); }
  .sl-chat-panel.sl-chat-gross { top: auto; bottom: var(--sl-keyboard, 0px); height: var(--sl-visible-height, 100dvh); max-height: var(--sl-visible-height, 100dvh); }
}

.sl-chat .sl-chat-klopf { display: none; }
.sl-chat .sl-chat-blase.sl-mit-klopf {
  width: 64px; height: 64px; padding: 0; border: 0;
  background: transparent; box-shadow: none;
}
.sl-chat .sl-mit-klopf .sl-chat-klopf {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
.sl-chat .sl-mit-klopf svg { display: none; }

.sl-chat .sl-klopf-kopf { position:relative; flex:0 0 44px; height:48px; padding:0; background:transparent; }
.sl-klopf-kopf img { width:100%; height:100%; object-fit:contain; }
.sl-pet-frame { position:absolute; inset:0; margin:auto; width:92.3%; height:100%; max-height:100%; background-size:800% 1100%; background-repeat:no-repeat; pointer-events:none; }
.sl-chat-blase .sl-pet-frame { height:100%; width:92.3%; }
.sl-chat .sl-pet-aktiv img { visibility:hidden; }
.sl-chat-menu select { max-width:100%; }
