/* Großansicht der Artikelbilder (OT-567) – gehört zu ps-grossansicht.js. Gilt ab 768 px; darunter bleibt alles wie bisher. */
/* Teil 1 – in der Seite (Knopf, Zeiger). Der Vorsatz mit zwei :not(#…) und „!important“ sind nötig: Im Shop nimmt die Abschirmung der Seitenflächen
   (all: revert-layer mit dem Gewicht einer Kennung, Flächen ps-u und ps-t) schlichte Klassenregeln zurück, und die Flächen gestalten Knöpfe mit eigenen,
   hoch gewichteten Regeln. Ohne den Vorsatz bliebe der Knopf dort ungestaltet und läge unter dem Bild (gemessen am Testshop, 26.11.2026). */
html:not(#ps-x):not(#ps-y) .ps-gross-auf { display: none !important; }
@media (min-width: 768px) {
  html:not(#ps-x):not(#ps-y) [data-ps-gross-an] [data-ps-ag-buehne], html:not(#ps-x):not(#ps-y) [data-ps-gross-an] .ab-galerie-buehne, html:not(#ps-x):not(#ps-y) [data-ps-gross-an] .ps-agal-buehne { position: relative; }
  html:not(#ps-x):not(#ps-y) [data-ps-gross-an] .ps-ag-folie:not(.ps-ag-folie--video) img, html:not(#ps-x):not(#ps-y) [data-ps-gross-an] .ab-galerie-bild img, html:not(#ps-x):not(#ps-y) [data-ps-gross-an] .ps-afolie > img, html:not(#ps-x):not(#ps-y) .ps-bildmosaik[data-ps-gross-an] figure img { cursor: zoom-in !important; }
  html:not(#ps-x):not(#ps-y) [data-ps-gross-an] .ps-gross-auf { all: unset !important; box-sizing: border-box !important; position: absolute !important; top: .75rem !important; right: .75rem !important; left: auto !important; bottom: auto !important; z-index: 3 !important; display: grid !important; place-items: center !important; width: 2.5rem !important; height: 2.5rem !important; margin: 0 !important; padding: 0 !important; border: 1px solid rgba(20, 33, 43, .12) !important; border-radius: 50% !important; background: rgba(255, 255, 255, .86) !important; color: #14212b !important; cursor: zoom-in !important; opacity: 0 !important; transition: opacity .16s ease !important; -webkit-backdrop-filter: blur(8px) !important; backdrop-filter: blur(8px) !important; }
  html:not(#ps-x):not(#ps-y) [data-ps-gross-an] .ps-gross-auf svg { display: block !important; width: 20px !important; height: 20px !important; fill: none !important; stroke: currentColor !important; }
  html:not(#ps-x):not(#ps-y) [data-ps-gross-an]:hover .ps-gross-auf, html:not(#ps-x):not(#ps-y) [data-ps-gross-an] .ps-gross-auf:focus-visible { opacity: 1 !important; }
  html:not(#ps-x):not(#ps-y) .ps-bildmosaik[data-ps-gross-an] figure img:focus-visible, html:not(#ps-x):not(#ps-y) [data-ps-gross-an] .ps-gross-auf:focus-visible { outline: 3px solid #0a5d8f !important; outline-offset: 2px !important; }
  html:not(#ps-x):not(#ps-y) [data-ps-gross-an] .ps-gross-auf[hidden] { display: none !important; }
}
/* Teil 2 – das Fenster. Es hängt am <body>, außerhalb der Seitenflächen; dort greift keine Abschirmung. */
html.ps-gross-offen { overflow: hidden; }
.ps-gross { position: fixed; inset: 0; box-sizing: border-box; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: rgba(9, 15, 21, .94); color: #fff; }
.ps-gross:not([open]) { display: none; }
.ps-gross[open] { display: grid; grid-template: "kopf kopf kopf" auto "zurueck bild weiter" minmax(0, 1fr) / auto minmax(0, 1fr) auto; align-items: center; }
.ps-gross::backdrop { background: rgba(9, 15, 21, .94); }
.ps-gross-kopf { grid-area: kopf; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem .4rem 1.4rem; }
.ps-gross-zaehler { font-size: .9rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; opacity: .86; }
.ps-gross-flaeche { grid-area: bild; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: .5rem 0 1.5rem; box-sizing: border-box; overflow: hidden; cursor: zoom-out; }
.ps-gross-bild { display: block; flex: none; max-width: min(100%, calc(100vw - 10rem)); max-height: min(100%, calc(100vh - 6.5rem)); max-height: min(100%, calc(100dvh - 6.5rem)); /* feste Grenzen: das Bild passt immer ganz ins Fenster, wird aber nie über seine eigene Größe gezogen */ width: auto; height: auto; object-fit: contain; border-radius: .5rem; background: #fff; cursor: default; transition: opacity .16s ease; }
.ps-gross--laedt .ps-gross-bild { opacity: .35; }
.ps-gross-knopf { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 1rem; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background-color .16s ease; }
.ps-gross-knopf:hover { background: rgba(255, 255, 255, .22); }
.ps-gross-knopf:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ps-gross-zu { margin: 0; width: 2.75rem; height: 2.75rem; }
.ps-gross-zurueck { grid-area: zurueck; }
.ps-gross-weiter { grid-area: weiter; }
.ps-gross--eins .ps-gross-zurueck, .ps-gross--eins .ps-gross-weiter, .ps-gross--eins .ps-gross-zaehler { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .ps-gross-bild, .ps-gross-knopf, .ps-gross-auf { transition: none; } }
