/* PDF Katalog Flipbook - Frontend Styles */

html.pcf-lock { overflow: hidden !important; }

/* ------------------------------------------------------------ Titelbild */
.pcf-cover {
	position: relative;
	display: inline-block;
	max-width: 360px;
	width: 100%;
	margin: 0 auto;
	cursor: pointer;
	border-radius: 8px;
	overflow: hidden;
	background: #f2f2f4;
	box-shadow: 0 8px 26px rgba(0, 0, 0, .16), 0 2px 6px rgba(0, 0, 0, .10);
	transition: transform .28s ease, box-shadow .28s ease;
}
.pcf-cover:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, .24), 0 4px 10px rgba(0, 0, 0, .12);
}
.pcf-cover-inner {
	position: relative;
	display: block;
	outline: none;
	min-height: 120px;
}
.pcf-cover-canvas {
	display: block;
	width: 100%;
	height: auto;
}
.pcf-cover-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
}
.pcf-cover-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #fff;
	background: linear-gradient(180deg, rgba(15, 18, 30, .15) 0%, rgba(15, 18, 30, .42) 100%);
	opacity: 0;
	transition: opacity .28s ease;
}
.pcf-cover-ready .pcf-cover-overlay { opacity: 1; }
.pcf-open-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 2px solid rgba(255, 255, 255, .85);
	box-shadow: 0 6px 22px rgba(0, 0, 0, .3);
	transition: transform .25s ease, background .25s ease;
}
.pcf-cover:hover .pcf-open-btn {
	transform: scale(1.08);
	background: rgba(255, 255, 255, .28);
}
.pcf-open-label {
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .3px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.pcf-notice {
	padding: 10px 14px;
	border-left: 4px solid #d0a900;
	background: #fff8e1;
	color: #5c4a00;
	font-size: 14px;
	border-radius: 4px;
}

/* ------------------------------------------------------------- Spinner */
.pcf-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid rgba(0, 0, 0, .18);
	border-top-color: rgba(0, 0, 0, .6);
	border-radius: 50%;
	display: inline-block;
	animation: pcf-spin .8s linear infinite;
}
.pcf-spinner-lg { width: 48px; height: 48px; border-width: 4px; border-color: rgba(255, 255, 255, .25); border-top-color: #fff; }
@keyframes pcf-spin { to { transform: rotate(360deg); } }
.pcf-cover-error { color: #b32d2e; font-size: 14px; padding: 12px; }

/* ------------------------------------------------------------ Lightbox */
.pcf-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	background: rgba(12, 14, 22, .97);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .25s ease;
}
.pcf-lightbox.pcf-open { opacity: 1; }

.pcf-lb-toolbar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	color: #f4f5f8;
	background: rgba(20, 23, 34, .72);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.pcf-lb-title {
	font-size: 15px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 40%;
}
.pcf-lb-tools {
	display: flex;
	align-items: center;
	gap: 6px;
}
.pcf-tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, .06);
	color: #f4f5f8;
	cursor: pointer;
	transition: background .2s ease, transform .12s ease;
}
.pcf-tool:hover { background: rgba(255, 255, 255, .16); }
.pcf-tool:active { transform: scale(.94); }
.pcf-tool-sep { width: 1px; height: 26px; background: rgba(255, 255, 255, .14); margin: 0 4px; }
.pcf-lb-pageinfo, .pcf-zoom-level {
	font-size: 13px;
	min-width: 54px;
	text-align: center;
	opacity: .9;
	font-variant-numeric: tabular-nums;
}

.pcf-lb-stage {
	flex: 1 1 auto;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: none;
}
.pcf-lb-stage.pcf-zoomed { cursor: grab; }
.pcf-lb-zoom {
	transform-origin: center center;
	transition: transform .18s ease;
	will-change: transform;
	display: block;
}
.pcf-lb-stage.pcf-zoomed .pcf-lb-zoom { transition: none; }
.pcf-lb-flip { margin: 0 auto; }

/* PageFlip Seiten */
.pcf-page {
	background: #fff;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .04);
}
.pcf-page-canvas {
	display: block;
	width: 100%;
	height: 100%;
}
.pcf-page-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}
.pcf-page-loading .pcf-spinner { width: 26px; height: 26px; }

.pcf-lb-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Mobile Toolbar-Anpassung */
@media (max-width: 600px) {
	.pcf-lb-title { display: none; }
	.pcf-lb-toolbar { justify-content: center; padding: 8px; }
	.pcf-tool { width: 36px; height: 36px; }
	.pcf-lb-pageinfo, .pcf-zoom-level { min-width: 40px; font-size: 12px; }
}
