/*
 * Team-Profile-Styles — gemeinsame Basis für die Teamübersicht (/team)
 * und die Einzelprofile (team-*.html, partner-*.html).
 * Markenfarben: Violett #301d44 / #5a3ac7, Gold #fba311 (aus style.css).
 * Ziel: eine wartbare Design-Basis für alle Profile, keine Design-Welt je Person.
 */

/* ---------- Teamübersicht: Karten-Grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.team-grid .team-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(48, 29, 68, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.team-grid .team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(48, 29, 68, 0.15);
}

.team-grid .team-card a.team-card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-grid .team-img {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.team-grid .team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-grid .team-card:hover .team-img img {
  transform: scale(1.05);
}

.team-grid .content {
  padding: 22px 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-grid .content h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: #301d44;
}

.team-grid .content .role {
  display: block;
  color: #fba311;
  font-weight: 600;
  margin-bottom: 10px;
}

.team-grid .content p {
  color: #666;
  font-size: 0.92rem;
  margin: 0 0 15px;
}

.team-grid .content .langs {
  color: #5a3ac7;
  font-size: 0.82rem;
  margin-top: auto;
}

.team-grid .content .profile-cue {
  color: #fba311;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ---------- Einzelprofil ---------- */
.profile-area {
  padding: 90px 0 40px;
}

.profile-header {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.profile-photo {
  flex: 0 0 320px;
  max-width: 100%;
}

.profile-photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(48, 29, 68, 0.15);
}

.profile-intro {
  flex: 1 1 340px;
}

.profile-intro h1 {
  color: #301d44;
  font-size: 2rem;
  margin-bottom: 6px;
}

.profile-intro .profile-role {
  color: #fba311;
  font-weight: 700;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 18px;
}

.profile-block {
  margin-bottom: 2.4rem;
}

.profile-block h2 {
  color: #301d44;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-left: 4px solid #fba311;
  padding-left: 12px;
}

.profile-block ul {
  padding-left: 1.1rem;
}

.profile-block ul li {
  margin-bottom: 8px;
  color: #444;
}

.profile-quote {
  border-left: 4px solid #5a3ac7;
  background: #f7f5fb;
  padding: 18px 22px;
  font-style: italic;
  color: #3a3350;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.profile-langs span {
  display: inline-block;
  background: #f0ecf8;
  color: #5a3ac7;
  border-radius: 20px;
  padding: 6px 16px;
  margin: 0 8px 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-contact {
  background: #301d44;
  color: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin-top: 2.5rem;
}

.profile-contact h2 {
  color: #fff;
  border: 0;
  padding: 0;
  margin-bottom: 12px;
}

.profile-contact p {
  color: #e0dde3;
  margin-bottom: 20px;
}

.profile-related {
  margin-top: 2.5rem;
}

.profile-related a {
  color: #5a3ac7;
  font-weight: 600;
}

.profile-back {
  margin-top: 2rem;
}

.profile-back a {
  color: #5a3ac7;
  font-weight: 600;
}

@media (max-width: 768px) {
  .profile-photo {
    flex: 1 1 100%;
  }
  .profile-intro h1 {
    font-size: 1.6rem;
  }
  .team-grid .team-img {
    height: 260px;
  }
}
