/* Öffentliche Übersicht /galerie/: QR-Code je Galerie (Farben vom Design: --pe-*) */
.hg-site-gwrap { position: relative; display: flex; flex-direction: column; }
.hg-site-gwrap > .hg-site-gallery { flex: 1; }
.hg-site-qr { position: absolute; z-index: 2; top: 10px; right: 10px; width: 68px; height: 68px; padding: 3px; border: 0; border-radius: 4px; background: #fff; cursor: zoom-in; line-height: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); opacity: .92; transition: opacity .2s, transform .2s; }
.hg-site-qr:hover, .hg-site-qr:focus-visible { opacity: 1; transform: scale(1.05); }
.hg-site-qr:focus-visible { outline: 2px solid var(--pe-accent, #C29A5B); outline-offset: 2px; }
.hg-site-qr svg, .hg-qrdlg-code svg { width: 100%; height: 100%; display: block; }
/* Auf dem Handy ist man schon am Ziel — dort kein QR-Code */
@media (max-width: 700px), (hover: none) and (pointer: coarse) { .hg-site-qr { display: none; } }
.hg-qrdlg { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 9, 10, .72); }
.hg-qrdlg[hidden] { display: none; }
.hg-qrdlg-box { position: relative; width: min(400px, 100%); background: var(--pe-bg, #1E2226); color: var(--pe-text, #DDD8CF); border: 1px solid var(--pe-line, rgba(255, 255, 255, .12)); border-radius: 10px; padding: 26px 24px 20px; text-align: center; font-family: var(--pe-font, system-ui, sans-serif); box-shadow: 0 20px 70px rgba(0, 0, 0, .6); }
.hg-qrdlg-box h2 { margin: 0 0 6px; font-weight: var(--pe-weight-display, 300); font-size: 1.6rem; }
.hg-qrdlg-box p { margin: 0 0 12px; color: var(--pe-mute, #9A968F); font-size: .95rem; }
.hg-qrdlg-code { width: min(280px, 75vw); aspect-ratio: 1; margin: 6px auto 12px; background: #fff; border-radius: 6px; padding: 6px; }
.hg-qrdlg-url { word-break: break-all; font-size: .85rem !important; }
.hg-qrdlg-x { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--pe-text, #DDD8CF); font-size: 18px; cursor: pointer; }
.hg-qrdlg-x:hover { background: rgba(255, 255, 255, .08); }
