/* Barrierefreie Styles für das DSGVO Cookie-Consent-Modal */

.me-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(8px);
	z-index: 99999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	animation: meModalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.me-modal-box {
	background: #ffffff;
	border-radius: 16px;
	width: 100%;
	max-width: 600px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	transform: scale(0.95);
	opacity: 0;
	animation: meModalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
	color: #1e293b;
	display: flex;
	flex-direction: column;
}

@keyframes meModalFadeIn {
	to { opacity: 1; }
}

@keyframes meModalScaleUp {
	to { transform: scale(1); opacity: 1; }
}

/* Modal Header */
.me-modal-header {
	background: #f8fafc;
	padding: 20px 24px;
	border-bottom: 1px solid #e2e8f0;
}

.me-modal-header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
}

/* Modal Body */
.me-modal-body {
	padding: 24px;
	font-size: 15px;
	line-height: 1.6;
	color: #334155;
	overflow-y: auto;
	max-height: 60vh;
}

.me-modal-body p {
	margin: 0 0 20px 0;
}

.me-cookie-options {
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: #f1f5f9;
	padding: 16px;
	border-radius: 10px;
}

.me-cookie-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	font-size: 13.5px;
	user-select: none;
}

.me-cookie-checkbox-label input[type="checkbox"] {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	accent-color: var(--me-accent-color);
	cursor: pointer;
}

/* Modal Footer */
.me-modal-footer {
	padding: 16px 24px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

/* Buttons */
.me-btn {
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 700;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
}

.me-btn-primary {
	background: var(--me-accent-color);
	color: #ffffff;
}

.me-btn-primary:hover {
	filter: brightness(1.08);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.me-btn-secondary {
	background: #cbd5e1;
	color: #1e293b;
}

.me-btn-secondary:hover {
	background: #94a3b8;
}

/* Tastaturfokus-Erhöhung */
.me-btn:focus-visible,
.me-cookie-checkbox-label input[type="checkbox"]:focus-visible {
	outline: 3px solid #0f172a !important;
	outline-offset: 2px !important;
}

/* Responsive */
@media (max-width: 480px) {
	.me-modal-overlay {
		padding: 10px;
	}
	.me-modal-footer {
		flex-direction: column;
	}
	.me-btn {
		width: 100%;
	}
}
