What is the wisdom behind the legislation of fasting?
Fasting is a divine school from which the believer learns much and trains in virtues that may be needed in life. Among these virtues is patience, as it is the month of patience. Fasting also teaches honesty and consciousness of Allah in both private and public, for there is no observer over the fasting person in abstaining from lawful pleasures except Allah alone.
Fasting strengthens willpower, sharpens determination, and nurtures mercy and compassion among the servants of Allah. It is a struggle against the self, a restraint of desires, a purification of the soul, and a cultivation of goodness.
The Prophetﷺ said: "Allah, the Almighty, said: ‘Every deed of the son of Adam is for him, except for fasting; it is for Me, and I shall reward for it. Fasting is a shield. So when one of you is fasting on a day, let him not engage in obscene speech or raise his voice in anger. If someone insults him or fights him, let him say: I am a fasting person. By Him in whose hand is the soul of Muhammad, the breath of the fasting person is more pleasant to Allah than the fragrance of musk.’" [Bukhari and Muslim]
Is Zakat al-Fitr obligatory for an unborn child (fetus)?
Zakat al-Fitr is not obligatory for a fetus. However, if the child is born before sunset on the last day of Ramadan, then Zakat al-Fitr must be given on their behalf.
Does buying meat equivalent to the weight of a slaughtered animal and distributing it avail for an udhiyah?
Praise be to Allah, and prayers and peace be upon our Master the Messenger of Allah.
That does not avail for the sacrifice (uḍḥiyyah), because the sacrifice necessarily requires slaughtering an animal from the category of anʿām (camels, cattle, and sheep/goats) within a specified time.
Rather, that is considered a form of charity (ṣadaqah) for which one is rewarded, but not an udhiyah. And Allah Almighty knows best.
Is the niṣāb calculated based on the price of 21-karat gold, or 24-karat gold?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
Zakāh is obligatory on cash and on gold designated for saving or for trade, provided the total reaches the niṣāb (minimum threshold liable for zakah), and a full ḥawl (lunar year) has elapsed over it. The niṣāb is (85) grams of 24-karat gold; for 21-karat gold, the niṣāb equals (97) grams; and for 18-karat gold, it equals (113) grams.
The relied-upon position is to calculate the zakāh based on the buying price [i.e., the price the gold merchant would pay the owner to purchase the gold from him] on the day the zakāh obligation is due.
The one paying zakāh may assess/calculate the niṣāb using any of the aforementioned gold karats [i.e., he may choose whichever karat standard he wishes for the purpose of the calculation]. And Allah, the Exalted, knows best.