/* RF Shop – Frontend styling. Grün-Branding konsistent mit rf-awa/rf-ins. */

/*
 * .rf-shop is rendered as a direct child of the theme's
 * .is-layout-constrained content wrapper. It carries WordPress's own
 * "alignfull" class (see render.php) so the theme's built-in full-bleed
 * rule (margin-left/right: calc(50% - 50vw)) handles the breakout –
 * a hand-rolled position/vw hack here would fight that rule and offset
 * the whole page sideways.
 */
.rf-shop {
    --rf-shop-green: #1a7a43;
    --rf-shop-green-dark: #145c34;
    --rf-shop-green-bg: rgba(26, 122, 67, .07);
    --rf-shop-border: rgba(26, 122, 67, .25);
    box-sizing: border-box;
    padding: 0 clamp(16px, 4vw, 48px) 40px;
    font-size: 16px;
    line-height: 1.5;
}

.rf-shop * {
    box-sizing: border-box;
}

.rf-shop-hero {
    max-width: 860px;
    margin: 24px auto 20px;
    text-align: center;
}

.rf-shop-eyebrow {
    display: inline-block;
    font-size: .78em;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rf-shop-green);
    font-weight: 700;
    margin-bottom: 10px;
}

.rf-shop-h1 {
    font-size: clamp(1.7em, 4vw, 2.4em);
    margin: 0 0 14px;
    line-height: 1.2;
}

.rf-shop-lede {
    font-size: 1.05em;
    opacity: .85;
    margin: 0 auto;
    max-width: 680px;
}

.rf-shop-green {
    display: flex;
    gap: 14px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 28px;
    padding: 16px 18px;
    border: 1px solid var(--rf-shop-border);
    border-left: 4px solid var(--rf-shop-green);
    border-radius: 10px;
    background: var(--rf-shop-green-bg);
}

.rf-shop-green-icon {
    flex: 0 0 auto;
    font-size: 1.8em;
    line-height: 1;
}

.rf-shop-green-body {
    font-size: .95em;
    line-height: 1.5;
}

.rf-shop-green-link {
    display: inline-block;
    margin-left: 4px;
    font-weight: 700;
    color: var(--rf-shop-green);
    text-decoration: underline;
    white-space: nowrap;
}

.rf-shop-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--rf-shop-nav-bg, #fff);
    border-bottom: 1px solid var(--rf-shop-border);
    margin: 0 auto 28px;
    padding: 10px 0;
}


.rf-shop-nav-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 2px;
    max-width: 1200px;
    margin: 0 auto;
}

.rf-shop-nav-pill {
    flex: 0 0 auto;
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--rf-shop-green-bg);
    border: 1px solid var(--rf-shop-border);
    color: inherit !important;
    text-decoration: none !important;
    font-size: .88em;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.rf-shop-nav-pill:hover,
.rf-shop-nav-pill.is-active {
    background: var(--rf-shop-green);
    border-color: var(--rf-shop-green);
    color: #fff !important;
}

.rf-shop-section {
    max-width: 1200px;
    margin: 0 auto 44px;
    scroll-margin-top: 64px;
}

.rf-shop-h2 {
    font-size: 1.4em;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--rf-shop-border);
}

.rf-shop-h3 {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    opacity: .55;
    margin: 30px 0 4px;
}

.rf-shop-alt-note {
    font-size: .85em;
    opacity: .6;
    margin: 0 0 14px;
}

.rf-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.rf-shop-grid--alt {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.rf-shop-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    transition: box-shadow .2s, transform .2s;
}

.rf-shop-card:hover {
    box-shadow: 0 4px 16px rgba(26, 122, 67, .18);
    transform: translateY(-2px);
}

/*
 * "Zweite Wahl" Amazon-Karten: bewusst gedämpft, damit die AWIN-Testsieger
 * oben klar die prominentere Reihe bleiben. Kleinere Bildfläche, gedeckte
 * Amber-Akzentfarbe statt Grün, kein Shine-Effekt auf dem CTA.
 */
.rf-shop-card--alt {
    --rf-shop-alt-accent: #8a6d3b;
    opacity: .88;
    box-shadow: none;
    border-color: rgba(0, 0, 0, .08);
}

.rf-shop-card--alt:hover {
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transform: none;
}

.rf-shop-card--alt .rf-shop-card-imgwrap {
    height: 120px;
}

.rf-shop-card--alt .rf-shop-card-imgwrap img {
    max-height: 100px;
    filter: saturate(.9);
}

.rf-shop-tag--alt {
    color: var(--rf-shop-alt-accent);
    opacity: .8;
}

.rf-shop-price--alt {
    font-weight: 600;
    font-size: 1em;
    opacity: .85;
}

.rf-shop-cta--alt {
    background: transparent;
    color: var(--rf-shop-alt-accent) !important;
    border: 1px solid currentColor;
    box-shadow: none;
    font-size: .85em;
    padding: 7px 14px;
}

.rf-shop-cta--alt:hover {
    background: var(--rf-shop-alt-accent);
    color: #fff !important;
}


.rf-shop-card-imgwrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    background: #fff;
    padding: 10px;
}

.rf-shop-card-imgwrap img {
    max-height: 140px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.rf-shop-noimg {
    font-size: 2.5em;
    opacity: .3;
}

.rf-shop-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 12px 14px 16px;
}

.rf-shop-tag {
    display: block;
    font-size: .7em;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .55;
    margin-bottom: 4px;
}

.rf-shop-card-title {
    font-size: .98em;
    margin: 0 0 8px;
    line-height: 1.35;
    min-height: 2.7em;
}

.rf-shop-card-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rf-shop-card-title a:hover {
    color: var(--rf-shop-green);
}

.rf-shop-price {
    font-weight: 700;
    font-size: 1.15em;
    margin-bottom: 10px;
}

.rf-shop-cta {
    position: relative;
    overflow: hidden;
    display: inline-block;
    align-self: flex-start;
    padding: 9px 16px;
    border-radius: 6px;
    background: var(--rf-shop-green);
    color: #fff !important;
    font-weight: 600;
    font-size: .9em;
    text-decoration: none !important;
    white-space: nowrap;
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(26, 122, 67, .3);
    transition: background .2s, box-shadow .2s;
}

.rf-shop-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    transition: left .45s ease;
}

.rf-shop-shine:hover {
    background: var(--rf-shop-green-dark);
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(26, 122, 67, .5);
}

.rf-shop-shine:hover::after {
    left: 120%;
}

.rf-shop-source {
    display: block;
    margin-top: 8px;
    font-size: .8em;
    opacity: .75;
    text-decoration: underline;
    color: inherit;
}

.rf-shop-services-section {
    margin-bottom: 36px;
}

.rf-shop-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.rf-shop-service-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 20px;
    border: 1px solid rgba(15, 110, 140, .35);
    border-left: 4px solid #0f6e8c;
    border-radius: 10px;
    background: rgba(15, 110, 140, .07);
}

.rf-shop-service-icon {
    flex: 0 0 auto;
    font-size: 2em;
    line-height: 1;
}

.rf-shop-service-title {
    font-size: 1.1em;
    margin: 0 0 6px;
}

.rf-shop-service-desc {
    margin: 0 0 12px;
    font-size: .92em;
    opacity: .85;
}

.rf-shop-service-card .rf-shop-cta {
    background: #0f6e8c;
    box-shadow: 0 2px 8px rgba(15, 110, 140, .35);
}

.rf-shop-service-card .rf-shop-cta:hover {
    background: #0b566e;
    box-shadow: 0 3px 12px rgba(15, 110, 140, .5);
}

.rf-shop-disclosure {
    max-width: 900px;
    margin: 20px auto 0;
    font-size: .8em;
    opacity: .65;
    text-align: center;
}

.rf-shop-disclosure a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .rf-shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .rf-shop-card-imgwrap {
        height: 120px;
    }
}
