Zero countries lie between Spain and Germany because **they do not share a land border**.
Madrid → **France** (Bordeaux, Loire Valley, Paris, Alsace) → Germany. ~1,700 km / 17 hrs drive.
No direct sea connection (Bay of Biscay → English Channel → North Sea = indirect).
Andorra borders Spain & France. **Switzerland** borders Germany & France. Neither touches both Spain and Germany.