/* Katalogsiden som bladrebog (se assets/js/katalog-bog.js). Uden JavaScript og ved print vises siderne under hinanden. */
.fbk { display: none; }
html.has-book, html.has-book body { height: 100%; overflow: hidden; }
html.has-book body { display: grid; grid-template-rows: auto 1fr; height: 100dvh; background: #141814; }
html.has-book .wrapk { position: absolute; left: -10000px; top: 0; width: 900px; visibility: hidden; pointer-events: none; }
html.has-book .fbk { display: flex; position: relative; align-items: center; justify-content: center; gap: 1rem; min-height: 0; padding: 16px; overflow: hidden; color: #F0ECE3; }
.fbk__count { font-size: .9rem; opacity: .85; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fbk__nav { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; color: #F0ECE3; background: rgba(240,236,227,.12); cursor: pointer; position: relative; z-index: 2000; }
.fbk__nav svg { width: 26px; height: 26px; }
.fbk__nav:hover:not(:disabled) { background: #C8102E; }
.fbk__nav:disabled { opacity: .25; cursor: default; }
.fbk :focus-visible { outline: 2px solid #F0ECE3; outline-offset: 3px; }
.fbk__book { position: relative; perspective: 2600px; transition: transform .7s cubic-bezier(.3,.1,.2,1); cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.fbk__book.is-closed { transform: translateX(-25%); }
.fbk__book.is-end { transform: translateX(25%); }
.fbk__book::before { content: ""; position: absolute; inset: 0; border-radius: 3px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.85); transition: left .7s, right .7s; }
.fbk__book.is-closed::before { left: 50%; }
.fbk__book.is-end::before { right: 50%; }
.fbk__leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.45,.05,.25,1); }
.fbk__leaf.is-flipped { transform: rotateY(-180deg); }
.fbk__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #F0ECE3; overflow: hidden; }
.fbk__face--front { border-radius: 0 3px 3px 0; }
.fbk__face--back { transform: rotateY(180deg); border-radius: 3px 0 0 3px; }
.fbk__face--blank { background: #E6E1D5; }
.fbk__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.fbk__face--front::after { background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,.04) 6%, transparent 14%); }
.fbk__face--back::after { background: linear-gradient(270deg, rgba(0,0,0,.22), rgba(0,0,0,.04) 6%, transparent 14%); }
.fbk__leaf.is-moving .fbk__face::after { animation: fbk-shade .9s ease; }
@keyframes fbk-shade { 50% { background-color: rgba(0,0,0,.12); } }
.fbk__pg { width: 210mm; transform-origin: 0 0; }
.fbk__pg .pg { margin: 0 !important; box-shadow: none !important; }
/* Smalle skærme: én side ad gangen med swipe */
.fbk--scroll { padding: 0 !important; }
.fbk--scroll .fbk__nav { position: absolute; bottom: 1rem; background: rgba(20,24,20,.75); }
.fbk--scroll .fbk__nav--prev { left: 1rem; }
.fbk--scroll .fbk__nav--next { right: 1rem; }
.fbk--scroll .fbk__book { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; perspective: none; cursor: auto; touch-action: auto; scrollbar-width: none; transform: none !important; }
.fbk--scroll .fbk__book::before { display: none; }
.fbk--scroll .fbk__book::-webkit-scrollbar { display: none; }
.fbk__page { flex: 0 0 100%; display: grid; place-items: center; scroll-snap-align: center; }
.fbk__box { overflow: hidden; box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); }
@media (max-width: 600px) { .kbar { gap: 6px 8px !important; padding: 8px 12px !important; font-size: 13px !important; } .kbar a, .kbar button { padding: 6px 9px !important; } .kbar b { font-size: 14px !important; } }
@media (prefers-reduced-motion: reduce) { .fbk__leaf, .fbk__book { transition-duration: .01s; } .fbk__leaf.is-moving .fbk__face::after { animation: none; } }
@media print {
  html.has-book, html.has-book body { height: auto; overflow: visible; display: block; background: none; }
  html.has-book .fbk { display: none; }
  html.has-book .wrapk { position: static; width: auto; visibility: visible; }
}
