/* ---------- Team-Ansicht: Checklisten-Übersicht ----------
   Nur in team/index.html geladen (body.team-view). Handy-Layout und
   Animationen für beide Ansichten liegen in shared/views.css. */

/* Zusatzzeile im Checklisten-Eintrag (z. B. Code) unter den Text statt daneben */
.team-view .check-item {
  flex-wrap: wrap;
}
.team-view .check-item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.team-view .check-item > span:nth-child(3) {
  flex-basis: 100%;
  margin: -4px 0 0 30px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--terracotta-dark);
}

/* Erledigtes tritt zurück, Offenes springt ins Auge */
.team-view .check-item.toggleable.on > span:not(.icon) {
  opacity: 0.55;
}

/* ---------- Fortschritt je Checkliste ---------- */
.team-view .checklist-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.team-view .progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(320px, 100%);
}

.team-view .progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.team-view .progress-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--olive);
  border-radius: inherit;
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.team-view .progress-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cream-light);
  white-space: nowrap;
}

.team-view .progress.complete .progress-text {
  color: var(--white);
}

/* ---------- Zähler je Abschnitt ---------- */
.team-view .group-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  transition: color 0.25s ease;
}

.team-view .group-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0;
  color: #a8997a;
  transition: color 0.25s ease;
}

.team-view .group-label.group-done,
.team-view .group-label.group-done .group-count {
  color: var(--olive-dark);
}

/* ---------- Handy: Checklisten ---------- */
@media (max-width: 760px) {
  .team-view .group-label {
    margin: 18px 0 8px;
  }

  .team-view .checklist {
    gap: 6px;
  }

  .team-view .check-item {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .team-view .check-item .icon {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .team-view .check-item > span:nth-child(3) {
    margin-left: 34px;
  }
}
