/* ── Modal ───────────────────────────────────────────────────────────────── */

.kz-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kz-modal[hidden] {
	display: none;
}

.kz-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
	cursor: pointer;
}

.kz-modal__content {
	position: relative;
	background: #f5f4d8;
	border-radius: 8px;
	padding: 2rem;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 8px 32px rgba( 0, 0, 0, 0.18 );
	margin: 1rem;
}

body.kz-modal-open {
	overflow: hidden;
}

.kz-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 0;
}

.kz-modal__close:hover {
	color: #000;
}

.kz-modal__title {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
}

.kz-modal__subtitle {
	margin: 0 0 1.25rem;
	color: #555;
	font-size: 0.9rem;
}

/* ── Formular ────────────────────────────────────────────────────────────── */

.kz-form__field {
	margin-bottom: 1rem;
}

.kz-form__label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
}

.kz-required {
	color: #c00;
}

.kz-form__textarea,
.kz-form__input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.95rem;
	font-family: inherit;
	resize: vertical;
}

.kz-form__textarea:focus,
.kz-form__input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba( 0, 115, 170, 0.2 );
}

.kz-form__error {
	color: #c00;
	font-size: 0.88rem;
	margin-bottom: 0.75rem;
}

.kz-form__submit {
	width: 100%;
	margin-top: 0.25rem;
}

.kz-form__success {
	padding: 0.75rem 1rem;
	background: #eaffea;
	border: 1px solid #8bc34a;
	border-radius: 4px;
	color: #2e7d32;
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

/* ── Gewählter Zeitraum (Modal) ──────────────────────────────────────────── */

.kz-form__range-info {
	margin: 0;
	padding: 0.5rem 0.75rem;
	background: #f5f4d7;
	border-radius: 4px;
	font-size: 0.9rem;
	color: #444;
}

/* ── Registrierungs-Hinweis ──────────────────────────────────────────────── */

.kz-modal__register-hint {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
	text-align: center;
}

.kz-modal__register-link {
	font-size: 0.9rem;
	font-weight: 600;
}

/* ── Anfrage-Trigger-Button ──────────────────────────────────────────────── */

.kz-anfrage-trigger {
	width: 100%;
	height: 54px;
	border-radius: 14px !important;
	border: 0 !important;
	font-weight: 800;
	font-size: 16px;
	letter-spacing: .2px;
	color: #fff !important;
	background: #ff6161 !important;
	box-shadow: 0 10px 20px rgba(255, 97, 97, 0.25) !important;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, opacity .15s ease;
	cursor: pointer;
	margin-bottom: 30px;
}

.kz-anfrage-trigger:hover:not(:disabled) {
	filter: brightness(1.08);
	box-shadow: 0 12px 24px rgba(255, 97, 97, 0.35) !important;
}

.kz-anfrage-trigger:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ── Dashboard ───────────────────────────────────────────────────────────── */

.kz-dashboard {
	padding: 0.5rem 0;
}

.kz-dashboard__empty {
	color: #666;
	font-style: italic;
}

.kz-dashboard__list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.kz-inquiry {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 1.1rem 1.25rem;
	background: #f5f4d8;
}

.kz-inquiry--new {
	border-left: 4px solid #fe171b;
}

.kz-inquiry--replied {
	border-left: 4px solid #8bc34a;
	opacity: 0.85;
}

.kz-inquiry__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.kz-inquiry__meta {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.875rem;
	color: #555;
}

.kz-inquiry__date {
	font-weight: 600;
	color: #333;
}

.kz-inquiry__status {
	font-size: 0.8rem;
	font-weight: 700;
	padding: 0.2rem 0.6rem;
	border-radius: 20px;
	white-space: nowrap;
}

.kz-status--new {
	background: #fe171b;
	color: #ffffff;
}

.kz-status--answered {
	background: #f1f8e9;
	color: #558b2f;
}

.kz-inquiry__message {
	font-size: 0.95rem;
	line-height: 1.55;
	margin-bottom: 0.75rem;
	background: #f9f9f9;
	padding: 0.6rem 0.8rem;
	border-radius: 4px;
}

.kz-inquiry__reply-sent {
	font-size: 0.875rem;
	color: #555;
	margin-top: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: #f1f8e9;
	border-radius: 4px;
}

.kz-reply-toggle {
	margin-top: 0.5rem;
	font-size: 0.875rem;
}

.kz-reply-form {
	margin-top: 0.75rem;
}

.kz-reply-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.9rem;
	font-family: inherit;
	resize: vertical;
	margin-bottom: 0.5rem;
}

.kz-reply-form__submit {
	font-size: 0.875rem;
}

.kz-reply-sent {
	color: #558b2f;
	font-size: 0.9rem;
}
