.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ai-chat {
  --chat-orange: #e56634;
  --chat-orange-light: #f3955c;
  --chat-dark: #0d0e14;
  position: fixed;
  right: 22px;
  bottom: 156px;
  z-index: 190;
  font-family: 'Figtree', sans-serif;
}

.ai-chat-bar-button {
  white-space: nowrap;
  cursor: pointer;
}
.ai-chat-bar-button .ai-chat__launcher-icon {
  margin-right: 14px;
  font-size: 21px;
  line-height: 1;
}
.ai-chat-bar-button:focus-visible,
.ai-chat__close:focus-visible,
.ai-chat__suggestions button:focus-visible,
.ai-chat__form textarea:focus-visible,
.ai-chat__form button:focus-visible { outline: 3px solid #ffd1ad; outline-offset: 2px; }

.ai-chat__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 185px));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .38);
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
}

.ai-chat__panel[hidden] { display: none; }
.ai-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 16px;
  color: #fff;
  background: var(--chat-dark);
}
.ai-chat__header h2 { margin: 0; color: #fff; font-size: 19px; }
.ai-chat__header p { margin: 4px 0 0; color: #c9cbd1; font-size: 13px; }
.ai-chat__close { border: 0; color: #fff; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; }

.ai-chat__messages {
  overflow-y: auto;
  padding: 18px;
  background: #f5f5f7;
}
.ai-chat__message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.ai-chat__message--bot { color: #26272d; background: #fff; border-bottom-left-radius: 4px; }
.ai-chat__message--user { margin-left: auto; color: #fff; background: var(--chat-orange); border-bottom-right-radius: 4px; }
.ai-chat__message--status { color: #6a6c73; background: transparent; font-size: 13px; }

.ai-chat__suggestions { display: flex; gap: 7px; overflow-x: auto; padding: 10px 12px 0; background: #fff; }
.ai-chat__suggestions button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid #e2a078;
  border-radius: 999px;
  color: #9b431e;
  background: #fff8f3;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.ai-chat__form { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 12px; background: #fff; }
.ai-chat__form textarea {
  resize: none;
  max-height: 100px;
  padding: 11px 12px;
  border: 1px solid #d8d9dd;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
}
.ai-chat__form button {
  align-self: end;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--chat-orange);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ai-chat__form button:disabled { opacity: .55; cursor: wait; }
.ai-chat__notice { margin: 0; padding: 0 12px 12px; color: #777980; background: #fff; font-size: 10px; line-height: 1.35; }

@media (max-width: 768px) {
  .ai-chat { right: 12px; bottom: 12px; }
  .ai-chat__panel { height: min(620px, calc(100vh - 24px)); }
}

@media (min-width: 769px) and (max-width: 1300px) {
  .kontakt-footer .kontakt-content { padding: 0 2%; }
  .kontakt-footer .kontakt-buttons { gap: 10px; }
  .kontakt-footer .kontakt-button { min-width: 0; padding: 18px 16px; font-size: 14px; }
  .kontakt-footer .button-icon { margin-right: 12px; }
}

@media (max-width: 430px) {
  .ai-chat__panel { width: calc(100vw - 24px); }
}
