/* ─── Registrierung (ergänzt base.css) ───────────────────────────────── */

.reg-badge { margin-bottom: 24px; }
.reg-hero-sub {
  max-width: 560px;
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

/* Schritte links */
.reg-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 40px;
  position: relative;
}
.reg-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
}
.reg-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: -18px;
  width: 1px;
  background: var(--border);
}
.reg-step-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: rgba(0, 98, 204, 0.12);
  border: 1px solid rgba(0, 98, 204, 0.3);
  color: #60a5fa;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reg-steps strong { display: block; font-size: 0.95rem; color: var(--text); margin-bottom: 2px; }
.reg-steps span   { font-size: 0.875rem; color: var(--muted); line-height: 1.55; }

.reg-hint {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.reg-hint p { font-size: 0.875rem; line-height: 1.65; margin-bottom: 16px; }
.reg-hint .reg-hint-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.reg-hint .link-arrow { font-size: 0.875rem; }

/* Fieldsets */
.reg-fieldset {
  border: none;
  padding: 0 0 8px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--border);
}
.reg-fieldset legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding: 0;
}
.reg-legend-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #60a5fa;
  background: rgba(0, 98, 204, 0.12);
  border: 1px solid rgba(0, 98, 204, 0.3);
  border-radius: 6px;
  padding: 2px 7px;
}
.reg-fieldset-hint { font-size: 0.8rem; color: var(--muted-2); margin: -12px 0 16px; }

.req { color: #60a5fa; font-weight: 700; }
.opt {
  font-weight: 500;
  color: var(--muted-2);
  font-size: 0.72rem;
  margin-left: 4px;
  text-transform: none;
}

.form-row-zip { grid-template-columns: 1fr 2fr; }

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-2); }

/* Fehlerzustände */
.field-error {
  display: block;
  font-size: 0.78rem;
  color: #fca5a5;
  margin-top: 6px;
}
.is-invalid > input,
.is-invalid > select,
.is-invalid > textarea { border-color: rgba(239, 68, 68, 0.6) !important; }
.is-invalid .area-card { border-color: rgba(239, 68, 68, 0.45); }

/* Bereichs-Karten */
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.area-card,
.reg-consent {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.area-card {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.area-card:hover { border-color: #2d3a50; }
.area-card input,
.reg-consent input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.area-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid #374151;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all var(--transition);
}
.area-check svg { width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity var(--transition); }
.area-text strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); line-height: 1.35; }
.area-text small  { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.45; margin-top: 3px; }

.area-card:has(input:checked) {
  border-color: var(--accent-2);
  background: rgba(0, 98, 204, 0.08);
}
input:checked + .area-check {
  background: var(--gradient);
  border-color: var(--accent-2);
}
input:checked + .area-check svg { opacity: 1; }
input:focus-visible + .area-check { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Einwilligung */
.form-group .reg-consent {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.6;
  margin: 0;
}
.reg-consent a { color: #60a5fa; text-decoration: underline; text-underline-offset: 2px; }

.reg-submit { width: 100%; justify-content: center; margin-top: 4px; }
.reg-submit:disabled { cursor: progress; }
.reg-footnote {
  font-size: 0.78rem;
  color: var(--muted-2);
  margin-top: 14px;
  text-align: center;
}

/* Erfolgsmeldung */
.reg-success { text-align: center; padding: 32px 8px; }
.reg-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6ee7b7;
}
.reg-success-icon svg { width: 30px; height: 30px; }
.reg-success h2 { font-size: 1.6rem; margin-bottom: 14px; }
.reg-success p  { max-width: 440px; margin: 0 auto 28px; line-height: 1.7; }

@media (max-width: 640px) {
  .contact-form { padding: 24px 20px; }
  .area-grid { grid-template-columns: 1fr; }
  .form-row-zip { grid-template-columns: 1fr; }
}
