/* Prometimpex – Einwilligungs-Banner
 * Farben: Violett #311093, Dunkelviolett #1d0a58, Rot #f64546
 * Schrift: übernimmt die Hausschrift der Seite (Elementor-Kit).
 */

.prx-consent[hidden],
.prx-consent [hidden] {
	display: none !important;
}

.prx-consent {
	position: fixed;
	z-index: 2147483000;
	left: 16px;
	right: 16px;
	bottom: 16px;
	display: flex;
	justify-content: center;
	pointer-events: none;
	font-family: inherit;
}

.prx-consent .prx-consent__panel {
	box-sizing: border-box;
	width: 100%;
	max-width: 680px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	padding: 24px 24px 18px;
	border-top: 4px solid #311093;
	border-radius: 12px;
	background: #fff;
	color: #0c0d0e;
	box-shadow: 0 12px 40px rgba(29, 10, 88, 0.28);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	pointer-events: auto;
}

.prx-consent .prx-consent__panel:focus {
	outline: none;
}

.prx-consent .prx-consent__panel:focus-visible {
	outline: 3px solid #f64546;
	outline-offset: 2px;
}

.prx-consent p {
	margin: 0;
}

.prx-consent .prx-consent__title {
	margin: 0 0 8px;
	color: #311093;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
}

/* Kategorien */
.prx-consent .prx-consent__details {
	margin-top: 16px;
	border-top: 1px solid #e3def5;
}

.prx-consent .prx-consent__cat {
	padding: 12px 0;
	border-bottom: 1px solid #e3def5;
}

.prx-consent .prx-consent__cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 4px;
}

.prx-consent .prx-consent__cat-name {
	margin: 0;
	color: #1d0a58;
	font-weight: 700;
	cursor: default;
}

.prx-consent label.prx-consent__cat-name {
	cursor: pointer;
}

.prx-consent .prx-consent__always {
	color: #5a5275;
	font-size: 13px;
}

.prx-consent .prx-consent__cat-text {
	color: #3d3a48;
	font-size: 14px;
}

/* Schalter */
.prx-consent .prx-consent__switch {
	position: relative;
	flex: 0 0 auto;
	width: 48px;
	height: 28px;
}

.prx-consent .prx-consent__switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

.prx-consent .prx-consent__switch-track {
	position: absolute;
	inset: 0;
	border-radius: 14px;
	background: #8a84a3;
	transition: background-color 0.15s ease;
}

.prx-consent .prx-consent__switch-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}

.prx-consent .prx-consent__switch input:checked + .prx-consent__switch-track {
	background: #311093;
}

.prx-consent .prx-consent__switch input:checked + .prx-consent__switch-track::after {
	transform: translateX(20px);
}

.prx-consent .prx-consent__switch input:focus-visible + .prx-consent__switch-track {
	outline: 3px solid #f64546;
	outline-offset: 2px;
}

/* Buttons: „Ablehnen“ und „Alle akzeptieren“ bewusst gleich gewichtet */
.prx-consent .prx-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.prx-consent .prx-consent__btn {
	flex: 1 1 150px;
	box-sizing: border-box;
	min-height: 44px;
	margin: 0;
	padding: 10px 18px;
	border: 2px solid #311093;
	border-radius: 32px;
	background: #311093;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: normal;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.prx-consent .prx-consent__btn:hover,
.prx-consent .prx-consent__btn:active {
	border-color: #1d0a58;
	background: #1d0a58;
	color: #fff;
}

.prx-consent .prx-consent__btn--secondary {
	background: #fff;
	color: #311093;
}

.prx-consent .prx-consent__btn--secondary:hover,
.prx-consent .prx-consent__btn--secondary:active {
	border-color: #311093;
	background: #f1eefb;
	color: #311093;
}

.prx-consent .prx-consent__btn:focus {
	outline: none;
}

.prx-consent .prx-consent__btn:focus-visible {
	outline: 3px solid #f64546;
	outline-offset: 2px;
}

/* Links */
.prx-consent .prx-consent__links {
	margin-top: 12px;
	color: #5a5275;
	font-size: 13px;
	text-align: center;
}

.prx-consent .prx-consent__links a {
	color: #311093;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.prx-consent .prx-consent__links a:hover {
	color: #f64546;
}

.prx-consent .prx-consent__links a:focus-visible {
	outline: 3px solid #f64546;
	outline-offset: 2px;
}

/* Mobil */
@media (max-width: 600px) {
	.prx-consent {
		left: 8px;
		right: 8px;
		bottom: 8px;
	}

	.prx-consent .prx-consent__panel {
		padding: 18px 18px 14px;
		max-height: calc(100vh - 16px);
		max-height: calc(100dvh - 16px);
		font-size: 14px;
	}

	.prx-consent .prx-consent__title {
		font-size: 18px;
	}

	.prx-consent .prx-consent__btn {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.prx-consent:not([hidden]) .prx-consent__panel {
		animation: prx-consent-in 0.25s ease-out;
	}

	@keyframes prx-consent-in {
		from {
			opacity: 0;
			transform: translateY(16px);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
}

@media print {
	.prx-consent {
		display: none !important;
	}
}
