/* ==========================================================================
   /register/ + /completed/ (06.11.2026)
   Angeglichen an die neue App-Registrierung (mesh-app-frontend,
   feature/first-run-experience: AuthLayout, FormLayout, SsoButtons,
   RegisterForm, AuthShowcase). Nur auf diesen beiden Seiten geladen
   (inc/enqueue.php -> starter_theme_enqueue_auth_assets).
   ========================================================================== */

.mesh-auth-body {
  --auth-blue: #1866dd;
  --auth-blue-dark: #1153b8;
  --auth-green: #1f9d55;
  --auth-amber: #c27c0e;
  --auth-text: #111827;
  --auth-muted: #6b7280;
  --auth-border: #e5e7eb;
  --auth-border-hover: #cbd5e1;
  --auth-field: #f9fafb;
  background: #fff;
  color: var(--auth-text);
}

/* Kopf und Fuss der Website ausblenden - wie in der App gibt es hier nur
   das Formular. get_header()/get_footer() laufen weiter (Tracking, Banner). */
.mesh-auth-body #masthead,
.mesh-auth-body .site-footer,
.mesh-auth-body .footer-cta,
.mesh-auth-body .mesh-cta-row,
.mesh-auth-body .mesh-burger {
  display: none !important;
}

.mesh-auth-body #page {
  min-height: 0;
}

@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Layout ---------------------------------------------------- */

.mesh-auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 100px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 25px;
  background: #fff;
  box-sizing: border-box;
}

.mesh-auth *,
.mesh-auth *::before,
.mesh-auth *::after {
  box-sizing: border-box;
}

.mesh-auth__side {
  width: 90%;
  max-width: 440px;
  min-height: calc(100vh - 64px);
  margin: 32px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mesh-auth__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mesh-auth__logo {
  display: inline-flex;
  align-items: center;
  color: var(--auth-text);
  font-weight: 700;
  text-decoration: none;
}

.mesh-auth__logo img {
  display: block;
  height: 30px;
  width: auto;
}

.mesh-auth__login {
  font-size: 14px;
  color: var(--auth-muted);
  text-decoration: none;
  white-space: nowrap;
}

.mesh-auth__login strong {
  color: var(--auth-blue);
  font-weight: 600;
}

.mesh-auth__login:hover strong {
  text-decoration: underline;
}

.mesh-auth__form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: authFadeUp 450ms ease-out both;
}

.mesh-auth__title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--auth-text);
}

.mesh-auth__subtitle {
  margin: 8px 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--auth-muted);
}

.mesh-auth__notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
  line-height: 1.45;
}

/* ---------- SSO ------------------------------------------------------- */

.mesh-auth-sso {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mesh-auth-sso__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mesh-auth-sso__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms, box-shadow 150ms, border-color 150ms, background-color 150ms;
}

.mesh-auth-sso__button svg {
  flex: none;
}

.mesh-auth-sso__button:hover {
  border-color: var(--auth-border-hover);
  background: var(--auth-field);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  color: #1f2937;
}

.mesh-auth-sso__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(24, 102, 221, 0.18);
  border-color: var(--auth-blue);
}

.mesh-auth-sso__divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  color: #9ca3af;
  font-size: 13px;
}

.mesh-auth-sso__divider::before,
.mesh-auth-sso__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

.mesh-auth-sso__divider span {
  padding: 0 8px;
}

/* ---------- Felder (MUI-Outlined-Optik, Label schwebt in den Rahmen) ---- */

.mesh-auth-form {
  display: flex;
  flex-direction: column;
}

.mesh-auth-field {
  position: relative;
  margin: 12px 0 4px;
}

.mesh-auth-field input {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: var(--auth-field);
  color: var(--auth-text);
  font: inherit;
  font-size: 16px; /* < 16px zoomt iOS beim Fokus */
  line-height: 1.2;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 150ms, box-shadow 150ms, border-color 150ms;
}

.mesh-auth-field--password input {
  padding-right: 96px;
}

.mesh-auth-field input:hover {
  border-color: var(--auth-border-hover);
}

.mesh-auth-field input:focus {
  background: #fff;
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 4px rgba(24, 102, 221, 0.12);
}

.mesh-auth-field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px var(--auth-field) inset;
}

.mesh-auth-field label {
  position: absolute;
  left: 11px;
  top: 50%;
  padding: 0 4px;
  border-radius: 4px;
  color: var(--auth-muted);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: top 150ms, transform 150ms, color 150ms, background-color 150ms;
}

.mesh-auth-field input:focus + label,
.mesh-auth-field input:not(:placeholder-shown) + label,
.mesh-auth-field input:-webkit-autofill + label {
  top: 0;
  transform: translateY(-50%) scale(0.78);
  background: #fff;
}

.mesh-auth-field input:focus + label {
  color: var(--auth-blue);
}

.mesh-auth-field.is-invalid input {
  border-color: #dc2626;
}

.mesh-auth-field.is-invalid label {
  color: #b91c1c;
}

.mesh-auth-field__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--auth-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mesh-auth-field__toggle:hover {
  background: rgba(24, 102, 221, 0.08);
}

.mesh-auth-field__toggle:focus-visible {
  outline: 2px solid var(--auth-blue);
  outline-offset: 1px;
}

.mesh-auth .mesh-register-form__error {
  margin: 4px 0 0;
  font-size: 13px;
  color: #b91c1c;
}

.mesh-auth .mesh-register-form__feedback {
  margin: 0;
  font-size: 12.5px;
}

.mesh-auth .mesh-register-form__feedback[data-state="ok"],
.mesh-auth .mesh-register-form__feedback[data-state="fehlt"] {
  margin-top: 6px;
}

/* Staerkeanzeige */
.mesh-auth-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.mesh-auth-strength[hidden] {
  display: none;
}

.mesh-auth-strength__bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  flex: 1;
}

.mesh-auth-strength__bars span {
  height: 4px;
  border-radius: 2px;
  background: var(--auth-border);
  transition: background-color 200ms;
}

.mesh-auth-strength[data-level="weak"] .is-on { background: #e53935; }
.mesh-auth-strength[data-level="medium"] .is-on { background: #fb8c00; }
.mesh-auth-strength[data-level="strong"] .is-on { background: #43a047; }

.mesh-auth-strength__label {
  min-width: 48px;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.mesh-auth-strength[data-level="weak"] .mesh-auth-strength__label { color: #e53935; }
.mesh-auth-strength[data-level="medium"] .mesh-auth-strength__label { color: #fb8c00; }
.mesh-auth-strength[data-level="strong"] .mesh-auth-strength__label { color: #43a047; }

/* Knopf */
.mesh-auth-form__submit {
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  background: var(--auth-blue);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(24, 102, 221, 0.25);
  transition: transform 150ms, box-shadow 150ms, background-color 150ms;
}

.mesh-auth-form__submit:hover {
  background: var(--auth-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(24, 102, 221, 0.3);
}

.mesh-auth-form__submit:focus-visible {
  outline: 3px solid rgba(24, 102, 221, 0.35);
  outline-offset: 2px;
}

.mesh-auth-form__submit:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.mesh-auth-form__terms {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--auth-muted);
  text-align: center;
}

.mesh-auth-form__terms a,
.mesh-auth-form__recaptcha a {
  color: var(--auth-blue);
  text-decoration: none;
}

.mesh-auth-form__terms a:hover,
.mesh-auth-form__recaptcha a:hover {
  text-decoration: underline;
}

.mesh-auth-form__recaptcha {
  margin: 20px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #9ca3af;
  text-align: center;
}

/* ---------- Rechte Flaeche (AuthShowcase) ----------------------------- */

.mesh-auth__showcase {
  width: 75%;
  max-width: 736px;
  height: 97vh;
  min-height: 600px;
  margin: 1.5vh 0;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  border-radius: 10px;
  background-color: var(--auth-blue);
  background-image:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(10, 40, 120, 0.35), transparent 50%);
  color: #fff;
  overflow: hidden;
}

.msc {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.msc__eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.msc__headline {
  opacity: 0;
  animation: authFadeUp 500ms ease-out forwards;
  min-height: 112px;
}

.msc__title {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.msc__text {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.5;
}

.msc__window {
  min-height: 290px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  color: var(--auth-text);
  box-shadow: 0 24px 60px rgba(8, 30, 80, 0.35);
}

.msc__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.msc__dots {
  display: inline-flex;
  gap: 4px;
}

.msc__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
}

.msc__dots i:nth-child(2) { background: #fbbf24; }
.msc__dots i:nth-child(3) { background: #34d399; }

.msc__window-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--auth-muted);
}

.msc__stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Zeilen */
.msc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #f7f8fa;
  opacity: 0;
  animation: authFadeUp 500ms ease-out var(--d, 0ms) forwards;
}

.msc-row--hl {
  background: #eef4fe;
}

.msc-cell {
  min-width: 0;
  flex: none;
}

.msc-cell--grow {
  flex: 1;
}

.msc-cell--right {
  text-align: right;
}

.msc-cell b,
.msc-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msc-cell b {
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-text);
}

.msc-cell small {
  font-size: 11px;
  color: var(--auth-muted);
}

.msc-ico {
  display: block;
  width: 18px;
  height: 18px;
}

.msc-ico--lg {
  width: 20px;
  height: 20px;
}

.msc-blue { color: var(--auth-blue); }
.msc-green { color: var(--auth-green); }
.msc-amber { color: var(--auth-amber); }

.msc-amount {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.msc-clock {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Status-Chip, der von "Offen" auf "Angenommen/Bezahlt" kippt */
@keyframes mscChipOut { to { opacity: 0; transform: scale(0.8); } }
@keyframes mscChipIn {
  0% { opacity: 0; transform: scale(0.8); }
  60% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

.msc-chip {
  position: relative;
  display: inline-grid;
  flex: none;
  font-size: 11px;
  font-weight: 600;
}

.msc-chip > span {
  grid-area: 1 / 1;
  padding: 2px 8px;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
}

.msc-chip__from {
  background: rgba(194, 124, 14, 0.1);
  animation: mscChipOut 250ms ease-in var(--flip) forwards;
}

.msc-chip__to {
  background: rgba(31, 157, 85, 0.1);
  opacity: 0;
  animation: mscChipIn 450ms ease-out calc(var(--flip) + 150ms) forwards;
}

/* Stunden-Balken */
@keyframes mscGrow { to { width: 78%; } }

.msc-meter {
  padding: 8px 16px 0;
  opacity: 0;
  animation: authFadeUp 500ms ease-out var(--d, 0ms) forwards;
}

.msc-meter__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
  color: #374151;
}

.msc-meter__head b {
  font-weight: 600;
}

.msc-meter__track {
  height: 8px;
  border-radius: 4px;
  background: var(--auth-border);
  overflow: hidden;
}

.msc-meter__fill {
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: var(--auth-blue);
  animation: mscGrow 1600ms ease-out 900ms forwards;
}

/* Disposition */
@keyframes mscPop {
  0% { opacity: 0; transform: scale(0.6); }
  70% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

.msc-planner {
  padding: 0 8px;
  opacity: 0;
  animation: authFadeUp 500ms ease-out var(--d, 0ms) forwards;
}

.msc-planner__grid {
  display: grid;
  grid-template-columns: 84px repeat(5, 1fr);
  gap: 6px;
  align-items: center;
}

.msc-planner__day {
  font-size: 11px;
  font-weight: 600;
  color: var(--auth-muted);
  text-align: center;
}

.msc-planner__name {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  color: var(--auth-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msc-planner__cell {
  height: 30px;
  border-radius: 8px;
  background: #f3f4f6;
  overflow: hidden;
}

.msc-planner__cell i {
  display: block;
  height: 100%;
  border-radius: 8px;
  opacity: 0;
  animation: mscPop 380ms ease-out var(--pd) forwards;
}

.msc-p1 { background: var(--auth-blue); }
.msc-p2 { background: #7c3aed; }
.msc-p3 { background: #0f9f8f; }

.msc-planner__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 11px;
  color: #374151;
  opacity: 0;
  animation: authFadeUp 500ms ease-out var(--d, 0ms) forwards;
}

.msc-planner__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.msc-planner__legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* Fortschrittspunkte */
@keyframes mscProgress { to { width: 100%; } }

.msc__progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.msc__step {
  position: relative;
  width: 14px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  cursor: pointer;
  transition: width 300ms;
}

.msc__step::after {
  /* groessere Klickflaeche */
  content: "";
  position: absolute;
  inset: -10px -4px;
}

.msc__step.is-active {
  width: 40px;
}

.msc__step span {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
}

.msc__step.is-active span {
  width: 100%;
}

.msc.is-playing .msc__step.is-active span {
  width: 0;
  animation: mscProgress 5200ms linear forwards;
}

.msc__step:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.msc__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.msc__trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.msc__trust .msc-ico {
  width: 16px;
  height: 16px;
}

.mesh-auth__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
}

.mesh-auth__legal a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.mesh-auth__legal a:hover {
  text-decoration: underline;
}

/* Ohne Bewegung: alles im Endzustand, kein Autoplay (JS) */
.msc.is-reduced *,
.msc.is-reduced .msc__headline {
  animation: none !important;
  opacity: 1 !important;
}

.msc.is-reduced .msc-chip__from { display: none; }
.msc.is-reduced .msc-meter__fill { width: 78%; }

@media (prefers-reduced-motion: reduce) {
  .mesh-auth *,
  .mesh-done * {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition: none !important;
  }
}

/* Mittlere Breiten: kompakter (wie md in der App) */
@media (max-width: 1279px) {
  .mesh-auth__showcase { padding: 40px; gap: 16px; }
  .msc { gap: 16px; }
  .msc__title { font-size: 22px; }
  .msc__text { font-size: 14px; }
  .msc__headline { min-height: 90px; }
  .msc__window { padding: 16px; min-height: 250px; }
}

/* Mobil: rechte Flaeche aus, Formular volle Breite (wie in der App) */
@media (max-width: 899px) {
  .mesh-auth__showcase { display: none; }
  .mesh-auth { padding: 0 16px; }
  .mesh-auth__side { width: 100%; margin: 20px auto 28px; min-height: calc(100vh - 48px); }
  .mesh-auth__title { font-size: 28px; }
  .mesh-auth__logo img { height: 24px; }
  .mesh-auth__login { font-size: 13px; }
  .mesh-auth__form-wrap { justify-content: flex-start; padding-top: 12px; }
}

@media (max-width: 380px) {
  .mesh-auth-sso__grid { grid-template-columns: 1fr; }
  .mesh-auth__login { font-size: 13px; }
}

/* ---------- /completed/ ---------------------------------------------- */

.mesh-done {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  background-color: #f7f8fa;
  background-image:
    radial-gradient(circle at 85% 0%, rgba(24, 102, 221, 0.10), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(24, 102, 221, 0.08), transparent 45%);
  box-sizing: border-box;
}

.mesh-done__card {
  width: 100%;
  max-width: 460px;
  padding: 40px 36px 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  text-align: center;
  animation: authFadeUp 450ms ease-out both;
}

.mesh-done__logo {
  display: inline-flex;
  margin-bottom: 28px;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
}

.mesh-done__logo img {
  display: block;
  height: 30px;
  width: auto;
}

@keyframes doneBadge {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.mesh-done__badge {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(31, 157, 85, 0.12);
  color: #1f9d55;
  animation: doneBadge 500ms ease-out 150ms both;
}

.mesh-done__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #111827;
}

.mesh-done__text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: #6b7280;
}

.mesh-done__loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.mesh-done__loader[hidden] {
  display: none;
}

@keyframes doneSpin { to { transform: rotate(360deg); } }
@keyframes doneBar { from { width: 0; } to { width: 100%; } }

.mesh-done__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(24, 102, 221, 0.18);
  border-top-color: #1866dd;
  border-radius: 50%;
  animation: doneSpin 800ms linear infinite;
}

.mesh-done__bar {
  width: 160px;
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  overflow: hidden;
}

.mesh-done__bar i {
  display: block;
  height: 100%;
  background: #1866dd;
  border-radius: 2px;
  animation: doneBar 2400ms ease-out forwards;
}

.mesh-done__fallback {
  margin: 28px 0 0;
}

.mesh-done__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #1866dd;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms, box-shadow 150ms, border-color 150ms;
}

.mesh-done__button:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  color: #1153b8;
}

/* Ohne automatische Weiterleitung ist der Link die Hauptaktion */
.mesh-done__card:not(:has(.mesh-done__loader)) .mesh-done__button {
  border-color: #1866dd;
  background: #1866dd;
  color: #fff;
  box-shadow: 0 8px 20px rgba(24, 102, 221, 0.25);
}

.mesh-done__hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

@media (max-width: 480px) {
  .mesh-done__card { padding: 32px 22px 26px; }
  .mesh-done__title { font-size: 22px; }
}

/* Partnerprogramm: Empfehlungscode auf /register/ (13.11.2026) */
.mesh-register-ref { margin: -4px 0 4px; }
.mesh-register-ref__toggle {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: #52525C;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mesh-register-ref__toggle:hover { color: #0A0A0A; }
.mesh-register-ref__field[hidden], .mesh-register-ref__toggle[hidden] { display: none; }
