/*
Theme Name: REWO Media Astra Child
Theme URI: https://rewomedia.de
Description: Custom Astra Child Theme für REWO Media
Author: REWO Media
Template: astra
Version: 1.0.0
Text Domain: rewo-media
*/

/* =====================================================
   1. GRUNDEINSTELLUNGEN & FARBEN
===================================================== */

:root {
    --rewo-primary: #d90429;
    --rewo-primary-dark: #a90320;
    --rewo-primary-light: #ffe5e9;

    --rewo-dark: #111111;
    --rewo-dark-2: #1a1a1a;
    --rewo-text: #222222;
    --rewo-text-light: #666666;

    --rewo-bg: #ffffff;
    --rewo-bg-alt: #f5f5f5;
    --rewo-card: #ffffff;

    --rewo-border: #e5e5e5;

    --rewo-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --rewo-shadow-hover: 0 20px 45px rgba(0,0,0,0.15);

    --rewo-radius: 14px;
    --rewo-container: 1200px;

    --rewo-transition: all 0.25s ease;
}


/* =====================================================
   2. DARK MODE
===================================================== */

html[data-theme="dark"] {
    --rewo-bg: #121212;
    --rewo-bg-alt: #1b1b1b;
    --rewo-card: #202020;

    --rewo-text: #f2f2f2;
    --rewo-text-light: #b5b5b5;

    --rewo-border: #333333;

    --rewo-dark: #080808;
    --rewo-dark-2: #151515;

    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}


/* =====================================================
   3. GLOBAL
===================================================== */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--rewo-bg);
    color: var(--rewo-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    line-height: 1.6;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.rewo-container {
    width: 100%;
    max-width: var(--rewo-container);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.rewo-container.narrow {
    max-width: 850px;
}

.rewo-section {
    padding: 90px 0;
    background: var(--rewo-bg);
    color: var(--rewo-text);
}

.rewo-section.alt {
    background: var(--rewo-bg-alt);
}

.rewo-section h2 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 15px;
    color: var(--rewo-text);
}

.rewo-section .lead {
    max-width: 750px;
    margin: 0 auto 50px;
    text-align: center;
    color: var(--rewo-text-light);
    font-size: 18px;
}


/* =====================================================
   4. HEADER
===================================================== */

.rewo-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: var(--rewo-bg);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.rewo-topbar {
    background: var(--rewo-dark);
    color: #ffffff;
    font-size: 14px;
}

.rewo-topbar .rewo-container {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.rewo-topbar a {
    color: #ffffff;
    margin-right: 10px;
    transition: var(--rewo-transition);
}

.rewo-topbar a:hover {
    color: var(--rewo-primary);
}

#rewo-theme-toggle {
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #ffffff;
    border-radius: 8px;
    padding: 7px 12px;
    cursor: pointer;
    margin-left: 10px;
    transition: var(--rewo-transition);
}

#rewo-theme-toggle:hover {
    background: var(--rewo-primary);
    border-color: var(--rewo-primary);
}


/* =====================================================
   5. NAVIGATION
===================================================== */

.rewo-nav {
    background: var(--rewo-bg);
    border-bottom: 1px solid var(--rewo-border);
}

.rewo-nav-inner {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.rewo-logo {
    font-size: 25px;
    font-weight: 400;
    white-space: nowrap;
    color: var(--rewo-text);
}

.rewo-logo strong {
    color: var(--rewo-primary);
    font-weight: 800;
}

.rewo-nav nav ul {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rewo-nav nav ul li {
    margin: 0;
    padding: 0;
}

.rewo-nav nav ul li a {
    display: block;
    padding: 12px 14px;
    font-weight: 500;
    color: var(--rewo-text);
    border-radius: 8px;
    transition: var(--rewo-transition);
}

.rewo-nav nav ul li a:hover,
.rewo-nav nav ul li.current-menu-item a {
    color: var(--rewo-primary);
    background: var(--rewo-primary-light);
}


/* =====================================================
   6. HERO
===================================================== */

.rewo-hero {
    min-height: 720px;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 100px 0;
    background:
        radial-gradient(
            circle at top center,
            var(--rewo-primary-light),
            transparent 45%
        ),
        var(--rewo-bg);
}

html[data-theme="dark"] .rewo-hero {
    background:
        radial-gradient(
            circle at top center,
            rgba(217,4,41,0.18),
            transparent 45%
        ),
        var(--rewo-bg);
}

.rewo-hero .rewo-container {
    max-width: 1000px;
}

.rewo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 50px;
    background: var(--rewo-primary-light);
    color: var(--rewo-primary);
    font-weight: 600;
    margin-bottom: 25px;
}

.rewo-hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--rewo-text);
}

.rewo-hero h1 span {
    color: var(--rewo-primary);
}

.rewo-hero p {
    max-width: 760px;
    margin: 30px auto;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--rewo-text-light);
}


/* =====================================================
   7. BUTTONS
===================================================== */

.rewo-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.rewo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;

    border-radius: 10px;

    background: var(--rewo-primary);
    color: #ffffff !important;

    font-weight: 700;

    border: 2px solid var(--rewo-primary);

    cursor: pointer;

    transition: var(--rewo-transition);
}

.rewo-btn:hover {
    background: var(--rewo-primary-dark);
    border-color: var(--rewo-primary-dark);
    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow: 0 10px 25px rgba(217,4,41,0.25);
}

.rewo-btn.outline {
    background: transparent;
    color: var(--rewo-primary) !important;
}

.rewo-btn.outline:hover {
    background: var(--rewo-primary);
    color: #ffffff !important;
}


/* =====================================================
   8. TRUST BAR
===================================================== */

.rewo-trust {
    display: inline-block;

    margin-top: 35px;
    padding: 16px 25px;

    background: var(--rewo-bg-alt);

    border: 1px solid var(--rewo-border);

    border-radius: var(--rewo-radius);

    color: var(--rewo-text);

    font-size: 15px;
    font-weight: 500;
}


/* =====================================================
   9. GRID SYSTEM
===================================================== */

.rewo-grid {
    display: grid;
    gap: 25px;
}

.rewo-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.rewo-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.rewo-grid.six {
    grid-template-columns: repeat(3, 1fr);
}


/* =====================================================
   10. STANDARD CARDS
===================================================== */

.rewo-card,
.rewo-feature,
.rewo-testimonial {
    background: var(--rewo-card);

    border: 1px solid var(--rewo-border);

    border-radius: var(--rewo-radius);

    padding: 30px;

    box-shadow: var(--rewo-shadow);

    transition: var(--rewo-transition);
}

.rewo-card:hover,
.rewo-feature:hover,
.rewo-testimonial:hover {
    transform: translateY(-7px);

    box-shadow: var(--rewo-shadow-hover);
}

.rewo-card h3,
.rewo-feature h3 {
    font-size: 22px;

    margin: 0 0 12px;

    color: var(--rewo-text);
}

.rewo-card p,
.rewo-feature p,
.rewo-testimonial p {
    color: var(--rewo-text-light);

    margin-bottom: 18px;
}

.rewo-card b {
    color: var(--rewo-primary);
}


/* =====================================================
   11. SCHRITT-FÜR-SCHRITT
===================================================== */

.rewo-step {
    text-align: center;
    padding: 20px;
}

.rewo-step span {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    background: var(--rewo-primary);
    color: #ffffff;

    border-radius: 50%;

    font-size: 28px;
    font-weight: 800;
}

.rewo-step h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.rewo-step p {
    color: var(--rewo-text-light);
}


/* =====================================================
   12. PREISBOXEN
===================================================== */

.rewo-price {
    position: relative;

    background: var(--rewo-card);

    border: 1px solid var(--rewo-border);

    border-radius: var(--rewo-radius);

    padding: 40px 30px;

    box-shadow: var(--rewo-shadow);

    transition: var(--rewo-transition);
}

.rewo-price:hover {
    transform: translateY(-8px);

    box-shadow: var(--rewo-shadow-hover);
}

.rewo-price.featured {
    border: 2px solid var(--rewo-primary);

    transform: scale(1.04);
}

.rewo-price.featured:hover {
    transform: scale(1.04) translateY(-8px);
}

.rewo-price h3 {
    font-size: 25px;

    margin-bottom: 15px;
}

.rewo-price .price {
    font-size: 42px;

    font-weight: 800;

    color: var(--rewo-primary);

    margin-bottom: 25px;
}

.rewo-price .price small {
    font-size: 16px;

    font-weight: 500;

    color: var(--rewo-text-light);
}

.rewo-price ul {
    list-style: none;

    padding: 0;

    margin: 0 0 30px;
}

.rewo-price li {
    padding: 8px 0;

    color: var(--rewo-text-light);

    border-bottom: 1px solid var(--rewo-border);
}


/* =====================================================
   13. KUNDENSTIMMEN
===================================================== */

.rewo-testimonial > div {
    color: #f5b301;

    letter-spacing: 3px;

    margin-bottom: 15px;
}

.rewo-testimonial b {
    color: var(--rewo-text);
}


/* =====================================================
   14. STATISTIKEN
===================================================== */

.rewo-stats {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    margin-top: 40px;

    border: 1px solid var(--rewo-border);

    border-radius: var(--rewo-radius);

    overflow: hidden;

    background: var(--rewo-card);
}

.rewo-stats b {
    display: flex;

    flex-direction: column;

    align-items: center;

    padding: 30px;

    font-size: 36px;

    color: var(--rewo-primary);

    border-right: 1px solid var(--rewo-border);
}

.rewo-stats b:last-child {
    border-right: 0;
}

.rewo-stats small {
    margin-top: 5px;

    font-size: 14px;

    font-weight: 400;

    color: var(--rewo-text-light);
}


/* =====================================================
   15. FAQ
===================================================== */

.rewo-faq {
    max-width: 950px;

    margin: 45px auto 0;

    display: grid;

    gap: 15px;
}

.rewo-faq details {
    background: var(--rewo-card);

    border: 1px solid var(--rewo-border);

    border-radius: 10px;

    padding: 20px;

    transition: var(--rewo-transition);
}

.rewo-faq details:hover {
    box-shadow: var(--rewo-shadow);
}

.rewo-faq summary {
    cursor: pointer;

    font-weight: 700;

    color: var(--rewo-text);

    list-style: none;

    position: relative;

    padding-right: 30px;
}

.rewo-faq summary::-webkit-details-marker {
    display: none;
}

.rewo-faq summary::after {
    content: "+";

    position: absolute;

    right: 0;

    top: -4px;

    font-size: 25px;

    color: var(--rewo-primary);
}

.rewo-faq details[open] summary::after {
    content: "−";
}

.rewo-faq p {
    margin: 15px 0 0;

    color: var(--rewo-text-light);
}


/* =====================================================
   16. KONTAKT
===================================================== */

.rewo-contact {
    max-width: 850px;

    margin: 0 auto;

    padding: 60px 40px;

    text-align: center;

    background: var(--rewo-bg-alt);

    border: 1px solid var(--rewo-border);

    border-radius: 20px;

    box-shadow: var(--rewo-shadow);
}

.rewo-contact h2 {
    margin-top: 0;
}

.rewo-contact p {
    color: var(--rewo-text-light);

    font-size: 18px;
}


/* =====================================================
   17. FOOTER
===================================================== */

.rewo-footer {
    background: var(--rewo-dark);

    color: #ffffff;

    padding: 70px 0 0;
}

.rewo-footer-grid {
    display: grid;

    grid-template-columns: 1.4fr repeat(4, 1fr);

    gap: 40px;
}

.rewo-footer h4 {
    margin: 0 0 20px;

    font-size: 18px;

    color: #ffffff;
}

.rewo-footer p {
    color: rgba(255,255,255,0.7);
}

.rewo-footer .small {
    font-size: 13px;

    line-height: 1.7;

    margin-top: 20px;
}

.rewo-footer ul {
    list-style: none;

    padding: 0;

    margin: 0;
}

.rewo-footer li {
    margin-bottom: 10px;
}

.rewo-footer a,
.rewo-footer button {
    color: rgba(255,255,255,0.7);

    font-size: 14px;

    transition: var(--rewo-transition);
}

.rewo-footer a:hover,
.rewo-footer button:hover {
    color: var(--rewo-primary);
}

.rewo-footer button {
    border: 0;

    background: none;

    padding: 0;

    cursor: pointer;
}

.rewo-copyright {
    margin-top: 60px;

    padding: 25px 0;

    border-top: 1px solid rgba(255,255,255,0.12);

    text-align: center;

    font-size: 13px;

    color: rgba(255,255,255,0.5);
}


/* =====================================================
   18. DARK MODE ASTRA KORREKTUREN
===================================================== */

html[data-theme="dark"] body,
html[data-theme="dark"] .site,
html[data-theme="dark"] .site-content,
html[data-theme="dark"] .ast-container,
html[data-theme="dark"] #page {
    background: var(--rewo-bg);
    color: var(--rewo-text);
}

html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .entry-content h1,
html[data-theme="dark"] .entry-content h2,
html[data-theme="dark"] .entry-content h3,
html[data-theme="dark"] .entry-content h4,
html[data-theme="dark"] .entry-content p {
    color: inherit;
}


/* =====================================================
   19. WHATSAPP BUTTON
===================================================== */

.rewo-whatsapp {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #25d366;

    color: #ffffff;

    border-radius: 50%;

    font-size: 28px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.25);

    z-index: 999;

    transition: var(--rewo-transition);
}

.rewo-whatsapp:hover {
    transform: scale(1.1);

    color: #ffffff;
}


/* =====================================================
   20. MOBILE
===================================================== */

@media (max-width: 1024px) {

    .rewo-grid.four {
        grid-template-columns: repeat(2, 1fr);
    }

    .rewo-footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rewo-footer-grid > div:first-child {
        grid-column: span 3;
    }

    .rewo-nav nav ul {
        gap: 0;
    }

    .rewo-nav nav ul li a {
        padding: 10px 8px;
        font-size: 14px;
    }

}


@media (max-width: 768px) {

    .rewo-topbar .rewo-container {
        flex-direction: column;

        justify-content: center;

        padding-top: 10px;
        padding-bottom: 10px;

        text-align: center;
    }

    .rewo-nav-inner {
        min-height: 65px;
    }

    .rewo-nav nav {
        display: none;
    }

    .rewo-hero {
        min-height: auto;

        padding: 100px 0 80px;
    }

    .rewo-section {
        padding: 65px 0;
    }

    .rewo-grid.three,
    .rewo-grid.four,
    .rewo-grid.six {
        grid-template-columns: 1fr;
    }

    .rewo-price.featured {
        transform: none;
    }

    .rewo-price.featured:hover {
        transform: translateY(-7px);
    }

    .rewo-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rewo-footer-grid > div:first-child {
        grid-column: span 2;
    }

    .rewo-stats {
        grid-template-columns: 1fr;
    }

    .rewo-stats b {
        border-right: 0;

        border-bottom: 1px solid var(--rewo-border);
    }

    .rewo-stats b:last-child {
        border-bottom: 0;
    }

}


@media (max-width: 500px) {

    .rewo-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .rewo-buttons {
        flex-direction: column;
    }

    .rewo-btn {
        width: 100%;
    }

    .rewo-trust {
        width: 100%;

        line-height: 2;

        padding: 15px;
    }

    .rewo-card,
    .rewo-feature,
    .rewo-testimonial,
    .rewo-price {
        padding: 25px 20px;
    }

    .rewo-contact {
        padding: 40px 20px;
    }

    .rewo-footer-grid {
        grid-template-columns: 1fr;
    }

    .rewo-footer-grid > div:first-child {
        grid-column: span 1;
    }

    .rewo-footer {
        padding-top: 50px;
    }

}


/* =====================================================
   WOOCOMMERCE – REWO MEDIA SHOP
===================================================== */

/* -----------------------------------------------------
   SHOP GESAMTBREITE
----------------------------------------------------- */

.woocommerce .site-main,
.woocommerce-page .site-main {
    width: 100%;
}

.woocommerce .site-main > .ast-container,
.woocommerce-page .site-main > .ast-container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* -----------------------------------------------------
   SHOP HEADER / TITEL
----------------------------------------------------- */

.woocommerce-products-header {
    padding: 70px 0 35px;
    text-align: center;
}

.woocommerce-products-header__title {
    margin: 0 0 15px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--rewo-text);
}

.woocommerce-products-header p {
    color: var(--rewo-text-light);
}


/* -----------------------------------------------------
   SHOP CONTENT
----------------------------------------------------- */

.woocommerce .site-main {
    padding-bottom: 80px;
}

.woocommerce ul.products {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0 !important;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;

    padding: 0 !important;
}


/* -----------------------------------------------------
   PRODUKTKARTEN
----------------------------------------------------- */

.woocommerce ul.products li.product {
    width: auto !important;
    margin: 0 !important;

    display: flex;
    flex-direction: column;

    background: var(--rewo-card);

    border: 1px solid var(--rewo-border);

    border-radius: var(--rewo-radius);

    overflow: hidden;

    box-shadow: var(--rewo-shadow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;

    padding: 0 !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-7px);

    box-shadow: var(--rewo-shadow-hover);

    border-color: rgba(217,4,41,0.35);
}


/* -----------------------------------------------------
   PRODUKTBILD
----------------------------------------------------- */

.woocommerce ul.products li.product a img {
    width: 100% !important;

    height: 280px !important;

    object-fit: cover;

    margin: 0 !important;

    border: 0;

    transition: transform 0.35s ease;
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.03);
}


/* -----------------------------------------------------
   PRODUKTINHALT
----------------------------------------------------- */

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 25px 25px 5px !important;

    margin: 0 !important;

    font-size: 21px;

    line-height: 1.3;

    font-weight: 700;

    color: var(--rewo-text);
}

.woocommerce ul.products li.product .price {
    padding: 0 25px;

    margin: 8px 0 0 !important;

    font-size: 22px;

    font-weight: 800;

    color: var(--rewo-primary);
}

.woocommerce ul.products li.product .price del {
    color: var(--rewo-text-light);

    font-size: 15px;

    opacity: 0.7;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;

    color: var(--rewo-primary);
}


/* -----------------------------------------------------
   KURZBESCHREIBUNG
----------------------------------------------------- */

.woocommerce ul.products li.product .woocommerce-loop-product__description {
    padding: 10px 25px 0;

    color: var(--rewo-text-light);

    font-size: 15px;

    line-height: 1.6;
}


/* -----------------------------------------------------
   SALE BADGE
----------------------------------------------------- */

.woocommerce span.onsale {
    min-width: 65px;
    min-height: 65px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    top: 15px !important;
    left: 15px !important;

    right: auto !important;

    padding: 8px !important;

    border-radius: 50% !important;

    background: var(--rewo-primary) !important;

    color: #fff !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    z-index: 5;
}


/* -----------------------------------------------------
   ADD TO CART BUTTON
----------------------------------------------------- */

.woocommerce ul.products li.product .button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: calc(100% - 50px);

    min-height: 50px;

    margin: 22px 25px 25px !important;

    padding: 12px 20px;

    border-radius: 9px;

    background: var(--rewo-primary);

    color: #fff !important;

    border: 2px solid var(--rewo-primary);

    font-size: 15px;

    font-weight: 700;

    text-align: center;

    transition: var(--rewo-transition);
}

.woocommerce ul.products li.product .button:hover {
    background: var(--rewo-primary-dark);

    border-color: var(--rewo-primary-dark);

    color: #fff !important;

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(217,4,41,0.25);
}


/* -----------------------------------------------------
   SORTIERUNG
----------------------------------------------------- */

.woocommerce .woocommerce-ordering {
    margin: 0 0 25px;
}

.woocommerce .woocommerce-ordering select {
    min-height: 45px;

    padding: 8px 35px 8px 14px;

    background: var(--rewo-card);

    color: var(--rewo-text);

    border: 1px solid var(--rewo-border);

    border-radius: 8px;
}

.woocommerce .woocommerce-result-count {
    color: var(--rewo-text-light);

    margin-top: 10px;
}


/* -----------------------------------------------------
   SHOP PAGINATION
----------------------------------------------------- */

.woocommerce nav.woocommerce-pagination {
    margin-top: 55px;
}

.woocommerce nav.woocommerce-pagination ul {
    border: 0 !important;

    display: flex;

    justify-content: center;

    gap: 8px;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    width: 42px;
    height: 42px;

    display: flex !important;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--rewo-border);

    border-radius: 8px;

    background: var(--rewo-card);

    color: var(--rewo-text);

    transition: var(--rewo-transition);
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--rewo-primary);

    border-color: var(--rewo-primary);

    color: #fff;
}


/* =====================================================
   WOOCOMMERCE PRODUKTSEITE
===================================================== */

.single-product .site-main > .ast-container {
    max-width: 1200px;

    padding-left: 20px;
    padding-right: 20px;
}

.single-product div.product {
    padding: 60px 0 90px;
}


/* Produktbild */

.single-product div.product .woocommerce-product-gallery {
    border-radius: var(--rewo-radius);

    overflow: hidden;
}

.single-product div.product .woocommerce-product-gallery img {
    border-radius: var(--rewo-radius);
}


/* Produktname */

.single-product div.product .product_title {
    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.15;

    font-weight: 800;

    color: var(--rewo-text);
}


/* Produktpreis */

.single-product div.product p.price,
.single-product div.product span.price {
    color: var(--rewo-primary);

    font-size: 30px;

    font-weight: 800;
}


/* Beschreibung */

.single-product div.product .woocommerce-product-details__short-description {
    color: var(--rewo-text-light);

    font-size: 17px;

    line-height: 1.7;
}


/* Menge */

.single-product div.product form.cart .quantity input {
    min-height: 50px;

    border: 1px solid var(--rewo-border);

    border-radius: 8px;

    background: var(--rewo-card);

    color: var(--rewo-text);
}


/* In den Warenkorb */

.single-product div.product form.cart .single_add_to_cart_button {
    min-height: 50px;

    padding: 12px 28px;

    border-radius: 9px;

    background: var(--rewo-primary);

    border: 2px solid var(--rewo-primary);

    color: #fff;

    font-weight: 700;

    transition: var(--rewo-transition);
}

.single-product div.product form.cart .single_add_to_cart_button:hover {
    background: var(--rewo-primary-dark);

    border-color: var(--rewo-primary-dark);

    transform: translateY(-2px);
}


/* =====================================================
   WARENKORB
===================================================== */

.woocommerce-cart .site-main > .ast-container,
.woocommerce-checkout .site-main > .ast-container {
    max-width: 1200px;

    padding-left: 20px;
    padding-right: 20px;
}

.woocommerce table.shop_table {
    background: var(--rewo-card);

    border: 1px solid var(--rewo-border);

    border-radius: var(--rewo-radius);

    color: var(--rewo-text);

    overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border-color: var(--rewo-border);

    color: var(--rewo-text);
}

.woocommerce-cart .cart_totals {
    background: var(--rewo-card);

    border: 1px solid var(--rewo-border);

    border-radius: var(--rewo-radius);

    padding: 25px;
}


/* =====================================================
   CHECKOUT
===================================================== */

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
    background: var(--rewo-card);

    border: 1px solid var(--rewo-border);

    border-radius: var(--rewo-radius);

    color: var(--rewo-text);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: var(--rewo-card);

    color: var(--rewo-text);

    border: 1px solid var(--rewo-border);

    border-radius: 8px;

    min-height: 48px;
}

.woocommerce #payment {
    background: var(--rewo-card);

    border: 1px solid var(--rewo-border);

    border-radius: var(--rewo-radius);
}


/* =====================================================
   WOOCOMMERCE BUTTONS GLOBAL
===================================================== */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: var(--rewo-primary);

    border: 2px solid var(--rewo-primary);

    color: #fff;

    border-radius: 9px;

    font-weight: 700;

    transition: var(--rewo-transition);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background: var(--rewo-primary-dark);

    border-color: var(--rewo-primary-dark);

    color: #fff;
}


/* =====================================================
   DARK MODE – WOOCOMMERCE
===================================================== */

html[data-theme="dark"] .woocommerce,
html[data-theme="dark"] .woocommerce-page {
    color: var(--rewo-text);
}

html[data-theme="dark"] .woocommerce ul.products li.product,
html[data-theme="dark"] .woocommerce .widget,
html[data-theme="dark"] .woocommerce table.shop_table,
html[data-theme="dark"] .woocommerce-cart .cart_totals,
html[data-theme="dark"] .woocommerce form.checkout_coupon,
html[data-theme="dark"] .woocommerce form.login,
html[data-theme="dark"] .woocommerce form.register {
    background: var(--rewo-card);
    color: var(--rewo-text);
}

html[data-theme="dark"] .woocommerce ul.products li.product .woocommerce-loop-product__title,
html[data-theme="dark"] .woocommerce ul.products li.product .price,
html[data-theme="dark"] .woocommerce h1,
html[data-theme="dark"] .woocommerce h2,
html[data-theme="dark"] .woocommerce h3,
html[data-theme="dark"] .woocommerce h4,
html[data-theme="dark"] .woocommerce h5,
html[data-theme="dark"] .woocommerce h6 {
    color: var(--rewo-text);
}

html[data-theme="dark"] .woocommerce .woocommerce-result-count,
html[data-theme="dark"] .woocommerce .woocommerce-loop-product__title,
html[data-theme="dark"] .woocommerce p {
    color: var(--rewo-text-light);
}


/* =====================================================
   RESPONSIVE SHOP
===================================================== */

@media (max-width: 1024px) {

    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

}


@media (max-width: 767px) {

    .woocommerce .site-main > .ast-container,
    .woocommerce-page .site-main > .ast-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .woocommerce-products-header {
        padding: 50px 0 25px;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr;

        gap: 22px;

        margin-top: 25px !important;
    }

    .woocommerce ul.products li.product a img {
        height: 250px !important;
    }

    .woocommerce .woocommerce-ordering,
    .woocommerce .woocommerce-result-count {
        float: none !important;

        text-align: center;

        margin-bottom: 15px;
    }

    .single-product div.product {
        padding: 35px 0 60px;
    }

    .single-product div.product .product_title {
        font-size: 32px;
    }

}


/* =====================================================
   ASTRA CONTAINER KORREKTUR
   Gleiche Breite wie REWO-Startseite
===================================================== */

.ast-container,
.site-header .ast-container,
.site-footer .ast-container {
    max-width: 1200px;
}

@media (min-width: 1201px) {

    .ast-container {
        max-width: 1200px;
    }

}