Please cite that, there is almost no chance at all that a first-time offender would face prison in Germany in such a case. It's very unlikely a case like you described would end up prosecuted at all.
I started looking for the incident I remembered from about 15 year ago and it turns out there have been many people have been arrested and jailed since then. [1]
Linking to google search is not a source. On the first google page, I see zero cases of a foreign citizen getting jailed in Germany for this kind of offense. Detained and fined != in prison.