:root{
  --bosch-blue:#003B5C;
  --bosch-red:#E2001A;
  --bg:#f4f6f8;
  --accent:#0f3f8a;
  --card:#ffffff;
  --muted:#6b7280;
  --border:#e6e9ef;
}

/* HERO */
.team-hero{
  position:relative;
  min-height:45vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:60px 20px;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(0,59,92,0.80), rgba(0,59,92,0.74)),
    url("https://scontent.fbud4-1.fna.fbcdn.net/v/t39.30808-6/508817937_24215180801440356_5004701547921465297_n.jpg?_nc_cat=100&ccb=1-7&_nc_sid=0327a3&_nc_ohc=xvMuoso3bJMQ7kNvwGphtM9&_nc_oc=Adn_nPcywH3MTj9mFF_xDVhe9KOn9oBycpXoPwpI4VfL6fJiu30QRYo4HWN0_V2_MZYgDN-ZQKs3KzY4eF5fX6Nu&_nc_zt=23&_nc_ht=scontent.fbud4-1.fna&_nc_gid=gwyZ0dHmkUy8j2nYhJt_XQ&_nc_ss=8&oh=00_AfxaeMXIXo_L9J2s-4Lj-c4MoyEa9OJzF-EkPjDoG0qloQ&oe=69B1BDBE") center/cover no-repeat;
}

.team-hero-inner{
  max-width:950px;
  color:white;
  position:relative;
  z-index:2;
}

.team-hero h1{
  font-size:44px;
  letter-spacing:0.2px;
  margin-bottom:12px;
  font-weight:800;
}

.team-hero p{
  font-size:18px;
  opacity:0.92;
  margin-bottom:22px;
}

.team-hero-badges{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:8px;
}

.t-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.22);
  border-radius:999px;
  backdrop-filter: blur(6px);
  font-weight:700;
  font-size:13px;
  white-space:nowrap;
}

/* SECTION */
.team-section{
  padding:70px 40px;
}

.team-wrap{
  max-width:1200px;
  margin:0 auto;
}

.team-section h2{
  text-align:center;
  color:var(--accent);
  font-size:34px;
  margin-bottom:10px;
  font-weight:800;
}

.team-sub{
  text-align:center;
  color:var(--muted);
  margin-bottom:34px;
  font-size:15px;
}

/* TEAM GRID */
.team-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}

.team-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(0,0,0,0.08);
  transition:transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  min-height:100%;
  outline:none;
}

.team-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 42px rgba(0,0,0,0.12);
  border-color:rgba(15,63,138,0.35);
}

.team-card:focus-visible{
  box-shadow:0 0 0 4px rgba(15,63,138,0.18), 0 18px 42px rgba(0,0,0,0.12);
  border-color:rgba(15,63,138,0.45);
}

.team-photo{
  position:relative;
  aspect-ratio: 4 / 5;
  background:#e9eef6;
  overflow:hidden;
}

.team-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.0);
  transition:transform 0.35s ease;
}

.team-card:hover .team-photo img{
  transform:scale(1.04);
}

.team-role-pill{
  position:absolute;
  left:12px;
  bottom:12px;
  background:rgba(15,63,138,0.92);
  color:white;
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  box-shadow:0 10px 24px rgba(0,0,0,0.22);
  max-width:calc(100% - 24px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.team-info{
  padding:14px 14px 16px 14px;
  text-align:center;
}

.team-info h3{
  color:var(--accent);
  font-size:16px;
  margin-bottom:6px;
  font-weight:900;
}

.team-info p{
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

/* REVEAL */
.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in{
  opacity:1;
  transform:translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none;transition:none;}
  .team-card, .team-photo img{transition:none;}
}

/* MODAL */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.62);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  opacity:0;
  visibility:hidden;
  transition:opacity 0.2s ease, visibility 0.2s ease;
  z-index:2000;
}

.modal.show{
  opacity:1;
  visibility:visible;
}

.modal-card{
  width:min(760px, 96vw);
  background:white;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 25px 70px rgba(0,0,0,0.35);
  transform:translateY(10px);
  transition:transform 0.2s ease;
  border:1px solid rgba(255,255,255,0.2);
}

.modal.show .modal-card{
  transform:translateY(0);
}

.modal-top{
  display:flex;
  gap:16px;
  padding:18px;
  border-bottom:1px solid #eef1f6;
  align-items:center;
  background:linear-gradient(180deg, rgba(15,63,138,0.06), rgba(15,63,138,0.02));
}

.modal-avatar{
  width:72px;
  height:72px;
  border-radius:14px;
  background:#e9eef6;
  overflow:hidden;
  flex:0 0 auto;
  border:1px solid #e6e9ef;
}

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

.modal-title{
  flex:1 1 auto;
  min-width:0;
}

.modal-title h3{
  margin:0;
  color:var(--accent);
  font-size:20px;
  font-weight:900;
}

.modal-title p{
  margin-top:6px;
  color:var(--muted);
  font-weight:700;
  font-size:14px;
}

.modal-close{
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid #e6e9ef;
  background:white;
  cursor:pointer;
  font-size:20px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:0.2s;
}

.modal-close:hover{
  border-color:rgba(15,63,138,0.35);
  transform:translateY(-1px);
}

.modal-body{
  padding:18px;
  color:#333;
  line-height:1.55;
  font-size:15px;
}

.modal-actions{
  padding:18px;
  border-top:1px solid #eef1f6;
  display:flex;
  gap:10px;
  justify-content:flex-end;
  background:#fafbfc;
}

.btn{
  padding:10px 14px;
  border-radius:10px;
  border:1px solid #e6e9ef;
  background:white;
  color:#0f3f8a;
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.btn.primary{
  background:var(--bosch-red);
  border-color:var(--bosch-red);
  color:white;
}

.btn:hover{
  opacity:0.95;
}

/* Sticky call gomb (egységes) */
.sticky-call{
  position:fixed;
  bottom:25px;
  right:25px;
  background:var(--bosch-red);
  color:white;
  padding:14px 20px;
  border-radius:50px;
  text-decoration:none;
  font-weight:900;
  box-shadow:0 4px 12px rgba(0,0,0,0.2);
  z-index:1500;
}

/* RESPONSIVE */
@media(max-width:1100px){
  .team-grid{grid-template-columns:repeat(3, minmax(0,1fr));}
}

@media(max-width:820px){
  .team-grid{grid-template-columns:repeat(2, minmax(0,1fr));}
  .team-hero h1{font-size:34px}
}

@media(max-width:520px){
  .team-grid{grid-template-columns:1fr;}
  .team-section{padding:55px 18px;}
}