/* IKS Blätterbuch — Viewer-Overlay */
.iksf-noscroll { overflow: hidden !important; }
.iksf-ov { position: fixed; inset: 0; z-index: 999999; background: #20262b; display: flex; flex-direction: column;
	font: 14px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #eef2f5; }

.iksf-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px;
	background: #14181c; border-bottom: 1px solid #313a41; }
.iksf-title { font-weight: 700; max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 3.59.4: dezente Herkunftsangabe des Original-Dokuments (keine Weiterleitung — IKS first) */
.iksf-src { color: #8a97a1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.iksf-src[hidden] { display: none; }
.iksf-nav { display: flex; align-items: center; gap: 6px; }
.iksf-nav[hidden] { display: none; } /* 3.59.1: Einzelseiten-Modus blendet die Blätter-Pfeile aus */
.iksf-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.iksf-b { background: #2a3238; color: #eef2f5; border: 1px solid #3d474f; border-radius: 7px;
	padding: 5px 11px; font-size: 14px; cursor: pointer; text-decoration: none; line-height: 1.3; }
.iksf-b:hover { background: #37424a; }
.iksf-dl { background: #0b5a8a; border-color: #0b5a8a; font-weight: 600; }
.iksf-dl:hover { background: #0e6ea8; }
.iksf-pg { color: #b9c3cb; white-space: nowrap; }
.iksf-pgin { width: 56px; background: #2a3238; color: #fff; border: 1px solid #3d474f; border-radius: 6px;
	padding: 4px 6px; text-align: center; }
.iksf-q { background: #2a3238; color: #fff; border: 1px solid #3d474f; border-radius: 7px;
	padding: 5px 10px; min-width: 180px; }
.iksf-q::placeholder { color: #8b98a1; }

.iksf-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px; }
.iksf-book { touch-action: pan-y; }
.iksf-book canvas, .iksf-book img { box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.iksf-load { color: #b9c3cb; font-size: 16px; text-align: center; }
.iksf-load b { color: #fff; }

.iksf-hits { position: absolute; top: 52px; right: 10px; z-index: 5; width: min(400px, 92vw); max-height: 60vh;
	overflow: auto; background: #fff; color: #1e2a33; border-radius: 10px; box-shadow: 0 14px 44px rgba(0,0,0,.45); }
.iksf-ov { position: fixed; }
.iksf-hits[hidden] { display: none; }
.iksf-hit-h { display: flex; justify-content: space-between; align-items: center; gap: 8px;
	padding: 9px 12px; font-weight: 700; border-bottom: 1px solid #e2e8ee; position: sticky; top: 0; background: #f4f7fa; }
.iksf-hit-h .iksf-b { background: #e8edf1; color: #333; border-color: #d4dbe1; padding: 2px 8px; }
.iksf-hit { display: block; padding: 9px 12px; border-bottom: 1px solid #eef2f5; cursor: pointer; text-decoration: none; color: inherit; }
.iksf-hit:hover { background: #f0f6fb; }
.iksf-hit b { color: #0b5a8a; } .iksf-hit em { color: #7a8792; font-style: normal; font-size: 12px; }
.iksf-hit span { display: block; color: #444; font-size: 13px; margin-top: 2px; }
.iksf-hit mark { background: #ffe27a; padding: 0 1px; }

.iksf-zoom { position: absolute; inset: 0; z-index: 8; background: rgba(15,19,22,.96); overflow: auto; text-align: center; padding: 18px; }
.iksf-zoom[hidden] { display: none; }
.iksf-zoom img { max-width: none; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.iksf-zx { position: fixed; top: 14px; right: 16px; }

@media (max-width: 700px) {
	.iksf-title { max-width: 100%; order: -1; flex-basis: 100%; }
	.iksf-q { min-width: 120px; flex: 1; }
}

/* 3.57.0: Einzelseiten-Ansicht ohne weiße Leerfläche + Zoom */
.iksf-ov .stf__parent, .iksf-ov .stf__block, .iksf-ov .stf__item { background: transparent !important; }
.iksf-stage { overflow: hidden; }
