Out of stock can be added to cart

Even if the product is out-of-stock (Stock: 0 and Available stock: 0), the Add-to-cart button is still active and the product can be added to the cart.

What setting am I missing?

// Magnus

You have to mark it as „Clearance sale“:

Shopware 6 - Catalogues - Create products