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]
What is the ruling on preparing food for someone who is not fasting in Ramadan?
It is forbidden to prepare food for someone who is breaking their fast without a valid excuse in Ramadan.
Doing so would be assisting in sin, and assisting in sin is itself a sin.
Allah says {what means}: "but help ye not one another in sin and rancour" [Al-Mai`dah/2]
A man wishes to offer more than one uḍḥiyah (sacrificial offering), and intends by these sacrifices "on behalf of everyone whom Allah and His Messenger love." Is this intention valid?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
The uḍḥiyah (sacrificial offering) is not valid with this intention, because if the sacrificial animal is from sheep or goats, it suffices for one person only; and if it is from cattle or camels, it suffices for seven persons.
However, one may sacrifice it on his own behalf, and then gift the equivalent of its reward to whomever he wishes.
Imam ar-Ramlī (raḥimahullāh) says: "Ash-Shāfi‘ī (raḍiyallāhu ‘anh) said: It is within the vastness of Allah's bounty, the Exalted, that He rewards the one giving charity as well. From this, the scholars of the madhhab said: it is recommended for a person to intend the charity on behalf of his parents, for example — for Allah, the Exalted, will reward them, without this diminishing his own reward in any way." He then relates, as the relied-upon position, the permissibility of saying: "O Allah, convey the reward of what I have recited specifically to so-and-so, and to the Muslims generally." Az-Zarkashī said: "For reward varies in degree — its highest form is what one designates specifically, and its lowest form is what one dedicates generally [alongside others]." [End of quote from Nihāyat al-Muḥtāj]. And Allah, the Exalted, knows best.
Is it permissible to pay the Fitr Zakah (obligatory charity) of Ramadan on behalf of a dead person?
The Fitr Zakah of Ramadhaan isn`t due on one who had passed away before the sunset of the last day of Ramadan. And Allah Knows Best.