Have you read the Constitution? And I don't care if your mind is poisoned.
Not just read it, but every job I've had since I turned 18, I swore an oath on it. I want you to read this carefully:
All persons born or naturalized in the United States, and subject to the jurisdiction thereof, are citizens of the United States and of the State wherein they reside. No State shall make or enforce any law which shall abridge the privileges or immunities of citizens of the United States; nor shall any State deprive any person of life, liberty, or property, without due process of law; nor deny to any person within its jurisdiction the equal protection of the laws.
Where is race, gender or religion specifically mentioned as you claimed?
And yet, as WW mentioned, that is what was specifically cited in Loving v Virginia, despite the opposition making the exact same argument you are making. Here it is, in print:
The fifth, and final, argument judges would use to justify miscegenation law was undoubtedly the most important; it used these claims that interracial marriage was unnatural and immoral to find a way around the Fourteenth Amendment's guarantee of "equal protection under the laws." How did judges do this?
They insisted that because miscegenation laws punished both the black and white partners to an interracial marriage, they affected blacks and whites "equally." This argument, which is usually called the equal application claim, was hammered out in state supreme courts in the late 1870s, endorsed by the United States Supreme Court in 1882, and would be repeated by judges for the next 85 years.
The History Network