/* ===== Team page (Figma 515:1627) — 1:1 ===== */
.team {
  font-family: "Inter", sans-serif;
}

/* ===== Organisation chart (acf/team-org-chart block) ===== */
.org {
  background: linear-gradient(180deg, #fff 0%, #f4f4f3 100%);
  padding: 72px 0 90px;
}
.org__chart {
  position: relative;
  text-align: center;
}
.org__top {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 16px 69px;
  border-radius: 10px;
  background: #c00;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 19.58px;
  letter-spacing: -0.072px;
}
.org__star {
  font-size: 10px;
  line-height: 1;
  opacity: 0.85;
  vertical-align: super;
}
/* connector: stem from top box → horizontal bar → drops into each column */
.org__connector {
  position: relative;
  height: 52px;
}
.org__stem {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 26px;
  margin-left: -0.5px;
  background: #d6cdc8;
}
.org__hbar {
  position: absolute;
  top: 26px;
  left: 16.666%;
  right: 16.666%;
  height: 1px;
  background: #d6cdc8;
}
.org__drop {
  position: absolute;
  top: 26px;
  width: 1px;
  height: 26px;
  margin-left: -0.5px;
  background: #d6cdc8;
}
.org__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 26px;
  text-align: left;
}
.org__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.org__col-head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 22px 24px;
  border-radius: 10px;
  background: #c00;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 19.58px;
  letter-spacing: -0.072px;
  text-align: center;
}
.org__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 493px;
  padding: 25px 25px 23px;
  border: 1px solid #e6e4e0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(15, 15, 16, 0.04), 0 1px 0.5px rgba(15, 15, 16, 0.03);
}
.org__subtitle {
  padding-bottom: 15px;
  border-bottom: 1px solid #efeeec;
  color: #c00;
  font-size: 16px;
  font-weight: 700;
  line-height: 22.5px;
  letter-spacing: -0.075px;
}
.org__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.org__group-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #0f0f10;
  font-size: 14px;
  font-weight: 600;
  line-height: 20.25px;
  letter-spacing: -0.08px;
}
.org__sq {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  background: #c00;
}
.org__list {
  list-style: none;
  margin: 0;
  padding-left: 14px;
}
.org__list li {
  position: relative;
  padding: 2.5px 0 2.5px 14px;
  color: #424248;
  font-size: 14px;
  font-weight: 400;
  line-height: 19.5px;
  letter-spacing: -0.08px;
}
.org__list li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 2.5px;
  color: #c00;
  font-size: 13px;
  line-height: 19.5px;
}
.org__footnote {
  margin: 18px 0 0;
  color: #87878d;
  font-size: 12px;
  line-height: 18px;
  text-align: left;
}
.org__footnote sup {
  color: #c00;
}

/* ===== Team grid + filters ===== */
.team-grid-section {
  background: #fff;
  padding: 72px 0 88px;
}
.team-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding-bottom: 29px;
  margin-bottom: 31px;
  border-bottom: 1px solid #e6e4e0;
}
.team-search {
  position: relative;
  width: 300px;
  max-width: 100%;
}
.team-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #87878d;
  pointer-events: none;
}
.team-search input {
  width: 100%;
  padding: 12px 19px 12px 43px;
  border: 1px solid #e6e4e0;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: #0f0f10;
}
.team-search input::placeholder {
  color: #87878d;
}
.team-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7.7px;
}
.team-tab {
  padding: 9px 17px;
  border: 1px solid #e6e4e0;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #424248;
  cursor: pointer;
  transition: 0.15s;
}
.team-tab:hover {
  border-color: #c00;
  color: #c00;
}
.team-tab.is-active {
  background: #c00;
  border-color: #c00;
  color: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 4px;
  align-items: stretch;
}

/* ----- Team card ----- */
.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 31px 27px 23px;
  border: 1px solid #e6e4e0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 15, 16, 0.04), 0 1px 1px rgba(15, 15, 16, 0.03);
}
.team-card.is-hidden {
  display: none;
}
.team-card__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #c00;
}
.team-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 1px rgba(15, 15, 16, 0.04), 0 1px 0.5px rgba(15, 15, 16, 0.03);
  background: linear-gradient(135deg, #d4d4d2 0%, #a8a8a5 100%);
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  line-height: 28.5px;
  letter-spacing: 0.38px;
}
.team-card__name {
  margin: 0;
  color: #0f0f10;
  font-size: 17px;
  font-weight: 700;
  line-height: 25.5px;
  letter-spacing: -0.17px;
}
.team-card__role {
  margin: 0 0 16px;
  color: #424248;
  font-size: 13px;
  font-weight: 400;
  line-height: 18.85px;
  letter-spacing: -0.08px;
}
.team-card__contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #efeeec;
}
.team-card__row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #0f0f10;
  font-size: 13px;
  line-height: 19.5px;
  letter-spacing: -0.08px;
  text-decoration: none;
}
.team-card__row:hover {
  color: #c00;
}
.team-card__icon {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: #c00;
  stroke: #c00;
}
.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.team-card__tag {
  padding: 4px 11px;
  border: 1px solid #e6e4e0;
  border-radius: 999px;
  background: #f4f4f3;
  color: #424248;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 15.75px;
  letter-spacing: 0.42px;
  text-transform: uppercase;
}
.team-empty {
  margin: 8px 0 0;
  color: #424248;
  font-size: 16px;
}
.team-grid__heading {
  margin: 0 0 24px;
}

/* ===== Opening hours (acf/team-hours block) ===== */
.team-hours {
  background: #f4f4f3;
  padding: 64px 20px 88px;
}
.team-hours__card {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 37px 41px 39px;
  border: 1px solid #e6e4e0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 15, 16, 0.04), 0 1px 1px rgba(15, 15, 16, 0.03);
}
.team-hours__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #c00;
}
.team-hours__head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f0f10;
}
.team-hours__head svg {
  color: #c00;
}
.team-hours__title {
  margin: 0;
  color: #0f0f10;
  font-size: 21px;
  font-weight: 700;
  line-height: 31.5px;
  letter-spacing: -0.21px;
}
.team-hours__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.team-hours__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  border-radius: 12px;
  background: #f4f4f3;
}
.team-hours__label {
  color: #c00;
  font-size: 11px;
  font-weight: 700;
  line-height: 16.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.team-hours__times {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-hours__times span {
  color: #0f0f10;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 21.75px;
  letter-spacing: -0.08px;
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Org-chart stacks (Figma 1413:393): full-width Geschäftsführung bar, no
     connector, then full-width section cards. */
  .org {
    padding: 32px 0 44px;
  }
  .org__chart {
    text-align: left;
  }
  .org__top {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 15px;
  }
  .org__connector {
    display: none;
  }
  .org__cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .org__col-head {
    font-size: 14.5px;
  }
  .org__card {
    min-height: 0;
    padding: 21px 19px 19px;
    border-radius: 12px;
  }
}
@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card {
    padding: 19px 16px; /* Figma 1357:1820 — px-16 py-19 */
  }
  .team-hours__grid {
    grid-template-columns: 1fr;
  }
  .team-hours__card {
    padding: 32px 24px;
  }
}
