/* aqotec Produkt-Zusatzansicht */
.aqz { --aqz-red: #CC081E; --aqz-dark: #50525C; --aqz-text: #727176; --aqz-line: #CDCDD2; width: 100%; box-sizing: border-box; }
.aqz *, .aqz *::before, .aqz *::after { box-sizing: border-box; }
.aqz .aqz__title { margin: 0 0 1.2em; padding: .05em 0 .05em .8em; border-left: 6px solid var(--aqz-red); font-size: 2em; font-weight: 400; line-height: 1.2; color: var(--aqz-red); }
.aqz .aqz__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2em 3.5em; align-items: start; }
.aqz .aqz__media { margin: 0; }
.aqz .aqz__img { display: block; width: 100%; height: auto; max-height: 30em; object-fit: contain; }
.aqz .aqz__text { color: var(--aqz-text); line-height: 1.6; }
.aqz .aqz__text > :first-child { margin-top: 0; }
.aqz .aqz__text > :last-child { margin-bottom: 0; }

/* Dokument-Galerie: einheitliche Kacheln, 3 pro Zeile */
.aqz .aqz__docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2em; margin: 2.5em 0 0; padding: 0; list-style: none; }
.aqz .aqz__doc { min-width: 0; margin: 0; padding: 0; }
.aqz .aqz__doc::before { content: none; }
body .aqz .aqz__open { display: flex; flex-direction: column; width: 100%; height: 100%; margin: 0; padding: 0; background: #fff; border: 1px solid var(--aqz-line); border-radius: 0; color: var(--aqz-dark); font: inherit; text-align: left; white-space: normal; text-transform: none; letter-spacing: normal; cursor: zoom-in; transition: border-color .2s ease, box-shadow .2s ease; }
body .aqz .aqz__open:hover, body .aqz .aqz__open:focus-visible { border-color: var(--aqz-red); box-shadow: 0 4px 16px rgba(0, 0, 0, .08); background: #fff; color: var(--aqz-dark); }
.aqz .aqz__open:focus-visible { outline: 2px solid var(--aqz-red); outline-offset: 2px; }
.aqz .aqz__thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 10px; background: #fff; overflow: hidden; }
.aqz .aqz__thumb img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.aqz .aqz__fileicon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 80px; border: 2px solid var(--aqz-red); color: var(--aqz-red); font-weight: 700; }
.aqz .aqz__cap { display: block; padding: .7em .9em; border-top: 1px solid var(--aqz-line); font-size: .9em; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
.aqz .aqz__badge { display: inline-block; margin-left: .3em; padding: 0 .4em; background: var(--aqz-red); color: #fff; font-size: .75em; font-weight: 700; vertical-align: .1em; }
.aqz-note { padding: .6em .9em; background: #fcf9e8; border-left: 4px solid #dba617; font-size: .9em; }

@media (max-width: 767px) {
	.aqz .aqz__title { font-size: 1.6em; }
	.aqz .aqz__intro { grid-template-columns: minmax(0, 1fr); gap: 1.5em; }
	.aqz .aqz__docs { grid-template-columns: minmax(0, 1fr); }
}

/* Grossansicht */
.aqz-lb { position: fixed; inset: 0; z-index: 999999; display: flex; flex-direction: column; background: rgba(20, 20, 24, .92); color: #fff; font-family: inherit; }
.aqz-lb[hidden] { display: none; }
.aqz-lb__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.aqz-lb__title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aqz-lb__count { font-size: 13px; opacity: .75; white-space: nowrap; }
body .aqz-lb button, body .aqz-lb a.aqz-lb__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; margin: 0; padding: 0 12px; background: rgba(255, 255, 255, .12); border: 0; border-radius: 0; color: #fff; font: inherit; font-size: 14px; line-height: 1; text-decoration: none; cursor: pointer; }
body .aqz-lb button:hover, body .aqz-lb a.aqz-lb__btn:hover, body .aqz-lb button:focus-visible, body .aqz-lb a.aqz-lb__btn:focus-visible { background: #CC081E; color: #fff; }
.aqz-lb__stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 0 56px 20px; touch-action: pan-x pan-y pinch-zoom; }
.aqz-lb__img { display: block; max-width: 100%; max-height: 100%; background: #fff; cursor: zoom-in; }
.aqz-lb.is-zoomed .aqz-lb__stage { align-items: flex-start; justify-content: flex-start; }
.aqz-lb.is-zoomed .aqz-lb__img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
.aqz-lb__prev, .aqz-lb__next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.aqz-lb__prev { left: 8px; }
.aqz-lb__next { right: 8px; }
body .aqz-lb .aqz-lb__prev, body .aqz-lb .aqz-lb__next { width: 44px; height: 64px; padding: 0; font-size: 28px; }
@media (max-width: 767px) {
	.aqz-lb__stage { padding: 0 8px 70px; }
	body .aqz-lb .aqz-lb__prev, body .aqz-lb .aqz-lb__next { top: auto; bottom: 10px; transform: none; height: 48px; }
	.aqz-lb.is-zoomed .aqz-lb__img { width: 260%; }
	.aqz-lb__label { display: none; }
}
body.aqz-lb-open { overflow: hidden; }
