4 hours should be plenty at BER. YouŽll allready have done passportcontrol when you connect at CDG. When you arrive at BER youŽll have to pick up your luggage from the belts and will pass through a customs check point to get landside. But as they only do spot checks most likely youŽll be able to walk right through without even slowing down.