Femtosecond electron-bunch dynamics in laser wakefields and vacuum