/* === TEAM MEMBER PAGE === */

body { background: var(--color-surface); }

/* ── HERO BANNER ── */
.tm-hero {
  padding-top: 20px;
}

.tm-hero .container {
  position: relative;
}

.tm-hero__bg {
  width: 100%;
  height: 390px;
  object-fit: cover;
  display: block;
  border-radius: 30px;
}

/* ── CONTENT NARROW ── */
.tm-narrow {
  width: 1050px;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
}

/* ── PROFILE CARD ── */
.tm-profile {
  position: relative;
  z-index: 2;
  margin-top: -180px;
  padding-bottom: 0;
}

.tm-profile__card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: var(--color-surface);
  border-radius: 25px;
  padding: 20px;
  border: 1px solid var(--color-border);
}

.tm-profile__left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.tm-profile__photo {
  width: 277px;
  height: 298px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-muted);
}

.tm-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tm-profile__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tm-profile__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px !important;
  line-height: 30px;
  color: var(--color-text-heading);
  margin: 0 0 15px;
}

.tm-profile__details {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tm-profile__details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 17.6px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-text-heading);
}

.tm-profile__details li svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.tm-profile__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.tm-profile__social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--t-fast) var(--ease);
  overflow: hidden;
}

.tm-profile__social-link:hover {
  opacity: 0.8;
}

.tm-profile__social-link svg {
  width: 32px;
  height: 32px;
  display: block;
}

.tm-profile__badge {
  flex-shrink: 0;
  align-self: flex-start;
}

.tm-profile__badge img {
  width: 110px;
  height: auto;
}

/* ── BIO + SIDEBAR ── */
.tm-bio {
  padding-top: 50px;
  padding-bottom: 40px;
}

.tm-bio__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 50px;
  align-items: start;
}

.tm-bio__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 26px;
  color: var(--color-text-heading);
  margin: 0 0 20px;
}

.tm-bio__content p {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 25.6px;
  color: var(--color-text-body);
  margin: 0 0 20px;
}

.tm-bio__content p:last-child {
  margin-bottom: 0;
}

/* ── SIDEBAR ── */
.tm-bio__sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tm-bio__sidebar .tm-sidebar__contact {
  margin-top: 16px;
}

.tm-sidebar__team-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 84px;
  padding: 0 22px;
  border: none;
  border-radius: 15px;
  background: var(--color-surface-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17.6px;
  line-height: 22px;
  color: var(--color-text-heading);
  transition: background-color var(--t-fast) var(--ease);
}

.tm-sidebar__team-link:hover {
  background: var(--color-surface-muted);
}

.tm-sidebar__team-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-text-heading);
}

.tm-sidebar__contact {
  background: var(--color-surface-muted);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tm-sidebar__contact-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 28px;
  color: var(--color-text-heading);
  margin: 0 0 24px;
}

.tm-sidebar__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-sidebar__input {
  width: 100%;
  height: 54px;
  padding: 0 20px;
  border: none;
  border-radius: 14px;
  background: var(--color-surface);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text-heading);
  outline: none;
  transition: box-shadow var(--t-fast) var(--ease);
}

.tm-sidebar__input::placeholder {
  color: #999;
  font-weight: 400;
}

.tm-sidebar__input:focus {
  box-shadow: none;
  outline: none;
}

.tm-sidebar__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  cursor: pointer;
}

.tm-sidebar__checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.tm-sidebar__checkbox span {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: var(--color-text-heading);
}

.tm-sidebar__contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 10px 30px;
  border-radius: 55px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 24px;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 16px;
  transition: background-color var(--t-fast) var(--ease);
}

.tm-sidebar__contact-btn:hover {
  background: var(--color-primary-hover);
  color: var(--color-on-primary);
}

/* ── FACHLICHE KOMPETENZEN ── */
.tm-kompetenzen {
  background: var(--color-surface);
  padding: 30px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.tm-kompetenzen__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 26px;
  color: var(--color-text-heading);
  margin: 0 0 24px;
}

.tm-kompetenzen__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tm-kompetenzen__tag {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  border: 1px solid var(--color-primary);
  border-radius: 55px;
  background: var(--color-surface);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 42px;
  color: var(--color-text-heading);
}

/* ── AKTUELLE OBJEKTE ── */
.tm-objekte {
  background: var(--color-surface);
  padding-top: 30px;
  padding-bottom: 60px;
}

.tm-objekte__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 26px;
  color: var(--color-text-heading);
  margin: 0 0 24px;
}

.tm-objekte__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tm-objekt {
  display: flex;
  align-items: stretch;
  gap: 24px;
  background: var(--color-surface);
  border-radius: 20px;
  padding: 10px;
  text-decoration: none;
  border: 1px solid var(--color-border);
}

.tm-objekt__media {
  width: 235px;
  height: 145px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg-muted);
}

.tm-objekt__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tm-objekt__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 4px 0;
  min-width: 0;
}

.tm-objekt__type {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-text-heading);
}

.tm-objekt__price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--color-text-heading);
  margin: 0;
}

.tm-objekt__desc {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-text-heading);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .tm-bio__grid {
    grid-template-columns: 1fr 320px;
    gap: 36px;
  }
}

@media (max-width: 880px) {
  .tm-hero__bg { height: 300px; }

  .tm-profile__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
  }

  .tm-profile__left {
    flex-direction: column;
    align-items: center;
  }

  .tm-profile__info {
    align-items: center;
  }

  .tm-profile__details li {
    justify-content: center;
  }

  .tm-profile__social {
    justify-content: center;
  }

  .tm-bio__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tm-bio__sidebar {
    order: -1;
  }

  .tm-objekt__media {
    width: 160px;
    height: 120px;
  }
}

@media (max-width: 580px) {
  .tm-hero__bg { height: 220px; border-radius: 20px; }

  .tm-profile__card { padding: 24px 18px; }
  .tm-profile__photo { width: 180px; height: 180px; border-radius: 16px; }
  .tm-profile__name { font-size: 22px; line-height: 28px; }

  .tm-objekt {
    flex-direction: column;
    gap: 14px;
  }

  .tm-objekt__media {
    width: 100%;
    height: 180px;
  }
}
