/* === Team Card (Kontaktkarte) – ohne Bootstrap === */

.team-block {
  position: relative;
  max-width: 320px;       /* Begrenzung ähnlich col-4 */
  margin: 0 auto 40px;    /* zentrieren + Abstand unten */
  flex: 1 1 300px;        /* für flex-container Layout */
}
/* Container für mehrere Karten nebeneinander */
.team-container {
  display: flex;
  flex-wrap: nowrap;             /* alles in einer Reihe */
  gap: 20px;
  overflow-x: auto;              /* horizontales Scrollen */
  scroll-snap-type: x mandatory; /* snap horizontal */
  -webkit-overflow-scrolling: touch; /* smooth scroll auf iOS */
  padding-bottom: 12px;
  scrollbar-width: thin;
  border-bottom: 2px solid rgba(255,255,255,0.1); /* optischer Hinweis */
  cursor: grab;                  /* zeigt: kann bewegt werden */
}

.team-container:active {
  cursor: grabbing;
}


/* Karten */
.team-block {
  flex: 0 0 280px;               /* feste Breite */
  scroll-snap-align: start;      /* jede Karte rastet am Anfang ein */
}


/* Karten gleichmäßig darstellen */
.team-block {
  flex: 0 0 280px;           /* feste Kartenbreite */
}


/* Inneres Layout */
.team-block .inner-box {
  position: relative;
  padding: 40px 70px 28px 0;
  z-index: 0;
  border-radius: 10px;
  overflow: hidden;
}

/* Grauer Untergrund */
.team-block .inner-box::before {
  content: '';
  position: absolute;
  inset: 0 0 0 70px;
  border-radius: 10px;
  background-color: #f5f5f5;
  transition: all 600ms ease;
  z-index: 0;
}

/* Farbverlauf (Hover) */
.team-block .inner-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 70px;
  bottom: 0;
  width: 0;
  border-radius: 10px;
  transition: width 600ms ease;
  z-index: 0;
  background-image: linear-gradient(to bottom, #717171 0%, #811811 100%);
}

.team-block .inner-box:hover::after {
  width: calc(100% - 70px);
}

/* Social Icons */
.team-block .inner-box .social-icons {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-block .inner-box .social-icons li {
  display: block !important;
  line-height: 1;
}

.team-block .inner-box .social-icons li a {
  display: inline-block;
  color: var(--color-company-primary, #bd0000);
  text-decoration: none;
  transition: color 0.4s ease;
}

/* Bild */
.team-block .inner-box .image {
  width: 200px;
  position: relative;
  z-index: 1;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.2);
}

.team-block .inner-box .image img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

/* Text */
.team-block .inner-box .lower-content {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: 20px 15px 0 100px;
}

.team-block .inner-box .lower-content h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-company-primary);
}

.team-block .inner-box .lower-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.4s ease;
}

.team-block .inner-box .lower-content .designation {
  margin-top: 5px;
  font-size: 14px;
  color: #777;
  transition: color 0.4s ease;
}

/* Hover-Effekte */
.team-block .inner-box:hover .lower-content h3 a,
.team-block .inner-box:hover .lower-content .designation,
.team-block .inner-box:hover .social-icons li a {
  color: #fff;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
  .team-block {
    max-width: 45%;  /* 2 Karten pro Reihe */
  }
}

@media (max-width: 600px) {
  .team-block {
    max-width: 100%; /* 1 Karte pro Reihe */
  }
}
