Global and local horizon quantum mechanics