/* =====================================================================
   Ergänzungen zum STAFAM-Design-System für die Webinar-Anmeldung.
   Nur was stafam.css nicht bereits abdeckt.
   ===================================================================== */

/* Einseitige Anmeldung: keine Navigation, kein Bottom-Nav.
   stafam.css reserviert unten Platz für die PWA-Leiste — hier nicht nötig. */
@media (max-width: 1099px) {
  body { padding-bottom: 0; }
}

/* Footer ohne Linkspalten einspaltig ausrichten */
.foot {
  grid-template-columns: 1fr;
}

/* Blazor-Validierung an die Formularstile anpassen */
.validation-message,
.invalid-feedback {
  font-size: .84rem;
  font-weight: 600;
  color: var(--danger);
}

.input.invalid,
.select.invalid,
.textarea.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(214, 69, 69, .12);
}

.input.modified.valid,
.select.modified.valid {
  border-color: var(--line-2);
}

.validation-errors {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Zustimmungstext lesbar halten — stafam.css setzt Labels in .field auf Versalien */
.field label.choice {
  text-transform: none;
  letter-spacing: 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

/* Sprungmarke nicht unter dem Sticky-Header landen lassen */
#anmeldeformular {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Sammel-Fehlerbox oberhalb des Formulars */
.form-fehler {
  margin-bottom: 1.2rem;
}

.form-fehler ul {
  margin: .3rem 0 0 1.1rem;
  list-style: disc;
}

/* Vortragende — eine oder mehrere Personen */
.referenten {
  display: grid;
  gap: .9rem;
  margin-top: .9rem;
}

.referent {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.referenten .referent + .referent {
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

.referent-av {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.referent b {
  font-size: 1.1rem;
  color: var(--primary);
  display: block;
  line-height: 1.25;
}

.referent span {
  font-size: .9rem;
  color: var(--muted);
}

/* Bestätigungsseite */
.erfolg-tile {
  border: 1px solid rgba(0, 158, 136, .35);
  background: radial-gradient(120% 100% at 100% 0%, rgba(0, 158, 136, .12), transparent 55%), #fff;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.erfolg-ico {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  margin-bottom: 1rem;
}

.daten-liste {
  display: grid;
  gap: .5rem;
  margin: 0;
}

.daten-liste div {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
}

.daten-liste div:last-child {
  border-bottom: 0;
}

.daten-liste dt {
  flex: none;
  min-width: 190px;
  color: var(--muted);
  font-weight: 600;
}

.daten-liste dd {
  margin: 0;
  font-weight: 700;
  color: var(--primary);
  word-break: break-word;
}

/* Ladezustand des Absende-Buttons */
.btn .spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  animation: btn-spin .7s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .btn .spinner { animation: none; }
}

/* Fehlerleiste von Blazor im CI-Look */
#blazor-error-ui {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #fdecea;
  color: #a02020;
  border-top: 1px solid #f6c9c4;
  padding: .9rem 1.2rem;
  font-weight: 600;
  box-shadow: 0 -8px 24px -12px rgba(11, 31, 51, .4);
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  float: right;
}

#blazor-error-ui .reload {
  color: var(--primary);
  text-decoration: underline;
}
