Quark-hadron and chiral transitions and their relation to the early universe