/* ANY Leads – Prüf-Dialog. Primärfarbe aus dem Branding über --anyl-otp-primary (inline am Dialog). */
.anyl-otp {
  --anyl-otp-primary: #1f2d5c;
  --anyl-otp-contrast: #ffffff;
  --anyl-otp-text: #111827;
  --anyl-otp-muted: #6b7280;
  --anyl-otp-border: #e5e7eb;
  --anyl-otp-danger: #b91c1c;
  --anyl-otp-radius: 14px;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 400px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--anyl-otp-radius);
  background: #fff;
  color: var(--anyl-otp-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.25);
}
.anyl-otp[open] { animation: anyl-otp-in 0.18s ease-out; }
.anyl-otp::backdrop { background: rgba(17, 24, 39, 0.55); }
/* Ohne showModal (sehr alte Browser): als fixiertes Fenster. */
.anyl-otp:not(:modal)[open] { position: fixed; inset: 0; z-index: 2147483000; height: fit-content; }
.anyl-otp *, .anyl-otp *::before, .anyl-otp *::after { box-sizing: border-box; }

.anyl-otp__box { position: relative; padding: 28px 24px 22px; }
.anyl-otp__title {
  margin: 0 32px 6px 0;
  padding: 0;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--anyl-otp-text);
}
.anyl-otp__hint, .anyl-otp__text { margin: 0 0 14px; font-size: 15px; color: var(--anyl-otp-muted); }
.anyl-otp__text { color: var(--anyl-otp-text); }
.anyl-otp__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: var(--anyl-otp-danger);
  font-size: 14px;
}
.anyl-otp__error[hidden], .anyl-otp [hidden] { display: none !important; }

.anyl-otp__label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--anyl-otp-text); }
.anyl-otp__input {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--anyl-otp-border);
  border-radius: 10px;
  background: #fff;
  color: var(--anyl-otp-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 26px; /* ≥ 16px: kein Zoom auf iOS */
  letter-spacing: 0.4em;
  text-indent: 0.4em; /* gleicht den Abstand nach der letzten Ziffer aus */
  text-align: center;
  line-height: 1.2;
  box-shadow: none;
}
.anyl-otp__input:focus { outline: none; border-color: var(--anyl-otp-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--anyl-otp-primary) 25%, transparent); }

.anyl-otp__btn {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0 0 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
.anyl-otp__btn--primary { background: var(--anyl-otp-primary); color: var(--anyl-otp-contrast); }
.anyl-otp__btn--primary:hover:not(:disabled) { filter: brightness(1.08); }
.anyl-otp__btn:disabled { opacity: 0.6; cursor: default; }
.anyl-otp__choices { margin-bottom: 4px; }

.anyl-otp__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.anyl-otp__link {
  min-height: 44px;
  margin: 0;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--anyl-otp-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  cursor: pointer;
}
.anyl-otp__link:disabled { color: var(--anyl-otp-muted); text-decoration: none; cursor: default; }

.anyl-otp__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--anyl-otp-muted);
  font-family: inherit;
  font-size: 28px;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}
.anyl-otp__close:hover { background: #f3f4f6; color: var(--anyl-otp-text); }

.anyl-otp button:focus-visible { outline: 3px solid var(--anyl-otp-primary); outline-offset: 2px; }

/* Mobil: oben ausrichten, damit die Tastatur Eingabe und Knopf nicht verdeckt. */
@media (max-width: 600px) {
  .anyl-otp { margin: 16px auto auto; max-height: calc(100% - 32px); }
  .anyl-otp__box { padding: 24px 18px 16px; }
}

@keyframes anyl-otp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .anyl-otp[open] { animation: none; } }

/* Formular-Meldung beim Absende-Knopf (mehrstufige Formulare): volle Zeile im Flex-/Grid-Layout von Breakdance. */
.anyl-otp-form-error { flex: 0 0 100%; width: 100%; max-width: 100%; grid-column: 1 / -1; box-sizing: border-box; }
