This question already has an answer here:
I am a Philippine passport holder and hold a Schengen Short Stay Visa with duration of 13 days. I intend to get married to a German citizen. Is it possible to apply for extension of duration of stay to maximum possible 90 days (or beyond that)? How can this be done legally while waiting for the processing of marriage documents which will surely take time?