/* MJ-Core · Bildzoom (siehe bildzoom.js) */

.mjz-ausloeser { cursor: zoom-in; }
.mjz-ausloeser:focus-visible { outline: 2px solid var(--mj-petrol, #203b3d); outline-offset: 3px; }
.mjz-rahmen { position: relative; }
.mjz-lupe {
	position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center; pointer-events: none;
	background: rgba(255, 253, 247, .92); box-shadow: 0 1px 4px rgba(43, 39, 35, .18);
	opacity: .85; transition: opacity .2s, transform .2s;
}
.mjz-lupe svg { width: 18px; height: 18px; fill: none; stroke: var(--mj-tinte, #2b2723); stroke-width: 1.8; stroke-linecap: round; }
.mjz-rahmen:hover .mjz-lupe { opacity: 1; transform: scale(1.06); }

html.mjz-offen, html.mjz-offen body { overflow: hidden; }

.mjz {
	--mjz-abblenden: 1;
	position: fixed; inset: 0; z-index: 100000;
	display: none; flex-direction: column;
	background: rgba(32, 29, 26, calc(.97 * var(--mjz-abblenden)));
	color: #f3ecdd; overscroll-behavior: contain;
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.mjz--sichtbar { display: flex; animation: mjz-ein .18s ease-out; }
@keyframes mjz-ein { from { opacity: 0; } to { opacity: 1; } }

.mjz-kopf {
	flex: none; display: flex; align-items: center; justify-content: space-between;
	padding: max(8px, env(safe-area-inset-top)) 12px 4px 16px; min-height: 52px;
}
.mjz-zaehler { font-size: 14px; letter-spacing: .04em; opacity: .8; }
.mjz button {
	appearance: none; border: 0; background: rgba(255, 253, 247, .12); color: inherit;
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
	transition: background .15s;
}
.mjz button:hover { background: rgba(255, 253, 247, .22); }
.mjz button:focus-visible { outline: 2px solid #f3ecdd; outline-offset: 2px; }
.mjz button[disabled] { opacity: .3; cursor: default; }
.mjz button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.mjz-buehne { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: zoom-out; }
.mjz-bild {
	position: absolute; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none;
	cursor: zoom-out; box-shadow: 0 6px 30px rgba(0, 0, 0, .35); background: #fffdf7;
}
.mjz--gezoomt .mjz-bild { cursor: grab; }
.mjz--gezoomt .mjz-bild:active { cursor: grabbing; }
.mjz-bild--weich { transition: transform .22s ease-out; }
.mjz--laedt .mjz-bild { opacity: .4; }

.mjz-pfeil { position: absolute; top: 50%; margin-top: -22px; }
.mjz-pfeil--zurueck { left: 12px; }
.mjz-pfeil--weiter { right: 12px; }
.mjz-pfeil[hidden] { display: none; }
.mjz--gezoomt .mjz-pfeil { opacity: 0; pointer-events: none; }

.mjz-unter {
	flex: none; margin: 0; padding: 10px 20px max(14px, env(safe-area-inset-bottom));
	font-size: 14px; line-height: 1.45; text-align: center; opacity: .85;
	transition: opacity .2s;
}
.mjz--gezoomt .mjz-unter { opacity: 0; }

.mjz-hinweis {
	position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); margin: 0;
	padding: 8px 14px; border-radius: 999px; background: rgba(255, 253, 247, .95); color: #2b2723;
	font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mjz-hinweis--an { opacity: 1; }

@media (max-width: 767px) {
	.mjz-pfeil { display: none; }          /* auf dem Handy wird gewischt */
	.mjz-unter { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	.mjz--sichtbar { animation: none; }
	.mjz-bild--weich { transition: none; }
}
