.account-form{max-width:920px}.account-narrow{max-width:560px}.account-club-picker,[data-club-picker]{margin-top:.65rem}.autocomplete-results{position:relative;border:1px solid var(--color-border);background:#fff;max-height:16rem;overflow:auto;z-index:5}.autocomplete-result{display:block;width:100%;padding:.5rem .65rem;border:0;border-bottom:1px solid var(--color-border);background:#fff;text-align:left;cursor:pointer}.autocomplete-result:hover{background:var(--color-primary-light)}.new-club-fields{margin-top:.65rem;padding:.75rem;background:var(--color-surface-soft);border-radius:var(--radius)}.table-card{overflow:auto}

.account-profile-layout,
.account-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: .75rem;
  align-items: start;
}

.account-page-header { margin-bottom: .75rem; }
.account-page-header p { margin-bottom: 0; }
.account-form--compact { display: grid; gap: .75rem; padding: .85rem; }
.account-form__meta { display: flex; align-items: center; gap: .45rem; font-size: .84rem; color: var(--color-muted); }
.account-form__meta strong { color: var(--color-primary-dark); }
.account-club-panel { padding: .7rem; }
.account-club-panel legend { font-size: .9rem; }
.account-option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.account-option-grid .checkbox-row { align-items: flex-start; background: var(--color-surface-soft); }
.account-option-grid .checkbox-row span { display: grid; gap: .08rem; min-width: 0; }
.account-option-grid .checkbox-row strong { font-size: .84rem; }
.account-option-grid .checkbox-row small { color: var(--color-muted); font-size: .72rem; font-weight: 400; line-height: 1.25; }
.account-form__actions { margin-top: 0; }

.account-admin-sidebar { display: grid; gap: .75rem; }
.account-side-card { display: grid; gap: .6rem; padding: .8rem; }
.account-side-card__header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.account-side-card h3 { margin: 0; font-size: 1rem; }
.account-image-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .7rem; align-items: center; }
.account-image-upload { min-width: 0; }
.account-image-upload input[type="file"] { min-height: auto; padding: .35rem; font-size: .78rem; }
.account-inline-action { margin: 0; }
.account-avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; flex: 0 0 auto; }
.account-avatar--medium { width: 4.25rem; height: 4.25rem; }
.account-avatar--large { width: 7rem; height: 7rem; }
.account-avatar--placeholder { background: var(--color-surface-soft); font-weight: 700; }
.account-person-cell { display: flex; align-items: center; gap: .65rem; }
.account-actions-card { gap: .45rem; }
.account-actions-card form { margin: 0; }
.account-actions-card .button { width: auto; }
.stack-form { display: grid; gap: .5rem; width: 100%; }

@media (max-width: 980px) {
  .account-option-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .account-profile-layout,
  .account-admin-layout { grid-template-columns: 1fr; }
  .account-image-row { grid-template-columns: auto minmax(0,1fr); }
}

/* Personenbearbeitung bewusst ruhig und ohne geerbte Fettschrift. */
.account-admin-layout .account-form label,
.account-admin-layout .account-side-card label {
  font-weight: 500;
}
.account-admin-layout input,
.account-admin-layout select,
.account-admin-layout textarea {
  font-weight: 400;
}
.account-form__meta strong,
.account-option-title {
  font-weight: 500;
}
.account-option-grid .checkbox-row {
  font-weight: 400;
}
.account-option-grid .checkbox-row strong {
  font-weight: 500;
}
.account-admin-layout .button {
  font-weight: 500;
}
.account-side-card h3 {
  font-weight: 600;
}

/* Personenübersicht */
.account-people-header {
  align-items: end;
  gap: .75rem;
}
.account-people-search {
  width: min(22rem, 100%);
  margin: 0;
}
.account-people-search input {
  min-height: 2.35rem;
  font-weight: 400;
}
.account-people-card {
  padding: .35rem;
}
.account-people-table th,
.account-people-table td {
  vertical-align: middle;
}
.account-people-table tbody tr[hidden] {
  display: none;
}
.account-role-list {
  max-width: 24rem;
  line-height: 1.35;
}
.account-people-table .account-avatar {
  overflow: hidden;
  background: var(--color-surface-soft);
}
.account-people-table .account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-people-table form {
  margin: 0;
}
@media (max-width: 800px) {
  .account-people-header {
    align-items: stretch;
  }
  .account-people-search {
    width: 100%;
  }
}

/* Kompakte Personenübersicht */
.account-people-table {
  font-size: .86rem;
}
.account-people-table th,
.account-people-table td {
  padding: .42rem .55rem;
}
.account-people-table th {
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.account-person-name {
  font-weight: 600;
  line-height: 1.2;
}
.account-role-list {
  font-size: .82rem;
  color: var(--color-muted);
}
.account-actions-column {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}
.account-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .3rem;
}
.account-row-actions form {
  display: inline-flex;
}

.account-row-action {
  width: 1.85rem;
  height: 1.85rem;
  min-width: 1.85rem;
  padding: 0;
  border-radius: 50%;
  font-size: .9rem;
  line-height: 1;
}
.account-row-action--vip.is-active {
  background: var(--color-surface-soft);
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}
.account-row-action:disabled {
  opacity: .55;
  cursor: wait;
}
.account-vip-badge {
  margin-left: .25rem;
}


/* Versteckte Beschriftungen für zugängliche Icon-Aktionen. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.account-actions-column {
  width: 4.75rem;
  min-width: 4.75rem;
  padding-left: .3rem !important;
  padding-right: .45rem !important;
}
.account-row-actions {
  width: 100%;
  justify-content: flex-end;
  gap: .35rem;
}
.account-row-action {
  flex: 0 0 1.8rem;
  overflow: hidden;
}

/* Personenübersicht: kompakt, ruhig und auf den vorhandenen Tabellenkomponenten aufgebaut. */
.account-people-card { padding: .25rem; }
.account-people-table { min-width: 860px; font-size: .84rem; }
.account-people-table th,
.account-people-table td { padding: .4rem .5rem; }
.account-people-table th { font-size: .76rem; font-weight: 600; }
.account-person-copy { display: grid; gap: .08rem; min-width: 0; }
.account-person-name { font-size: .88rem; font-weight: 600; }
.account-person-club { color: var(--color-muted); font-size: .72rem; line-height: 1.2; }
.account-function-cell { max-width: 18rem; color: var(--color-primary-dark); }
.account-status-badge { padding: .22rem .48rem; border-radius: 999px; font-size: .72rem; font-weight: 500; white-space: nowrap; }
.account-status-badge--success { background: #e8f6ec; color: #1f6b35; }
.account-status-badge--warning { background: #fff3cd; color: #7a5a00; }
.account-row-action--vip { color: var(--color-muted); }
.account-row-action--vip.is-active { background: #fff8db; color: #8a6400; border-color: #d8b646; }
.account-vip-readonly { color: #8a6400; font-size: 1rem; }

.account-role-cell {
  max-width: 13rem;
  color: var(--color-muted);
  font-size: .78rem;
  line-height: 1.25;
}


/* Personenbearbeitung: Vereinsfunktion gehört zur Vereinszuordnung. */
.account-club-function {
  display: grid;
  gap: .5rem;
  margin-top: .65rem;
  padding-top: .65rem;
  border-top: 1px solid var(--color-border);
}
.account-club-function__title,
.account-function-group__title {
  font-weight: 500;
  color: var(--color-primary-dark);
}

/* Personen: kompakte Übersicht und konsistente Bearbeitungsfelder. */
.account-admin-layout .account-form fieldset > legend {
  font-weight: 400;
}
.account-admin-layout .account-function-group__title,
.account-admin-layout .field-title-with-help > span {
  font-weight: 600;
}
.account-admin-layout .checkbox-item input[type="checkbox"],
.account-admin-layout .checkbox-item input[type="radio"],
.account-admin-layout .account-function-choice input[type="checkbox"],
.account-admin-layout .account-function-choice input[type="radio"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  margin: 0;
}
.account-people-header__actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: .5rem;
  flex-wrap: wrap;
}
.account-people-header__actions .account-people-search {
  margin: 0;
}
.account-function-cell,
.account-role-cell {
  font-size: .72rem;
  line-height: 1.2;
}
.account-actions-column {
  width: 6.8rem;
  min-width: 6.8rem;
}
.account-row-action--delete {
  color: #8a2b2b;
}
.account-row-action--delete:hover,
.account-row-action--delete:focus-visible {
  background: #fff0f0;
  border-color: #c76868;
  color: #6f1616;
}
.account-status-badge--neutral {
  background: var(--color-surface-soft);
  color: var(--color-muted);
}
/* Personen anlegen: vorhandene Formularbausteine nutzen, aber ruhiger als die globale Standard-Fettschrift. */
.account-create-form {
  max-width: 760px;
  gap: .65rem;
  padding: .75rem;
}
.account-create-form .form-panel {
  padding: .72rem .8rem;
  background: rgba(255,255,255,.35);
}
.account-create-form .form-panel + .form-panel {
  margin-top: .15rem;
}
.account-create-form .form-panel legend {
  font-size: .86rem;
  font-weight: 500;
}
.account-create-form label,
.account-create-form .field-label {
  font-size: .78rem;
  font-weight: 400;
}
.account-create-form input,
.account-create-form select,
.account-create-form textarea {
  font-weight: 400;
}
.account-create-form .checkbox-item {
  font-size: .8rem;
  font-weight: 400;
}
.account-create-form .checkbox-item input[type="checkbox"],
.account-create-form .checkbox-item input[type="radio"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
}
.account-create-form .account-club-function__title,
.account-create-form .account-function-section__title {
  font-size: .82rem;
  font-weight: 500;
}
.account-create-form .account-function-new {
  padding: .58rem .65rem;
}
.account-create-form .form-checkbox-grid {
  gap: .45rem .75rem;
  margin: .2rem 0 .45rem;
}
@media (max-width: 800px) {
  .account-people-header__actions {
    align-items: stretch;
    justify-content: flex-start;
  }
}

/* Funktionshistorie: kompakt und klar gegliedert. */
.account-function-history {
  display: grid;
  gap: .8rem;
}
.account-function-history__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.account-function-history__intro .form-hint {
  margin: .12rem 0 0;
}
.account-function-section {
  display: grid;
  gap: .4rem;
}
.account-function-section + .account-function-section {
  padding-top: .7rem;
  border-top: 1px solid var(--color-border);
}
.account-function-section__title {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.account-function-list {
  display: grid;
  gap: .28rem;
}
.account-function-list__head,
.account-function-entry {
  display: grid;
  grid-template-columns: minmax(11rem, 1.6fr) 6.5rem 6.5rem 6.5rem 4.5rem;
  gap: .4rem;
  align-items: center;
}
.account-function-list__head {
  padding: 0 .25rem;
  color: var(--color-muted);
  font-size: .72rem;
  font-weight: 600;
}
.account-function-entry {
  padding: .42rem .5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-soft);
}
.account-function-entry label {
  margin: 0;
}
.account-function-entry__name {
  min-width: 0;
  font-size: .84rem;
  line-height: 1.25;
}
.account-function-entry .account-year-input {
  min-height: 2rem;
  padding: .32rem .45rem;
  font-size: .82rem;
}
.account-function-choice {
  display: flex;
  justify-content: center;
  align-items: center;
}
.account-function-choice input[type="checkbox"],
.account-function-choice input[type="radio"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  margin: 0;
}
.account-function-new {
  padding: .65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}
.account-function-new__grid {
  display: grid;
  grid-template-columns: minmax(12rem, 1.7fr) 6.5rem 6.5rem auto;
  gap: .5rem;
  align-items: end;
}
.account-function-new__grid label {
  margin: 0;
  font-weight: 400;
}
.account-function-primary-new {
  min-height: 2.25rem;
  align-self: end;
}

@media (max-width: 900px) {
  .account-function-list__head { display: none; }
  .account-function-entry {
    grid-template-columns: minmax(0, 1fr) 5.5rem 5.5rem auto auto;
  }
  .account-function-new__grid {
    grid-template-columns: 1fr 1fr;
  }
  .account-function-new__function {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .account-function-entry {
    grid-template-columns: 1fr 1fr;
  }
  .account-function-entry__name {
    grid-column: 1 / -1;
  }
  .account-function-choice {
    justify-content: flex-start;
  }
  .account-function-new__grid {
    grid-template-columns: 1fr;
  }
}

/* Kompakte Filterleiste der Personenübersicht. */
.account-people-filters {
  display: flex;
  align-items: end;
  gap: .4rem;
  flex-wrap: wrap;
}
.account-people-filters > label {
  display: grid;
  gap: .16rem;
  margin: 0;
  font-size: .7rem;
  font-weight: 400;
  color: var(--color-muted);
}
.account-people-filters select,
.account-people-filters input {
  min-height: 2.05rem;
  padding: .32rem .5rem;
  font-size: .8rem;
  font-weight: 400;
}
.account-people-filters select {
  width: auto;
  min-width: 7.8rem;
}
.account-people-filters .account-people-search {
  width: min(19rem, 100%);
}
.account-people-filter-reset {
  min-height: 2.05rem;
  align-self: end;
}
@media (max-width: 800px) {
  .account-people-filters {
    align-items: stretch;
  }
  .account-people-filters > label,
  .account-people-filters select,
  .account-people-filters .account-people-search,
  .account-people-filter-reset {
    width: 100%;
  }
}

.account-history-list {
  display: grid;
  gap: .45rem;
}
.account-history-entry {
  padding: .45rem .55rem;
  border: 1px solid var(--color-border);
  border-radius: .6rem;
  background: var(--color-surface-soft);
}
.account-history-entry strong {
  display: block;
  margin-bottom: .12rem;
  font-size: .88rem;
  font-weight: 500;
}

.account-status-form { display: inline; margin: 0; }
.account-status-button {
  border: 0;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}
.account-status-button:hover,
.account-status-button:focus-visible {
  outline: 2px solid rgba(28, 39, 55, .18);
  outline-offset: 2px;
}
.account-status-button:disabled { cursor: wait; opacity: .7; }
