Bamberg is about 415 km from the ocean.
If you're driving to a town near the beach or coastline, you could try Wedel.
How far is Juneau from the ocean
How far is Pittsburgh from the ocean
How far is Ann Arbor from the ocean
How far is Fort Myers from the ocean
How far is Austin from the ocean
How far is Toledo, OH from the ocean
How far is Indianapolis from the ocean
How far is Wisconsin Dells from the ocean
How far is Williamsburg from the ocean
How far is Cadaques from the ocean