/* KapuzenCloud – Vorschau für PDF, Office, ZIP, GoodNotes, Code (cloud-preview.js). Genutzt von Cloud und Freigabe-Seite. */
.kp-pdf { display: flex; width: 100%; height: 100%; position: relative; }
.kp-side { width: 152px; flex: none; overflow: auto; padding: 12px 14px; border-right: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 12px; }
.kp-th { position: relative; width: 120px; flex: none; border: 2px solid transparent; border-radius: 6px; background: #fff; padding: 0; overflow: hidden; cursor: pointer; }
.kp-th canvas { width: 100%; height: auto; display: block; }
.kp-th span { position: absolute; bottom: 4px; right: 5px; font-size: 11px; background: rgba(0, 0, 0, .62); color: #fff; padding: 1px 6px; border-radius: 6px; }
.kp-th.on { border-color: var(--acc); }
.kp-pages { flex: 1; min-width: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px 12px 80px; outline: none; -webkit-overflow-scrolling: touch; }
.kp-page { background: #fff; box-shadow: 0 4px 24px rgba(0, 0, 0, .5); border-radius: 3px; flex: none; position: relative; overflow: hidden; }
.kp-page canvas { width: 100%; height: 100%; display: block; }
.kp-bar { position: absolute; bottom: calc(14px + var(--sab)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; z-index: 4;
  background: rgba(30, 32, 38, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 5px 7px; border-radius: 99px; color: #fff; font-size: 13px; }
.kp-b { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.kp-b:hover { background: rgba(255, 255, 255, .18); }
.kp-pg { min-width: 66px; text-align: center; font-variant-numeric: tabular-nums; }
.kp-doc { width: 100%; height: 100%; overflow: auto; background: #3a3d44; padding: 16px 8px 60px; }
.kp-docin .docx-wrapper { background: transparent !important; padding: 0 !important; }
.kp-docin .docx-wrapper > section.docx { box-shadow: 0 4px 24px rgba(0, 0, 0, .45); margin-bottom: 16px !important; }
.kp-paper { max-width: 820px; margin: 0 auto; background: #fff; color: #111; padding: 40px 48px; border-radius: 4px; line-height: 1.55; }
.kp-sheet { width: 100%; height: 100%; display: flex; flex-direction: column; background: #fff; color: #1f2328; }
.kp-tabs { display: flex; gap: 4px; padding: 8px; background: #eef0f3; overflow-x: auto; flex: none; }
.kp-tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; font: inherit; font-size: 13px; color: #333; }
.kp-tabs button.on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); font-weight: 650; }
.kp-grid { flex: 1; overflow: auto; }
.kp-grid table { border-collapse: collapse; font-size: 13px; }
.kp-grid th, .kp-grid td { border: 1px solid #e3e6ea; padding: 4px 8px; white-space: nowrap; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.kp-grid thead th { position: sticky; top: 0; background: #f5f6f8; z-index: 1; color: #6a7380; font-weight: 600; }
.kp-grid tbody th { position: sticky; left: 0; background: #f5f6f8; color: #8a929e; font-weight: 500; text-align: right; }
.kp-slides { width: min(980px, 100%); height: 100%; overflow: auto; padding: 16px 14px 70px; display: flex; flex-direction: column; gap: 12px; margin: 0 auto; }
.kp-slide { display: flex; gap: 14px; background: #16181d; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 16px; color: #e8eaee; flex: none; }
.kp-sn { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-weight: 700; flex: none; }
.kp-slide h3 { margin: 3px 0 8px; font-size: 17px; }
.kp-slide ul { margin: 0; padding-left: 18px; color: #c4cad3; font-size: 14px; }
.kp-simg { display: flex; flex-direction: column; gap: 8px; width: 210px; flex: none; }
.kp-simg img { width: 100%; border-radius: 8px; background: #fff; }
.kp-cover { text-align: center; color: #c4cad3; }
.kp-cover img { max-width: min(100%, 640px); border-radius: 10px; display: block; margin: 0 auto 6px; }
.kp-code { display: flex; width: 100%; height: 100%; overflow: auto; background: #0d1117; font: 13px/1.55 "Cascadia Code", Consolas, ui-monospace, monospace; align-items: flex-start; }
.kp-ln { margin: 0; padding: 16px 12px 60px 16px; color: #4b5563; text-align: right; user-select: none; flex: none; position: sticky; left: 0; background: #0d1117; font: inherit; }
.kp-src { margin: 0; padding: 16px 24px 60px 6px; color: #e6edf3; flex: 1; tab-size: 4; font: inherit; }
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-type, .hljs-meta .hljs-keyword { color: #ff7b72; }
.hljs-string, .hljs-regexp, .hljs-meta .hljs-string { color: #a5d6ff; }
.hljs-number, .hljs-symbol, .hljs-bullet, .hljs-variable.constant_ { color: #79c0ff; }
.hljs-title, .hljs-title.function_, .hljs-section { color: #d2a8ff; }
.hljs-comment, .hljs-quote { color: #8b949e; font-style: italic; }
.hljs-attr, .hljs-attribute, .hljs-property, .hljs-selector-class, .hljs-selector-id { color: #79c0ff; }
.hljs-built_in, .hljs-title.class_, .hljs-name, .hljs-tag { color: #7ee787; }
.hljs-meta, .hljs-template-variable, .hljs-variable { color: #ffa657; }
.hljs-addition { color: #aff5b4; background: rgba(46, 160, 67, .15); } .hljs-deletion { color: #ffdcd7; background: rgba(248, 81, 73, .15); }
.kp-zip, .kp-gn { width: min(920px, 100%); height: 100%; overflow: auto; margin: 0 auto; padding: 12px 14px 70px; color: #e8eaee; }
.kp-zh { display: flex; align-items: center; gap: 10px; padding: 6px 4px 12px; flex-wrap: wrap; }
.kp-zl summary { list-style: none; cursor: pointer; padding: 7px 8px 7px calc(8px + var(--d) * 18px); display: flex; gap: 8px; align-items: center; border-radius: 8px; color: #cfd4dc; font-weight: 600; }
.kp-zl summary::-webkit-details-marker { display: none; }
.kp-zr { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px calc(8px + var(--d) * 18px); border-radius: 8px; cursor: pointer; }
.kp-zr:hover, .kp-zl summary:hover { background: rgba(255, 255, 255, .06); }
.kp-zr .fi { width: 28px; height: 28px; border-radius: 8px; }
.kp-zr .fi .ic { width: 15px; height: 15px; }
.kp-zr .btn { color: #cfd4dc; }
.kp-sub { position: absolute; inset: 0; background: #06070a; display: flex; flex-direction: column; z-index: 5; }
.kp-subh { display: flex; gap: 10px; align-items: center; padding: 10px 12px; color: #fff; }
.kp-subh .btn { background: rgba(255, 255, 255, .08); border-color: transparent; color: #f2f4f7; }
.kp-subb { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; }
.kp-subb img, .kp-subb video { max-width: 100%; max-height: 100%; object-fit: contain; }
.kp-gnl { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kp-gni { aspect-ratio: 3 / 4; border: 0; border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; color: #333; padding: 0; font: inherit; font-size: 13px; }
.kp-gni img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .kp-slide { flex-wrap: wrap; } .kp-simg { width: 100%; }
  .kp-paper { padding: 22px 18px; }
}
