I'm curious if it's possible to place checkboxes in different areas based on their checked status, with only CSS! I'm a big CSS-only fan when there is a nice comprehensible solution to it.
I obviously put all my hope into grid and flex, but I couldn't come up with a solution which worked as I wanted to.
I hope this image makes my whole problem clear:

Active checkboxes in "Area A" and when not active in "Area B". Two Columns.
The HTML would be as simple as:
<div class="options">
<input type="checkbox" id="checkbox1">
<label for="checkbox1">checkbox</label>
<input type="checkbox" id="checkbox2">
<label for="checkbox2">checkbox</label>
...
</div>
It would also be okay when the input and label tag are wrapped. And I can toggle a class on the wrapping tag... (using JS of course)
<div class="options">
<div class="checked">
<input type="checkbox" id="checkbox1">
<label for="checkbox1">checkbox</label>
</div>
<div class="">
<input type="checkbox" id="checkbox2">
<label for="checkbox2">checkbox</label>
</div>
...
</div>
CSS I tried with this approach:
.options {
display: grid;
grid-template-columns: 1fr 1fr;
}
.checked {
grid-row: 1;
}
But I can't manage to keep them in two columns when more than two boxes are checked.