﻿/* GruenTeam: Produktgalerie und Grossansicht. Direkt geladen, ohne Bundle-Abhaengigkeit. */
.gt-gallery-lightbox,
#content #article-details [data-refresh-section="gallery"] {
    --gallery-green: #468c00;
    --gallery-forest: #306b47;
    --gallery-ink: #263e2d;
    --gallery-pale: #f4f7ee;
    --gallery-line: #e0e8d9;
}
.fancybox-wrap.gt-gallery-lightbox {
    min-width: 300px;
    min-width: min(300px, calc(100vw - 20px));
}
.gt-gallery-lightbox .fancybox-skin {
    border-radius: 16px;
    background: #fff;
    color: var(--gallery-ink);
    box-shadow: 0 20px 70px rgba(8, 24, 14, .3);
}
.gt-gallery-lightbox .fancybox-inner {
    margin-right: auto;
    margin-left: auto;
    border-radius: 6px;
}
.gt-gallery-lightbox .gallery-lightbox-image-zoomed {
    cursor: grab;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b4c99f #f4f7ee;
}
.gt-gallery-lightbox .gallery-lightbox-image-zoomed .fancybox-image { max-width: none; max-height: none; }
.gt-gallery-lightbox .gallery-lightbox-image-dragging { cursor: grabbing; }
.gt-gallery-lightbox .gallery-lightbox-toolbar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 8px 12px;
    box-sizing: border-box;
}
.gt-gallery-lightbox .gallery-lightbox-counter {
    margin-right: auto;
    color: #64765c;
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.gt-gallery-lightbox button {
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.gt-gallery-lightbox .gallery-lightbox-zoom {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 36px;
    padding: 0 11px;
    border: 1px solid var(--gallery-line);
    border-radius: 8px;
    color: var(--gallery-green);
    background: var(--gallery-pale);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transform: none;
}
.gt-gallery-lightbox svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.gt-gallery-lightbox .gallery-lightbox-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--gallery-line);
    border-radius: 50%;
    color: var(--gallery-forest);
    background: #fff;
}
.gt-gallery-lightbox .gallery-lightbox-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 0 0 16px 16px;
    background: var(--gallery-pale);
}
.gt-gallery-lightbox .gallery-lightbox-caption {
    max-height: 72px;
    margin: 0;
    overflow-y: auto;
    color: var(--gallery-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}
.gt-gallery-lightbox .gallery-lightbox-thumbs {
    position: static;
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 4px 0;
    box-sizing: border-box;
    overflow-x: auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    scrollbar-width: thin;
    scrollbar-color: #b4c99f transparent;
    overscroll-behavior-x: contain;
}
.gt-gallery-lightbox .gallery-lightbox-caption + .gallery-lightbox-thumbs { margin-top: 8px; }
.gt-gallery-lightbox .gallery-lightbox-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    box-sizing: border-box;
    margin: 0;
    padding: 4px;
    border: 1px solid var(--gallery-line);
    border-radius: 8px;
    background: #fff;
    color: var(--gallery-forest);
    line-height: 1;
    transition: border-color .15s, background-color .15s;
}
.gt-gallery-lightbox .gallery-lightbox-thumb:first-child { margin-left: auto; }
.gt-gallery-lightbox .gallery-lightbox-thumb:last-child { margin-right: auto; }
.gt-gallery-lightbox .gallery-lightbox-thumb.active {
    border-color: var(--gallery-green);
    background: #eaf3df;
    box-shadow: 0 0 0 1px rgba(70, 140, 0, .12);
}
.gt-gallery-lightbox .gallery-lightbox-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 3px;
    object-fit: contain;
}
.gt-gallery-lightbox .gallery-lightbox-thumb-video { background: var(--gallery-forest); color: #fff; }
.gt-gallery-lightbox .gallery-lightbox-thumb-video.active { background: var(--gallery-green); }
.gt-gallery-lightbox .gallery-lightbox-thumb-video svg { width: 28px; height: 28px; }
.gt-gallery-lightbox .fancybox-nav {
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    padding: 0;
    border: 1px solid var(--gallery-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--gallery-forest);
}
.gt-gallery-lightbox .fancybox-prev { left: 8px; }
.gt-gallery-lightbox .fancybox-next { right: 8px; }
.gt-gallery-lightbox .fancybox-nav span {
    position: static;
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    color: inherit;
    text-shadow: none;
    visibility: visible;
}
.gt-gallery-lightbox .fancybox-nav span:after { content: none; }
.gt-gallery-lightbox .gallery-lightbox-zoom:hover,
.gt-gallery-lightbox .gallery-lightbox-close:hover,
.gt-gallery-lightbox .fancybox-nav:hover { background: #eaf3df; border-color: #b4c99f; }
.gt-gallery-lightbox .gallery-lightbox-thumb:hover { border-color: #9db788; }
.gt-gallery-lightbox button:focus-visible,
.gt-gallery-lightbox .gallery-lightbox-caption:focus-visible {
    outline: 2px solid var(--gallery-green);
    outline-offset: 2px;
}
#content #article-details .gallery-video {
    border-radius: 12px;
    background: #edf4e5;
    color: var(--gallery-forest);
}
#content #article-details .gallery-video-play {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    border: 1px solid #d4e1c8;
    border-radius: 14px;
    background: #fff;
    color: var(--gallery-forest);
    box-shadow: 0 8px 24px rgba(48, 107, 71, .09);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}
#content #article-details .gallery-video-play .fa { color: var(--gallery-green); }
#content #article-details .gallery-video.playing { background: #edf4e5; }
#content #article-details #productslider .gallery-video-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 50px;
    height: 50px;
    box-sizing: border-box;
    margin: 10px 0 0 8px;
    padding: 5px;
    border: 1px solid var(--gallery-forest);
    border-radius: 6px;
    background: var(--gallery-forest);
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}
#content #article-details #productslider .gallery-video-thumb .fa { margin: 0; font-size: 18px; line-height: 1; }
#content #article-details #productslider .gallery-video-thumb-label { display: block; line-height: 1; }
#content #article-details #productslider .gallery-video-thumb:hover { background: var(--gallery-green); border-color: var(--gallery-green); }
#content #article-details #productslider .gallery-video-thumb:focus-visible { outline: 2px solid var(--gallery-green); outline-offset: 2px; }
#content #article-details .gallery-thumbnails-scroll { margin: 8px 0 12px; }
#content #article-details .gallery-thumbnails-scroll #productslider {
    position: relative;
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 3px 1px 7px;
    list-style: none;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #b4c99f transparent;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
}
#content #article-details .gallery-thumbnails-scroll #productslider > li {
    flex: 0 0 62px;
    width: 62px;
    margin: 0;
    padding: 0;
    scroll-snap-align: start;
}
#content #article-details .gallery-thumbnails-scroll #productslider .gallery-product-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0;
    padding: 4px;
    box-sizing: border-box;
    border: 1px solid var(--gallery-line);
    border-radius: 8px;
    background: #fff;
    color: var(--gallery-forest);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
#content #article-details .gallery-thumbnails-scroll #productslider .gallery-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0 !important; /* Neutralisiert den alten #productslider-Bildrahmen. */
    border-radius: 3px;
    object-fit: contain;
}
#content #article-details .gallery-thumbnails-scroll #productslider .gallery-product-thumb[aria-pressed="true"] {
    border-color: var(--gallery-green);
    box-shadow: 0 0 0 1px rgba(70, 140, 0, .12);
}
#content #article-details .gallery-thumbnails-scroll #productslider .gallery-video-thumb { flex-direction: column; background: var(--gallery-forest); color: #fff; }
#content #article-details .gallery-thumbnails-scroll #productslider .gallery-product-thumb:hover { border-color: #9db788; }
#content #article-details .gallery-thumbnails-scroll #productslider .gallery-product-thumb:focus-visible { outline: 2px solid var(--gallery-green); outline-offset: 1px; }
#content #article-details #carousel-article-details-images > .gallery-zoom {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid var(--gallery-line);
    border-radius: 50%;
    background: var(--gallery-pale);
    color: var(--gallery-green);
    transition: none;
    transform: none;
}
#content #article-details #carousel-article-details-images > .gallery-zoom:hover { background: #eaf3df; border-color: #b4c99f; }
#content #article-details #carousel-article-details-images > .gallery-zoom:focus-visible { outline: 2px solid var(--gallery-green); outline-offset: 2px; }
#content #article-details #carousel-article-details-images > .gallery-zoom .gallery-product-zoom-icon {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#content #article-details #carousel-article-details-images { overflow: clip; }
#content #article-details #carousel-article-details-images > .carousel-control {
    position: absolute;
    top: 50%;
    bottom: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border: 1px solid var(--gallery-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--gallery-forest);
    opacity: 1;
    text-shadow: none;
    transform: translateY(-50%);
}
#content #article-details #carousel-article-details-images > .carousel-control.left { left: 8px; right: auto; }
#content #article-details #carousel-article-details-images > .carousel-control.right { right: 8px; left: auto; }
#content #article-details #carousel-article-details-images > .carousel-control svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#content #article-details #carousel-article-details-images > .carousel-control:hover { background: #eaf3df; border-color: #b4c99f; }
#content #article-details #carousel-article-details-images > .carousel-control:focus-visible { outline: 2px solid var(--gallery-green); outline-offset: 2px; }
@media (max-width: 767px) {
    #content #article-details .gallery-thumbnails-scroll #productslider { gap: 6px; scrollbar-width: none; }
    #content #article-details .gallery-thumbnails-scroll #productslider::-webkit-scrollbar { display: none; }
    #content #article-details .gallery-thumbnails-scroll #productslider > li { flex-basis: 54px; width: 54px; }
    #content #article-details .gallery-thumbnails-scroll #productslider .gallery-product-thumb { width: 54px; height: 54px; }
    .gt-gallery-lightbox .gallery-lightbox-thumb { flex-basis: 48px; width: 48px; height: 48px; }
    .gt-gallery-lightbox .gallery-lightbox-caption { font-size: 13px; }
    .gt-gallery-lightbox .gallery-lightbox-toolbar { gap: 8px; padding-top: 5px; padding-bottom: 5px; }
    .gt-gallery-lightbox .gallery-lightbox-zoom { height: 44px; }
    .gt-gallery-lightbox .gallery-lightbox-close { flex-basis: 44px; width: 44px; height: 44px; }
    .gt-gallery-lightbox .fancybox-nav { width: 44px; height: 44px; margin-top: -22px; }
}
