/* ==========================================================================
   Gewebe-Übersichtsseite: Vergleichstabellen, Detailbilder, Lupe
   Genutzt von /neher-insektenschutzgewebe/ (Ticket produkttext-bausteine/09).
   Der Lupen-Teil lag vorher als <style>-Block im Seiteninhalt.
   ========================================================================== */

/* Vergleichstabellen — acht Spalten (seit Ticket 11 mit „Preis"), auf schmalen
   Displays scrollbar statt umbrechend. */
.isc-gw-tabelle {
    margin: 20px 0;
    overflow-x: auto;
}

.isc-gw-tabelle table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
    font-size: 15px;
}

.isc-gw-tabelle th,
.isc-gw-tabelle td {
    border: 1px solid #e5e5e5;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.isc-gw-tabelle thead th {
    background: #fafafa;
    white-space: nowrap;
}

.isc-gw-tabelle tbody tr:nth-child(even) {
    background: #fcfcfc;
}

/* Detailbild mit Lupen-Marke; der Link zeigt aufs Original, das JS öffnet es. */
.isc-gw-zoom-fig {
    position: relative;
    display: inline-block;
    margin: 0 0 10px;
    max-width: 320px;
}

.isc-gw-zoom {
    display: block;
    cursor: zoom-in;
}

.isc-gw-zoom img {
    width: 100%;
    height: auto;
}

.isc-gw-lupe {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    border: 1.5px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    transition: transform .15s ease, background .15s ease;
}

.isc-gw-zoom-fig:hover .isc-gw-lupe {
    background: #fff;
    transform: scale(1.12);
}

/* Drei Farbvarianten nebeneinander (Aluminium-Streckmetall) */
.isc-gw-varianten {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.isc-gw-varianten .isc-gw-zoom-fig {
    flex: 1 1 180px;
    max-width: 240px;
}

.isc-gw-varianten figcaption {
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* Vollbild-Overlay — vom Skript angelegt, nicht im Seiteninhalt. */
.isc-gw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    cursor: zoom-out;
}

.isc-gw-overlay.open {
    display: flex;
}

.isc-gw-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .55);
    border-radius: 4px;
}
