/* HSU-Anmeldeseite – nur Tokens aus assets/site.css */
.hsu-grid { --hsu-error: #B3261E; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "form" "info"; }
.hsu-form-area { grid-area: form; min-width: 0; }
.hsu-info { grid-area: info; min-width: 0; }
.hsu-info h2 { margin-bottom: 16px; }
.hsu-optional { margin-top: 24px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); max-width: 48ch; }

@media (min-width: 1024px) {
  .hsu-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    grid-template-areas: "info form";
    column-gap: 48px;
    align-items: start;
  }
}

.hsu-card { background: var(--surface); border: 1px solid var(--line-heavy); border-radius: var(--radius); padding: 24px; }
@media (max-width: 640px) { .hsu-card { padding: 20px; } }

.hsu-field { margin-bottom: 20px; }
.hsu-field label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.hsu-field input {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 18px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-heavy); border-radius: var(--radius);
}
.hsu-field input:focus, .hsu-check input:focus-visible, .hsu-details summary:focus-visible { outline: var(--focus); outline-offset: 2px; }
.hsu-field input[aria-invalid="true"] { border-color: var(--hsu-error); }

.hsu-check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; min-height: 44px; margin-bottom: 16px; position: relative; }
.hsu-check input { grid-column: 1; grid-row: 1; width: 22px; height: 22px; margin: 11px 0 0 1px; accent-color: var(--green); cursor: pointer; }
.hsu-check label { grid-column: 2; grid-row: 1; display: block; padding: 10px 0; font-size: 16px; line-height: 1.45; cursor: pointer; }
.hsu-check label::before { content: ""; position: absolute; inset: 0; }
.hsu-check label a { position: relative; z-index: 1; color: var(--green); text-decoration: underline; }
.hsu-check-error { grid-column: 2; }

.hsu-field-error, .hsu-error { color: var(--hsu-error); font-size: 15px; line-height: 1.4; margin-top: 6px; }
.hsu-error { margin: 8px 0 16px; font-weight: 600; }
.hsu-field-error[hidden], .hsu-error[hidden], .hsu-banner[hidden], .hsu-success[hidden], .hsu-card[hidden], form[hidden] { display: none; }

.hsu-card .btn { width: 100%; min-height: 48px; justify-content: center; cursor: pointer; }
.hsu-card .btn[disabled] { opacity: .65; cursor: progress; }
@media (min-width: 641px) { .hsu-card .btn { width: auto; } }

.hsu-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.hsu-banner, .hsu-success { border: 1px solid var(--green-tint); background: var(--surface); border-radius: var(--radius); padding: 16px 20px; font-size: 16px; line-height: 1.5; }
.hsu-banner { margin-bottom: 20px; border-left: 4px solid var(--green); }
.hsu-success { border-width: 1px; }
.hsu-success:focus { outline: var(--focus); outline-offset: 2px; }
.hsu-success h2 { font-size: 28px; margin-bottom: 12px; }
.hsu-hint { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-2); }
.hsu-noscript { margin-top: 16px; font-size: var(--fs-small); }

.hsu-details { border: 1px solid var(--line-heavy); border-radius: var(--radius); background: var(--surface); }
.hsu-details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 20px; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none;
}
.hsu-details summary::-webkit-details-marker { display: none; }
.hsu-details summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); transition: transform .2s ease;
}
.hsu-details[open] summary::after { transform: rotate(-135deg); }
.hsu-details-body { padding: 4px 20px 20px; font-size: 16px; line-height: 1.55; max-width: 72ch; }
.hsu-details-body p { margin-top: 14px; }
.hsu-details-body ul { margin: 8px 0 0 20px; list-style: disc; }
.hsu-details-body a { color: var(--green); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .hsu-details summary::after { transition: none; }
}
