/* Contact Form 7 adjustments so the Anfrage form matches the original design.
   Text fields already inherit the design's input styling + placeholder colour
   from style.min.css; this file restyles CF7's checkbox groups (the theme hides
   all <label>s inside .contourField, which would hide CF7's checkbox labels). */

/* Checkbox group: bordered box, three columns — like the original .checkboxes */
.contour-custom .contourField.checkboxlist .wpcf7-checkbox {
	display: block;
	padding: 20px;
	border: 1px solid #e9e9e8;
	overflow: hidden;
}
.contour-custom .contourField.checkboxlist .wpcf7-list-item {
	float: left;
	width: 33.3333%;
	margin: 0;
}

/* Un-hide the CF7 option label (theme clips all .contourField label) and make it clickable */
.contour-custom .contourField.checkboxlist label {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	display: block;
	cursor: pointer;
}

/* Hide the real checkbox; keep it clickable via its wrapping <label> */
.contour-custom .contourField.checkboxlist input[type="checkbox"] {
	position: absolute !important;
	opacity: 0;
	width: 1px !important;
	height: 1px !important;
	margin: 0;
}

/* Custom checkbox visual (box + animated checkmark image), like the original */
.contour-custom .contourField.checkboxlist .wpcf7-list-item-label {
	position: relative;
	display: inline-block;
	padding-left: 48px;
	min-height: 33px;
	line-height: 33px;
	color: #868a86;
	font-size: 20px;
	white-space: nowrap;
}
.contour-custom .contourField.checkboxlist .wpcf7-list-item-label::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 1px;
	width: 30px;
	height: 30px;
	border: 1px solid #e9e9e8;
}
.contour-custom .contourField.checkboxlist .wpcf7-list-item-label::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1;
	width: 42px;
	height: 33px;
	background: url(../img/checkbox.png) no-repeat 0 0;
	background-size: 42px 33px;
	transform: scale(0) rotate(-20deg);
	transition: transform .3s cubic-bezier(.1, 1, .65, 1);
}
.contour-custom .contourField.checkboxlist input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
	transform: scale(1) rotate(0);
}

/* CF7 validation + response messages */
.contour-custom .wpcf7-not-valid-tip { color: #f40000; font-size: 16px; margin-top: 6px; }
.contour-custom .wpcf7-response-output { border: 1px solid #b7b7b4; padding: 12px 18px; margin: 1.5em 0 0; }
.contourField.validierung { margin-top: 1em; }

@media screen and (max-width: 1025px) {
	.contour-custom .contourField.checkboxlist .wpcf7-list-item { width: 100%; float: none; }
}
