/* V2.9.9: Chrome/PWA-sichere Anzeige interner Dokumente im bestehenden Tab. */
.ahm-preview-overlay[hidden]{display:none!important}
.ahm-preview-overlay{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;background:rgba(4,15,24,.86);padding:clamp(6px,1.5vw,18px);overscroll-behavior:contain}
.ahm-preview-shell{flex:1;min-height:0;max-width:1420px;width:100%;margin:auto;display:flex;flex-direction:column;background:#fff;color:#1a2a35;border-radius:12px;overflow:hidden;box-shadow:0 15px 60px #0008}
.ahm-preview-toolbar{flex:0 0 auto;min-height:54px;display:flex;align-items:center;gap:10px;padding:9px 13px;background:#f4f6f9;border-bottom:1px solid #d8e0e6}
.ahm-preview-heading{min-width:0;flex:1;margin:0;font:700 15px/1.35 system-ui,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#213744}
.ahm-preview-action{appearance:none;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-height:36px;border:1px solid #b5c2ca;border-radius:8px;background:#fff;color:#1b3447;font:600 14px/1.15 system-ui,sans-serif;padding:7px 11px;cursor:pointer}
.ahm-preview-action:focus-visible{outline:3px solid #2a7ccc;outline-offset:2px}
.ahm-preview-close{font-size:24px;line-height:1;padding:3px 13px}
.ahm-preview-content{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;background:#e5e9ee;position:relative;overflow:auto}
.ahm-preview-image{max-width:100%;max-height:100%;object-fit:contain;display:block}
.ahm-preview-frame{border:0;width:100%;height:100%;min-height:200px;display:block;background:#fff}
body.ahm-preview-open{overflow:hidden}
@media (max-width:600px){.ahm-preview-overlay{padding:0}.ahm-preview-shell{border-radius:0}.ahm-preview-toolbar{gap:6px;padding:7px}.ahm-preview-action{font-size:13px;padding:6px 9px}.ahm-preview-action.ahm-preview-print{display:none}}
@media print{.ahm-preview-overlay{display:none!important}}
