/* 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;
}



/* Publication thumbnails: subtle opacity + zoom on hover */
.pub-thumb-wrap {
  margin: 0.4rem 0 0.6rem 0;
  max-width: 520px;
}

.pub-thumb-link {
  display: inline-block;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid rgba(0,0,0,.08);
}

.pub-thumb-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92; /* slight transparency */
  transform: scale(1);
  transition: transform 180ms ease, opacity 180ms ease;
  will-change: transform, opacity;
}

.pub-thumb-link:hover .pub-thumb-img,
.pub-thumb-link:focus-visible .pub-thumb-img {
  opacity: 1;
  transform: scale(1.015); /* subtle zoom */
}
