/*
Theme Name: Kadence Child Wanderlich
Theme URI: https://wanderlich.net https://wanderlich.com
Description: Child Theme für Wanderlich
Author: Martin Grub
Template: kadence
Version: 1.0.0
*/

.wanderlich-box {
    margin-top: 20px;
    padding: 20px;
    background: #F5F4EF;
    border-left: 5px solid #004225;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.wanderlich-stars {
    color: #004225;
    font-size: 32px;
    letter-spacing: 2px;
}

.wanderlich-condition {
    margin-bottom: 15px;
    font-weight: 600;
}

.wanderlich-meta div {
    margin-bottom: 6px;
}

.wanderlich-properties {
    margin-top: 15px;
}

.wanderlich-properties strong {
    display: block;
    margin-bottom: 8px;
}

.wanderlich-properties ul {
    list-style: none !important;
    margin: 0;
    padding-left: 0;
}

.wanderlich-properties li {
    list-style: none !important;
    margin-bottom: 5px;
}

.wanderlich-properties li::marker {
    content: "";
}

.woocommerce-Tabs-panel ul {
    margin-top: 10px;
}

.woocommerce-Tabs-panel li {
    margin-bottom: 6px;
}

.woocommerce-Tabs-panel--wanderlich_hinweise h2 {
    margin-top: 0;
    margin-bottom: 24px;
}

.woocommerce-Tabs-panel--wanderlich_hinweise ul {
    margin-top: 0;
}

.woocommerce-Tabs-panel--wanderlich_hinweise li {
    margin-bottom: 12px;
}

/*
----------------------------------------------------
WooCommerce Meta-Informationen
----------------------------------------------------
*/

.product_meta,
.product_meta span,
.product_meta a {
    color: #333333 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5;
}

.product_meta a:hover {
    color: #004225 !important;
}

/*
----------------------------------------------------
Lagerbestand
----------------------------------------------------
*/

.stock,
.in-stock,
.availability,
p.stock {
    color: #333333 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}


/* =======================================
   Wanderlich Produkt-Pagination
   ======================================= */

.wanderlich-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    width: 100%;
}

.wanderlich-pagination ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wanderlich-pagination li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.wanderlich-pagination a,
.wanderlich-pagination span {
    display: block;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    line-height: 1;
    transition: all 0.2s ease;
}

.wanderlich-pagination a:hover {
    background: #f5f5f5;
    border-color: #999;
}

.wanderlich-pagination .current {
    background: #000;
    color: #fff;
    border-color: #000;
}

.wanderlich-pagination .dots {
    border: none;
    background: transparent;
}

/* =======================================
   WooCommerce Produktgrid im Kadence-Stil
   ======================================= */
.wanderlich-products-wrapper ul.products {
    list-style: none !important;
    list-style-type: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.wanderlich-products-wrapper ul.products li.product {
    list-style: none !important;
    list-style-type: none !important;
	transition: transform 0.2s ease;
}

.wanderlich-products-wrapper ul.products li.product::marker {
    content: "" !important;
}

.wanderlich-products-wrapper ul.products li.product img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.wanderlich-products-wrapper ul.products li.product:hover {
    transform: translateY(-3px);
}

/* =======================================
   Responsive
   ======================================= */

@media (max-width: 768px) {

    .wanderlich-pagination ul {
        justify-content: center;
    }

}

/* =======================================
   Wanderlich Suche & Filter Startseite
   ======================================= */

.wanderlich-search-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}

.wanderlich-search-filter-form .filter-field {
    flex: 1 1 200px;
    max-width: 100%;
}

/* Einheitliches Styling für Inputs und Select-Boxen */
.wanderlich-search-filter-form input[type="search"],
.wanderlich-search-filter-form select {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    font-size: 15px;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease-in-out;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Dezenter Hover & Focus-Effekt im Wanderlich-Grün */
.wanderlich-search-filter-form input[type="search"]:focus,
.wanderlich-search-filter-form select:focus {
    border-color: #004225;
    box-shadow: 0 0 0 2px rgba(0, 66, 37, 0.15);
}

/* Eigener Dropdown-Pfeil für Select-Boxen */
.wanderlich-search-filter-form .filter-field {
    position: relative;
}

.wanderlich-search-filter-form select {
    padding-right: 36px;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23004225%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 14px top 50%;
    background-size: 10px auto;
    cursor: pointer;
}

/* Suchen-Button Anpassung */
.wanderlich-search-filter-form button.search-submit {
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #004225;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.wanderlich-search-filter-form button.search-submit:hover {
    background-color: #002d19;
    transform: translateY(-1px);
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .wanderlich-search-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wanderlich-search-filter-form .filter-field,
    .wanderlich-search-filter-form button.search-submit {
        width: 100%;
        flex: 1 1 100%;
    }
}

/* =======================================
   Wanderlich Suchergebnisse & Rücksprung
   ======================================= */

.wanderlich-search-intro {
    margin: 10px auto 30px auto;
    text-align: center;
}

.wanderlich-search-text {
    font-size: 16px;
    color: #444444;
    margin-bottom: 12px;
}

.wanderlich-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #004225;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    background-color: #F5F4EF;
    border: 1px solid #004225;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.wanderlich-back-link a:hover {
    background-color: #004225;
    color: #ffffff;
    transform: translateY(-1px);
}


/* WLP Google Review Footer Widget */
.wlp-footer-google-review {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 360px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    /* 1. KARTEN-ZENTRIERUNG im Footer (Standard + Flex/Grid Fallback) */
    margin-left: auto !important;
    margin-right: auto !important;
    
    /* 2. INHALTS-ZENTRIERUNG innerhalb der Karte */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wlp-footer-google-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.wlp-review-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Zentriert Logo + Sterne waagerecht */
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
}

.wlp-review-score {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Zentriert Sterne & Text waagerecht zueinander */
    justify-content: center;
    text-align: center;      /* Erfasset den Textinhalt */
    line-height: 1.2;
}

.wlp-review-score .wlp-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 1px;
    display: block;          /* Stellt sicher, dass das Element als voller Block zentriert wird */
    text-align: center;
    width: 100%;
}

.wlp-review-score .wlp-rating-text {
    font-size: 0.85rem;
    color: #475569;
    display: block;
    text-align: center;
}

.wlp-review-body {
    width: 100%;
    text-align: center;
}

.wlp-review-body .wlp-review-call {
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.wlp-review-body .wlp-review-subtext {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.wlp-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #0f172a;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.wlp-review-btn:hover {
    background: #2563eb;
    color: #ffffff !important;
}

.wlp-review-btn svg {
    transition: transform 0.2s ease;
}

.wlp-review-btn:hover svg {
    transform: translateX(3px);
}