/*! PEPIC Consent 1.0.0 */
#pepic-cc {
	--pcc-cream: #f8f7ef;
	--pcc-paper: #ffffff;
	--pcc-ink: #1c1c1c;
	--pcc-text: #2b2b2b;
	--pcc-muted: #5f5f58;
	--pcc-line: rgba(28, 28, 28, .12);
	--pcc-green: #8cbf43;
	--pcc-green-dark: #4e7a1c;
	--pcc-radius: 22px;
	--pcc-display: LeJe, "Bricolage Grotesque", Georgia, "Times New Roman", serif;
	--pcc-sans: Montserrat, "Helvetica Neue", Arial, sans-serif;
	--pepic-cc-offset: 0px;
	font-family: var(--pcc-sans);
	color: var(--pcc-text);
}

#pepic-cc *,
#pepic-cc *::before,
#pepic-cc *::after { box-sizing: border-box; }

#pepic-cc [hidden] { display: none !important; }

/* ---------- Grundelemente ---------- */

#pepic-cc p { margin: 0; font-family: var(--pcc-sans); color: var(--pcc-text); }

#pepic-cc .pepic-cc-eyebrow {
	display: flex; align-items: center; gap: 10px;
	margin: 0 0 12px;
	font-size: 11px; line-height: 1; font-weight: 600;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--pcc-muted);
}
#pepic-cc .pepic-cc-eyebrow span {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--pcc-green);
	box-shadow: 0 0 0 4px rgba(140, 191, 67, .18);
}

#pepic-cc .pepic-cc-title {
	margin: 0 0 14px !important;
	padding: 0 !important;
	font-family: var(--pcc-display) !important;
	font-size: 30px !important;
	line-height: 1.02 !important;
	font-weight: 400 !important;
	letter-spacing: -.01em !important;
	text-transform: uppercase !important;
	color: var(--pcc-ink) !important;
	border: 0 !important;
	background: none !important;
}
#pepic-cc .pepic-cc-title em { font-style: italic; }

#pepic-cc .pepic-cc-text { font-size: 14px; line-height: 1.65; color: var(--pcc-text); }
#pepic-cc .pepic-cc-text a,
#pepic-cc .pepic-cc-legal a,
#pepic-cc .pepic-cc-ext {
	color: var(--pcc-ink);
	text-decoration: underline;
	text-decoration-color: var(--pcc-green);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

#pepic-cc button {
	-webkit-appearance: none; appearance: none;
	margin: 0; padding: 0; border: 0; box-shadow: none; text-shadow: none;
	background-image: none; line-height: 1.2; float: none;
	font-family: var(--pcc-sans);
	cursor: pointer;
	width: auto; min-width: 0; height: auto;
	text-transform: none; letter-spacing: normal;
}

#pepic-cc .pepic-cc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 50px; padding: 0 22px;
	border-radius: 999px;
	background: var(--pcc-ink); color: #fff;
	font-size: 13px; line-height: 1.2; font-weight: 600;
	letter-spacing: .06em; text-transform: uppercase; text-align: center;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
#pepic-cc .pepic-cc-btn:hover { background: var(--pcc-green); color: var(--pcc-ink); }
#pepic-cc .pepic-cc-btn:active { transform: translateY(1px); }

#pepic-cc .pepic-cc-link {
	padding: 6px 0; background: none; color: var(--pcc-ink);
	font-size: 13px; font-weight: 600;
	text-decoration: underline; text-decoration-color: var(--pcc-green);
	text-decoration-thickness: 2px; text-underline-offset: 4px;
}
#pepic-cc .pepic-cc-link:hover { color: var(--pcc-green-dark); }

#pepic-cc :focus-visible { outline: 2px solid var(--pcc-ink); outline-offset: 3px; }
#pepic-cc .pepic-cc-btn:focus-visible { outline-color: var(--pcc-green-dark); }

/* ---------- Banner ---------- */

#pepic-cc .pepic-cc-banner {
	position: fixed; z-index: 2147483000;
	left: 50%; bottom: calc(24px + var(--pepic-cc-offset) + env(safe-area-inset-bottom, 0px));
	width: min(600px, calc(100% - 48px));
	max-height: calc(100vh - 48px); overflow-y: auto;
	padding: 30px 32px 24px;
	background: var(--pcc-cream);
	border: 1px solid var(--pcc-line);
	border-radius: var(--pcc-radius);
	box-shadow: 0 30px 70px -20px rgba(28, 28, 28, .35), 0 2px 8px rgba(28, 28, 28, .06);
	opacity: 0; transform: translate(-50%, 16px);
	transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
#pepic-cc .pepic-cc-banner.is-in { opacity: 1; transform: translate(-50%, 0); }

#pepic-cc .pepic-cc-test {
	display: inline-block; margin: 0 0 14px;
	padding: 5px 10px; border-radius: 999px;
	background: #fbe12e; color: var(--pcc-ink);
	font-size: 11px; font-weight: 600; letter-spacing: .04em;
}

#pepic-cc .pepic-cc-actions {
	display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
	margin: 22px 0 0;
}
#pepic-cc .pepic-cc-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	margin: 14px 0 0;
}
#pepic-cc .pepic-cc-legal { display: inline-flex; gap: 16px; font-size: 12px; }

/* ---------- Einstellungsfenster ---------- */

#pepic-cc .pepic-cc-modal {
	position: fixed; inset: 0; z-index: 2147483001;
	display: flex; align-items: center; justify-content: center;
	padding: 24px;
	opacity: 0; transition: opacity .25s ease;
}
#pepic-cc .pepic-cc-modal.is-in { opacity: 1; }
#pepic-cc .pepic-cc-overlay {
	position: absolute; inset: 0;
	background: rgba(28, 28, 28, .55);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
#pepic-cc .pepic-cc-dialog {
	position: relative;
	display: flex; flex-direction: column;
	width: min(760px, 100%); max-height: calc(100vh - 48px);
	background: var(--pcc-cream);
	border-radius: var(--pcc-radius);
	box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .45);
	overflow: hidden;
	transform: translateY(12px); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
#pepic-cc .pepic-cc-modal.is-in .pepic-cc-dialog { transform: none; }
#pepic-cc .pepic-cc-dialog:focus { outline: none; }

#pepic-cc .pepic-cc-dhead {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
	padding: 28px 32px 18px;
	border-bottom: 1px solid var(--pcc-line);
}
#pepic-cc .pepic-cc-dhead .pepic-cc-title { margin: 0 !important; }
#pepic-cc .pepic-cc-x {
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
	background: var(--pcc-paper); border: 1px solid var(--pcc-line);
	color: var(--pcc-ink);
}
#pepic-cc .pepic-cc-x:hover { background: var(--pcc-green); }
#pepic-cc .pepic-cc-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

#pepic-cc .pepic-cc-dbody { padding: 22px 32px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#pepic-cc .pepic-cc-dbody > .pepic-cc-text { margin: 0 0 18px; }

#pepic-cc .pepic-cc-cat {
	margin: 0 0 12px; padding: 18px 20px;
	background: var(--pcc-paper);
	border: 1px solid var(--pcc-line); border-radius: 16px;
}
#pepic-cc .pepic-cc-cat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
#pepic-cc .pepic-cc-cat h3 {
	margin: 0 0 4px !important; padding: 0 !important;
	font-family: var(--pcc-sans) !important; font-size: 16px !important; line-height: 1.3 !important;
	font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important;
	color: var(--pcc-ink) !important;
}
#pepic-cc .pepic-cc-cat-head p { font-size: 13px; line-height: 1.55; color: var(--pcc-muted); }
#pepic-cc .pepic-cc-always {
	flex: 0 0 auto; padding: 6px 12px; border-radius: 999px;
	background: rgba(140, 191, 67, .16); color: var(--pcc-green-dark);
	font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}

/* Schalter */
#pepic-cc .pepic-cc-switch { position: relative; flex: 0 0 auto; display: inline-block; width: 52px; height: 30px; margin: 2px 0 0; cursor: pointer; }
#pepic-cc .pepic-cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
#pepic-cc .pepic-cc-switch span {
	position: absolute; inset: 0; border-radius: 999px;
	background: #d9d8cf; transition: background-color .2s ease;
}
#pepic-cc .pepic-cc-switch span::after {
	content: ""; position: absolute; top: 3px; left: 3px;
	width: 24px; height: 24px; border-radius: 50%;
	background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .2s ease;
}
#pepic-cc .pepic-cc-switch input:checked + span { background: var(--pcc-green); }
#pepic-cc .pepic-cc-switch input:checked + span::after { transform: translateX(22px); }
#pepic-cc .pepic-cc-switch input:focus-visible + span { outline: 2px solid var(--pcc-ink); outline-offset: 3px; }

/* Details */
#pepic-cc .pepic-cc-details { margin: 12px 0 0; }
#pepic-cc .pepic-cc-details summary {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 600; letter-spacing: .04em;
	color: var(--pcc-ink); cursor: pointer; list-style: none;
}
#pepic-cc .pepic-cc-details summary::-webkit-details-marker { display: none; }
#pepic-cc .pepic-cc-details summary::before {
	content: ""; width: 7px; height: 7px;
	border-right: 2px solid var(--pcc-green-dark); border-bottom: 2px solid var(--pcc-green-dark);
	transform: rotate(-45deg); transition: transform .2s ease;
}
#pepic-cc .pepic-cc-details[open] summary::before { transform: rotate(45deg); }

#pepic-cc .pepic-cc-svc { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--pcc-line); }
#pepic-cc .pepic-cc-svc p { font-size: 13px; line-height: 1.55; }
#pepic-cc .pepic-cc-svc-name { font-weight: 600; color: var(--pcc-ink) !important; }
#pepic-cc .pepic-cc-svc-meta { color: var(--pcc-muted) !important; font-size: 12px !important; margin: 0 0 6px !important; }
#pepic-cc .pepic-cc-svc table { width: 100%; margin: 10px 0 8px; border-collapse: collapse; font-size: 12px; background: none; border: 0; }
#pepic-cc .pepic-cc-svc th,
#pepic-cc .pepic-cc-svc td {
	padding: 7px 8px; border: 0; border-top: 1px solid var(--pcc-line);
	text-align: left; vertical-align: top; font-size: 12px; line-height: 1.4;
	color: var(--pcc-text); background: none;
}
#pepic-cc .pepic-cc-svc th { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; color: var(--pcc-muted); border-top: 0; }
#pepic-cc .pepic-cc-svc td:first-child { word-break: break-all; font-weight: 500; }
#pepic-cc .pepic-cc-ext { font-size: 12px; }

#pepic-cc .pepic-cc-dfoot {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
	padding: 18px 32px 24px;
	border-top: 1px solid var(--pcc-line);
	background: var(--pcc-cream);
}

/* ---------- Schaltfläche ---------- */

#pepic-cc .pepic-cc-fab {
	position: fixed; z-index: 2147482000;
	bottom: calc(20px + var(--pepic-cc-offset) + env(safe-area-inset-bottom, 0px));
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; padding: 0; border-radius: 50%;
	background: var(--pcc-cream); color: var(--pcc-ink);
	border: 1px solid var(--pcc-line);
	box-shadow: 0 10px 26px -8px rgba(28, 28, 28, .35);
	transition: background-color .2s ease, transform .2s ease;
}
#pepic-cc .pepic-cc-fab--left { left: 20px; }
#pepic-cc .pepic-cc-fab--right { right: 20px; }
#pepic-cc .pepic-cc-fab:hover { background: var(--pcc-green); transform: translateY(-2px); }
#pepic-cc .pepic-cc-fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

html.pepic-cc-lock, html.pepic-cc-lock body { overflow: hidden !important; }

/* ---------- Handy ---------- */

@media (max-width: 640px) {
	#pepic-cc .pepic-cc-banner {
		width: calc(100% - 24px);
		bottom: calc(12px + var(--pepic-cc-offset) + env(safe-area-inset-bottom, 0px));
		max-height: calc(100vh - 24px);
		padding: 24px 22px 18px;
		border-radius: 20px;
	}
	#pepic-cc .pepic-cc-title { font-size: 25px !important; }
	#pepic-cc .pepic-cc-text { font-size: 13px; line-height: 1.6; }
	#pepic-cc .pepic-cc-actions { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
	#pepic-cc .pepic-cc-btn { min-height: 48px; }

	#pepic-cc .pepic-cc-modal { padding: 0; align-items: flex-end; }
	#pepic-cc .pepic-cc-dialog {
		width: 100%; max-height: 92vh; max-height: 92dvh;
		border-radius: 22px 22px 0 0;
		transform: translateY(30px);
	}
	#pepic-cc .pepic-cc-dhead { padding: 22px 22px 14px; }
	#pepic-cc .pepic-cc-dbody { padding: 18px 22px; }
	#pepic-cc .pepic-cc-cat { padding: 16px; }
	#pepic-cc .pepic-cc-dfoot {
		grid-template-columns: 1fr; gap: 8px;
		padding: 14px 22px calc(18px + env(safe-area-inset-bottom, 0px));
	}
	#pepic-cc .pepic-cc-fab { width: 42px; height: 42px; }
	#pepic-cc .pepic-cc-fab--left { left: 14px; }
	#pepic-cc .pepic-cc-fab--right { right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	#pepic-cc .pepic-cc-banner,
	#pepic-cc .pepic-cc-modal,
	#pepic-cc .pepic-cc-dialog,
	#pepic-cc .pepic-cc-btn,
	#pepic-cc .pepic-cc-fab,
	#pepic-cc .pepic-cc-switch span,
	#pepic-cc .pepic-cc-switch span::after { transition: none !important; }
}

@media print { #pepic-cc { display: none !important; } }
