In Germany some long-distance or express trains have separate smoking compartments inside the train, and sections on the platforms where smoking is allowed - however nobody really cares where you smoke on the platform if there are ashtrays on top of the rubbish bins.
You won't find many overland buses in Germany; there was a law passed in 1931 that would grant the state-owned railroad company a monopoly on long distance transport (see first 2 paragraphs), and this law is still in effect today for the most part.
From my experience Germany is a bit more smoker-friendly than the rest of (West-) Europe, and last time i checked they even still allowed tobacco companies to advertise in public places, bus stops and so on. It was just recently when they passed a law that would forbid smoking in some restaurants because of health concerns for the employees who work there 40h/week or more; but about 10 years ago it was pretty much impossible to go to a pub in Germany and don't smell like an ashtray when you came out later that night.