JSFiddle - React, Tailwind, and code Playground
HTML
<input id="toggle" type=checkbox>
<div id=preis>1.000€ für den Webentwickler</div>
CSS
div#preis {
align-items: center;
background-color: pink;
color: green;
display: flex;
font-weight: bold;
height: 100px;
justify-content:center;
width: 500px;
}
input#toggle:checked + div#preis {
display: none;
}