/* registrieren.css — Zugang beantragen (T7)
   Seiten-spezifische Bausteine, die style.css nicht abdeckt: die Drei-Ebenen-Leiste
   (Zugang / Mitgliedschaft / Listung), die zentrierte Formular-Karte, Fehler- und
   Erfolgs-Zustand. Tokens 1:1 aus style.css. Keine em-dashes im sichtbaren Text. */

.reg-wrap {
  max-width: 720px;
  margin-inline: auto;
}

/* ---- Drei Ebenen: Zugang (hier) / Mitgliedschaft / Listung ---------------- */
.reg-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 40px;
}
.reg-level {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line-onW);
  border-radius: var(--r-4);
}
.reg-level--active {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.reg-level__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-warm);
  border-radius: var(--r-pill);
  padding: 3px 10px;
}
.reg-level--active .reg-level__tag {
  color: #fff;
  background: var(--blue);
}
.reg-level__title {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.reg-level__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.reg-level__desc a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* ---- Formular-Karte ------------------------------------------------------- */
.reg-card {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--line-onW);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-l);
}
.reg-card[hidden] {
  display: none;
}
.reg-card__head {
  margin-bottom: 28px;
}
.reg-card__lead {
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* fieldset als Feld: Default-Rahmen/Padding entfernen, legend = Label */
.reg-fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.reg-fieldset legend {
  padding: 0;
  margin-bottom: 10px;
}

/* ---- Fehlermeldung (deutsch, u. a. Duplikat vom CMS) ---------------------- */
.reg-error {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--live);
  border-left-width: 3px;
  border-radius: var(--r-4);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.45;
}
.reg-error[hidden] {
  display: none;
}
.reg-error span[aria-hidden] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--live);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

/* ---- Fuss der Karte: Submit + Login-Verweis ------------------------------- */
.reg-foot {
  margin-top: 32px;
}
.reg-foot__hint {
  font-size: 14px;
  color: var(--muted);
}
.reg-foot__hint a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Erfolgs-Karte -------------------------------------------------------- */
.reg-success {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 64px) 32px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line-onW);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-l);
}
.reg-success[hidden] {
  display: none;
}
.reg-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
}
.reg-success__icon svg {
  width: 28px;
  height: 28px;
}
.reg-success p {
  max-width: 460px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.reg-success .page-hero__actions {
  margin-top: 28px;
}

/* ---- Mobile ---------------------------------------------------------------- */
@media (max-width: 640px) {
  .reg-levels {
    grid-template-columns: 1fr;
  }
  .reg-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .reg-submit {
    width: 100%;
  }
  .reg-foot__hint {
    text-align: center;
  }
}
