
.gat-wrap{max-width:1160px;margin:0 auto;padding:10px}
.gat-filter{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:0 0 26px}
.gat-filter-btn{border:1px solid #d8d8d8;background:#fff;color:#222;border-radius:999px;padding:9px 16px;cursor:pointer;font-weight:600;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.gat-filter-btn:hover,.gat-filter-btn.active{background:#222;color:#fff;border-color:#222}
.gat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:980px;margin:0 auto}
.gat-card{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.12);transition:.2s}
.gat-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,.16)}
.gat-card-link{text-decoration:none;color:inherit;display:block}
.gat-card-img{position:relative;aspect-ratio:4/3;background:#f3f3f3}
.gat-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.gat-img-count{position:absolute;right:10px;bottom:10px;background:rgba(0,0,0,.72);color:#fff;border-radius:999px;padding:5px 10px;font-size:13px}
.gat-card-body{padding:18px}
.gat-card h3{margin:0 0 8px;font-size:1.22rem;line-height:1.25}
.gat-muted{color:#666;margin:.2rem 0}
.gat-price{font-size:1.25rem;font-weight:800;margin:.6rem 0;color:#111}
.gat-fracht{margin:.2rem 0;color:#333}
.gat-category-badge{display:inline-block;background:#f1f1f1;color:#333;border-radius:999px;padding:4px 10px;font-size:13px;margin-bottom:10px}
.gat-detail-wrap{max-width:1180px;margin:30px auto;padding:0 18px}
.gat-back{display:inline-block;margin-bottom:18px;text-decoration:none}
.gat-detail{display:grid;grid-template-columns:1.1fr .9fr;gap:32px;align-items:start}
.gat-detail-gallery{display:grid;gap:14px}
.gat-detail-gallery img{width:100%;border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.gat-detail-content{background:#fff;border-radius:18px;padding:28px;box-shadow:0 8px 24px rgba(0,0,0,.1);position:sticky;top:20px}
.gat-detail-content h1{margin-top:0}
.gat-detail-price{font-size:1.7rem}
.gat-description{margin:20px 0;line-height:1.65}
.gat-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#222;color:#fff!important;border-radius:999px;padding:10px 16px;font-weight:700;white-space:nowrap}
.gat-btn:hover{background:#444;color:#fff!important}
.gat-farbband-list{max-width:1200px;margin:0 auto;display:grid;gap:10px}
.gat-spule{display:grid;grid-template-columns:140px 1.6fr .8fr .8fr .8fr .7fr .8fr .8fr;gap:12px;align-items:center;background:#fff;border:1px solid #e6e6e6;border-radius:14px;padding:10px;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.gat-spule-images{display:flex;gap:5px;flex-wrap:wrap}
.gat-lightbox-open{border:0;padding:0;background:transparent;cursor:pointer}
.gat-spule-images img{width:42px;height:42px;object-fit:cover;border-radius:7px;border:1px solid #ddd}
.gat-spule-main strong{display:block}.gat-spule-main span{display:block;color:#555;font-size:.92rem;margin-top:2px}
.gat-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.82);display:none;align-items:center;justify-content:center;z-index:99999;padding:30px}
.gat-lightbox.active{display:flex}
.gat-lightbox img{max-width:90vw;max-height:86vh;border-radius:12px;box-shadow:0 10px 40px rgba(0,0,0,.4)}
.gat-lightbox-close,.gat-lightbox-prev,.gat-lightbox-next{position:absolute;border:0;background:rgba(255,255,255,.94)!important;color:#111!important;border-radius:999px;width:46px;height:46px;display:flex;align-items:center;justify-content:center;font-size:30px;line-height:1;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.28)}
.gat-lightbox-close:hover,.gat-lightbox-prev:hover,.gat-lightbox-next:hover{background:#222!important;color:#fff!important;box-shadow:0 6px 18px rgba(0,0,0,.45)}
.gat-lightbox-close{top:20px;right:20px;font-size:28px}.gat-lightbox-prev{left:24px}.gat-lightbox-next{right:24px}
@media(max-width:800px){
  .gat-grid{grid-template-columns:1fr;gap:18px;max-width:520px}
  .gat-detail{grid-template-columns:1fr}.gat-detail-content{position:static;padding:20px}
  .gat-filter{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:6px}
  .gat-filter-btn{flex:0 0 auto}
  .gat-spule{grid-template-columns:74px 1fr auto;gap:8px;padding:9px;border-radius:12px}
  .gat-spule > div:nth-child(n+4):not(:last-child){display:none}
  .gat-spule-images img{width:32px;height:32px}
  .gat-spule-main strong{font-size:.96rem;line-height:1.2}
  .gat-spule-main span{font-size:.82rem;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .gat-spule > div:nth-child(3){font-size:.82rem;color:#666}
  .gat-spule .gat-btn{padding:8px 11px;font-size:.85rem}
}
@media(max-width:430px){
  .gat-spule{grid-template-columns:64px 1fr;position:relative;padding-right:92px}
  .gat-spule > div:last-child{position:absolute;right:8px;top:50%;transform:translateY(-50%)}
  .gat-spule-images img{width:28px;height:28px}
}


/* v1.8.2: Detailseite - kleine Bilder mit Lightbox */
.gat-detail-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    align-content: start;
}

.gat-detail-thumb {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.gat-detail-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    transition: transform .2s ease, filter .2s ease;
}

.gat-detail-thumb:hover img {
    transform: scale(1.04);
    filter: brightness(.94);
}

@media(max-width:800px){
    .gat-detail-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media(max-width:430px){
    .gat-detail-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* v1.9: Farbbandspulen als kompakte Tabelle / Mobile Cards */
.gat-farbband-table-wrap {
    max-width: 1180px;
    margin: 0 auto;
    overflow-x: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    padding: 10px;
}

.gat-farbband-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.gat-farbband-table th {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid #222;
    color: #444;
    font-weight: 800;
    white-space: nowrap;
}

.gat-farbband-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e7e7e7;
    vertical-align: middle;
    color: #3f3f3f;
}

.gat-farbband-table tr:last-child td {
    border-bottom: 0;
}

.gat-farbband-table .gat-spule-images {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 126px;
}

.gat-farbband-table .gat-spule-images img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 7px;
    border: 1px solid #ddd;
    display: block;
}

.gat-farbband-table .gat-lightbox-open {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.gat-farbband-btn {
    background: #222 !important;
    color: #fff !important;
    padding: 9px 14px;
    font-size: 14px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0,0,0,.14);
}

.gat-farbband-btn:hover {
    background: #444 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.gat-mobile-title {
    display: none;
}

@media(max-width: 800px) {
    .gat-farbband-table-wrap {
        box-shadow: none;
        background: transparent;
        padding: 0;
        overflow: visible;
    }

    .gat-farbband-table,
    .gat-farbband-table thead,
    .gat-farbband-table tbody,
    .gat-farbband-table th,
    .gat-farbband-table td,
    .gat-farbband-table tr {
        display: block;
    }

    .gat-farbband-table thead {
        display: none;
    }

    .gat-farbband-table tbody {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gat-farbband-table tr.gat-farbband-row {
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(0,0,0,.07);
        padding: 12px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
    }

    .gat-farbband-table td {
        border-bottom: 0;
        padding: 0;
        font-size: 14px;
    }

    .gat-farbband-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 800;
        color: #777;
        text-transform: uppercase;
        letter-spacing: .04em;
        margin-bottom: 2px;
    }

    .gat-farbband-table td[data-label="Beschreibung"],
    .gat-farbband-table td[data-label="Fotos"],
    .gat-farbband-table td[data-label="Anfragen"] {
        grid-column: 1 / -1;
    }

    .gat-mobile-title {
        display: block;
        font-size: 16px;
        color: #222;
        margin-bottom: 3px;
    }

    .gat-farbband-table .gat-spule-images {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 2px;
        min-width: 0;
    }

    .gat-farbband-table .gat-spule-images img {
        width: 52px;
        height: 52px;
        flex: 0 0 auto;
    }

    .gat-farbband-table td[data-label="Anfragen"]::before {
        display: none;
    }

    .gat-farbband-btn {
        width: 100%;
        margin-top: 4px;
        padding: 10px 14px;
    }
}

@media(max-width: 430px) {
    .gat-farbband-table tr.gat-farbband-row {
        grid-template-columns: 1fr 1fr;
        padding: 10px;
        gap: 7px 10px;
    }

    .gat-farbband-table td {
        font-size: 13px;
    }

    .gat-farbband-table .gat-spule-images img {
        width: 48px;
        height: 48px;
    }
}


/* v1.9.1 Brand Fix */
:root {
    --gat-brand: #A02F51F2;
    --gat-brand-dark: #7d1f3d;
}

/* Angebote wieder sauber */
.gat-card {
    overflow:hidden;
}

.gat-card-link {
    display:block;
    height:100%;
}

.gat-card-img img {
    transition: transform .25s ease;
}

.gat-card:hover .gat-card-img img {
    transform: scale(1.03);
}

.gat-category-badge {
    background: rgba(160,47,81,.12);
    color: #A02F51F2;
    font-weight:700;
}

.gat-price {
    color:#111 !important;
}

.gat-btn,
.gat-filter-btn.active,
.gat-filter-btn:hover,
.gat-lightbox-close:hover,
.gat-lightbox-prev:hover,
.gat-lightbox-next:hover {
    background: var(--gat-brand) !important;
    color:#fff !important;
    border-color: var(--gat-brand) !important;
}

.gat-btn:hover {
    background: var(--gat-brand-dark) !important;
}

.gat-filter-btn {
    transition: all .2s ease;
}

.gat-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(160,47,81,.18);
}

.gat-farbband-btn {
    background: var(--gat-brand) !important;
}

.gat-farbband-btn:hover {
    background: var(--gat-brand-dark) !important;
}

/* Angebote Grid stabilisieren */
.gat-offers-grid {
    align-items: stretch;
}

.gat-card-body {
    display:flex;
    flex-direction:column;
}

.gat-card-body .gat-price {
    margin-top:auto;
}


/* v1.9.2 Transparent Background Fix */
.gat-detail-wrap,
.gat-detail,
.gat-wrap,
.gat-offers-grid {
    background: transparent !important;
}

.gat-detail-content {
    background: rgba(255,255,255,.96) !important;
}

.gat-card {
    background: rgba(255,255,255,.98) !important;
}

/* Entfernt dunkle Hintergründe von Themes */
body.single-gat_angebot main,
body.single-gat_angebot article,
body.single-gat_angebot section {
    background: transparent !important;
}


/* v1.9.3 Details Button */
.gat-details-btn {
    margin-top: 16px;
    width: 100%;
    text-align: center;
    justify-content: center;
    background: #A02F51F2 !important;
    color: #fff !important;
    font-weight: 800;
    transition: all .2s ease;
}

.gat-details-btn:hover {
    background: #7d1f3d !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(160,47,81,.22);
}

.gat-card-body {
    display:flex;
    flex-direction:column;
    height:100%;
}

.gat-details-btn {
    margin-top:auto;
}


/* v1.9.4 Ganze Angebotskarte wieder klickbar */
.gat-clickable-card {
    cursor: pointer;
}

.gat-clickable-card .gat-details-btn {
    position: relative;
    z-index: 2;
}


/* v1.9.5: Angebotskarten und Detailseite sauber repariert */
:root {
    --gat-brand: #A02F51F2;
    --gat-brand-dark: #7d1f3d;
}

/* Übersicht: Karte komplett klickbar, Button zusätzlich sichtbar */
.gat-offers-grid {
    align-items: stretch !important;
}

.gat-card {
    background: #fff !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

.gat-card-mainlink {
    color: inherit !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.gat-card-img {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    max-height: 360px !important;
    background: #f6f3f1 !important;
}

.gat-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.gat-card-body {
    padding: 18px !important;
    display: block !important;
    min-height: unset !important;
    height: auto !important;
}

.gat-card-body h3 {
    margin: 0 0 8px !important;
}

.gat-card-body .gat-price {
    margin: 10px 0 4px !important;
    color: #111 !important;
}

.gat-card-body .gat-fracht {
    margin: 0 !important;
}

.gat-card-actions {
    padding: 0 18px 18px !important;
    margin-top: auto !important;
}

.gat-details-btn {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    background: var(--gat-brand) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 11px 16px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.gat-details-btn:hover {
    background: var(--gat-brand-dark) !important;
    color: #fff !important;
}

/* Detailseite: nicht mehr auf schwarzem Theme-Hintergrund kleben */
body.single-gat_angebot {
    background: #f7f4f2 !important;
}

body.single-gat_angebot .site,
body.single-gat_angebot .site-content,
body.single-gat_angebot #content,
body.single-gat_angebot main {
    background: transparent !important;
}

.gat-detail-wrap {
    max-width: 1180px !important;
    margin: 34px auto !important;
    padding: 24px !important;
    background: rgba(255,255,255,.92) !important;
    border-radius: 22px !important;
    box-shadow: 0 12px 34px rgba(0,0,0,.10) !important;
}

.gat-detail {
    display: grid !important;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 430px) !important;
    gap: 32px !important;
    align-items: start !important;
    background: transparent !important;
}

.gat-detail-content {
    background: #fff !important;
    color: #111 !important;
    border-radius: 18px !important;
    padding: 28px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.10) !important;
}

.gat-detail-content h1,
.gat-detail-content p,
.gat-description {
    color: #111 !important;
}

.gat-back {
    color: var(--gat-brand) !important;
    font-weight: 700 !important;
}

.gat-category-badge {
    background: rgba(160,47,81,.12) !important;
    color: var(--gat-brand) !important;
}

/* Detailbilder kompakt halten */
.gat-detail-gallery-thumbs {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 12px !important;
    align-content: start !important;
}

.gat-detail-thumb img {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
}

/* Buttons einheitlich */
.gat-btn,
.gat-filter-btn.active,
.gat-filter-btn:hover {
    background: var(--gat-brand) !important;
    color: #fff !important;
    border-color: var(--gat-brand) !important;
}

.gat-btn:hover {
    background: var(--gat-brand-dark) !important;
}

@media(max-width:800px) {
    .gat-detail-wrap {
        margin: 16px 10px !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }

    .gat-detail {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .gat-detail-content {
        padding: 20px !important;
    }

    .gat-detail-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .gat-card-img {
        max-height: none !important;
    }
}


/* v1.9.6 Transparente Angebots-Detailseite */
body.single-gat_angebot,
body.single-gat_angebot .site,
body.single-gat_angebot .site-content,
body.single-gat_angebot #content,
body.single-gat_angebot main,
body.single-gat_angebot article,
body.single-gat_angebot section {
    background: transparent !important;
}

/* Wrapper jetzt transparent */
.gat-detail-wrap {
    background: transparent !important;
    box-shadow: none !important;
    padding-top: 10px !important;
}

/* Nur die Info-Karte bleibt leicht weiß/translucent */
.gat-detail-content {
    background: rgba(255,255,255,.88) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Bilderbereich ebenfalls transparent */
.gat-detail,
.gat-detail-gallery-thumbs {
    background: transparent !important;
}


/* v1.9.7 Final Detail Fix */

/* Wirklich transparenter Background */
body.single-gat_angebot {
    background: transparent !important;
}

body.single-gat_angebot::before,
body.single-gat_angebot::after,
body.single-gat_angebot .site::before,
body.single-gat_angebot .site::after {
    display: none !important;
}

/* KEIN weißer Wrapper mehr */
.gat-detail-wrap {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Info Box weiterhin lesbar */
.gat-detail-content {
    background: rgba(255,255,255,.82) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Galerie transparent */
.gat-detail,
.gat-detail-gallery-thumbs,
.gat-detail-gallery {
    background: transparent !important;
}


/* v1.9.8: echte Korrektur Detailseite + Lightbox */
body.single-gat_angebot .gat-single-root,
body.single-gat_angebot .gat-single-root *,
body.single-gat_angebot .gat-single-root *::before,
body.single-gat_angebot .gat-single-root *::after {
    box-sizing: border-box;
}

body.single-gat_angebot .gat-single-root {
    background: transparent !important;
    background-color: transparent !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.single-gat_angebot .gat-single-inner {
    max-width: 1180px;
    margin: 34px auto;
    padding: 0 22px;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

body.single-gat_angebot .gat-detail {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 430px) !important;
    gap: 34px !important;
    align-items: start !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

body.single-gat_angebot .gat-detail-gallery-thumbs {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)) !important;
    gap: 12px !important;
    background: transparent !important;
    background-color: transparent !important;
}

body.single-gat_angebot .gat-detail-thumb {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.16) !important;
}

body.single-gat_angebot .gat-detail-thumb img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 14px !important;
}

body.single-gat_angebot .gat-detail-content {
    background: rgba(255,255,255,.86) !important;
    background-color: rgba(255,255,255,.86) !important;
    color: #111 !important;
    border-radius: 18px !important;
    padding: 28px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.single-gat_angebot .gat-back {
    display: inline-block;
    margin-bottom: 18px;
    color: #A02F51F2 !important;
    font-weight: 700;
    text-decoration: none;
}

/* Theme-Hintergrund nicht überschreiben: keine body/site Background-Farbe setzen */
body.single-gat_angebot .gat-detail-wrap {
    background: transparent !important;
    box-shadow: none !important;
}

/* Lightbox sicher direkt sichtbar */
.gat-lightbox {
    position: fixed !important;
    inset: 0 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,0,0,.84) !important;
    z-index: 999999 !important;
    padding: 28px !important;
}

.gat-lightbox.active {
    display: flex !important;
}

.gat-lightbox img {
    max-width: 90vw !important;
    max-height: 86vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 42px rgba(0,0,0,.45) !important;
}

.gat-lightbox-close,
.gat-lightbox-prev,
.gat-lightbox-next {
    position: absolute !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: rgba(255,255,255,.94) !important;
    color: #111 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 32px !important;
    line-height: 1 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.35) !important;
}

.gat-lightbox-close:hover,
.gat-lightbox-prev:hover,
.gat-lightbox-next:hover {
    background: #A02F51F2 !important;
    color: #fff !important;
}

.gat-lightbox-close {
    top: 22px !important;
    right: 22px !important;
}

.gat-lightbox-prev {
    left: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.gat-lightbox-next {
    right: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

@media(max-width:800px) {
    body.single-gat_angebot .gat-single-inner {
        margin: 16px auto;
        padding: 0 12px;
    }

    body.single-gat_angebot .gat-detail {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    body.single-gat_angebot .gat-detail-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    body.single-gat_angebot .gat-detail-content {
        padding: 20px !important;
    }
}


/* v1.9.9: Farbbandspulen-Spaltenreihenfolge */
.gat-farbband-table th,
.gat-farbband-table td {
    vertical-align: middle;
}

.gat-farbband-table td[data-label="Preis"] {
    font-weight: 700;
    white-space: nowrap;
}

@media(max-width:800px) {
    .gat-farbband-table td[data-label="Anfragen"] {
        grid-column: 1 / -1;
    }

    .gat-farbband-table td[data-label="Anfragen"]::before {
        display: none;
    }
}


/* v2.0.0: Manuelle Termine / Kalenderliste */
.gat-termine-list{display:flex;flex-direction:column;gap:16px;margin:24px 0}
.gat-termin-item{display:flex;gap:18px;padding:18px;border-radius:16px;background:rgba(255,255,255,.96);border:1px solid rgba(0,0,0,.08);box-shadow:0 8px 24px rgba(0,0,0,.06)}
.gat-termin-datebox{min-width:72px;height:72px;border-radius:14px;background:#A02F51F2;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.gat-termin-day{font-size:28px;font-weight:800}.gat-termin-month{font-size:13px;text-transform:uppercase;margin-top:6px;font-weight:600}
.gat-termin-content h3{margin:0 0 8px;font-size:20px;color:#111}.gat-termin-meta{font-size:14px;font-weight:700;color:#A02F51F2;margin-bottom:6px}
.gat-termin-location{font-size:14px;margin-bottom:8px;color:#444}.gat-termin-description{font-size:15px;color:#333;line-height:1.5}
.gat-termine-empty{padding:16px;border-radius:12px;background:#fff3f3;border:1px solid #ffd1d1;color:#8a1f1f}
@media(max-width:600px){.gat-termin-item{flex-direction:column}.gat-termin-datebox{width:72px}}


/* v2.2.0: Termine wieder im alten, lesbaren Kalender-Karten-Design */
.gat-termine-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin: 24px 0 !important;
}

.gat-termin-item {
    display: flex !important;
    gap: 18px !important;
    padding: 18px !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
    color: #111 !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gat-termin-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.10) !important;
    border-color: rgba(160,47,81,.25) !important;
}

.gat-termin-datebox {
    min-width: 72px !important;
    width: 72px !important;
    height: 72px !important;
    border-radius: 14px !important;
    background: #A02F51F2 !important;
    color: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(160,47,81,.25);
}

.gat-termin-day {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #fff !important;
}

.gat-termin-month {
    font-size: 13px !important;
    text-transform: uppercase !important;
    margin-top: 6px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.gat-termin-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.gat-termin-title-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 8px !important;
}

.gat-termin-content h3 {
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    color: #111 !important;
    font-weight: 800 !important;
}

.gat-termin-badge {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
    padding: 5px 10px !important;
    background: rgba(160,47,81,.12) !important;
    color: #A02F51F2 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.gat-termin-meta {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #A02F51F2 !important;
    margin-bottom: 6px !important;
}

.gat-termin-location {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    color: #444 !important;
}

.gat-termin-description {
    font-size: 15px !important;
    color: #333 !important;
    line-height: 1.5 !important;
}

.gat-termin-description p {
    margin: 0 0 8px !important;
}

.gat-termin-description p:last-child {
    margin-bottom: 0 !important;
}

.gat-termine-empty {
    padding: 16px !important;
    border-radius: 12px !important;
    background: #fff3f3 !important;
    border: 1px solid #ffd1d1 !important;
    color: #8a1f1f !important;
}

@media (max-width: 600px) {
    .gat-termin-item {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
    }

    .gat-termin-datebox {
        width: 72px !important;
    }

    .gat-termin-title-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}


/* v2.3.0: Angebote optisch an Termin-Karten angepasst */
.gat-card {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.gat-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.10) !important;
    border-color: rgba(160,47,81,.25) !important;
}

.gat-card-img {
    background: #f7f4f2 !important;
}

.gat-card-img img {
    transition: transform .25s ease, filter .25s ease !important;
}

.gat-card:hover .gat-card-img img {
    transform: scale(1.035) !important;
    filter: brightness(.96) !important;
}

.gat-details-btn {
    box-shadow: 0 8px 18px rgba(160,47,81,.22) !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.gat-details-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 26px rgba(160,47,81,.30) !important;
}

.gat-category-badge {
    background: rgba(160,47,81,.12) !important;
    color: #A02F51F2 !important;
    font-weight: 800 !important;
}


/* v2.3.2: Kalender/Termine Design fest wiederhergestellt */
.gat-termine-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin: 24px 0 !important;
}

.gat-termin-item {
    display: flex !important;
    gap: 18px !important;
    padding: 18px !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important;
    color: #111 !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.gat-termin-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.10) !important;
    border-color: rgba(160,47,81,.25) !important;
}

.gat-termin-datebox {
    min-width: 72px !important;
    width: 72px !important;
    height: 72px !important;
    border-radius: 14px !important;
    background: #A02F51F2 !important;
    color: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-shadow: 0 8px 18px rgba(160,47,81,.25) !important;
    flex-shrink: 0 !important;
}

.gat-termin-day {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #fff !important;
}

.gat-termin-month {
    font-size: 13px !important;
    text-transform: uppercase !important;
    margin-top: 6px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.gat-termin-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.gat-termin-title-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 8px !important;
}

.gat-termin-content h3 {
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    color: #111 !important;
    font-weight: 800 !important;
}

.gat-termin-badge {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
    padding: 5px 10px !important;
    background: rgba(160,47,81,.12) !important;
    color: #A02F51F2 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.gat-termin-meta {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #A02F51F2 !important;
    margin-bottom: 6px !important;
}

.gat-termin-location {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    color: #444 !important;
}

.gat-termin-description {
    font-size: 15px !important;
    color: #333 !important;
    line-height: 1.5 !important;
}

.gat-termin-description p {
    margin: 0 0 8px !important;
}

.gat-termin-description p:last-child {
    margin-bottom: 0 !important;
}

.gat-termine-empty {
    padding: 16px !important;
    border-radius: 12px !important;
    background: #fff3f3 !important;
    border: 1px solid #ffd1d1 !important;
    color: #8a1f1f !important;
}

@media (max-width: 600px) {
    .gat-termin-item {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px !important;
    }

    .gat-termin-datebox {
        width: 72px !important;
    }

    .gat-termin-title-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}


/* v2.4.0: variable Angebotsspalten und reparierter Filter */
.gat-offers-grid {
    grid-template-columns: repeat(var(--gat-columns, 2), minmax(0, 1fr)) !important;
    max-width: 1180px !important;
}

.gat-card.gat-filter-hidden {
    display: none !important;
}

.gat-filter-btn {
    appearance: none;
    -webkit-appearance: none;
}

@media (max-width: 900px) {
    .gat-offers-grid {
        grid-template-columns: repeat(min(var(--gat-columns, 2), 2), minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .gat-offers-grid {
        grid-template-columns: 1fr !important;
    }
}






/* v2.5.0: komplett neu gestaltete Angebotsdetailseite */
body.single-gat_angebot .site-content > .ast-container,
body.single-gat_angebot #primary,
body.single-gat_angebot .site-main {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.single-gat_angebot #secondary {
    display: none !important;
}

.gat-product-page,
.gat-product-page *,
.gat-product-page *::before,
.gat-product-page *::after {
    box-sizing: border-box;
}

.gat-product-page {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 70vh;
    padding: 105px 22px 70px;
    color: #202020;
    background:
        radial-gradient(circle at 10% 0%, rgba(160,47,81,.08), transparent 34%),
        radial-gradient(circle at 90% 20%, rgba(160,47,81,.05), transparent 30%),
        transparent;
}

.gat-product-shell {
    width: min(1220px, 100%);
    margin: 0 auto;
}

.gat-product-nav {
    margin-bottom: 20px;
}

.gat-product-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    background: rgba(255,255,255,.88);
    color: #333;
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,.07);
    transition: transform .18s ease, box-shadow .18s ease;
}

.gat-product-back:hover {
    transform: translateX(-3px);
    box-shadow: 0 9px 25px rgba(0,0,0,.11);
}

.gat-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
    gap: 30px;
    align-items: start;
}

.gat-product-gallery {
    min-width: 0;
}

.gat-product-main {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #f5f2f1;
    cursor: zoom-in;
    box-shadow: 0 18px 45px rgba(0,0,0,.13);
}

.gat-product-main img {
    display: block;
    width: 100%;
    height: min(620px, 62vw);
    min-height: 430px;
    object-fit: contain;
    background: linear-gradient(145deg, #fafafa, #f1eeec);
    transition: transform .28s ease;
}

.gat-product-main:hover img {
    transform: scale(1.018);
}

.gat-product-zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(25,25,25,.78);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.gat-product-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.gat-product-thumbnail {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    opacity: .72;
    transition: border-color .18s ease, opacity .18s ease, transform .18s ease;
}

.gat-product-thumbnail:hover,
.gat-product-thumbnail.is-active {
    border-color: #A02F51F2;
    opacity: 1;
    transform: translateY(-2px);
}

.gat-product-thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gat-product-placeholder {
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: rgba(255,255,255,.86);
    color: #777;
    box-shadow: 0 18px 45px rgba(0,0,0,.09);
}

.gat-product-placeholder span {
    font-size: 70px;
    opacity: .35;
}

.gat-product-info {
    position: sticky;
    top: 28px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 24px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 45px rgba(0,0,0,.11);
    backdrop-filter: blur(12px);
}

.gat-product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 15px;
}

.gat-product-category {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(160,47,81,.11);
    color: #A02F51F2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.gat-product-info h1 {
    margin: 0 0 10px;
    color: #171717;
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.gat-product-number {
    margin: 0 0 18px;
    color: #767676;
    font-size: 14px;
}

.gat-product-price {
    margin: 0 0 22px;
    color: #171717;
    font-size: clamp(27px, 2.5vw, 38px);
    font-weight: 850;
    line-height: 1;
}

.gat-product-facts {
    display: grid;
    gap: 10px;
    margin: 0 0 25px;
}

.gat-product-fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #ece7e5;
    border-radius: 14px;
    background: #faf8f7;
}

.gat-product-fact-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    border-radius: 10px;
    background: rgba(160,47,81,.11);
    color: #A02F51F2;
    font-size: 17px;
}

.gat-product-fact div {
    display: grid;
    gap: 1px;
}

.gat-product-fact span:not(.gat-product-fact-icon) {
    color: #777;
    font-size: 12px;
}

.gat-product-fact strong {
    color: #2b2b2b;
    font-size: 14px;
}

.gat-product-description {
    padding-top: 4px;
    margin-bottom: 25px;
}

.gat-product-description h2 {
    margin: 0 0 10px;
    color: #222;
    font-size: 17px;
}

.gat-product-description p {
    margin: 0 0 10px;
    color: #4b4b4b;
    font-size: 15px;
    line-height: 1.7;
}

.gat-product-description p:last-child {
    margin-bottom: 0;
}

.gat-product-request {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 52px;
    padding: 13px 18px;
    border-radius: 14px;
    background: #A02F51F2;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(160,47,81,.28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.gat-product-request:hover {
    color: #fff !important;
    transform: translateY(-2px);
    filter: brightness(.94);
    box-shadow: 0 16px 32px rgba(160,47,81,.34);
}

.gat-product-request-note {
    margin: 10px 4px 0;
    color: #858585;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.gat-related-products {
    margin-top: 56px;
}

.gat-related-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 17px;
}

.gat-related-kicker {
    color: #A02F51F2;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.gat-related-heading h2 {
    margin: 4px 0 0;
    color: #222;
    font-size: clamp(25px, 3vw, 34px);
}

.gat-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gat-related-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: 0 9px 26px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.gat-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 34px rgba(0,0,0,.13);
}

.gat-related-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f1ef;
    color: #aaa;
    font-size: 45px;
}

.gat-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.gat-related-card:hover .gat-related-image img {
    transform: scale(1.035);
}

.gat-related-body {
    padding: 17px;
}

.gat-related-body h3 {
    margin: 0 0 7px;
    color: #222;
    font-size: 18px;
    line-height: 1.25;
}

.gat-related-body p {
    margin: 0 0 8px;
    color: #777;
    font-size: 13px;
}

.gat-related-body strong {
    color: #222;
    font-size: 17px;
}

@media (max-width: 980px) {
    .gat-product-page {
        padding-top: 90px;
    }

    .gat-product-hero {
        grid-template-columns: 1fr;
    }

    .gat-product-info {
        position: static;
    }

    .gat-product-main img {
        height: min(680px, 78vw);
        min-height: 390px;
    }
}

@media (max-width: 700px) {
    .gat-product-page {
        padding: 82px 14px 50px;
    }

    .gat-product-nav {
        margin-bottom: 14px;
    }

    .gat-product-hero {
        gap: 18px;
    }

    .gat-product-main,
    .gat-product-info {
        border-radius: 18px;
    }

    .gat-product-main img {
        height: 72vw;
        min-height: 270px;
    }

    .gat-product-thumbnails {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 5px;
    }

    .gat-product-thumbnail {
        flex: 0 0 74px;
    }

    .gat-product-info {
        padding: 23px 20px;
    }

    .gat-related-products {
        margin-top: 42px;
    }

    .gat-related-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gat-related-card {
        display: grid;
        grid-template-columns: 125px minmax(0, 1fr);
    }

    .gat-related-image {
        aspect-ratio: auto;
        min-height: 125px;
    }

    .gat-related-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .gat-product-back {
        width: 100%;
        justify-content: center;
    }

    .gat-product-info {
        padding: 20px 17px;
    }

    .gat-product-main img {
        min-height: 245px;
    }

    .gat-related-card {
        grid-template-columns: 105px minmax(0, 1fr);
    }
}


/* v2.5.1: Abstand zum festen/sticky Header */
body.single-gat_angebot .gat-product-nav {
    scroll-margin-top: 110px;
}

@media (max-width: 420px) {
    body.single-gat_angebot .gat-product-page {
        padding-top: 76px;
    }
}
