One way this could happen in fanfiction is if there was some form of time - travel involved. Maybe Hermione traveled back in time and ended up in a situation where she and Severus had a relationship that led to her pregnancy. Another possibility is that a magical artifact forced them into a situation where they had to be together closely, and feelings developed over time, resulting in a pregnancy. Fanfiction writers love to take unexpected turns with characters' relationships.
It could be that in the fanfiction world, Hermione was the victim of a spell gone wrong. This spell could have made her pregnant and also somehow cut her off from her usual support system, leaving her alone. Or perhaps she made a choice to distance herself from others because she didn't want to endanger them while she was dealing with this unexpected pregnancy.
One way it could happen is if Hermione discovers a time - turning device in the Marauders' era. She might use her advanced knowledge to figure out that Snape is in danger. For example, she could know about some plot by the Marauders to prank Snape in a way that could turn deadly. She then steps in, using her magic skills and intelligence to prevent the harm. Maybe she creates a diversion or uses a protection spell to shield Snape.
There could be a plot where they are forced to work together on a project. Snape initially resents it, but as they collaborate, he sees Hermione's determination and begins to fall for her. However, he has to deal with the fact that she is a Gryffindor and he has his own reputation to uphold. This creates a lot of drama and tension in the story.
Harry would probably be extremely shocked. He has a deep respect for both Hermione and Severus in different ways, and this situation would completely turn his world upside down. He might initially be angry or confused, but then try to understand what led to this. Ron, on the other hand, would likely be more openly outraged. He has always had a bit of a jealous streak when it comes to Hermione, and this would be a very difficult situation for him to accept.
In this fanfiction, the pregnancy could be a result of a magical accident. Hermione and Blaise are working on a powerful spell, and something goes wrong. Now they have to deal with the consequences. Hermione might be scared but also determined to face it. Blaise would need to step up and support her. They might have to go on a journey to find a way to reverse the spell if they don't want the pregnancy, or they could accept it and start building a family. Along the way, they would face many obstacles, like other wizards who might want to use the situation for their own gain.
Fanfiction often takes beloved characters and places them in unexpected situations. In the case of Hermione and Severus, a pregnancy fanfiction could explore a very different side of their relationship. It might be set in an alternate universe where they have a closer bond than in the original story. However, it's important to note that this goes against the canon relationship between them in the Harry Potter series.
The wizarding media would likely have a field day. Tabloids might spread rumors and speculations. But there would also be positive voices. The relationship could become a symbol of breaking down barriers between different magical groups. Their child could inspire a new generation to look beyond blood status and house differences. For example, younger witches and wizards might see the child's story and be more open - minded in their own relationships and interactions within the wizarding world.
Perhaps Hermione discovers a new form of magic during her pregnancy. Since she is so brilliant, this new magic could be related to protecting the unborn child. And Antonin could be the one who encourages her to explore this new magic, which in turn deepens their relationship.
One common theme could be redemption. Severus has a dark past in the original series, and a pregnancy with Hermione could be seen as a chance for him to redeem himself and become a better person. Another theme might be the power of love and how it can transcend the boundaries set by society or their own personalities.
Perhaps their child would be a key figure in bringing about more positive relations between the wizarding world and the Muggle world. Given Hermione's Muggle - born background and Draco's pure - blood status, the child could use their unique position to advocate for better understanding and cooperation. They might even start a new organization at Hogwarts dedicated to this cause, which would be an exciting plot point in the fanfiction.