/* antrag-formular.css – geteilte Bausteine fuer /projektidee und /ministry-starten (T13).
   SSR-Login-Gate: entweder die schlanke Formular-Karte (eingeloggt) oder die freundliche
   Gate-Karte (ausgeloggt). Tokens 1:1 aus style.css. Keine em-dashes im sichtbaren Text. */

.antrag-wrap {
  max-width: 680px;
  margin-inline: auto;
}

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

.antrag-foot { margin-top: 30px; }

/* ---- Fehlermeldung -------------------------------------------------------- */
.antrag-error {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  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;
}
.antrag-error[hidden] { display: none; }
.antrag-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;
}

/* ---- Erfolgs-Karte -------------------------------------------------------- */
.antrag-success {
  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);
}
.antrag-success[hidden] { display: none; }
.antrag-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;
}
.antrag-success__icon svg { width: 28px; height: 28px; }
.antrag-success p {
  max-width: 480px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.antrag-success .page-hero__actions { margin-top: 28px; }

/* ---- Gate-Karte (ausgeloggt) --------------------------------------------- */
.antrag-gate {
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 44px);
  text-align: center;
  background: #fff;
  border: 1px solid var(--line-onW);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-l);
}
.antrag-gate__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--bg-sand);
  color: var(--blue);
}
.antrag-gate__icon svg { width: 30px; height: 30px; }
.antrag-gate__text {
  max-width: 500px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.antrag-gate__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.antrag-gate__hint {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.antrag-gate__hint a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Mobile --------------------------------------------------------------- */
@media (max-width: 560px) {
  .antrag-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .antrag-foot .btn { width: 100%; text-align: center; }
  .antrag-gate__actions .btn { width: 100%; text-align: center; }
}
