.jcpb-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	pointer-events: none;
}
.jcpb-popup.jcpb-visible { display: block; }

.jcpb-overlay {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: auto;
}

.jcpb-box {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	pointer-events: auto;
	font-family: inherit;
}

.jcpb-close {
	position: absolute;
	top: 8px;
	right: 10px;
	background: transparent;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.jcpb-close:hover { opacity: 0.7; }

/* ---- Blocks ---- */
.jcpb-b-heading { margin: 0 0 12px; color: var(--jcpb-text, #1c1c1c); }
.jcpb-b-text { margin: 0 0 14px; color: var(--jcpb-text, #1c1c1c); }
.jcpb-b-text p { margin: 0 0 10px; }
.jcpb-b-image img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 0 auto 14px; }
.jcpb-b-video { position: relative; width: 100%; padding-bottom: 56.25%; margin-bottom: 14px; }
.jcpb-b-video iframe,
.jcpb-b-video video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.jcpb-b-divider { border: none; border-top: 1px solid rgba(0,0,0,0.1); margin: 16px 0; }
.jcpb-b-spacer { width: 100%; }
.jcpb-b-icon { margin-bottom: 10px; }
.jcpb-b-shortcode { margin-bottom: 14px; }

.jcpb-b-button { margin-bottom: 4px; }
.jcpb-button {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid var(--jcpb-primary, #2c3e50);
}
.jcpb-btn-solid { background: var(--jcpb-primary, #2c3e50); color: #fff; }
.jcpb-btn-solid:hover { opacity: 0.9; color: #fff; }
.jcpb-btn-outline { background: transparent; color: var(--jcpb-primary, #2c3e50); }
.jcpb-btn-outline:hover { background: var(--jcpb-primary, #2c3e50); color: #fff; }
.jcpb-btn-text { background: transparent; border-color: transparent; color: var(--jcpb-primary, #2c3e50); text-decoration: underline; padding-left: 4px; padding-right: 4px; }

.jcpb-b-countdown { display: flex; gap: 14px; justify-content: center; margin-bottom: 16px; }
.jcpb-b-countdown span {
	display: inline-block;
	background: var(--jcpb-primary, #2c3e50);
	color: #fff;
	font-weight: 700;
	font-size: 20px;
	padding: 8px 10px;
	border-radius: 6px;
	min-width: 40px;
	text-align: center;
}
.jcpb-b-countdown small { display: block; font-size: 10px; text-align: center; margin-top: 2px; color: #888; }

/* ---- Positionen ---- */
.jcpb-pos-center .jcpb-box {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%;
}
.jcpb-pos-fullscreen .jcpb-box {
	position: fixed; inset: 0; width: 100% !important; max-width: 100% !important; height: 100%;
	border-radius: 0 !important; display: flex; flex-direction: column; justify-content: center; overflow-y: auto;
}
.jcpb-pos-bottom-left .jcpb-box { position: fixed; bottom: 20px; left: 20px; width: 90%; }
.jcpb-pos-bottom-right .jcpb-box { position: fixed; bottom: 20px; right: 20px; width: 90%; }
.jcpb-pos-center-right .jcpb-box { position: fixed; top: 50%; right: 20px; transform: translateY(-50%); width: 90%; }

/* ---- Animationen ---- */
.jcpb-anim-fade .jcpb-box { opacity: 0; transition: opacity 0.35s ease; }
.jcpb-anim-fade.jcpb-in .jcpb-box { opacity: 1; }

.jcpb-anim-slide.jcpb-pos-center .jcpb-box,
.jcpb-anim-slide.jcpb-pos-fullscreen .jcpb-box { opacity: 0; transform: translate(-50%, -40%); transition: all 0.35s ease; }
.jcpb-anim-slide.jcpb-pos-center.jcpb-in .jcpb-box { opacity: 1; transform: translate(-50%, -50%); }
.jcpb-anim-slide.jcpb-pos-fullscreen.jcpb-in .jcpb-box { opacity: 1; transform: none; }

.jcpb-anim-slide.jcpb-pos-bottom-left .jcpb-box { transform: translateX(-120%); transition: transform 0.35s ease; }
.jcpb-anim-slide.jcpb-pos-bottom-left.jcpb-in .jcpb-box { transform: translateX(0); }

.jcpb-anim-slide.jcpb-pos-bottom-right .jcpb-box { transform: translateX(120%); transition: transform 0.35s ease; }
.jcpb-anim-slide.jcpb-pos-bottom-right.jcpb-in .jcpb-box { transform: translateX(0); }

.jcpb-anim-slide.jcpb-pos-center-right .jcpb-box { transform: translate(120%, -50%); transition: transform 0.35s ease; }
.jcpb-anim-slide.jcpb-pos-center-right.jcpb-in .jcpb-box { transform: translate(0, -50%); }

@media (max-width: 600px) {
	.jcpb-pos-bottom-left .jcpb-box,
	.jcpb-pos-bottom-right .jcpb-box,
	.jcpb-pos-center-right .jcpb-box { left: 10px; right: 10px; width: auto; }
	.jcpb-b-countdown { gap: 8px; }
}
