/* =========================================================
   Malerwerkstatt Gohres – modernes Design für Telefonkontakt
   Wirkt NUR auf Formulare mit html_class="gohres-form"
   Wird vom Plugin „Gohres Formular-Design“ geladen
   ========================================================= */

.gohres-form {
	--g-violett: #6C319A;
	--g-violett-dunkel: #4C389B;
	--g-grau: #656263;
	--g-text: #2B2A2B;
	--g-rand: #CFC8D6;

	max-width: 760px;
	margin: 24px auto;
	padding: 32px 28px 28px;
	box-sizing: border-box;
	background: #FFFFFF;
	border: 1px solid #E6E1EC;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(76, 56, 155, 0.08);
	position: relative;
	overflow: hidden;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--g-text);

	/* Zwei Spalten, auf dem Handy automatisch eine */
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px 20px;
}

/* Violetter Streifen oben, wie im Briefbogen */
.gohres-form::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: linear-gradient(90deg, var(--g-violett-dunkel), var(--g-violett), #B280C7);
}

/* Versteckte Felder und Hinweise über die ganze Breite */
.gohres-form > fieldset,
.gohres-form > div,
.gohres-form > .wpcf7-response-output {
	grid-column: 1 / -1;
}

/* Unsichtbarer Technik-Block von Contact Form 7 soll keinen Platz belegen */
.gohres-form > fieldset.hidden-fields-container {
	display: none;
}

.gohres-form p {
	margin: 0;
}

/* Textfeld „Grund der Kontaktaufnahme“ und Button über die ganze Breite */
.gohres-form p:has(textarea),
.gohres-form p:has(.wpcf7-submit),
.gohres-form p:not(:has(input, textarea, select)) {
	grid-column: 1 / -1;
}

/* Beschriftungen */
.gohres-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 15px;
	font-weight: 600;
	color: #3D3B3D;
}

.gohres-form label br {
	display: none;
}

/* Eingabefelder */
.gohres-form input[type="text"],
.gohres-form input[type="email"],
.gohres-form input[type="tel"],
.gohres-form input[type="date"],
.gohres-form input[type="time"],
.gohres-form input[type="datetime-local"],
.gohres-form input[type="number"],
.gohres-form select,
.gohres-form textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--g-rand);
	border-radius: 10px;
	background: #FFFFFF;
	font-size: 16px; /* verhindert Zoomen auf dem iPhone */
	font-family: inherit;
	font-weight: 400;
	color: var(--g-text);
	transition: border-color 0.15s, box-shadow 0.15s;
}

/* iPhone-eigene Feldoptik (Schatten, Rundungen) abschalten */
.gohres-form input[type="text"],
.gohres-form input[type="email"],
.gohres-form input[type="tel"],
.gohres-form input[type="date"],
.gohres-form input[type="time"],
.gohres-form input[type="datetime-local"],
.gohres-form input[type="number"],
.gohres-form textarea {
	-webkit-appearance: none;
	appearance: none;
}

/* Alle einzeiligen Felder exakt gleich hoch */
.gohres-form input[type="text"],
.gohres-form input[type="email"],
.gohres-form input[type="tel"],
.gohres-form input[type="date"],
.gohres-form input[type="time"],
.gohres-form input[type="datetime-local"],
.gohres-form input[type="number"] {
	height: 46px;
	min-height: 46px;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 44px;
}

/* Datums- und Zeitfelder auf dem iPhone: linksbündig, normale Höhe */
.gohres-form input[type="date"],
.gohres-form input[type="time"],
.gohres-form input[type="datetime-local"] {
	display: block;
	text-align: left;
	max-width: 100%;
}

.gohres-form input::-webkit-date-and-time-value {
	text-align: left;
	margin: 0;
	min-height: 0;
	line-height: 44px;
}

.gohres-form input::-webkit-datetime-edit {
	padding: 0;
	line-height: 44px;
}

.gohres-form input::-webkit-calendar-picker-indicator {
	opacity: 0.55;
	cursor: pointer;
}

.gohres-form textarea {
	min-height: 130px;
	line-height: 1.45;
	resize: vertical;
}

.gohres-form input:focus,
.gohres-form select:focus,
.gohres-form textarea:focus {
	outline: none;
	border-color: var(--g-violett);
	box-shadow: 0 0 0 3px rgba(108, 49, 154, 0.18);
}

/* Button */
.gohres-form .wpcf7-submit {
	width: 100%;
	max-width: 320px;
	min-height: 50px;
	padding: 0 28px;
	border: none;
	border-radius: 12px;
	background: var(--g-violett);
	color: #FFFFFF;
	font-size: 17px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s;
}

.gohres-form .wpcf7-submit:hover,
.gohres-form .wpcf7-submit:focus {
	background: var(--g-violett-dunkel);
}

.gohres-form .wpcf7-spinner {
	vertical-align: middle;
}

/* Fehlermeldungen und Bestätigung */
.gohres-form .wpcf7-not-valid {
	border-color: #B3261E !important;
}

.gohres-form .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 14px;
	font-weight: 500;
	color: #B3261E;
}

.gohres-form .wpcf7-response-output {
	margin: 4px 0 0 !important;
	padding: 12px 16px !important;
	border-radius: 10px;
	font-size: 15px;
}

.gohres-form.sent .wpcf7-response-output {
	border-color: #2F7D6B !important;
	background: #EEF7F4;
	color: #1F5446;
}

@media (max-width: 600px) {
	.gohres-form {
		padding: 26px 18px 20px;
		margin: 12px auto;
		border-radius: 14px;
	}
	.gohres-form .wpcf7-submit {
		max-width: none;
	}
}

/* ---------- Symbole in den Feldern (Klassen setzt gohres-form.js) ---------- */
.gohres-form .gfd-ic {
	padding-left: 44px !important;
	background-repeat: no-repeat !important;
	background-position: 14px center !important;
	background-size: 18px 18px !important;
}
.gohres-form textarea.gfd-ic {
	background-position: 14px 14px !important;
}
.gohres-form .gfd-ic-kalender {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") !important;
}
.gohres-form .gfd-ic-person {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") !important;
}
.gohres-form .gfd-ic-telefon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") !important;
}
.gohres-form .gfd-ic-mail {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") !important;
}
.gohres-form .gfd-ic-haus {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E") !important;
}
.gohres-form .gfd-ic-ort {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") !important;
}
.gohres-form .gfd-ic-nachricht {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") !important;
}

/* ---------- Abschnitte (Gliederung setzt gohres-form.js) ---------- */
.gohres-form .gfd-abschnitte {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.gohres-form .gfd-abschnitt {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px 20px;
}
.gohres-form .gfd-abschnitt + .gfd-abschnitt {
	padding-top: 24px;
	border-top: 1px solid #EEEAF2;
}
.gohres-form .gfd-abschnitt > * {
	min-width: 0;
}
.gohres-form .gfd-abschnitt > div,
.gohres-form .gfd-abschnitt > fieldset {
	grid-column: 1 / -1;
}
.gohres-form .gfd-abschnitt-kopf {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 -4px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--g-violett);
}
.gohres-form .gfd-abschnitt-symbol {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: #F1EAF7;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
}
.gohres-form .gfd-symbol-telefon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}
.gohres-form .gfd-symbol-uhr {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.gohres-form .gfd-symbol-ort {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}
.gohres-form .gfd-symbol-nachricht {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}
@media (max-width: 600px) {
	.gohres-form .gfd-abschnitte {
		gap: 22px;
	}
	.gohres-form .gfd-abschnitt + .gfd-abschnitt {
		padding-top: 20px;
	}
}

.gohres-form .gfd-symbol-person {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

/* ---------- Symbol „Thema“ (Betreff, Leistung) ---------- */
.gohres-form .gfd-ic-thema {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") !important;
}

/* ---------- Auswahllisten: eigener Pfeil, gleiche Optik wie Textfelder ---------- */
.gohres-form select {
	-webkit-appearance: none;
	appearance: none;
	height: 46px;
	padding-top: 0;
	padding-bottom: 0;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23656263' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px 16px;
	cursor: pointer;
}
/* Auswahlliste mit Symbol links: beide Bilder (Symbol + Pfeil) */
.gohres-form select.gfd-ic.gfd-ic-thema {
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23656263' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-position: 14px center, right 14px center !important;
	background-size: 18px 18px, 16px 16px !important;
}

/* ---------- Checkboxen (z. B. Datenschutz) und Auswahlknöpfe ---------- */
.gohres-form .wpcf7-list-item {
	display: block;
	margin: 0 0 8px;
}
.gohres-form .wpcf7-list-item:last-child {
	margin-bottom: 0;
}
.gohres-form .wpcf7-list-item label,
.gohres-form label:has(> input[type="checkbox"]),
.gohres-form label:has(> input[type="radio"]) {
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	color: #3D3B3D;
	cursor: pointer;
}
.gohres-form input[type="checkbox"],
.gohres-form input[type="radio"] {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--g-violett);
	cursor: pointer;
}
.gohres-form .wpcf7-acceptance {
	display: block;
	padding: 14px 16px;
	background: #FAF8FC;
	border: 1px solid #EEEAF2;
	border-radius: 12px;
}
.gohres-form .wpcf7-acceptance a {
	color: var(--g-violett);
	font-weight: 600;
}
/* Datenschutz-Kasten über die ganze Breite */
.gohres-form p:has(.wpcf7-acceptance),
.gohres-form p:has(.wpcf7-checkbox),
.gohres-form p:has(.wpcf7-radio) {
	grid-column: 1 / -1;
}

/* Leere Meldungsbox nicht anzeigen */
.gohres-form .wpcf7-response-output:empty {
	display: none;
}

/* Felder nebeneinander bleiben bündig, auch wenn eine Beschriftung zweizeilig ist */
.gohres-form .gfd-abschnitt > p {
	display: flex;
}
.gohres-form .gfd-abschnitt > p > label {
	flex: 1 1 auto;
	justify-content: space-between;
}
/* Einzelnes Feld in einem Abschnitt über die ganze Breite */
.gohres-form .gfd-abschnitt > p:first-of-type:last-of-type {
	grid-column: 1 / -1;
}

.gohres-form .gfd-ic-uhr {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C319A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") !important;
}

/* ---------- Beschriftung als eine Zeile (setzt gohres-form.js) ---------- */
.gohres-form .gfd-beschriftung {
	display: block;
	line-height: 1.35;
}
.gohres-form .gfd-beschriftung abbr,
.gohres-form .gfd-beschriftung .required,
.gohres-form .gfd-beschriftung .pflicht,
.gohres-form .gfd-beschriftung .wpcf7-required {
	color: var(--g-violett);
	text-decoration: none;
	border: none;
	margin-left: 2px;
}

/* Absende-Knopf ausgegraut, solange das Datenschutz-Häkchen fehlt */
.gohres-form .wpcf7-submit:disabled {
	background: #B9AFC4;
	cursor: not-allowed;
}

/* ---------- Absende-Knopf: auch lange Texte vollständig und mittig ---------- */
form.gohres-form input.wpcf7-submit,
form.gohres-form button.wpcf7-submit {
	display: block !important;
	width: auto !important;
	min-width: min(320px, 100%) !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 52px !important;
	padding: 13px 28px !important;
	box-sizing: border-box !important;
	white-space: normal !important;
	overflow-wrap: break-word;
	word-wrap: break-word;
	text-align: center !important;
	text-indent: 0 !important;
	line-height: 1.3 !important;
	overflow: visible !important;
	-webkit-appearance: none;
	appearance: none;
}
/* Ladekreisel von CF7 nicht neben, sondern unter den Knopf */
form.gohres-form p:has(.wpcf7-submit) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}
form.gohres-form p:has(.wpcf7-submit) .wpcf7-spinner {
	margin: 0;
}
@media (max-width: 600px) {
	form.gohres-form input.wpcf7-submit,
	form.gohres-form button.wpcf7-submit {
		width: 100% !important;
		padding: 13px 16px !important;
	}
}
