I have a checkbox:
<div class="col checkboxgroup">
<label for="project_need_ar">
<div class="card text-center card_themen">
<div class="card-body"> <img class="icon-image" src="../icons_svg_/24.svg" style="width:50px;" />
<p>Armuts-<br>bekämpfung</p>
</div>
</div>
</label>
<input type="checkbox"value="a" id="project_need_a" name="project_need" class="">
</div>
now if I check the input checkbox the border from the div (class card I think) should turn red.
I already tried to with input[type='checkbox']:after {...)
andinput[type='checkbox']:checked:after {...}
but this just overlay the current checkbox, so how can I access the border and make them turn red?