Newish VW motor - if the old beetle is air cooled that would still be a 1976 weak HP smogged (Cat converter) FI engine. 1.8/2.0 VW/Audi water cooled engines were used. The Subaru is a flat engine boxer much like the air cooled vw engine so not great issues with height.
Electric conversions are increasing in use too.