The town was founded in the Middle Ages . It lies in the Seetal valley , about 3 k south of the Aare delta . The town , founded in the Middle Ages , lies in the Seetal valley , about 3 kilometres south of the Aare delta .