/* Modul "team" – Benutzerverwaltung, Profil und persönliche Einstellungen. */

/* Die Kopfzeile der Projektzentrale nummeriert Kapitel des Projektplans.
   Für Verwaltungsbereiche passt das nicht, deshalb bleiben Kapitelnummer und
   die dort angebotenen Schnellaktionen hier ausgeblendet. */
.route-benutzer .chapter-actions,
.route-profil .chapter-actions,
.route-benutzer .chapter-index .eyebrow,
.route-profil .chapter-index .eyebrow,
.route-benutzer .chapter-number,
.route-profil .chapter-number { display: none; }

/* ------------------------------------------------------------ Gemeinsame Bausteine */

.team-command {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 0 0 18px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: 0 5px 18px rgba(18, 38, 60, .035);
}
.team-command h2 { margin: 0; font: 800 19px/1.15 'Manrope'; letter-spacing: -.02em; }
.team-command p { margin: 5px 0 0; max-width: 62ch; color: var(--muted); font-size: 12px; }
.team-command .button { flex: none; }

.team-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; }
.team-stats span {
  display: block; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 13px; background: #fff;
}
.team-stats strong { display: block; font: 800 24px/1 'Manrope'; color: var(--navy-900); }
.team-stats small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

.team-error {
  margin: 0 0 16px; padding: 11px 14px;
  border: 1px solid var(--red); border-radius: 11px;
  background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 700;
}

.team-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.team-avatar {
  width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden;
  border-radius: 12px; background: var(--soft); color: var(--navy-800);
  font: 800 15px 'Manrope';
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar-large { width: 74px; height: 74px; border-radius: 18px; font-size: 26px; }

/* ------------------------------------------------------------ Formulare der Module */

.team-form { margin: 0 0 18px; }
.team-form-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--line); background: #f8fafb;
}
.team-form-actions small { margin-right: auto; color: var(--muted); font-size: 11px; }

.team-check {
  display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; font-size: 13px;
}
.team-check.full { grid-column: 1 / -1; }
.team-check input { width: 17px; height: 17px; accent-color: var(--blue); }

/* ------------------------------------------------------------ Kontenliste */

.team-account-list { display: grid; gap: 8px; }
.team-account {
  display: grid; align-items: center; gap: 14px;
  grid-template-columns: 40px minmax(150px, 1.2fr) minmax(140px, 1fr) 120px 118px 128px 142px auto;
  padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff;
  transition: .16s;
}
.team-account:hover { border-color: #bad4e3; box-shadow: 0 7px 20px rgba(18, 38, 60, .06); }
.team-account.head {
  padding: 6px 15px; border: 0; background: transparent; box-shadow: none;
  color: var(--muted); font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
}
.team-account.head:hover { border: 0; box-shadow: none; }
.team-account.inactive { background: #fbfcfd; opacity: .82; }
.team-account-main { min-width: 0; }
.team-account-main strong { display: block; font: 800 14px/1.25 'Manrope'; }
.team-account-main small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.team-account-mail,
.team-account-seen {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--muted); font-size: 11px;
}
.team-account .badge { justify-self: start; }
.team-account .row-actions { justify-content: flex-end; }
.team-account .row-actions .icon-button { width: 34px; height: 34px; }
.team-account .row-actions svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ Eigenes Profil */

.team-profile-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  margin: 0 0 18px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: 0 5px 18px rgba(18, 38, 60, .035);
}
.team-profile-head h2 { margin: 0; font: 800 22px/1.1 'Manrope'; letter-spacing: -.03em; }
.team-profile-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.team-profile-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.team-avatar-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.team-avatar-actions small { color: var(--muted); font-size: 10px; text-align: right; }

.team-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 18px; }
.team-profile-grid .panel { display: flex; flex-direction: column; }
.team-profile-grid .panel-body { flex: 1; }

.team-switch-list { display: grid; gap: 10px; margin-top: 16px; }
.team-switch {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd;
}
.team-switch:hover { border-color: #bad4e3; }
.team-switch input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.team-switch strong { display: block; font-size: 13px; }
.team-switch small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }

/* Kompakte Listendarstellung aus den persönlichen Einstellungen. */
body.team-compact-lists .team-account { padding: 8px 13px; gap: 10px; }
body.team-compact-lists .team-account-main small { display: none; }

/* ------------------------------------------------------------ Schmale Fenster */

@media (max-width: 1180px) {
  .team-account { grid-template-columns: 40px minmax(140px, 1.4fr) 110px 112px auto; }
  .team-account-mail, .team-account-seen, .team-account-review { display: none; }
  .team-account.head span:nth-child(3),
  .team-account.head span:nth-child(6),
  .team-account.head span:nth-child(7) { display: none; }
}

@media (max-width: 820px) {
  .team-command { flex-direction: column; align-items: flex-start; }
  .team-stats { grid-template-columns: 1fr; }
  .team-profile-grid { grid-template-columns: 1fr; }
  .team-profile-head { grid-template-columns: auto minmax(0, 1fr); }
  .team-avatar-actions { grid-column: 1 / -1; }
  .team-avatar-actions small { text-align: left; }
  .team-account { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .team-account .badge { display: none; }
  .team-account.head { display: none; }
  .team-form-actions { flex-wrap: wrap; }
}
