.fc-btn {
    min-block-size: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--fc-space-2);
    padding: 0 var(--fc-space-4);
    border: 1px solid transparent;
    border-radius: var(--fc-radius-md);
    color: var(--fc-text-primary);
    background: var(--fc-bg-surface);
    border-color: var(--fc-border);
    font: var(--fc-text-label);
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
    cursor: pointer;
    transition: background-color var(--fc-motion-fast) var(--fc-ease), border-color var(--fc-motion-fast) var(--fc-ease), color var(--fc-motion-fast) var(--fc-ease);
}

.fc-btn:hover {
    color: var(--fc-text-primary);
    background: var(--fc-bg-hover);
    border-color: var(--fc-border-strong);
}

.fc-btn:active {
    background: var(--fc-bg-selected);
    border-color: var(--fc-border-strong);
}

.fc-btn--primary {
    color: var(--fc-action-fg);
    background: var(--fc-action-bg);
    border-color: var(--fc-action-bg);
}

.fc-btn--primary:hover {
    color: var(--fc-action-fg);
    background: var(--fc-action-bg-hover);
    border-color: var(--fc-action-bg-hover);
}

.fc-btn--primary:active {
    background: var(--fc-action-bg-active);
    border-color: var(--fc-action-bg-active);
}

.fc-btn--secondary {
    color: var(--fc-text-primary);
    background: var(--fc-bg-surface);
    border-color: var(--fc-border);
}

.fc-btn--secondary:hover {
    color: var(--fc-text-primary);
    background: var(--fc-bg-hover);
    border-color: var(--fc-border-strong);
}

.fc-btn--secondary:active {
    background: var(--fc-bg-selected);
    border-color: var(--fc-border-strong);
}

.fc-btn--tertiary {
    color: var(--fc-action-quiet-fg);
    background: transparent;
    border-color: transparent;
}

.fc-btn--tertiary:hover,
.fc-btn--tertiary:active {
    color: var(--fc-text-link-hover);
    background: var(--fc-action-quiet-bg-hover);
    border-color: transparent;
}

.fc-btn--danger {
    color: var(--fc-action-fg);
    background: var(--fc-danger-action-bg);
    border-color: var(--fc-danger-action-bg);
}

.fc-btn--danger:hover,
.fc-btn--danger:active {
    color: var(--fc-action-fg);
    background: var(--fc-danger-action-bg-hover);
    border-color: var(--fc-danger-action-bg-hover);
}

.fc-btn:focus-visible,
.fc-card--interactive:focus-visible,
.fc-page-header__back:focus-visible,
.fc-input:focus-visible,
.fc-select:focus-visible,
.fc-textarea:focus-visible {
    outline: 2px solid var(--fc-border-focus);
    outline-offset: 2px;
    box-shadow: var(--fc-focus-ring);
}

.fc-btn--danger:focus-visible {
    box-shadow: var(--fc-focus-ring-danger);
}

.fc-btn:disabled,
.fc-btn[aria-disabled="true"] {
    color: var(--fc-action-disabled-fg);
    background: var(--fc-action-disabled-bg);
    border-color: var(--fc-action-disabled-bg);
    cursor: not-allowed;
    pointer-events: none;
}

.fc-btn.is-loading {
    cursor: wait;
}

.fc-btn.is-loading .fc-btn__icon {
    display: none;
}

.fc-btn .fc-spinner {
    display: none;
}

.fc-btn.is-loading .fc-spinner {
    display: inline-block;
}

.fc-btn--sm {
    min-block-size: 32px;
    padding-inline: var(--fc-space-3);
    border-radius: var(--fc-radius-sm);
}

.fc-btn--lg {
    min-block-size: 52px;
    padding-inline: var(--fc-space-5);
    font: var(--fc-type-body);
    font-weight: 600;
}

.fc-btn--icon {
    inline-size: 44px;
    padding: 0;
}

.fc-btn--icon.fc-btn--sm {
    inline-size: 32px;
}

.fc-btn--icon.fc-btn--lg {
    inline-size: 52px;
}

.fc-card {
    min-inline-size: 0;
    padding: var(--fc-space-4);
    color: var(--fc-text-body);
    background: var(--fc-bg-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-lg);
    box-shadow: var(--fc-elev-0);
}

.fc-card__header,
.fc-card__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--fc-space-4);
}

.fc-card__header {
    margin-block-end: var(--fc-space-4);
}

.fc-card__footer {
    margin-block-start: var(--fc-space-4);
    padding-block-start: var(--fc-space-4);
    border-block-start: 1px solid var(--fc-border-subtle);
}

.fc-card--interactive {
    color: inherit;
    text-decoration: none;
    transition: background-color var(--fc-motion-fast) var(--fc-ease), border-color var(--fc-motion-fast) var(--fc-ease);
}

.fc-card--interactive:hover {
    color: inherit;
    background: var(--fc-bg-hover);
    border-color: var(--fc-border-strong);
}

.fc-card--flush {
    padding: 0;
}

.fc-card--flush .fc-card__header,
.fc-card--flush .fc-card__footer {
    padding-inline: var(--fc-space-4);
}

.fc-page-header {
    min-block-size: 88px;
    display: grid;
    align-content: center;
    gap: var(--fc-space-2);
    color: var(--fc-text-body);
}

.fc-page-header__back {
    inline-size: fit-content;
    color: var(--fc-text-link);
    font: var(--fc-text-sm);
}

.fc-page-header__back:hover {
    color: var(--fc-text-link-hover);
}

.fc-page-header__overline {
    margin: 0;
    color: var(--fc-text-secondary);
    font: var(--fc-text-overline);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fc-page-header__title {
    margin: 0;
    color: var(--fc-text-primary);
    font: var(--fc-text-h1);
    letter-spacing: -.015em;
    hyphens: auto;
}

.fc-page-header__subtitle {
    max-inline-size: 68ch;
    margin: 0;
    color: var(--fc-text-secondary);
    font: var(--fc-text-body-lg);
}

.fc-page-header__meta,
.fc-page-header__actions {
    display: flex;
    align-items: center;
    gap: var(--fc-space-3);
    flex-wrap: wrap;
}

.fc-page-header--centered {
    justify-items: center;
    text-align: center;
}

.fc-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--fc-space-4);
}

.fc-section-header__content {
    min-inline-size: 0;
}

.fc-section-header__title {
    margin: 0;
    color: var(--fc-text-primary);
    font: var(--fc-text-h3);
}

.fc-section-header__description {
    margin: var(--fc-space-1) 0 0;
    color: var(--fc-text-secondary);
    font: var(--fc-text-sm);
}

.fc-field {
    display: grid;
    gap: var(--fc-space-2);
    min-inline-size: 0;
}

.fc-field__label {
    color: var(--fc-text-label-color);
    font: var(--fc-text-label);
}

.fc-field__optional {
    color: var(--fc-text-secondary);
    font-weight: 400;
}

.fc-checkbox-label {
    min-block-size: 44px;
    display: inline-flex;
    align-items: center;
    gap: var(--fc-space-3);
    color: var(--fc-text-body);
    font: var(--fc-text-body);
    cursor: pointer;
    touch-action: manipulation;
}

.fc-checkbox {
    inline-size: var(--fc-space-5);
    block-size: var(--fc-space-5);
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--fc-action-bg);
    border-radius: var(--fc-radius-sm);
}

.fc-checkbox:focus-visible {
    outline: 2px solid var(--fc-border-focus);
    outline-offset: 2px;
    box-shadow: var(--fc-focus-ring);
}

.fc-field__control {
    position: relative;
}

.fc-field__control:has(.fc-select)::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: var(--fc-space-4);
    inline-size: var(--fc-space-2);
    block-size: var(--fc-space-2);
    border-inline-end: 2px solid var(--fc-text-secondary);
    border-block-end: 2px solid var(--fc-text-secondary);
    pointer-events: none;
    transform: translateY(-75%) rotate(45deg);
}

.fc-input,
.fc-select,
.fc-textarea {
    inline-size: 100%;
    min-inline-size: 0;
    min-block-size: 44px;
    padding: 0 var(--fc-space-3);
    color: var(--fc-text-body);
    background: var(--fc-bg-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-md);
    font-family: var(--fc-font-sans);
    font-size: 16px;
    line-height: 26px;
    transition: border-color var(--fc-motion-fast) var(--fc-ease);
}

.fc-input:hover,
.fc-select:hover,
.fc-textarea:hover {
    border-color: var(--fc-border-strong);
}

.fc-input:focus-visible,
.fc-select:focus-visible,
.fc-textarea:focus-visible {
    border-color: var(--fc-border-focus);
}

.fc-input::placeholder,
.fc-textarea::placeholder {
    color: var(--fc-text-muted);
    opacity: 1;
}

/* Autofill: Browser erzwingen eine eigene Füllfarbe. Die Innenschatten-Fläche
   überschreibt sie, ohne die Fokusdarstellung zu verlieren. Die beiden
   Selektoren stehen bewusst in getrennten Regeln — kennt eine Engine den
   Selektor nicht, verwirft sie sonst die gesamte Regel. */
.fc-input:-webkit-autofill,
.fc-select:-webkit-autofill,
.fc-textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--fc-text-body);
    box-shadow: 0 0 0 100px var(--fc-bg-surface) inset;
    caret-color: var(--fc-text-body);
    border-color: var(--fc-border);
}

.fc-input:autofill,
.fc-select:autofill,
.fc-textarea:autofill {
    -webkit-text-fill-color: var(--fc-text-body);
    box-shadow: 0 0 0 100px var(--fc-bg-surface) inset;
    caret-color: var(--fc-text-body);
    border-color: var(--fc-border);
}

.fc-input:-webkit-autofill:hover,
.fc-select:-webkit-autofill:hover,
.fc-textarea:-webkit-autofill:hover {
    border-color: var(--fc-border-strong);
}

.fc-input:-webkit-autofill:focus-visible,
.fc-select:-webkit-autofill:focus-visible,
.fc-textarea:-webkit-autofill:focus-visible {
    border-color: var(--fc-border-focus);
    box-shadow: var(--fc-focus-ring), 0 0 0 100px var(--fc-bg-surface) inset;
}

.fc-input:autofill:focus-visible,
.fc-select:autofill:focus-visible,
.fc-textarea:autofill:focus-visible {
    border-color: var(--fc-border-focus);
    box-shadow: var(--fc-focus-ring), 0 0 0 100px var(--fc-bg-surface) inset;
}

.fc-select {
    appearance: none;
    padding-inline-end: var(--fc-space-10);
}

.fc-textarea {
    min-block-size: 96px;
    padding-block: var(--fc-space-2);
    resize: vertical;
}

.fc-input--lg,
.fc-select--lg,
.fc-textarea--lg {
    min-block-size: 52px;
}

.fc-input[readonly],
.fc-select[readonly],
.fc-textarea[readonly] {
    color: var(--fc-text-body);
    background: var(--fc-bg-surface-sunken);
    border-color: var(--fc-border-subtle);
    box-shadow: none;
}

.fc-input:disabled,
.fc-select:disabled,
.fc-textarea:disabled {
    color: var(--fc-text-muted);
    background: var(--fc-action-disabled-bg);
    border-color: var(--fc-border-subtle);
    cursor: not-allowed;
}

.fc-field.is-invalid .fc-input,
.fc-field.is-invalid .fc-select,
.fc-field.is-invalid .fc-textarea,
.fc-input.input-validation-error,
.fc-select.input-validation-error,
.fc-textarea.input-validation-error {
    border-color: var(--fc-danger-fg);
}

.fc-field__hint,
.fc-field__error,
.fc-field .field-validation-error {
    margin: 0;
    color: var(--fc-text-secondary);
    font: var(--fc-text-sm);
}

.fc-field__error,
.fc-field .field-validation-error {
    min-block-size: 20px;
    color: var(--fc-danger-fg);
}

.fc-alert {
    --fc-alert-bg: var(--fc-info-bg);
    --fc-alert-border: var(--fc-info-border);
    --fc-alert-fg: var(--fc-info-fg);
    display: flex;
    align-items: flex-start;
    gap: var(--fc-space-3);
    padding: var(--fc-space-4);
    color: var(--fc-alert-fg);
    background: var(--fc-alert-bg);
    border: 1px solid var(--fc-alert-border);
    border-inline-start-width: 3px;
    border-radius: var(--fc-radius-md);
    font: var(--fc-type-body);
}

.fc-alert--success {
    --fc-alert-bg: var(--fc-success-bg);
    --fc-alert-border: var(--fc-success-border);
    --fc-alert-fg: var(--fc-success-fg);
}

.fc-alert--warning {
    --fc-alert-bg: var(--fc-warning-bg);
    --fc-alert-border: var(--fc-warning-border);
    --fc-alert-fg: var(--fc-warning-fg);
}

.fc-alert--danger {
    --fc-alert-bg: var(--fc-danger-bg);
    --fc-alert-border: var(--fc-danger-border);
    --fc-alert-fg: var(--fc-danger-fg);
}

.fc-alert--info {
    --fc-alert-bg: var(--fc-info-bg);
    --fc-alert-border: var(--fc-info-border);
    --fc-alert-fg: var(--fc-info-fg);
}

.fc-alert__icon {
    inline-size: var(--fc-space-6);
    block-size: var(--fc-space-6);
    flex: 0 0 auto;
}

.fc-alert__content {
    min-inline-size: 0;
}

.fc-alert__title {
    margin: 0 0 var(--fc-space-1);
    font-weight: 600;
}

.fc-alert__text {
    margin: 0;
}

.fc-alert--page {
    margin-block: var(--fc-space-6);
}

.fc-alert--inline {
    margin-block-end: var(--fc-space-4);
}

.fc-status-badge {
    --fc-badge-bg: var(--fc-neutral-status-bg);
    --fc-badge-border: var(--fc-neutral-status-border);
    --fc-badge-fg: var(--fc-neutral-status-fg);
    display: inline-flex;
    align-items: center;
    gap: var(--fc-space-2);
    max-inline-size: 100%;
    padding: var(--fc-space-1) var(--fc-space-2);
    color: var(--fc-badge-fg);
    background: var(--fc-badge-bg);
    border: 1px solid var(--fc-badge-border);
    border-radius: var(--fc-radius-pill);
    font: var(--fc-text-caption);
    font-weight: 600;
}

.fc-status-badge--success {
    --fc-badge-bg: var(--fc-success-bg);
    --fc-badge-border: var(--fc-success-border);
    --fc-badge-fg: var(--fc-success-fg);
}

.fc-status-badge--warning {
    --fc-badge-bg: var(--fc-warning-bg);
    --fc-badge-border: var(--fc-warning-border);
    --fc-badge-fg: var(--fc-warning-fg);
}

.fc-status-badge--danger {
    --fc-badge-bg: var(--fc-danger-bg);
    --fc-badge-border: var(--fc-danger-border);
    --fc-badge-fg: var(--fc-danger-fg);
}

.fc-status-badge--info {
    --fc-badge-bg: var(--fc-info-bg);
    --fc-badge-border: var(--fc-info-border);
    --fc-badge-fg: var(--fc-info-fg);
}

.fc-status-badge--neutral {
    --fc-badge-bg: var(--fc-neutral-status-bg);
    --fc-badge-border: var(--fc-neutral-status-border);
    --fc-badge-fg: var(--fc-neutral-status-fg);
}

.fc-status-badge__dot {
    position: relative;
    inline-size: var(--fc-space-2);
    block-size: var(--fc-space-2);
    flex: 0 0 auto;
    color: var(--fc-badge-fg);
    background: currentColor;
    border-radius: var(--fc-radius-pill);
}

.fc-status-badge--warning .fc-status-badge__dot,
.fc-status-badge--info .fc-status-badge__dot {
    background: transparent;
    border: 2px solid currentColor;
}

.fc-status-badge--danger .fc-status-badge__dot::after {
    content: "×";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--fc-danger-bg);
    font: var(--fc-text-overline);
    line-height: var(--fc-space-2);
}

.fc-empty-state {
    display: grid;
    justify-items: center;
    gap: var(--fc-space-3);
    padding: var(--fc-space-8) var(--fc-space-6);
    color: var(--fc-text-body);
    text-align: center;
    background: var(--fc-bg-surface-sunken);
    border: 1px dashed var(--fc-border-strong);
    border-radius: var(--fc-radius-lg);
}

.fc-empty-state--page {
    padding-block: var(--fc-space-12);
}

.fc-empty-state--panel {
    border-radius: var(--fc-radius-md);
}

.fc-empty-state--inline {
    justify-items: start;
    padding: var(--fc-space-4);
    text-align: start;
    border-radius: var(--fc-radius-sm);
}

.fc-empty-state__icon {
    inline-size: var(--fc-space-8);
    block-size: var(--fc-space-8);
    color: var(--fc-text-muted);
}

.fc-empty-state__title {
    margin: 0;
    color: var(--fc-text-primary);
    font: var(--fc-text-h3);
}

.fc-empty-state__description {
    max-inline-size: 52ch;
    margin: 0;
    font: var(--fc-type-body);
}

.fc-spinner {
    inline-size: var(--fc-space-5);
    block-size: var(--fc-space-5);
    display: inline-block;
    flex: 0 0 auto;
    border: 2px solid currentColor;
    border-block-start-color: transparent;
    border-radius: var(--fc-radius-pill);
    animation: fc-spinner-rotate var(--fc-motion-spin) linear infinite;
}

.fc-spinner--sm {
    inline-size: var(--fc-space-4);
    block-size: var(--fc-space-4);
}

.fc-spinner--lg {
    inline-size: var(--fc-space-8);
    block-size: var(--fc-space-8);
}

/* FcPortalBar – angemeldete Navigation (§22). Zwei Zustände: mit und ohne
   aktiven Vereinskontext. Der aktive Verein ist das zweitstärkste Element
   nach der Marke. */

.fc-portalbar {
    position: sticky;
    inset-block-start: 0;
    z-index: var(--fc-z-sticky);
    color: var(--fc-on-dark-body);
    background: var(--fc-bg-surface-inverse);
}

.fc-portalbar__content {
    min-block-size: var(--fc-space-16);
    display: flex;
    align-items: center;
    gap: var(--fc-space-4);
    padding-block: var(--fc-space-3);
    flex-wrap: wrap;
}

.fc-portalbar__brand {
    min-inline-size: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--fc-space-3);
    color: var(--fc-on-dark-fg);
    text-decoration: none;
    border-radius: var(--fc-radius-sm);
}

.fc-portalbar__brand:hover {
    color: var(--fc-on-dark-fg);
}

.fc-portalbar__mark {
    inline-size: var(--fc-space-8);
    block-size: var(--fc-space-8);
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--fc-on-dark-fg);
    background: var(--fc-action-bg);
    border-radius: var(--fc-radius-sm);
}

.fc-portalbar__mark svg {
    inline-size: var(--fc-space-5);
    block-size: var(--fc-space-5);
}

.fc-portalbar__wordmark {
    min-inline-size: 0;
    display: grid;
}

.fc-portalbar__name {
    color: var(--fc-on-dark-fg);
    font: var(--fc-text-label);
    white-space: nowrap;
}

.fc-portalbar__descriptor {
    color: var(--fc-on-dark-secondary);
    font: var(--fc-text-caption);
    white-space: nowrap;
}

.fc-portalbar__context {
    min-inline-size: 0;
    inline-size: 100%;
    order: 3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--fc-space-1) var(--fc-space-3);
    padding: var(--fc-space-2) var(--fc-space-3);
    background: var(--fc-on-dark-hover);
    border-radius: var(--fc-radius-md);
}

.fc-portalbar__context-label {
    color: var(--fc-on-dark-secondary);
    font: var(--fc-text-caption);
}

.fc-portalbar__context-value {
    min-inline-size: 0;
    color: var(--fc-on-dark-fg);
    font: var(--fc-text-h3);
    overflow-wrap: anywhere;
}

.fc-portalbar__switch {
    margin-inline-start: auto;
    color: var(--fc-on-dark-body);
    font: var(--fc-text-label);
    text-decoration: underline;
    text-underline-offset: var(--fc-space-1);
    white-space: nowrap;
}

.fc-portalbar__switch:hover {
    color: var(--fc-on-dark-fg);
}

.fc-portalbar__user {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: var(--fc-space-3);
}

.fc-portalbar__user-name {
    display: none;
    color: var(--fc-on-dark-body);
    font: var(--fc-text-sm);
    white-space: nowrap;
}

.fc-portalbar__form {
    margin: 0;
}

.fc-portalbar__logout {
    min-block-size: 44px;
    display: inline-flex;
    align-items: center;
    padding-inline: var(--fc-space-3);
    color: var(--fc-on-dark-body);
    background: transparent;
    border: 1px solid var(--fc-on-dark-border);
    border-radius: var(--fc-radius-md);
    font: var(--fc-text-label);
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color var(--fc-motion-fast) var(--fc-ease), color var(--fc-motion-fast) var(--fc-ease);
}

.fc-portalbar__logout:hover {
    color: var(--fc-on-dark-fg);
    background: var(--fc-on-dark-hover);
}

.fc-portalbar__brand:focus-visible,
.fc-portalbar__switch:focus-visible,
.fc-portalbar__logout:focus-visible {
    outline: 2px solid var(--fc-neutral-000);
    outline-offset: 2px;
    box-shadow: var(--fc-focus-ring-inverse);
}

.fc-sr-only {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes fc-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    .fc-page-header--with-actions {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: var(--fc-space-6);
    }

    .fc-page-header--with-actions .fc-page-header__actions {
        grid-column: 2;
        grid-row: 1 / span 4;
        align-self: center;
        justify-content: flex-end;
    }

    .fc-card {
        padding: var(--fc-space-5);
    }

    .fc-card--flush {
        padding: 0;
    }

    .fc-card--flush .fc-card__header,
    .fc-card--flush .fc-card__footer {
        padding-inline: var(--fc-space-5);
    }
}

@media (min-width: 1024px) {
    .fc-portalbar__content {
        flex-wrap: nowrap;
        padding-block: 0;
    }

    .fc-portalbar__context {
        inline-size: auto;
        max-inline-size: 420px;
        order: 0;
        margin-inline-start: var(--fc-space-6);
    }

    .fc-portalbar__context-value {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
    }

    .fc-portalbar__switch {
        margin-inline-start: var(--fc-space-3);
    }

    .fc-portalbar__user-name {
        display: inline;
    }

    .fc-card {
        padding: var(--fc-space-6);
    }

    .fc-card--flush {
        padding: 0;
    }

    .fc-card--flush .fc-card__header,
    .fc-card--flush .fc-card__footer {
        padding-inline: var(--fc-space-6);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fc-spinner {
        animation: none;
    }
}
