/*! RGJ Flipbook 1.0.0 */
.rgjfb {
	--rgjfb-bg: #efefef;
	--rgjfb-accent: #1d1d1b;
	--rgjfb-bar-bg: #ffffff;
	position: relative;
	width: 100%;
	background: var(--rgjfb-bg);
	border-radius: var(--rgjfb-radius, 4px);
	outline: none;
	overflow: hidden;
	font-family: inherit;
	line-height: 1;
	box-sizing: border-box;
}
.rgjfb *, .rgjfb *::before, .rgjfb *::after { box-sizing: border-box; }

.rgjfb-stage {
	position: relative;
	padding: clamp(12px, 3vw, 40px);
	min-height: 220px;
}
.rgjfb-book {
	width: 100%;
	margin: 0 auto;
}
.rgjfb-page {
	background: #fff;
	overflow: hidden;
}
.rgjfb-slot {
	width: 100%;
	height: 100%;
	background: #fff;
}
.rgjfb-slot:empty {
	background: #fff linear-gradient(100deg, #fff 30%, #f3f3f3 50%, #fff 70%) 0 0 / 300% 100%;
	animation: rgjfb-shimmer 1.4s linear infinite;
}
.rgjfb-slot canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
	position: static !important;
}
@keyframes rgjfb-shimmer { to { background-position: -150% 0; } }

/* Ladeanzeige */
.rgjfb-loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: var(--rgjfb-accent);
	font-size: 14px;
	letter-spacing: .04em;
	background: var(--rgjfb-bg);
	z-index: 5;
}
.rgjfb-spinner {
	width: 32px;
	height: 32px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: rgjfb-spin .8s linear infinite;
	opacity: .7;
}
.rgjfb-error .rgjfb-spinner { display: none; }
@keyframes rgjfb-spin { to { transform: rotate(360deg); } }

/* Toolbar */
.rgjfb-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px 12px;
	background: var(--rgjfb-bar-bg);
	border-top: 1px solid rgba(0, 0, 0, .06);
	color: var(--rgjfb-accent);
	visibility: hidden;
}
.rgjfb--ready .rgjfb-bar { visibility: visible; }
.rgjfb .rgjfb-btn {
	all: unset;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	cursor: pointer;
	color: inherit;
	transition: background .15s, opacity .15s;
}
.rgjfb .rgjfb-btn:hover { background: rgba(0, 0, 0, .06); }
.rgjfb .rgjfb-btn:focus-visible { outline: 2px solid var(--rgjfb-accent); outline-offset: 1px; }
.rgjfb .rgjfb-btn:disabled { opacity: .25; cursor: default; background: none; }
.rgjfb-btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.rgjfb-count {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	margin: 0 6px;
	white-space: nowrap;
}
.rgjfb .rgjfb-input {
	all: unset;
	width: 5.2em;
	text-align: right;
	padding: 6px 4px;
	border-radius: var(--rgjfb-radius, 4px);
	font: inherit;
	color: inherit;
}
.rgjfb .rgjfb-input:hover, .rgjfb .rgjfb-input:focus { background: rgba(0, 0, 0, .06); }
.rgjfb-total { opacity: .6; padding-left: 2px; }
.rgjfb-sep { width: 1px; height: 22px; background: currentColor; opacity: .15; margin: 0 6px; }

@media (max-width: 480px) {
	.rgjfb-first, .rgjfb-last { display: none !important; }
	.rgjfb .rgjfb-btn { width: 36px; height: 36px; }
}

/* Vollbild */
.rgjfb:fullscreen, .rgjfb.rgjfb--fs {
	display: flex;
	flex-direction: column;
	border-radius: 0;
	width: 100%;
	height: 100%;
}
.rgjfb:-webkit-full-screen { display: flex; flex-direction: column; width: 100%; height: 100%; }
.rgjfb.rgjfb--fs { position: fixed; inset: 0; z-index: 999999; }
.rgjfb:fullscreen .rgjfb-stage, .rgjfb.rgjfb--fs .rgjfb-stage { flex: 1; display: flex; align-items: center; }
.rgjfb:-webkit-full-screen .rgjfb-stage { flex: 1; display: flex; align-items: center; }
html.rgjfb-noscroll, html.rgjfb-noscroll body { overflow: hidden !important; }
