In the area around Frankfurt airport (FRA) there is ongoing noise monitoring[2] to make sure that the noise doesn't constantly exceed the agreed limits. The aircraft can only fly between 6am-11pm daily, in one of Europe's busiest airports. The local residents won a court case against the airport, so they are entitled to free triple-glazed windows, and a device installed into the wall to extract CO2-heavy air from the house interior (important for sealed off bedrooms).
There are restrictions on noisy activities you can do at certain hours[3], such as hoovering your place, blasting your Hi-Fi or car stereo. Initially, I thought it was overly restrictive, but it's the best way of ensuring people can live densely and not go insane from inconsiderate neighbours.
Finally, apartments are generally thick concrete walls with high-quality windows and doors, both interior and exterior. Interior doors are usually solid material, with a rubber-lined bezel creating an acoustic and thermal seal between the door and the frame. I wasn't used to that before moving to Germany, it's quite impressive and definitely improves your living quality in an apartment.
[1] https://laerm.hessen.de/mapapps/resources/apps/laerm/index.h...
[2] https://www.fraport.com/en/environment/noise-abatement.html
[3] https://www.german-way.com/many-kinds-of-noise-vielerlei-lae...