/*
Theme Name: Elementra Child Theme
Theme URI: https://elementra.themerex.net/
Description: Elementra is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: ThemeREX
Author URI: https://themerex.net/
Version: 1.1.1
Tested up to: 6.9
Requires at least: 5.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
Text Domain: elementra
Template: elementra
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */

/* Compact Contact Form 7 layout */
.wpcf7 .wpcf7-form p {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Keep paragraphs containing form controls or question blocks */
.wpcf7 .wpcf7-form p:has(.wpcf7-form-control),
.wpcf7 .wpcf7-form p:has(.wpcf7-form-control-wrap),
.wpcf7 .wpcf7-form p:has(.cf7-question) {
	display: block !important;
}

/* Remove theme-added spacing */
.wpcf7 label,
.wpcf7 .wpcf7-form-control-wrap,
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 .wpcf7-checkbox,
.wpcf7 .wpcf7-radio,
.wpcf7 .wpcf7-submit {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Two-column layout: name + contact fields */
.wpcf7 .cf7-name-row,
.wpcf7 .cf7-contact-row {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	column-gap: 20px !important;
	row-gap: 0 !important;
	margin: 0 0 10px !important;
	padding: 0 !important;
}

.wpcf7 .cf7-name-row > label,
.wpcf7 .cf7-contact-row > label {
	display: block !important;
	min-width: 0 !important;
}

.wpcf7 .cf7-name-row .wpcf7-form-control-wrap,
.wpcf7 .cf7-contact-row .wpcf7-form-control-wrap {
	display: block !important;
	width: 100% !important;
	margin-top: 2px !important;
}

.wpcf7 .cf7-name-row input,
.wpcf7 .cf7-contact-row input {
	display: block !important;
	box-sizing: border-box !important;
	width: 100% !important;
}

/* Message textarea */
.wpcf7 textarea[name="your-message"] {
	margin-bottom: 12px !important;
	overflow-y: hidden !important;
	resize: none !important;
}

/* Checkbox options */
.wpcf7 .wpcf7-checkbox {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)) !important;
	gap: 4px 16px !important;
	margin: 0 !important;
}

/* Radio options: sit next to each other, do not stretch */
.wpcf7 .wpcf7-radio {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: flex-start !important;
	gap: 2px 28px !important;
	margin: 0 !important;
}

.wpcf7 .wpcf7-checkbox .wpcf7-list-item,
.wpcf7 .wpcf7-radio .wpcf7-list-item {
	display: block !important;
	width: auto !important;
	margin: 0 !important;
}

.wpcf7 .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: auto;
	margin: 0;
	padding: 2px 0;
	border-radius: 0;
	line-height: 1.4;
	cursor: pointer;
}

.wpcf7 .wpcf7-list-item label:hover {
	background: transparent;
}

/* Checkboxes: same weight and blue as radios */
.wpcf7 input[type="checkbox"] {
	-webkit-appearance: none !important;
	appearance: none !important;
	flex: 0 0 auto;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	margin: 3px 0 0 !important;
	padding: 0 !important;
	border: 2px solid #8b95a3 !important;
	border-radius: 3px !important;
	background-color: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	cursor: pointer;
}

.wpcf7 input[type="checkbox"]::before,
.wpcf7 input[type="checkbox"]::after {
	display: none !important;
	content: none !important;
}

.wpcf7 input[type="checkbox"]:checked {
	border-color: #1769b5 !important;
	background-color: #1769b5 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5 L6.5 11.5 L12.5 4.5'/%3E%3C/svg%3E") !important;
	background-size: 12px 12px !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
}

/* Force circular radios (theme otherwise draws squares) */
.wpcf7 input[type="radio"],
.wpcf7 .wpcf7-list-item input[type="radio"] {
	-webkit-appearance: none !important;
	appearance: none !important;
	flex: 0 0 auto;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	margin: 3px 0 0 !important;
	padding: 0 !important;
	border: 2px solid #8b95a3 !important;
	border-radius: 50% !important;
	background-color: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	cursor: pointer;
}

.wpcf7 input[type="radio"]::before,
.wpcf7 input[type="radio"]::after {
	display: none !important;
	content: none !important;
}

.wpcf7 input[type="radio"]:checked {
	border-color: #1769b5 !important;
	background-color: #fff !important;
	background-image: radial-gradient(circle, #1769b5 0 45%, transparent 48%) !important;
}

.wpcf7 .wpcf7-list-item-label {
	display: inline;
}

.wpcf7 .wpcf7-form br {
	display: none !important;
}

/* Attachment upload area */
.wpcf7 .cf7-attachment {
	margin: 14px 0 18px !important;
}

.wpcf7 .cf7-attachment strong {
	display: block !important;
	margin-bottom: 2px !important;
	font-weight: 700 !important;
}

.wpcf7 .cf7-attachment strong span {
	font-weight: 400 !important;
}

.wpcf7 .cf7-attachment-hint {
	display: block !important;
	margin-bottom: 8px !important;
	font-size: 0.9em;
	line-height: 1.4;
	opacity: 0.8;
}

/* Keep upload field at natural width so it does not affect the grid */
.wpcf7 .cf7-attachment input[type="file"] {
	display: block !important;
	width: auto !important;
	max-width: 100% !important;
	padding: 8px 0 !important;
	font: inherit !important;
	cursor: pointer;
}

/* Blue “Datei auswählen” button */
.wpcf7 .cf7-attachment input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 10px 18px;
	border: 0;
	border-radius: 10px;
	background: #1769b5;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wpcf7 .cf7-attachment input[type="file"]::-webkit-file-upload-button {
	margin-right: 12px;
	padding: 10px 18px;
	border: 0;
	border-radius: 10px;
	background: #1769b5;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.wpcf7 .cf7-attachment input[type="file"]:hover::file-selector-button {
	background: #0f5597;
}

/* One column on mobile */
@media (max-width: 600px) {
	.wpcf7 .cf7-name-row,
	.wpcf7 .cf7-contact-row {
		grid-template-columns: 1fr !important;
		row-gap: 10px !important;
	}

	.wpcf7 .wpcf7-checkbox {
		grid-template-columns: 1fr !important;
	}

	.wpcf7 input.wpcf7-submit {
		width: 100%;
	}
}


/* Interessen-Checkboxen: zweispaltiges Grid */
.wpcf7-form-control-wrap[data-name="interests"] .wpcf7-list-item {
	margin: 0;
}

.wpcf7-form-control-wrap[data-name="interests"] .wpcf7-list-item-label {
	display: inline;
}

.wpcf7-form-control-wrap[data-name="interests"] > .wpcf7-checkbox {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	column-gap: 32px !important;
	row-gap: 18px !important;
}

.wpcf7-form-control-wrap[data-name="interests"] .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.wpcf7-form-control-wrap[data-name="interests"] input[type="checkbox"] {
	flex: 0 0 auto;
	margin-top: 4px;
}

/* Mobil einspaltig */
@media (max-width: 767px) {
	.wpcf7-form-control-wrap[data-name="interests"] > .wpcf7-checkbox {
		grid-template-columns: 1fr !important;
	}
}


/* Question labels, fields, consent, submit */
.wpcf7-form > label,
.wpcf7 .cf7-question {
	display: block;
	margin-bottom: 0.7rem !important;
}

.wpcf7 .cf7-question p {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: inherit !important;
}

.wpcf7-form > label > strong,
.wpcf7 .cf7-question > strong,
.wpcf7 .cf7-question p > strong {
	display: block;
	margin: 0 0 0.15rem !important;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.wpcf7-form label:has(.wpcf7-validates-as-required) > strong::after,
.wpcf7 .cf7-question:has(.wpcf7-validates-as-required) > strong::after {
	content: " *";
	color: #c62828;
	font-weight: 700;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid #cfd8e3;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	box-shadow: inset 0 1px 2px rgba(26, 35, 50, 0.04);
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form textarea:focus {
	outline: 2px solid #1769b5;
	outline-offset: 1px;
	border-color: #1769b5;
}

.wpcf7-form .wpcf7-acceptance {
	display: block;
	margin: 8px 0 16px !important;
	font-size: 0.9rem;
	line-height: 1.55;
	opacity: 0.9;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item label {
	align-items: flex-start;
	padding: 4px 0;
}

.wpcf7-form .wpcf7-acceptance a {
	color: #1769b5;
	text-underline-offset: 2px;
}

.wpcf7-form input.wpcf7-submit {
	display: inline-block;
	margin-top: 4px !important;
	padding: 12px 22px;
	border: 0;
	border-radius: 10px;
	background: #1769b5;
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wpcf7-form input.wpcf7-submit:hover,
.wpcf7-form input.wpcf7-submit:focus {
	background: #0f5597;
}

.wpcf7-form input.wpcf7-submit:focus {
	outline: 2px solid #1769b5;
	outline-offset: 3px;
}

.wpcf7-form .wpcf7-not-valid-tip {
	display: block;
	margin: 6px 0 0;
	font-size: 0.85rem;
	color: #c62828;
}

.wpcf7-form .wpcf7-not-valid {
	border-color: #c62828;
}

.wpcf7-form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border-radius: 10px;
}


/* AI-Generated label overlay */
.AI-Generated {
	position: relative !important;
	overflow: visible !important;
}

.AI-Generated::after {
	content: "";
	position: absolute;
	right: 5px;
	bottom: 5px;

	width: 100px;
	height: 45px;

	background-image: url("https://staging3.sd.152-53-141-94.plesk.page/wp-content/uploads/2026/08/label_ai_generated_transparent.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;

	display: block;
	z-index: 9999999;
	pointer-events: none;
}


/* AI-Modified label overlay */
.AI-Modified {
	position: relative !important;
	overflow: visible !important;
}

.AI-Modified::after {
	content: "";
	position: absolute;
	right: 5px;
	bottom: 5px;

	width: 100px;
	height: 45px;

	background-image: url("https://staging3.sd.152-53-141-94.plesk.page/wp-content/uploads/2026/08/label_ai_modified_transparent.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;

	display: block;
	z-index: 9999999;
	pointer-events: none;
}
