/* @ondemand */
.kkh-team-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  container-type: inline-size;
  align-self: stretch;
  width: auto;
  margin: 0;
  padding: 0;
  overflow: clip;
  background-color: var(--kkh-creme-dunkel);
  list-style: none;
}

.kkh-team-grid__item {
  position: relative;
  display: flex;
  min-width: 0;
}
.kkh-team-grid__item > .kkh-person {
  width: 100%;
  height: 100%;
}

.kkh-person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  min-width: 0;
  padding: clamp(3.2rem, calc(3.2rem + (6 - 3.2) * 10 * ((100vw - 325px) / (1920 - 325))), 6rem) clamp(2rem, calc(2rem + (4 - 2) * 10 * ((100vw - 325px) / (1920 - 325))), 4rem);
  border-top: 1px solid var(--kkh-linie-stark);
  border-left: 1px solid var(--kkh-linie-stark);
}

.kkh-person__portrait {
  display: block;
  width: clamp(12rem, calc(12rem + (22.2 - 12) * 10 * ((100vw - 325px) / (1920 - 325))), 22.2rem);
  max-width: 100%;
  aspect-ratio: 1;
  margin-bottom: clamp(2.4rem, calc(2.4rem + (4 - 2.4) * 10 * ((100vw - 325px) / (1920 - 325))), 4rem);
  border-radius: 50%;
  object-fit: cover;
}

img.kkh-person__portrait:is(:not([src]), [src=""]),
.kkh-person__portrait:not(img):not(:has(img[src]:not([src=""]))) {
  display: none;
}

.kkh-person__portrait-button {
  display: block;
  width: clamp(12rem, calc(12rem + (22.2 - 12) * 10 * ((100vw - 325px) / (1920 - 325))), 22.2rem);
  max-width: 100%;
  margin: 0 0 clamp(2.4rem, calc(2.4rem + (4 - 2.4) * 10 * ((100vw - 325px) / (1920 - 325))), 4rem);
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.kkh-person__portrait-button .kkh-person__portrait {
  width: 100%;
  max-width: none;
  margin: 0;
}
.kkh-person__portrait-button:focus-visible {
  outline: 2px solid var(--kkh-rot);
  outline-offset: 4px;
}

.kkh-person__name {
  margin: 0 0 var(--sp-12);
  font-family: var(--kkh-font-sans);
  font-size: clamp(1.8rem, calc(1.8rem + (2.6 - 1.8) * 10 * ((100vw - 325px) / (1920 - 325))), 2.6rem);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: 0;
}

.kkh-person__role {
  margin: 0 0 var(--sp-16);
  color: var(--kkh-text-leise);
  font-family: var(--kkh-font-sans);
  font-size: var(--fs-s-sm);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kkh-person__role a {
  padding-bottom: 0;
  border-bottom: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-decoration-color: currentcolor;
  text-decoration-thickness: 1px;
  text-transform: inherit;
  text-underline-offset: 0.2em;
}
.kkh-person__role a:hover {
  color: var(--area-hover, var(--kkh-rot));
  text-decoration: underline;
}

.kkh-person__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-12);
  margin-top: var(--sp-40);
}

.kkh-person__bio {
  display: none;
}

.kkh-person__more {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--kkh-font-sans);
  font-size: var(--fs-s-sm);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.kkh-person__more:hover {
  color: var(--area-ink, var(--kkh-rot));
}
.kkh-person__more:focus-visible {
  outline: 2px solid var(--kkh-rot);
  outline-offset: 4px;
}

.kkh-person__contact a {
  color: inherit;
  font-family: var(--kkh-font-sans);
  font-size: clamp(1.5rem, calc(1.5rem + (2 - 1.5) * 10 * ((100vw - 325px) / (1920 - 325))), 2rem);
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-transform: none;
  text-underline-offset: 0.3em;
}
.kkh-person__contact a:hover {
  color: var(--area-ink, var(--kkh-rot));
}

.kkh-team-grid__teaser {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--sp-40);
  min-width: 0;
  padding: clamp(3.2rem, calc(3.2rem + (6 - 3.2) * 10 * ((100vw - 325px) / (1920 - 325))), 6rem) clamp(2rem, calc(2rem + (4 - 2) * 10 * ((100vw - 325px) / (1920 - 325))), 4rem);
  border-top: 1px solid var(--kkh-linie-stark);
  border-left: 1px solid var(--kkh-linie-stark);
}

.kkh-team-grid > *,
.kkh-team-grid > * > .kkh-person {
  border-top-width: 0;
  border-left-width: 0;
}

.kkh-team-grid > :not(:first-child)::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100cqw;
  border-top: 1px solid var(--kkh-linie-stark);
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .kkh-content__inner > .kkh-team-grid[data-kkh-grid=logos] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: clip;
  }
  .kkh-content__inner > .kkh-team-grid[data-kkh-grid=logos] .kkh-person {
    padding: 2.4rem 1rem;
  }
  .kkh-content__inner > .kkh-team-grid[data-kkh-grid=logos] .kkh-person__contact a {
    max-width: 100%;
    font-size: 1.35rem;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
  .kkh-content__inner > .kkh-team-grid[data-kkh-grid=logos] > :not(:nth-child(2n+1))::before {
    content: none;
  }
  .kkh-content__inner > .kkh-team-grid[data-kkh-grid=logos] > :nth-child(2n+1) {
    border-right: 1px solid var(--kkh-linie-stark);
  }
  .kkh-content__inner > .kkh-team-grid[data-kkh-grid=logos] > :nth-child(2n+1):not(:first-child)::before {
    content: "";
  }
  .kkh-content__inner > .kkh-team-grid[data-kkh-grid=logos] .kkh-person__role {
    font-size: max(1.2rem, var(--fs-s-sm));
  }
  .kkh-team-grid:not([data-kkh-grid=logos]) .kkh-person,
  .kkh-contact-people__people .kkh-person {
    display: grid;
    grid-template-columns: 6.4rem minmax(0, 1fr);
    align-items: start;
    justify-items: start;
    column-gap: 1.6rem;
    padding-block: 2rem;
  }
  .kkh-team-grid:not([data-kkh-grid=logos]) .kkh-person > *,
  .kkh-contact-people__people .kkh-person > * {
    grid-column: 2;
  }
  .kkh-team-grid:not([data-kkh-grid=logos]) .kkh-person > .kkh-person__portrait,
  .kkh-team-grid:not([data-kkh-grid=logos]) .kkh-person > .kkh-person__portrait-button,
  .kkh-contact-people__people .kkh-person > .kkh-person__portrait,
  .kkh-contact-people__people .kkh-person > .kkh-person__portrait-button {
    grid-column: 1;
    grid-row: 1/span 6;
    width: 6.4rem;
    margin: 0;
  }
  .kkh-team-grid:not([data-kkh-grid=logos]) .kkh-person .kkh-person__name,
  .kkh-contact-people__people .kkh-person .kkh-person__name {
    margin-bottom: 0.4rem;
    font-size: 1.8rem;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .kkh-team-grid:not([data-kkh-grid=logos]) .kkh-person .kkh-person__role,
  .kkh-contact-people__people .kkh-person .kkh-person__role {
    margin-bottom: 0.8rem;
    font-size: max(1.2rem, var(--fs-s-sm));
  }
  .kkh-team-grid:not([data-kkh-grid=logos]) .kkh-person .kkh-person__contact,
  .kkh-contact-people__people .kkh-person .kkh-person__contact {
    gap: 0.4rem;
    min-width: 0;
    margin-top: 1.2rem;
  }
  .kkh-team-grid:not([data-kkh-grid=logos]) .kkh-person .kkh-person__contact a,
  .kkh-contact-people__people .kkh-person .kkh-person__contact a {
    max-width: 100%;
    font-size: 1.5rem;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
  .kkh-team-grid:not([data-kkh-grid=logos]) .kkh-person [data-kkh-person-motto],
  .kkh-contact-people__people .kkh-person [data-kkh-person-motto] {
    margin-top: 1.2rem;
    font-size: 1.5rem;
  }
}
@media (max-width: 767.98px) {
  .kkh-team-grid:not(.kkh-content__inner > *) {
    container-type: normal;
  }
  .kkh-team-grid:not(.kkh-content__inner > *) > :not(:first-child)::before {
    width: 100%;
  }
}
.kkh-team-grid__teaser-title {
  margin: 0;
  font-family: var(--kkh-font-sans);
  font-size: clamp(2.4rem, calc(2.4rem + (4 - 2.4) * 10 * ((100vw - 325px) / (1920 - 325))), 4rem);
  font-weight: 400;
  line-height: 1;
}

.kkh-person__more::before,
.kkh-team-grid__teaser-link::before {
  content: "";
  display: inline-block;
  width: 1.7rem;
  height: 1.7rem;
  margin-right: 0.8rem;
  background: url("../../assets/icons/plus-circle.svg") center/contain no-repeat;
  vertical-align: -0.35em;
}

.kkh-team-grid__teaser-link {
  color: inherit;
  font-family: var(--kkh-font-sans);
  font-size: var(--fs-s-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .kkh-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: var(--kkh-gutter);
    background-image: none;
  }
  .kkh-team-grid > *,
  .kkh-team-grid > * > .kkh-person {
    border-top-width: 0;
    border-left-width: 0;
  }
  .kkh-content__inner > .kkh-team-grid:not([data-kkh-grid=logos]) .kkh-person__portrait,
  .kkh-content__inner > .kkh-team-grid:not([data-kkh-grid=logos]) .kkh-person__portrait-button {
    width: clamp(12rem, calc(12rem + (22.2 - 12) * 10 * ((100vw - 325px) / (1920 - 325))), 22.2rem);
  }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .kkh-team-grid > :not(:nth-child(2n+1))::before {
    content: none;
  }
  .kkh-team-grid > :nth-child(2n+1) {
    border-right: 1px solid var(--kkh-linie-stark);
  }
  .kkh-team-grid > :nth-child(2n+1):not(:first-child)::before {
    content: "";
  }
}
@media (min-width: 1200px) {
  .kkh-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    box-sizing: border-box;
    width: calc(min(100%, var(--kkh-container) + 2 * var(--kkh-gutter)) - 2 * max(var(--kkh-gutter), 8.3333333333vw));
    max-width: none;
    margin-inline: auto;
    background-image: none;
  }
  .kkh-team-grid > * {
    border-right-width: 0;
  }
  .kkh-team-grid > :not(:nth-child(3n)) {
    border-right: 1px solid var(--kkh-linie-stark);
  }
  .kkh-team-grid > :not(:nth-child(3n+1))::before {
    content: none;
  }
  .kkh-team-grid > :nth-child(3n+1):not(:first-child)::before {
    content: "";
  }
}
.kkh-team-grid[data-kkh-grid=logos] .kkh-person {
  justify-content: flex-start;
}
.kkh-team-grid[data-kkh-grid=logos] .kkh-person__portrait {
  width: auto;
  max-width: 100%;
  height: clamp(12rem, calc(12rem + (18 - 12) * 10 * ((100vw - 325px) / (1920 - 325))), 18rem);
  aspect-ratio: auto;
  padding: clamp(1.6rem, calc(1.6rem + (2.4 - 1.6) * 10 * ((100vw - 325px) / (1920 - 325))), 2.4rem);
  border-radius: 0;
  background: var(--kkh-weiss);
  object-fit: contain;
}
.kkh-team-grid[data-kkh-grid=logos] img.kkh-person__portrait {
  height: auto;
  max-height: clamp(12rem, calc(12rem + (18 - 12) * 10 * ((100vw - 325px) / (1920 - 325))), 18rem);
}
.kkh-team-grid[data-kkh-grid=logos] .kkh-person__portrait:not(img) {
  display: grid;
  place-items: center;
  width: 100%;
}
.kkh-team-grid[data-kkh-grid=logos] .kkh-person__portrait img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

/*
 * Wiederverwendung innerhalb eines roten Abschnitts.
 */
.kkh-on-red .kkh-person {
  color: var(--kkh-creme);
  border-color: rgba(255, 253, 247, 0.35);
}
.kkh-on-red .kkh-person__role {
  color: var(--kkh-creme);
  opacity: 0.8;
}
.kkh-on-red .kkh-person__contact a {
  color: var(--kkh-creme);
}

[data-kkh-person-motto] {
  position: relative;
  isolation: isolate;
  margin: clamp(2rem, calc(2rem + (4 - 2) * 10 * ((100vw - 325px) / (1920 - 325))), 4rem) 0 0;
  padding-top: clamp(1.2rem, calc(1.2rem + (2 - 1.2) * 10 * ((100vw - 325px) / (1920 - 325))), 2rem);
  font-family: var(--kkh-font-serif);
  font-size: clamp(1.6rem, calc(1.6rem + (1.9 - 1.6) * 10 * ((100vw - 325px) / (1920 - 325))), 1.9rem);
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-indent: clamp(4rem, calc(4rem + (5.6 - 4) * 10 * ((100vw - 325px) / (1920 - 325))), 5.6rem);
  text-transform: uppercase;
}
[data-kkh-person-motto]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: clamp(3.2rem, calc(3.2rem + (4.4 - 3.2) * 10 * ((100vw - 325px) / (1920 - 325))), 4.4rem);
  aspect-ratio: 44/32;
  background: #96a4a3;
  mask: url("../../assets/icons/quote-outline.svg") left top/contain no-repeat;
}

.kkh-team-grid[data-kkh-motto=aus] [data-kkh-person-motto] {
  display: none;
}

[data-kkh-person-motto] + .kkh-person__more {
  margin-top: var(--sp-20);
}
