Stuttgart, July 23 (DPA) Wendelin Wiedeking, the chief executive of German carmaker Porsche AG, resigned Thursday after losing a power struggle with Volkswagen, which is set to take over Porsche.

Porsche’s supervisory board agreed on Wiedeking’s departure after a night-long session, making him the first high-calibre victim of the drawn-out takeover battle between Porsche and Volkswagen AG.

Early Thursday, the Porsche board approved a plan to raise 5 billion euros ($7.1 billion) in capital that could clear the way for a takeover of the highly indebted sports car maker by Volkswagen.

The board also gave the green light to efforts aimed at securing a deal worth up to 5 billion euros with the Gulf state of Qatar to buy a 10- to 25-percent stake in Porsche. The carmaker’s management was asked to prepare for creating an integrated company consisting of Porsche SE and Volkswagen AG.

In planning to take over Porsche step-by-step, Volkswagen turned the tables on Porsche, which has been forced to abandon a push to acquire VW. The Porsche and Piech families, Porsche SE’s controlling shareholders, agreed to the takeover with Volkswagen to integrate the brand into the VW group.

Thursday’s events came as a victory to Volkswagen chief executive Ferdinand Piech, who is also a shareholder in Porsche.

The developments came after Porsche wracked up debt of about 10 billion euros in gaining a majority 51 percent stake in VW, Europe’s biggest carmaker.

Wiedeking, 56, who had been at Porsche’s steering wheel since 1993, will be succeeded by chief production executive Michael Macht.

Porsche’s financial chief Holger Haerter is to leave the company as well.

Both Wiedeking and Haerter are stepping down immediately and also resigned their seats on the supervisory boards of Volkswagen and Audi AG, a subsidiary of the Volkswagen Group.

With their resignations, both managers wanted to “make an important contribution to pacify the situation”, Porsche said in a statement.

Wiedeking, whose contract was to expire in 2012, is to receive a 50-million-euro severance, half of which is to be donated to a charity, while Haerter is to be paid 12.5 million euros.