Question: how to apply for a social security number in germany?
Answer: Go to the German pension office (Rentenversicherung) together with your passport and visa (if you have one). The German pension office will be able to issue your social security card on the spot.