/* Team v3 only: all selectors are scoped to the redesigned section. */
.team-v3 .ueberuns-team-grid {
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}
.team-v3 .team-v3-leads { max-width: 820px; margin: 0 auto 2.5rem; }
.team-v3 .team-v3-lead-label { max-width: 820px; margin-inline: auto; }
.team-v3 .ueberuns-person {
  padding: 1.5rem 1rem 0;
  border: 1px solid #e8e1dc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px #29272a05;
  overflow: visible;
  transition: transform .2s ease, box-shadow .2s ease;
}
.team-v3 .team-v3-leads .ueberuns-person { padding: 1.75rem 1.25rem 0; }
.team-v3 .team-v3-portrait {
  width: 112px;
  height: 112px;
  margin-inline: auto;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  isolation: isolate;
}
.team-v3 .ueberuns-portrait {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  transform-origin: top left;
  transform: translate(var(--portrait-x, 0%), var(--portrait-y, 0%)) scale(var(--portrait-scale, 1));
}
.team-v3 .ueberuns-person-body { min-width: 0; padding: 1rem 0 0; text-align: center; }
.team-v3 .ueberuns-person h3 { margin: 0 0 .35rem; font-size: 1.125rem; font-weight: 700; }
.team-v3 .team-v3-leads h3 { font-size: 1.25rem; }
.team-v3 .ueberuns-role { min-height: 2.6em; margin: 0 0 .75rem; color: var(--colororangeww); font-size: .8rem; line-height: 1.4; }
.team-v3 .team-v3-area {
  margin: .65rem 0 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #655f5a;
  font-size: .8rem;
}
.team-v3 .ueberuns-phone {
  margin: .8rem 0 1rem;
  padding: .25rem 0;
  border: 0;
  font-size: .9rem;
  color: #b04318;
}
.team-v3 .ueberuns-more { margin: auto 0 0; border-top: 1px solid #e8e1dc; font-size: .85rem; }
.team-v3 .ueberuns-more summary {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  min-height: 48px;
  padding-block: .75rem;
  list-style: none;
  cursor: pointer;
  text-align: left;
}
.team-v3 .ueberuns-more summary::-webkit-details-marker { display: none; }
.team-v3 .ueberuns-more summary::marker { content: ""; }
.team-v3 .ueberuns-more summary::after { content: "+"; color: var(--colororangeww); font-size: 1.4rem; transform: none; transition: none; }
.team-v3 .ueberuns-more[open] summary::after { content: "−"; transform: none; }
.team-v3 .ueberuns-more dl { margin: 0 0 1rem; padding: .9rem; text-align: left; font-size: .85rem; }
.team-v3 .ueberuns-more dt { line-height: 1.45; }
.team-v3 :is(a, summary):focus-visible { outline: 3px solid #b04318; outline-offset: 3px; border-radius: 4px; }
.team-v3 .team-v3-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 480px) {
  .team-v3 .ueberuns-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .team-v3 .team-v3-members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-v3 .team-v3-portrait { width: 128px; height: 128px; }
}
@media (min-width: 1100px) {
  .team-v3 .team-v3-members { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (hover: hover) {
  .team-v3 .ueberuns-person:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #29272a12; }
}
@media (prefers-reduced-motion: reduce) {
  .team-v3 .ueberuns-person { transition: none; }
  .team-v3 .ueberuns-person:hover { transform: none; }
}
/* Measured from source non-white bounds and visually aligned to head/shoulders.
   Scale and translation apply after a centered, top-aligned object-fit crop. */
.team-v3 .team-v3-bernd { --portrait-scale: 1; --portrait-x: 0%; --portrait-y: 0%; }
.team-v3 .team-v3-kerstin { --portrait-scale: 1; --portrait-x: 0%; --portrait-y: 0%; }
.team-v3 .team-v3-anja { --portrait-scale: 1; --portrait-x: 0%; --portrait-y: 0%; }
.team-v3 .team-v3-sebastian { --portrait-scale: 1; --portrait-x: 0%; --portrait-y: 0%; }
.team-v3 .team-v3-arne { --portrait-scale: 1.2410; --portrait-x: -13.361%; --portrait-y: -20.492%; }
.team-v3 .team-v3-asim { --portrait-scale: 1; --portrait-x: 0%; --portrait-y: 0%; }
.team-v3 .team-v3-maxim { --portrait-scale: 1; --portrait-x: 0%; --portrait-y: 0%; }
.team-v3 .team-v3-markus { --portrait-scale: 1; --portrait-x: 0%; --portrait-y: 0%; }
.team-v3 .team-v3-martin { --portrait-scale: 1; --portrait-x: 0%; --portrait-y: 0%; }

/* CTA v3 */
.cta-v3 { padding-block: 3.5rem 4.5rem; background: #fff; }
.cta-v3-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; background: #faf8f7; border: 1px solid #e8e1dc; border-radius: 20px; box-shadow: 0 12px 36px #29272a0d; overflow: hidden; }
.cta-v3-img { display: block; width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.cta-v3-body { padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.cta-v3-body h2 { margin: 0 0 .75rem; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.2; }
.cta-v3-body p:not(.ueberuns-eyebrow) { margin: 0 0 1.75rem; max-width: 32rem; }
.cta-v3-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-v3-btn { display: inline-flex; align-items: center; justify-content: center; padding: .9rem 1.5rem; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid var(--colororangeww, #e95a22); transition: background-color .2s ease, color .2s ease; }
.cta-v3-btn--primary { background: var(--colororangeww, #e95a22); color: #fff; }
.cta-v3-btn--primary:hover { background: #b04318; border-color: #b04318; color: #fff; }
.cta-v3-btn--secondary { background: #fff; color: #b04318; }
.cta-v3-btn--secondary:hover { background: #fdeee7; }
.cta-v3-btn:focus-visible { outline: 3px solid #29272a; outline-offset: 3px; }
@media (max-width: 767px) {
  .cta-v3-box { grid-template-columns: 1fr; }
  .cta-v3-img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .cta-v3-btn { flex: 1 1 100%; }
}

/* Final: 9 gleich große Karten, 3/2/1 Spalten, gleiche Höhe */
.team-v3 .ueberuns-team-grid.team-v3-members { grid-template-columns: 1fr; align-items: stretch; max-width: none; margin: 0; }
@media (min-width: 600px) { .team-v3 .ueberuns-team-grid.team-v3-members { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .team-v3 .ueberuns-team-grid.team-v3-members { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.team-v3 .ueberuns-person { display: flex; flex-direction: column; height: 100%; }
.team-v3 .ueberuns-person-body { display: flex; flex-direction: column; flex: 1; }
.team-v3 .ueberuns-person-body > details { margin-top: auto; }

/* Ring Variante B: weicher Schatten + hellgrauer Rand */
.team-v3 .team-v3-portrait {
  border: 1px solid #e3ddd9;
  box-shadow: 0 6px 18px rgba(41, 39, 42, .12), 0 1px 3px rgba(41, 39, 42, .08);
}
