/* PDF-Katalog: schwarzer Viewer, weiße Seitenzahlen, reine Icon-Navigation. */
.pdfk{--pdfk-accent:#fff;background:#000;color:#fff;border:1px solid #333;border-radius:8px;padding:12px;box-sizing:border-box}
.pdfk *{box-sizing:border-box}
.pdfk-toolbar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.pdfk button,.pdfk-toolbar a{font:inherit;border:1px solid #666;border-radius:5px;background:#111;color:#fff;text-decoration:none;cursor:pointer}
.pdfk-toolbar button,.pdfk-toolbar a{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;padding:9px;flex-shrink:0}
.pdfk-toolbar svg{display:block;pointer-events:none;width:24px;height:24px}
.pdfk button:hover:not(:disabled),.pdfk-toolbar a:hover{background:#292929;border-color:#fff}
.pdfk button:disabled{opacity:.35;cursor:default}
.pdfk :focus-visible{outline:3px solid #fff;outline-offset:3px}
.pdfk-toolbar label{display:inline-flex;align-items:center}
.pdfk input{width:4.5em;padding:9px;font:inherit;color:#fff;background:#111;border:1px solid #666;border-radius:5px;height:44px;color-scheme:dark}
.pdfk [data-count]{color:#fff;font-variant-numeric:tabular-nums}
.pdfk-layout{display:flex;gap:12px;align-items:flex-start}
.pdfk-pages{width:140px;flex-shrink:0;max-height:65vh;overflow:auto;background:#000;color:#fff;border:1px solid #333;border-radius:5px}
.pdfk-pages ol{margin:0;padding:8px;list-style:none}
.pdfk-pages button{width:100%;margin:3px 0;padding:9px;text-align:center;color:#fff;font-variant-numeric:tabular-nums}
.pdfk-pages [aria-current=page]{background:#333;border-color:#fff;color:#fff}
.pdfk-stage{flex:1;min-width:0;display:flex;justify-content:center;align-items:center;gap:3px;min-height:160px;perspective:1400px;touch-action:pan-y;background:#000}
.pdfk-sheet{flex:1;min-width:0;max-width:50%;text-align:center;margin:0}
/* Geschlossenes Cover und ein einzelner Rückdeckel bleiben so breit wie eine Buchseite. */
.pdfk-sheet:only-child{max-width:50%}
.pdfk-sheet canvas{display:block;max-width:100%;height:auto;margin:auto;background:#fff;box-shadow:0 3px 16px #ffffff15}
.pdfk-sheet figcaption{font-size:.85em;padding:7px;color:#fff;font-variant-numeric:tabular-nums}
.pdfk-stage[data-cover=true]{cursor:pointer}
.pdfk-turn{animation:pdfk-turn .32s ease-out;transform-origin:center left}
@keyframes pdfk-turn{from{opacity:.35;transform:rotateY(-15deg)}to{opacity:1;transform:rotateY(0)}}
.pdfk [hidden]{display:none!important}
.pdfk:fullscreen{width:100%;height:100%;overflow:auto;border-radius:0;padding:20px;background:#000;color:#fff}
.pdfk:fullscreen .pdfk-pages{max-height:80vh}
.pdfk-error{color:#a00}
.pdfk-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pdfk [data-status]{font-size:.9em;color:#fff}
.pdfk [data-status] a{color:#fff;text-decoration:underline}
@media(max-width:650px){.pdfk-layout{flex-direction:column}.pdfk-pages{width:100%;max-height:180px}.pdfk-stage{width:100%}.pdfk-sheet,.pdfk-sheet:only-child{max-width:100%}.pdfk-toolbar{gap:6px;font-size:.9em}}
@media(prefers-reduced-motion:reduce){.pdfk-turn{animation:none}}

/* Zoom: feste Seitengrößen im scrollbareren Ansichtsfenster. */
.pdfk-stage{display:block;overflow:auto;max-height:min(800px,75vh);scrollbar-gutter:stable;overscroll-behavior:contain;touch-action:pan-x pan-y}
.pdfk-spread{display:flex;justify-content:center;align-items:flex-start;gap:3px;width:max-content;min-width:100%;padding:3px}
.pdfk-spread .pdfk-sheet,.pdfk-spread .pdfk-sheet:only-child{flex:0 0 auto;max-width:none}
.pdfk-spread .pdfk-sheet canvas{max-width:none}
.pdfk-zoom{min-width:4em;text-align:center;color:#fff;font-variant-numeric:tabular-nums}
.pdfk:fullscreen .pdfk-stage{max-height:calc(100vh - 200px)}

/* Contao-Element inklusive seiner außerhalb des Viewers ausgegebenen Headline. */
.ce_pdf_katalog{background:#000!important;color:#fff;border:1px solid #333;border-radius:8px;padding:16px 12px 12px;box-sizing:border-box}
.ce_pdf_katalog > h1,.ce_pdf_katalog > h2,.ce_pdf_katalog > h3,
.ce_pdf_katalog > h4,.ce_pdf_katalog > h5,.ce_pdf_katalog > h6,
.ce_pdf_katalog > .headline{color:#fff!important;background:transparent!important;margin:0 0 16px;padding:0;overflow-wrap:anywhere}
.ce_pdf_katalog > h1 *,.ce_pdf_katalog > h2 *,.ce_pdf_katalog > h3 *,
.ce_pdf_katalog > h4 *,.ce_pdf_katalog > h5 *,.ce_pdf_katalog > h6 *,
.ce_pdf_katalog > .headline *{color:inherit!important}
.ce_pdf_katalog .pdfk{border:0;border-radius:0;padding:0;background:#000}
.ce_pdf_katalog .pdfk:fullscreen{padding:20px}

/* Kompakte Bedienleiste unter Cover und geöffnetem Katalog. */
.pdfk .pdfk-toolbar{gap:5px;margin:10px 0 0;font-size:12px;line-height:1.2;justify-content:center}
.pdfk .pdfk-toolbar button,.pdfk .pdfk-toolbar a{width:28px;height:28px;min-width:28px;min-height:28px;padding:6px;border-radius:4px}
.pdfk .pdfk-toolbar svg{width:14px;height:14px}
.pdfk .pdfk-toolbar input{width:3.8em;height:28px;min-height:28px;padding:4px 5px;font-size:12px}
.pdfk .pdfk-toolbar .pdfk-zoom{min-width:3.5em;font-size:12px}
.pdfk [data-status]{margin:7px 0 0;text-align:center;font-size:11px;color:#fff}
@media(pointer:coarse){.pdfk .pdfk-toolbar button,.pdfk .pdfk-toolbar a{width:32px;height:32px;min-width:32px;min-height:32px;padding:8px}.pdfk .pdfk-toolbar input{height:32px}}

/* Einheitliche Höhe und vertikale Zentrierung aller Toolbar-Elemente. */
.pdfk .pdfk-toolbar{--pdfk-control-height:28px;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:safe center;gap:5px;overflow-x:auto;padding:3px 0;line-height:1}
.pdfk .pdfk-toolbar > *{flex-shrink:0;align-self:center;margin:0;box-sizing:border-box}
.pdfk .pdfk-toolbar > button,.pdfk .pdfk-toolbar > a,
.pdfk .pdfk-toolbar > label,.pdfk .pdfk-toolbar > [data-count],
.pdfk .pdfk-toolbar > [data-zoom]{display:inline-flex;align-items:center;justify-content:center;height:var(--pdfk-control-height);min-height:var(--pdfk-control-height);margin:0;line-height:1;vertical-align:middle}
.pdfk .pdfk-toolbar > label,.pdfk .pdfk-toolbar > [data-count],.pdfk .pdfk-toolbar > [data-zoom]{padding:0;border:0;font-size:12px}
.pdfk .pdfk-toolbar > button,.pdfk .pdfk-toolbar > a{width:var(--pdfk-control-height);min-width:var(--pdfk-control-height);padding:6px}
.pdfk .pdfk-toolbar > label > input{display:block;margin:0;height:var(--pdfk-control-height);min-height:var(--pdfk-control-height);padding:0 5px;line-height:normal;box-sizing:border-box;vertical-align:middle}
.pdfk .pdfk-toolbar svg{display:block;flex-shrink:0;margin:0;vertical-align:middle}
@media(pointer:coarse){.pdfk .pdfk-toolbar{--pdfk-control-height:32px}}
