/**
 * Terminanfrage Formular – Frontend-Styling
 * Design nach der verbindlichen Designanweisung der Praxis Kirsten Brüna:
 * Schrift Poppins, Petrol #0D938D / Dunkelpetrol #08736F, Orange-CTA #F16B07,
 * weiße Felder mit Label darüber, moderater Eckenradius, ruhige Fläche.
 *
 * Hinweis Datenschutz: Poppins wird NICHT von Google geladen, sondern aus dem
 * Theme genutzt (Brand-Font). So bleibt das Formular DSGVO-konform.
 */

.tf-formular-wrap {
	--tf-petrol: #0D938D;
	--tf-petrol-dark: #08736F;
	--tf-orange: #F16B07;
	--tf-orange-dark: #C84F00;
	--tf-ink: #263238;
	--tf-ink-soft: #6b7378;
	--tf-line: #E1E9E7;
	--tf-tint: #F5F8F7;
	--tf-radius: 12px;

	max-width: 1120px;
	margin: 0 auto;
	color: var(--tf-ink);
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Karte als ruhiger Rahmen ----------------------------------------- */
.tf-card {
	background: #fff;
	border: 1px solid var(--tf-line);
	border-radius: 18px;
	padding: 38px 40px;
	box-shadow: 0 1px 2px rgba(38, 50, 56, 0.03), 0 14px 40px rgba(8, 115, 111, 0.06);
}

.tf-intro {
	margin: 0 0 26px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--tf-line);
}

.tf-intro .tf-eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tf-petrol-dark);
	margin-bottom: 6px;
}

.tf-intro h2 {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 600;
	color: var(--tf-ink);
	line-height: 1.2;
}

.tf-intro p {
	margin: 0;
	color: var(--tf-ink-soft);
	font-size: 15px;
	line-height: 1.55;
}

/* Meldungen -------------------------------------------------------- */
.tf-meldung {
	border-radius: var(--tf-radius);
	padding: 16px 20px;
	margin-bottom: 26px;
	line-height: 1.5;
}

.tf-meldung strong {
	display: block;
	margin-bottom: 4px;
	font-size: 1.05em;
}

.tf-meldung--erfolg {
	background: #E8F6F5;
	border: 1px solid #b7dcd9;
	color: #08514e;
}

.tf-meldung--fehler {
	background: #FFF3E8;
	border: 1px solid #f4c39b;
	color: #99400a;
}

.tf-meldung--fehler ul {
	margin: 8px 0 0;
	padding-left: 20px;
}

.tf-meldung--fehler li {
	margin: 2px 0;
}

/* Formular als breites Raster – alle Felder nebeneinander ---------- */
.tf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
	gap: 22px 24px;
	align-items: end;
}

.tf-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.tf-field.full,
.tf-datenschutz {
	grid-column: 1 / -1;
}

.tf-field label {
	font-weight: 600;
	margin-bottom: 7px;
	font-size: 14px;
	letter-spacing: 0.005em;
	color: var(--tf-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tf-field.full label {
	white-space: normal;
}

.tf-field label small {
	font-weight: 400;
	color: var(--tf-ink-soft);
}

.tf-field input[type="text"],
.tf-field input[type="tel"],
.tf-field input[type="email"],
.tf-field select,
.tf-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 15px;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tf-field input:hover,
.tf-field select:hover,
.tf-field textarea:hover {
	border-color: #c7d6d2;
}

.tf-field input::placeholder,
.tf-field textarea::placeholder {
	color: #a3adb1;
}

.tf-field input:focus,
.tf-field select:focus,
.tf-field textarea:focus {
	outline: none;
	border-color: var(--tf-petrol);
	box-shadow: 0 0 0 3px rgba(13, 147, 141, 0.15);
}

/* Auswahlfelder mit eigenem Petrol-Pfeil --------------------------- */
.tf-field select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2308736F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	cursor: pointer;
}

.tf-field textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.55;
}

.tf-hint {
	font-size: 13px;
	color: var(--tf-ink-soft);
	margin: 8px 0 0;
	line-height: 1.45;
}

/* Block „Wann passt es besonders gut?" – 3 Vorschläge -------------- */
.tf-blocklabel {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--tf-ink);
	margin-bottom: 8px;
}

.tf-blocklabel small {
	font-weight: 400;
	color: var(--tf-ink-soft);
}

.tf-time-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px 16px;
}

.tf-req {
	color: var(--tf-orange);
}

/* Datenschutz-Einwilligung mit Trennlinie darüber ------------------ */
.tf-datenschutz {
	margin-top: 6px;
	padding-top: 24px;
	border-top: 1px solid var(--tf-line);
}

.tf-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.55;
	color: var(--tf-ink);
	cursor: pointer;
}

.tf-checkbox input[type="checkbox"] {
	margin-top: 2px;
	width: 19px;
	height: 19px;
	flex: 0 0 auto;
	accent-color: var(--tf-petrol);
	cursor: pointer;
}

.tf-datenschutz a {
	color: var(--tf-petrol-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Honeypot – für Menschen komplett unsichtbar ---------------------- */
.tf-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	width: 0;
	overflow: hidden;
}

/* Aktionszeile ----------------------------------------------------- */
.tf-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 30px;
}

.tf-formular button[type="submit"] {
	appearance: none;
	border: none;
	cursor: pointer;
	background: var(--tf-orange);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	padding: 15px 38px;
	border-radius: var(--tf-radius);
	box-shadow: 0 6px 16px rgba(241, 107, 7, 0.22);
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.tf-formular button[type="submit"]:hover {
	background: var(--tf-orange-dark);
	box-shadow: 0 8px 20px rgba(200, 79, 0, 0.26);
}

.tf-formular button[type="submit"]:active {
	transform: translateY(1px);
}

.tf-pflicht-hinweis {
	font-size: 13px;
	color: var(--tf-ink-soft);
	margin: 0;
}

/* Mobil: großzügiger Rand, Felder untereinander -------------------- */
@media (max-width: 640px) {
	.tf-card {
		padding: 24px 20px;
		border-radius: 14px;
	}
	.tf-intro h2 {
		font-size: 22px;
	}
	.tf-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.tf-field label {
		white-space: normal;
	}
	.tf-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.tf-formular button[type="submit"] {
		width: 100%;
	}
}
