:root {
  --flh-chatbot-overlay: rgba(8, 18, 14, 0.72);
}

.flh-bewerbungs-chatbot-root,
.flh-chatbot-page-button {
  --flh-primary: #059669;
  --flh-primary-dark: #047857;
  --flh-primary-soft: #d8f3e8;
  --flh-on-primary: #ffffff;
  --flh-ink: #102017;
  --flh-muted: #3d5348;
  --flh-border: #c5d4cc;
  --flh-surface: #ffffff;
  --flh-surface-soft: #eef3f0;
  --flh-shadow: 0 24px 70px rgba(8, 18, 14, 0.28);
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.flh-bewerbungs-chatbot-root *,
.flh-bewerbungs-chatbot-root *::before,
.flh-bewerbungs-chatbot-root *::after,
.flh-chatbot-page-button,
.flh-chatbot-page-button * {
  box-sizing: border-box;
}

.flh-chatbot-no-scroll {
  overflow: hidden;
}

.flh-chatbot-launcher,
.flh-chatbot-page-button,
.flh-bewerbungs-chatbot-root button,
.flh-bewerbungs-chatbot-root input {
  font: inherit;
}

.flh-chatbot-launcher,
.flh-chatbot-page-button {
  align-items: center;
  background: var(--flh-primary);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(4, 64, 45, 0.28);
  color: var(--flh-on-primary);
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  min-height: 54px;
  padding: 10px 18px 10px 13px;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.flh-chatbot-launcher {
  bottom: max(20px, env(safe-area-inset-bottom));
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  z-index: 9998;
}

.flh-chatbot-page-button {
  padding: 10px 18px;
}

.flh-chatbot-launcher:hover,
.flh-chatbot-page-button:hover {
  background: var(--flh-primary-dark);
  transform: translateY(-2px);
}

.flh-chatbot-launcher:active,
.flh-chatbot-page-button:active {
  transform: translateY(0) scale(0.98);
}

.flh-chatbot-launcher:focus-visible,
.flh-chatbot-page-button:focus-visible,
.flh-bewerbungs-chatbot-root button:focus-visible,
.flh-bewerbungs-chatbot-root a:focus-visible,
.flh-bewerbungs-chatbot-root input:focus-visible {
  outline: 3px solid #c2410c;
  outline-offset: 3px;
}

.flh-chatbot-launcher[hidden],
.flh-chatbot-backdrop[hidden] {
  display: none !important;
}

.flh-chatbot-launcher-icon {
  align-items: center;
  background: rgba(0, 0, 0, 0.14);
  border-radius: 50%;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.flh-chatbot-launcher-icon svg,
.flh-bewerbungs-chatbot-root svg {
  display: block;
  height: 20px;
  width: 20px;
}

.flh-chatbot-launcher-icon svg {
  height: 18px;
  width: 18px;
}

.flh-chatbot-launcher-label {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.flh-chatbot-backdrop {
  align-items: center;
  background: var(--flh-chatbot-overlay);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 9999;
}

.flh-chatbot-panel {
  animation: flh-chatbot-panel-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
  background: var(--flh-surface);
  color: var(--flh-ink);
  border: 1px solid #d7e3dc;
  border-radius: 24px;
  box-shadow: var(--flh-shadow);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  max-height: min(760px, calc(100vh - 32px));
  max-width: 590px;
  min-height: 520px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.flh-chatbot-header {
  align-items: center;
  background: #f4faf7;
  border-bottom: 1px solid var(--flh-border);
  color: var(--flh-ink);
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px 18px 14px 20px;
}

.flh-chatbot-identity {
  align-items: center;
  display: flex;
  gap: 11px;
  min-width: 0;
}

.flh-chatbot-avatar {
  align-items: center;
  background: var(--flh-primary);
  border: 3px solid #d1fae5;
  border-radius: 50%;
  color: var(--flh-on-primary);
  display: flex;
  flex: 0 0 45px;
  height: 45px;
  justify-content: center;
  width: 45px;
}

.flh-chatbot-avatar svg {
  height: 22px;
  width: 22px;
}

.flh-chatbot-identity h2 {
  color: var(--flh-ink);
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0 0 4px;
}

.flh-chatbot-identity p {
  align-items: center;
  color: var(--flh-muted);
  display: flex;
  font-size: 0.8rem;
  font-weight: 600;
  gap: 6px;
  line-height: 1.2;
  margin: 0;
}

.flh-chatbot-status-dot {
  background: #15803d;
  border: 2px solid #bbf7d0;
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.flh-chatbot-header-actions {
  align-items: center;
  display: flex;
  gap: 9px;
  margin-left: 10px;
}

.flh-chatbot-powered {
  color: var(--flh-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.flh-chatbot-icon-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--flh-border);
  border-radius: 10px;
  color: var(--flh-ink);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.flh-chatbot-icon-button:hover {
  background: var(--flh-primary-soft);
  color: var(--flh-primary-dark);
}

.flh-chatbot-progress {
  background: var(--flh-surface);
  color: var(--flh-muted);
  padding: 10px 22px 12px;
}

.flh-chatbot-progress-label {
  color: var(--flh-muted);
  display: flex;
  font-size: 0.72rem;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flh-chatbot-progress-track {
  background: #d7e4de;
  border-radius: 99px;
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
}

.flh-chatbot-progress-track span {
  background: var(--flh-primary);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 280ms ease;
}

.flh-chatbot-messages {
  background: var(--flh-surface-soft);
  color: var(--flh-ink);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 20px 14px;
  scrollbar-color: #8aa399 transparent;
  scrollbar-width: thin;
}

.flh-chatbot-message {
  animation: flh-chatbot-message-in 230ms ease-out both;
  display: flex;
  margin-bottom: 12px;
}

.flh-chatbot-message--bot {
  justify-content: flex-start;
}

.flh-chatbot-message--user {
  justify-content: flex-end;
}

.flh-chatbot-bubble {
  border-radius: 18px;
  font-size: 0.96rem;
  line-height: 1.55;
  max-width: min(88%, 450px);
  padding: 12px 15px;
  white-space: normal;
}

.flh-chatbot-message--bot .flh-chatbot-bubble {
  background: #ffffff;
  border: 1px solid #c9d8d0;
  border-bottom-left-radius: 5px;
  color: var(--flh-ink);
}

.flh-chatbot-message--user .flh-chatbot-bubble {
  background: var(--flh-primary);
  border-bottom-right-radius: 5px;
  color: var(--flh-on-primary);
  font-weight: 700;
}

.flh-chatbot-typing {
  align-items: center;
  animation: flh-chatbot-message-in 230ms ease-out both;
  color: var(--flh-muted);
  display: flex;
  font-size: 0.8rem;
  font-weight: 600;
  gap: 4px;
  margin: 4px 0 7px 5px;
}

.flh-chatbot-typing span {
  animation: flh-chatbot-typing 1050ms ease-in-out infinite;
  background: var(--flh-primary);
  border-radius: 50%;
  display: block;
  height: 6px;
  opacity: 0.45;
  width: 6px;
}

.flh-chatbot-typing span:nth-child(2) {
  animation-delay: 120ms;
}

.flh-chatbot-typing span:nth-child(3) {
  animation-delay: 240ms;
}

.flh-chatbot-typing em {
  font-style: normal;
  margin-left: 4px;
}

.flh-chatbot-composer {
  background: var(--flh-surface);
  border-top: 1px solid var(--flh-border);
  color: var(--flh-ink);
  flex: 0 0 auto;
  padding: 15px 20px 18px;
}

.flh-chatbot-consent-card,
.flh-chatbot-step-form,
.flh-chatbot-review-form,
.flh-chatbot-choice-group {
  animation: flh-chatbot-composer-in 200ms ease-out both;
}

.flh-chatbot-consent-heading,
.flh-chatbot-choice-label,
.flh-chatbot-step-form label {
  color: var(--flh-ink);
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  margin: 0 0 9px;
}

.flh-chatbot-check-row {
  align-items: flex-start;
  color: var(--flh-ink);
  cursor: pointer;
  display: flex;
  font-size: 0.86rem;
  gap: 10px;
  line-height: 1.45;
  margin-bottom: 13px;
}

.flh-chatbot-check-row input {
  accent-color: var(--flh-primary);
  flex: 0 0 auto;
  height: 19px;
  margin: 1px 0 0;
  width: 19px;
}

.flh-bewerbungs-chatbot-root a {
  color: var(--flh-primary-dark);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.flh-chatbot-primary-button,
.flh-chatbot-secondary-button,
.flh-chatbot-choice-button,
.flh-chatbot-edit-button,
.flh-chatbot-back-link {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.flh-chatbot-primary-button {
  background: var(--flh-primary);
  border-radius: 12px;
  color: var(--flh-on-primary);
  font-size: 0.9rem;
  font-weight: 800;
  gap: 8px;
  min-height: 46px;
  padding: 10px 16px;
  width: 100%;
}

.flh-chatbot-primary-button svg,
.flh-chatbot-secondary-button svg,
.flh-chatbot-choice-button svg {
  height: 17px;
  width: 17px;
}

.flh-chatbot-primary-button:hover:not(:disabled) {
  background: var(--flh-primary-dark);
  transform: translateY(-1px);
}

.flh-chatbot-primary-button:disabled,
.flh-chatbot-choice-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.flh-chatbot-input-row {
  align-items: stretch;
  display: flex;
  gap: 9px;
}

.flh-chatbot-input-row input {
  background: #ffffff;
  border: 1.5px solid #9fb3a8;
  border-radius: 12px;
  color: var(--flh-ink);
  flex: 1;
  min-height: 46px;
  min-width: 0;
  padding: 10px 13px;
}

.flh-chatbot-input-row input::placeholder {
  color: #5d7268;
  opacity: 1;
}

.flh-chatbot-input-row input:focus {
  border-color: var(--flh-primary);
}

.flh-chatbot-step-form textarea {
  background: #ffffff;
  border: 1.5px solid #9fb3a8;
  border-radius: 12px;
  color: var(--flh-ink);
  display: block;
  font: inherit;
  margin-bottom: 9px;
  min-height: 96px;
  padding: 10px 13px;
  resize: vertical;
  width: 100%;
}

.flh-chatbot-step-form textarea:focus {
  border-color: var(--flh-primary);
  outline: none;
}

.flh-chatbot-step-form textarea::placeholder {
  color: #5d7268;
  opacity: 1;
}

.flh-chatbot-input-row .flh-chatbot-primary-button {
  flex: 0 0 auto;
  width: auto;
}

.flh-chatbot-choice-label {
  color: var(--flh-muted);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.flh-chatbot-choice-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flh-chatbot-choice-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flh-chatbot-choice-button {
  background: #ffffff;
  border: 1.5px solid #9fb3a8;
  border-radius: 11px;
  color: var(--flh-ink);
  font-size: 0.86rem;
  font-weight: 800;
  gap: 6px;
  justify-content: space-between;
  min-height: 46px;
  padding: 9px 12px;
  text-align: left;
}

.flh-chatbot-choice-button:hover {
  background: var(--flh-primary-soft);
  border-color: var(--flh-primary);
  color: var(--flh-primary-dark);
  transform: translateY(-1px);
}

.flh-chatbot-choice-button--outline {
  background: #ffffff;
  border-style: dashed;
  color: var(--flh-primary-dark);
}

.flh-chatbot-field-error,
.flh-chatbot-error {
  background: #fef2f2;
  border: 1px solid #f1b4b4;
  border-radius: 10px;
  color: #9f1239;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 10px 0 0;
  padding: 9px 11px;
}

.flh-chatbot-back-link {
  background: transparent;
  color: var(--flh-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 10px;
  min-height: 32px;
  padding: 3px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flh-chatbot-review-form {
  overflow: visible;
}

.flh-chatbot-panel--review {
  min-height: 0;
}

.flh-chatbot-panel--review .flh-chatbot-messages {
  flex: 0 0 auto;
  max-height: 118px;
  min-height: 72px;
  overflow: hidden;
  padding: 10px 16px 8px;
}

.flh-chatbot-panel--review .flh-chatbot-composer {
  flex: 1 0 auto;
  padding-top: 10px;
}

.flh-chatbot-panel--review .flh-chatbot-summary {
  margin-bottom: 8px;
  padding: 8px 10px;
}

.flh-chatbot-panel--review .flh-chatbot-summary-heading {
  margin-bottom: 4px;
  padding-bottom: 6px;
}

.flh-chatbot-panel--review .flh-chatbot-summary dl > div {
  padding: 2px 0;
}

.flh-chatbot-panel--review .flh-chatbot-altcha {
  margin-bottom: 8px;
  padding: 4px 8px;
}

.flh-chatbot-panel--review .flh-chatbot-altcha-label {
  display: none;
}

.flh-chatbot-panel--review .flh-chatbot-submit-note {
  margin-top: 6px;
}

.flh-chatbot-summary {
  background: var(--flh-surface-soft);
  border: 1px solid var(--flh-border);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 12px 13px;
}

.flh-chatbot-summary-heading {
  align-items: center;
  border-bottom: 1px solid var(--flh-border);
  color: var(--flh-ink);
  display: flex;
  font-size: 0.83rem;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.flh-chatbot-edit-button {
  background: transparent;
  color: var(--flh-primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  min-height: 32px;
  padding: 3px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flh-chatbot-summary dl {
  margin: 0;
}

.flh-chatbot-summary dl > div {
  align-items: baseline;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(78px, 0.35fr) 1fr;
  padding: 4px 0;
}

.flh-chatbot-summary dt {
  color: var(--flh-muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.flh-chatbot-summary dd {
  color: var(--flh-ink);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.flh-chatbot-summary dd span {
  color: var(--flh-muted);
  font-weight: 400;
}

.flh-chatbot-honeypot {
  height: 0;
  left: -9999px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  top: auto;
  width: 1px;
  z-index: -10;
}

.flh-chatbot-altcha {
  background: #ffffff;
  border: 1px solid var(--flh-border);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 8px 10px;
}

.flh-chatbot-altcha-label {
  align-items: center;
  color: var(--flh-muted);
  display: flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 6px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.flh-chatbot-altcha-label svg {
  color: var(--flh-primary-dark);
  height: 15px;
  width: 15px;
}

.flh-chatbot-altcha altcha-widget {
  display: block;
  max-width: 100%;
  --altcha-color-base: #ffffff;
  --altcha-color-border: #c5d4cc;
  --altcha-color-text: #102017;
  --altcha-color-border-focus: var(--flh-primary);
}

.flh-chatbot-submit-button {
  margin-top: 2px;
}

.flh-chatbot-submit-note {
  color: var(--flh-muted);
  font-size: 0.72rem;
  line-height: 1.4;
  margin: 8px 3px 0;
  text-align: center;
}

.flh-chatbot-spinner {
  animation: flh-chatbot-spin 850ms linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  border-top-color: currentColor;
  display: inline-block;
  height: 15px;
  width: 15px;
}

.flh-chatbot-success-card {
  align-items: center;
  animation: flh-chatbot-composer-in 220ms ease-out both;
  display: flex;
  flex-direction: column;
  padding: 3px 4px 1px;
  text-align: center;
}

.flh-chatbot-success-icon {
  align-items: center;
  background: #dcfce7;
  border-radius: 50%;
  color: #166534;
  display: flex;
  height: 42px;
  justify-content: center;
  margin-bottom: 9px;
  width: 42px;
}

.flh-chatbot-success-icon svg {
  height: 22px;
  width: 22px;
}

.flh-chatbot-success-card h3 {
  color: var(--flh-ink);
  font-size: 1rem;
  margin: 0 0 5px;
}

.flh-chatbot-success-card p {
  color: var(--flh-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 13px;
  max-width: 38ch;
}

.flh-chatbot-secondary-button {
  background: var(--flh-primary-soft);
  border: 1px solid var(--flh-primary);
  border-radius: 11px;
  color: var(--flh-primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  gap: 6px;
  min-height: 44px;
  padding: 9px 13px;
}

.flh-chatbot-secondary-button:hover {
  background: #ffffff;
}

@keyframes flh-chatbot-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes flh-chatbot-message-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flh-chatbot-composer-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flh-chatbot-typing {
  0%,
  55%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  28% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes flh-chatbot-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .flh-chatbot-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .flh-chatbot-panel {
    border-radius: 22px 22px 0 0;
    max-height: min(820px, 100dvh);
    min-height: min(640px, 100dvh);
  }

  .flh-chatbot-panel--review {
    min-height: 0;
  }

  .flh-chatbot-panel--review .flh-chatbot-messages {
    max-height: 88px;
    min-height: 56px;
    padding: 8px 14px 6px;
  }

  .flh-chatbot-header {
    padding: 13px 13px 12px 16px;
  }

  .flh-chatbot-powered {
    display: none;
  }

  .flh-chatbot-messages {
    padding: 16px 14px 10px;
  }

  .flh-chatbot-composer {
    padding: 13px 14px max(15px, env(safe-area-inset-bottom));
  }

  .flh-chatbot-launcher {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
  }
}

@media (max-width: 380px) {
  .flh-chatbot-choice-grid {
    grid-template-columns: 1fr;
  }

  .flh-chatbot-input-row {
    flex-direction: column;
  }

  .flh-chatbot-input-row .flh-chatbot-primary-button {
    width: 100%;
  }
}

.flh-bewerbungs-chatbot-root .flh-chatbot-panel,
.flh-bewerbungs-chatbot-root .flh-chatbot-progress,
.flh-bewerbungs-chatbot-root .flh-chatbot-composer {
  background: var(--flh-surface) !important;
  color: var(--flh-ink) !important;
}

.flh-bewerbungs-chatbot-root .flh-chatbot-header {
  background: #f4faf7 !important;
  color: var(--flh-ink) !important;
}

.flh-bewerbungs-chatbot-root .flh-chatbot-messages {
  background: var(--flh-surface-soft) !important;
  color: var(--flh-ink) !important;
}

.flh-bewerbungs-chatbot-root .flh-chatbot-identity h2,
.flh-bewerbungs-chatbot-root .flh-chatbot-step-form label {
  color: var(--flh-ink) !important;
}

.flh-bewerbungs-chatbot-root .flh-chatbot-input-row input,
.flh-bewerbungs-chatbot-root .flh-chatbot-step-form textarea {
  background: #ffffff !important;
  color: var(--flh-ink) !important;
}

.flh-bewerbungs-chatbot-root .flh-chatbot-message--bot .flh-chatbot-bubble {
  background: #ffffff !important;
}

.flh-bewerbungs-chatbot-root .flh-chatbot-message--user .flh-chatbot-bubble {
  background: var(--flh-primary) !important;
  color: var(--flh-on-primary) !important;
}

button.flh-chatbot-page-button,
.flh-bewerbungs-chatbot-root .flh-chatbot-launcher,
.flh-bewerbungs-chatbot-root .flh-chatbot-primary-button {
  background: var(--flh-primary) !important;
  color: var(--flh-on-primary) !important;
}

button.flh-chatbot-page-button:hover,
.flh-bewerbungs-chatbot-root .flh-chatbot-launcher:hover,
.flh-bewerbungs-chatbot-root .flh-chatbot-primary-button:hover:not(:disabled) {
  background: var(--flh-primary-dark) !important;
}

@media (prefers-reduced-motion: reduce) {
  .flh-bewerbungs-chatbot-root *,
  .flh-bewerbungs-chatbot-root *::before,
  .flh-bewerbungs-chatbot-root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
