/* Emmcee Kontaktformular */

.elementor-widget-emmcee-contact-form,
.elementor-widget-emmcee-contact-form > .elementor-widget-container {
	width: 100%;
}

.emmcee-form-wrap * {
	box-sizing: border-box;
}

.emmcee-form-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.emmcee-form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-sizing: border-box;
}

@media (max-width: 640px) {
	.emmcee-form-field {
		width: 100% !important;
	}
}

.emmcee-form-field > label {
	font-size: 13px;
	font-weight: 600;
	color: #433c38;
}

.emmcee-form-required {
	color: #c0392b;
}

.emmcee-form-field input[type="text"],
.emmcee-form-field input[type="email"],
.emmcee-form-field input[type="tel"],
.emmcee-form-field input[type="number"],
.emmcee-form-field input[type="date"],
.emmcee-form-field textarea,
.emmcee-form-field select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 6px;
	background-color: #fcf4eb;
	color: #433c38;
	font-size: 14px;
	font-family: inherit;
}

.emmcee-form-field select {
	/* Eigenes Pfeil-Icon statt des nativen Browser-Pfeils, mit
	   ausreichend Platz auf der rechten Seite – sonst kollidiert
	   längerer Text mit dem Pfeil und wirkt "abgeschnitten". */
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 40px;
	line-height: 1.4;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23a05a3c' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	text-overflow: ellipsis;
	white-space: nowrap;
	/* WICHTIG: Nur horizontal abschneiden (für das "…" bei langem
	   Text). Das Shorthand "overflow: hidden" hätte auch vertikal
	   abgeschnitten – bei manchen Browsern/Schriftarten war die
	   errechnete Zeilenhöhe minimal größer als die Box, wodurch der
	   Text unten sichtbar abgeschnitten wirkte. */
	overflow-x: hidden;
	overflow-y: visible;
	cursor: pointer;
}

.emmcee-form-field textarea {
	resize: vertical;
}

.emmcee-form-field input:focus,
.emmcee-form-field textarea:focus,
.emmcee-form-field select:focus {
	outline: 2px solid #a05a3c;
	outline-offset: 1px;
}

.emmcee-form-field input.emmcee-form-invalid,
.emmcee-form-field textarea.emmcee-form-invalid,
.emmcee-form-field select.emmcee-form-invalid {
	outline: 2px solid #c0392b;
}

.emmcee-form-choices {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.emmcee-form-choices--horizontal {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 22px;
}

.emmcee-form-choice {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: normal !important;
	line-height: 1;
	cursor: pointer;
}

.emmcee-form-choice input {
	width: auto !important;
	height: 16px;
	margin: 0;
	flex-shrink: 0;
	vertical-align: middle;
}

.emmcee-form-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.emmcee-form-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 22px;
	padding: 13px 30px;
	border: none;
	border-radius: 999px;
	background-color: #a05a3c;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.emmcee-form-submit:hover {
	background-color: #7c4429;
}

.emmcee-form-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.emmcee-form-message {
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.5;
	display: none;
}

.emmcee-form-message--visible {
	display: block;
}

.emmcee-form-message--success {
	color: #2a7d3f;
}

.emmcee-form-message--error {
	color: #c0392b;
}

/* ---------- Popup-Modus ---------- */
/* WICHTIG: Diese Regeln zielen bewusst auf eine Klasse DIREKT am
   Element (.emmcee-form-container--popup-mode), nicht auf einen
   Vorfahren-Selektor wie ".emmcee-form-mode-popup .emmcee-form-
   container". Der Container wird beim Öffnen per JS an <body>
   verschoben, um nicht von einem z-index-tragenden Eltern-Element
   eingesperrt zu werden – dabei verlässt er seinen ursprünglichen
   ".emmcee-form-mode-popup"-Vorfahren. Eine Klasse direkt am Element
   bleibt davon unberührt. */
.emmcee-form-container--popup-mode {
	display: none;
}

.emmcee-form-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border: none;
	border-radius: 999px;
	background-color: #a05a3c;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.emmcee-form-trigger:hover {
	background-color: #7c4429;
}

.emmcee-form-trigger-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.emmcee-form-trigger-icon i,
.emmcee-form-trigger-icon svg {
	font-size: 13px;
	width: 13px;
	height: 13px;
	color: inherit;
	fill: currentColor;
}

.emmcee-form-backdrop {
	position: fixed;
	inset: 0;
	background-color: rgba(67, 60, 56, 0.55);
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}

.emmcee-form-backdrop--visible {
	opacity: 1;
	visibility: visible;
}

.emmcee-form-container--popup-mode.emmcee-form-container--open {
	display: block;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 100001;
	width: min(620px, calc(100vw - 40px));
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background-color: #ffffff;
	border-radius: 16px;
	padding: 48px 32px 36px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.emmcee-form-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background-color: #fcf4eb;
	color: #433c38;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.emmcee-form-close:hover {
	background-color: #f0e2d0;
}

body.emmcee-form-locked {
	overflow: hidden;
}

@media (max-width: 600px) {
	.emmcee-form-container--popup-mode.emmcee-form-container--open {
		padding: 28px 20px;
	}
}
