/* DEBUG: if you don't see this, the file is not loaded */
#html { box-shadow: inset 0 0 0 12px rgba(255,0,0,0.65) !important; }

/* =========================================
   Imprint page layout fixes
   ========================================= */

/* Make imprint content wider */
html:has(link[rel="canonical"][href$="/imprint/"]) .article-container {
  max-width: 1100px;
}

/* Slightly reduce line pressure in dense role blocks */
html:has(link[rel="canonical"][href$="/imprint/"]) .article-style p {
  line-height: 1.55;
}

/* Optional: prevent awkward line breaks in long titles */
.nowrap {
  white-space: nowrap;
}

/* Team / Alumni grid: center each row as a whole */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* centers each row */
  gap: 2rem 2.5rem;
}

/* Individual team tiles */
.team-member {
  flex: 0 0 220px;           /* tile width; adjust if needed */
  text-align: center;
}

.team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:2rem;
  align-items:start;
}

/* Only the CURRENT team grid: make the first card its own row and centered */
.team-grid--current > .team-member:first-child{
  grid-column:1 / -1;      /* own row */
  justify-self:center;     /* centered in that row */
  max-width:260px;         /* so it looks centered, not stretched */
  width:100%;
}

/* Optional: center text inside cards */
.team-member{
  text-align:center;
}

