/* Cookie-Banner (pcpoint-consent.php): Fenster in der Mitte, Seite bis zur Entscheidung gesperrt. */
.pcp-consent {
	width: 100%;
	max-width: 35rem;
	max-height: calc(100vh - 2rem);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(31, 38, 46, .28), 0 2px 8px rgba(31, 38, 46, .08);
	color: #3f4c58;
	font-size: .95rem;
	line-height: 1.55;
}
.pcp-consent:focus { outline: none; }
.pcp-consent[open] { animation: pcp-consent-in .28s cubic-bezier(.2, .8, .2, 1); }
.pcp-consent::backdrop {
	background: rgba(31, 38, 46, .55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	animation: pcp-consent-fade .28s ease;
}
html.pcp-consent-modal { overflow: hidden; }

/* Auf Datenschutz und Impressum: unten, ohne Sperre. */
.pcp-consent--soft {
	position: fixed;
	z-index: 100000;
	right: 0;
	bottom: 1rem;
	left: 0;
	margin: 0 auto;
	max-width: min(35rem, calc(100vw - 2rem));
}

.pcp-consent__inner {
	position: relative;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	padding: 1.75rem 1.9rem 1.4rem;
}
.pcp-consent__logo {
	display: block;
	width: auto;
	height: 30px;
	margin: 0 0 1.1rem;
}
.pcp-consent__close {
	position: absolute;
	top: .9rem;
	right: .9rem;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f5f5f8;
	color: #3f4c58;
	cursor: pointer;
}
.pcp-consent__close:hover { background: #e8e8ef; }
.pcp-consent__close[hidden] { display: none; }
.pcp-consent__title {
	margin: 0 0 .5rem;
	color: #2b343d;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
}
.pcp-consent__text { margin: 0 0 1.25rem; }

/* Auswahl je Kategorie */
.pcp-consent__details {
	margin: 0 0 1.25rem;
	border: 1px solid #e3e5eb;
	border-radius: 12px;
}
.pcp-consent__details[hidden] { display: none; }
.pcp-consent__cat {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	padding: .85rem 1rem;
	font-size: .88rem;
	line-height: 1.45;
}
label.pcp-consent__cat { cursor: pointer; }
.pcp-consent__cat + .pcp-consent__cat { border-top: 1px solid #e3e5eb; }
.pcp-consent__cat-text strong {
	display: block;
	margin-bottom: .15rem;
	color: #2b343d;
	font-size: .95rem;
}
.pcp-consent__always {
	flex: none;
	color: #1e7d4f;
	font-size: .8rem;
	font-weight: 600;
	white-space: nowrap;
}
.pcp-consent__switch {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: none;
	width: 46px;
	height: 26px;
	margin: 0;
	border-radius: 999px;
	background: #c5cad3;
	cursor: pointer;
	transition: background .2s;
}
.pcp-consent__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .2s;
}
.pcp-consent__switch:checked { background: #1e7d4f; }
.pcp-consent__switch:checked::after { transform: translateX(20px); }

/* Schaltflächen */
.pcp-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1rem;
	align-items: center;
	justify-content: space-between;
}
.pcp-consent__buttons {
	display: flex;
	flex: 1 1 auto;
	gap: .65rem;
	justify-content: flex-end;
}
.pcp-consent__btn {
	flex: 0 1 12rem;
	min-height: 3rem;
	padding: .65rem 1.2rem;
	border: 2px solid transparent;
	border-radius: 10px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.pcp-consent__btn[hidden] { display: none; }
.pcp-consent__btn--primary {
	border-color: #cf3d0a;
	background: #cf3d0a;
	box-shadow: 0 6px 16px rgba(207, 61, 10, .28);
	color: #fff;
}
.pcp-consent__btn--primary:hover { border-color: #a8320a; background: #a8320a; }
.pcp-consent__btn--secondary {
	border-color: #d3d7de;
	background: transparent;
	color: #3f4c58;
}
.pcp-consent__btn--secondary:hover { border-color: #3f4c58; }
.pcp-consent__more {
	padding: .4rem 0;
	border: 0;
	background: none;
	color: #3f4c58;
	font: inherit;
	font-size: .9rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.pcp-consent__more[hidden] { display: none; }
.pcp-consent__links {
	display: flex;
	gap: 1.1rem;
	margin: 1.1rem 0 0;
	padding-top: .9rem;
	border-top: 1px solid #eef0f3;
	font-size: .8rem;
}
.pcp-consent__links a { color: #6c727d; }
.pcp-consent__links a:hover { color: #2b343d; }
.pcp-consent :focus-visible { outline: 2px solid #f07e18; outline-offset: 2px; }

@media (max-width: 600px) {
	/* Unten als Blatt über die ganze Breite */
	.pcp-consent:not(.pcp-consent--soft) {
		max-width: 100%;
		max-height: 92vh;
		margin: auto 0 0;
		border-radius: 18px 18px 0 0;
	}
	.pcp-consent--soft { bottom: .5rem; }
	.pcp-consent__inner { max-height: 92vh; padding: 1.4rem 1.2rem 1.1rem; }
	.pcp-consent__title { font-size: 1.15rem; }
	.pcp-consent__text { font-size: .9rem; }
	.pcp-consent__actions { flex-direction: column-reverse; align-items: stretch; }
	.pcp-consent__buttons { flex-direction: column-reverse; }
	.pcp-consent__btn { flex-basis: auto; }
}
@keyframes pcp-consent-in {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to { opacity: 1; transform: none; }
}
@keyframes pcp-consent-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.pcp-consent[open],
	.pcp-consent::backdrop { animation: none; }
}
@media print { .pcp-consent { display: none !important; } }
