/* ════════════════════════════════════════════════════════════
   PARITY: Team + Projects grids
   Live: components/sections/TeamGrid.tsx, ProjectGrid.tsx
   (pages /team/, /en/team/, /projekte/, /en/projects/ and the
   homepage "was bereits entstanden ist" teaser).
   Markup: blocks/sic-team-grid.php, blocks/sic-project-grid.php
   ════════════════════════════════════════════════════════════ */

/* On the archives the grid has no SectionHeader of its own, but live
   still renders an empty one (mb-10) above the grid. */
.sic-team-section .team-grid--headless,
.sic-project-section .project-grid--headless { margin-top: 2.5rem; }

/* ── Team grid ───────────────────────────────────────────────
   grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-6 lg:gap-8 */
.sic-team-section .team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .sic-team-section .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .sic-team-section .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}

/* flex flex-col items-center text-center group */
.sic-team-section .team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* relative h-32 w-32 sm:h-36 sm:w-36 rounded-full bg-gradient-to-br
   from-primary-200 to-secondary-200 flex items-center justify-center
   mb-4 transition-transform duration-base group-hover:scale-[1.03]
   overflow-hidden */
.sic-team-section .team-member__avatar {
  position: relative;
  width: 8rem;
  height: 8rem;
  margin: 0 0 1rem;
  border-radius: 9999px;
  background-image: linear-gradient(to bottom right, var(--primary-200), var(--secondary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 640px) {
  .sic-team-section .team-member__avatar { width: 9rem; height: 9rem; }
}
.sic-team-section .team-member:hover .team-member__avatar { transform: scale(1.03); }

/* w-full h-full object-cover */
.sic-team-section .team-member__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

/* font-heading text-3xl font-bold text-neutral-800 */
.sic-team-section .team-member__initials {
  font-family: var(--font-heading);
  font-size: 1.953rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: var(--neutral-800);
}

/* font-heading text-base font-semibold text-neutral-900 */
.sic-team-section .team-member__name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: var(--neutral-900);
}

/* text-sm text-neutral-600 mt-0.5 */
.sic-team-section .team-member__role {
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--neutral-600);
}

/* mt-3 flex items-center gap-2 (rendered even when empty, as on live) */
.sic-team-section .team-member__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* inline-flex items-center justify-center h-8 w-8 rounded-md
   text-neutral-500 hover:text-primary-600 hover:bg-primary-50
   transition-colors */
.sic-team-section .team-member__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  color: var(--neutral-500);
  background-color: transparent;
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sic-team-section .team-member__link:hover {
  color: var(--primary-600);
  background-color: var(--primary-50);
}
.sic-team-section .team-member__link svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* ── Project grid ────────────────────────────────────────────
   grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5          */
.sic-project-section .project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .sic-project-section .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .sic-project-section .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* bg-surface p-6 rounded-lg border border-neutral-200
   (linked cards: block hover:border-neutral-300 hover:shadow-md
   transition-all duration-base) */
.sic-project-section .project-card {
  display: block;
  padding: 1.5rem;
  background-color: var(--surface);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sic-project-section div.project-card:hover {
  border-color: var(--neutral-200);
  box-shadow: none;
}
.sic-project-section a.project-card:hover {
  border-color: var(--neutral-300);
  box-shadow: var(--shadow-md);
}

/* h-12 mb-4 flex items-center */
.sic-project-section .project-card__logo {
  display: flex;
  align-items: center;
  height: 3rem;
  margin: 0 0 1rem;
}
/* max-h-12 w-auto max-w-[80%] object-contain object-left */
.sic-project-section .project-card__logo img {
  display: block;
  height: auto;
  max-height: 3rem;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  object-position: left;
}
/* fallback tile: h-12 w-12 rounded-lg flex items-center justify-center
   font-heading text-xl font-bold */
.sic-project-section .project-card__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  text-transform: none;
}
.sic-project-section .project-card__initial--primary   { background-color: var(--primary-100);   color: var(--primary-700); }
.sic-project-section .project-card__initial--secondary { background-color: var(--secondary-100); color: var(--secondary-700); }
.sic-project-section .project-card__initial--neutral   { background-color: var(--neutral-200);   color: var(--neutral-700); }

/* font-heading text-lg font-semibold text-neutral-900 leading-tight */
.sic-project-section .project-card__name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--neutral-900);
}

/* flex items-center gap-2 mt-2 */
.sic-project-section .project-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* <Badge variant="neutral" size="sm">: inline-flex items-center
   rounded-full font-medium whitespace-nowrap bg-neutral-100
   text-neutral-700 text-xs px-2 py-0.5 */
.sic-project-section .project-card .badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background-color: var(--neutral-100);
  color: var(--neutral-700);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  letter-spacing: normal;
  white-space: nowrap;
}

/* text-xs text-neutral-500 */
.sic-project-section .project-card__year {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--neutral-500);
}

/* text-sm text-neutral-600 leading-relaxed mt-3 */
.sic-project-section .project-card__desc {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--neutral-600);
}

/* Homepage teaser CTA: mt-12 text-center, <Button variant="outline"
   size="md"> with an 18px arrow (no nudge on hover). */
.sic-project-section .project-grid__cta {
  margin-top: 3rem;
  text-align: center;
}
.sic-project-section .project-grid__cta .btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transform: none;
}
