/* CLAUDE: Lead-Modal Styles - Universelles Modal für alle Download-Typen */
/* CLAUDE: Wird in assets.php enqueued */

/* CLAUDE: Modal Container (Hidden by default) */
.lead-modal {
	/* CLAUDE: Fixed Overlay über gesamter Seite */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	/* CLAUDE: Versteckt wenn nicht aktiv */
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* CLAUDE: Modal ist sichtbar */
.lead-modal.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
}

/* CLAUDE: Overlay (Hintergrund) */
.lead-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	cursor: pointer;
}

/* CLAUDE: Modal Container (weißer Kasten) */
.lead-modal__container {
	position: relative;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 40px;
	z-index: 10000;
	animation: slideUp 0.3s ease;
}

/* CLAUDE: Slide-Up Animation */
@keyframes slideUp {
	from {
		transform: translateY(30px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* CLAUDE: Close-Button */
.lead-modal__close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 5px 10px;
	transition: color 0.2s ease;
}

.lead-modal__close:hover {
	color: #333;
}

/* CLAUDE: Header */
.lead-modal__title {
	font-size: 24px;
	font-weight: 700;
	color: #00274D;
	margin: 0 0 10px 0;
}

.lead-modal__description {
	font-size: 16px;
	color: #666;
	margin: 0 0 30px 0;
}

/* CLAUDE: Form Styles */
.lead-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-bottom: 15px;
}

.lead-form__field {
	margin-bottom: 15px;
}

.lead-form__field label {
	display: block;
	font-weight: 600;
	color: #333;
	margin-bottom: 5px;
	font-size: 14px;
}

.lead-form__field input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 16px;
	transition: border-color 0.2s ease;
}

.lead-form__field input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.required {
	color: #dc3232;
}

.optional {
	font-weight: 400;
	color: #999;
	font-size: 12px;
}

/* CLAUDE: Checkbox */
.lead-form__checkbox {
	margin: 20px 0;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.lead-form__checkbox input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

.lead-form__checkbox label {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}

.lead-form__checkbox a {
	color: #667eea;
	text-decoration: underline;
}

/* CLAUDE: Submit-Button */
.lead-form__submit {
	width: 100%;
	padding: 15px 30px;
	background: #667eea;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.lead-form__submit:hover:not(:disabled) {
	background: #5568d3;
}

.lead-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.button__loading {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

/* CLAUDE: Spinner */
.spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* CLAUDE: Message (Error/Success) */
.lead-form__message {
	padding: 12px 15px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-size: 14px;
}

.lead-form__message--error {
	background: #ffe5e5;
	color: #d63031;
	border-left: 4px solid #d63031;
}

.lead-form__message--success {
	background: #e8f5e9;
	color: #2e7d32;
	border-left: 4px solid #2e7d32;
}

/* CLAUDE: Mobile Responsiveness */
@media (max-width: 768px) {
	.lead-modal__container {
		width: 95%;
		padding: 30px 20px;
		max-height: 95vh;
	}

	.lead-form__row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.lead-modal__title {
		font-size: 20px;
	}

	.lead-modal__description {
		font-size: 14px;
	}
}
