/* SGCW Bilder-Galerie – vollständig gekapselt, damit das Theme die Galerie möglichst wenig überschreibt */
.sgcw-gallery,
.sgcw-gallery * {
    box-sizing: border-box;
}

.sgcw-gallery {
    --sgcw-green: #008832;
    --sgcw-green-dark: #17652d;
    --sgcw-green-soft: #eef8f1;
    --sgcw-gold: #d7a928;
    --sgcw-text: #18321f;
    --sgcw-muted: #5d6f63;
    --sgcw-line: rgba(0, 136, 50, 0.18);
    --sgcw-shadow: 0 14px 32px rgba(24, 50, 31, 0.14);
    width: 100%;
    max-width: 1120px;
    margin: 0 auto 34px;
    color: var(--sgcw-text);
    font-family: inherit;
}

.sgcw-gallery a {
    text-decoration: none !important;
}

.sgcw-gallery__hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 22px;
    padding: clamp(26px, 5vw, 54px) clamp(18px, 5vw, 46px);
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(215, 169, 40, 0.34), transparent 28%),
        linear-gradient(135deg, #006b27 0%, #008832 42%, #17652d 100%);
    box-shadow: var(--sgcw-shadow);
    text-align: center;
}

.sgcw-gallery__hero::after {
    content: "";
    position: absolute;
    inset: auto -30px -70px auto;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    border: 26px solid rgba(255, 255, 255, 0.10);
}

.sgcw-gallery__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: #15361f;
    background: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.sgcw-gallery__hero h1 {
    margin: 0 0 10px !important;
    color: #fff !important;
    font-size: clamp(2rem, 5.5vw, 3.5rem) !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.sgcw-gallery__hero p {
    width: min(760px, 100%);
    margin: 0 auto !important;
    color: rgba(255, 255, 255, 0.94) !important;
    font-size: clamp(1rem, 2.2vw, 1.18rem) !important;
    line-height: 1.6 !important;
}

.sgcw-gallery__jumpnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 26px;
    padding: 12px;
    border: 1px solid var(--sgcw-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 22px rgba(24, 50, 31, 0.07);
}

.sgcw-gallery__jumpnav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--sgcw-green-dark) !important;
    background: var(--sgcw-green-soft);
    font-weight: 800;
    border: 1px solid rgba(0, 136, 50, 0.10);
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.sgcw-gallery__jumpnav a:hover,
.sgcw-gallery__jumpnav a:focus {
    transform: translateY(-2px);
    color: #fff !important;
    background: var(--sgcw-green);
}

.sgcw-gallery__section {
    margin: 0 0 28px;
}

.sgcw-gallery__section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 16px;
}

.sgcw-gallery__section-head h2 {
    margin: 0 0 4px !important;
    color: var(--sgcw-text) !important;
    font-size: clamp(1.45rem, 3vw, 2rem) !important;
    line-height: 1.18 !important;
    font-weight: 900 !important;
}

.sgcw-gallery__section-head p {
    margin: 0 !important;
    color: var(--sgcw-muted) !important;
    font-size: 1rem !important;
}

.sgcw-gallery__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.sgcw-gallery__feature-card,
.sgcw-gallery__current-card {
    position: relative;
    display: flex;
    min-height: 205px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    padding: 22px;
    border-radius: 20px;
    color: var(--sgcw-text) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5fbf7 100%);
    border: 1px solid var(--sgcw-line);
    box-shadow: 0 10px 24px rgba(24, 50, 31, 0.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sgcw-gallery__feature-card::before,
.sgcw-gallery__current-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, var(--sgcw-green), var(--sgcw-gold));
}

.sgcw-gallery__feature-card:hover,
.sgcw-gallery__feature-card:focus,
.sgcw-gallery__current-card:hover,
.sgcw-gallery__current-card:focus {
    transform: translateY(-4px);
    border-color: rgba(0, 136, 50, 0.34);
    box-shadow: 0 16px 34px rgba(24, 50, 31, 0.16);
}

.sgcw-gallery__card-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px;
    border-radius: 17px;
    background: var(--sgcw-green-soft);
    font-size: 1.7rem;
}

.sgcw-gallery__feature-card h3,
.sgcw-gallery__current-card h3 {
    margin: 0 0 8px !important;
    color: var(--sgcw-text) !important;
    font-size: 1.22rem !important;
    line-height: 1.22 !important;
    font-weight: 900 !important;
}

.sgcw-gallery__feature-card p,
.sgcw-gallery__current-card p {
    margin: 0 0 14px !important;
    color: var(--sgcw-muted) !important;
    line-height: 1.55 !important;
    font-size: .98rem !important;
}

.sgcw-gallery__card-link {
    margin-top: auto;
    color: var(--sgcw-green-dark) !important;
    font-weight: 900;
}

.sgcw-gallery__current-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.sgcw-gallery__current-card {
    min-height: 235px;
}

.sgcw-gallery__thumb {
    display: block;
    width: calc(100% + 44px);
    height: 118px;
    margin: -22px -22px 16px;
    background-size: cover;
    background-position: center;
}

.sgcw-gallery__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #fff;
    background: var(--sgcw-green);
    font-size: .82rem;
    line-height: 1;
    font-weight: 900;
}

.sgcw-gallery__details {
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid var(--sgcw-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(24, 50, 31, 0.06);
}

.sgcw-gallery__details summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 17px 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--sgcw-green-dark), var(--sgcw-green));
    font-size: 1.13rem;
    font-weight: 900;
    list-style: none;
}

.sgcw-gallery__details summary::-webkit-details-marker {
    display: none;
}

.sgcw-gallery__details summary::after {
    content: "⌄";
    margin-left: auto;
    font-size: 1.3rem;
    transition: transform .18s ease;
}

.sgcw-gallery__details[open] summary::after {
    transform: rotate(180deg);
}

.sgcw-gallery__link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 10px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.sgcw-gallery__link-grid a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 13px;
    color: var(--sgcw-text) !important;
    background: #fff;
    border: 1px solid rgba(0, 136, 50, 0.12);
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(24, 50, 31, 0.04);
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.sgcw-gallery__link-grid a::before {
    content: "›";
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    margin-right: 9px;
    border-radius: 999px;
    color: #fff;
    background: var(--sgcw-green);
    font-size: 1.08rem;
    font-weight: 900;
}

.sgcw-gallery__link-grid a:hover,
.sgcw-gallery__link-grid a:focus {
    transform: translateX(3px);
    color: #fff !important;
    background: var(--sgcw-green);
}

.sgcw-gallery__link-grid a:hover::before,
.sgcw-gallery__link-grid a:focus::before {
    color: var(--sgcw-green);
    background: #fff;
}

.sgcw-gallery__empty {
    padding: 16px;
    color: var(--sgcw-muted);
    background: #fff;
    border-radius: 14px;
    font-weight: 700;
}

@media (max-width: 720px) {
    .sgcw-gallery {
        max-width: 100%;
    }

    .sgcw-gallery__jumpnav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .sgcw-gallery__jumpnav a {
        white-space: nowrap;
    }

    .sgcw-gallery__section-head {
        display: block;
    }

    .sgcw-gallery__feature-grid,
    .sgcw-gallery__current-grid,
    .sgcw-gallery__link-grid {
        grid-template-columns: 1fr;
    }

    .sgcw-gallery__hero,
    .sgcw-gallery__feature-card,
    .sgcw-gallery__current-card,
    .sgcw-gallery__details {
        border-radius: 16px;
    }

    .sgcw-gallery__details summary {
        font-size: 1rem;
    }
}
