/* =========================================
   MIKRONIA GLOBAL STYLES (V4.1 - FINAL)
   ========================================= */

/* --- VARS & BRANDING --- */
:root {
    --mw-primary: #336699;      /* Dunkelblau */
    --mw-secondary: #3399cd;    /* Blau */
    --mw-tertiary: #ace5f8;     /* Hellblau */
    --mw-link: #159304;         /* Grün */
    --mw-link-hover: #ace5f8;
    --mw-bg-gray: #f7f7f7;
    --mw-button: #ff790b;       /* Orange */
    --mw-btn-color: #ff790b;    /* Alias für alten Code */
    --mw-text: #333333;
    --mw-border-color: #e0e0e0;
    --mw-bg-light: #f4f6f8;
}

/* --- BASIS LAYOUT --- */
.mw-product-single {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--mw-text);
    background: white;
}

.mw-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.mw-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- HEADER --- */
.mw-header {
    background: var(--mw-primary);
    color: white;
    padding: 15px 0;
    margin-bottom: 40px;
}

.mw-title {
    font-size: 32px;
    margin: 0 0 10px 0;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

/* Chips */
.mw-tech-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chip-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--mw-tertiary);
    letter-spacing: 0.5px;
    margin-right: 5px;
}

.mw-tech-chips .chip {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-block;
}

/* --- HERO SECTION (Single Page - Restored Layout) --- */
.mw-hero {
    margin-bottom: 50px;
    margin-top: 30px;
}

.mw-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.mw-main-image-wrapper {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    max-width: 500px;
    margin: 0 auto;
}

.mw-main-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.mw-no-image {
    background: var(--mw-bg-gray);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 8px;
}

/* Action Box (Rechts oben Single Page) */
.mw-action-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-top: 4px solid var(--mw-button);
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
}

.mw-action-box h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.mw-price-display { margin-bottom: 25px; }

.mw-price {
    font-size: 38px;
    font-weight: 800;
    color: var(--mw-primary);
    display: block;
    line-height: 1.1;
}

.mw-shop {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 5px;
    text-align: right;
}

/* Single Page Button */
.mw-button-primary {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--mw-button);
    color: white !important;
    text-decoration: none;
    padding: 15px 0;
    border-radius: 5px;
    font-weight: 800;
    font-size: 18px;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(255, 121, 11, 0.3);
}

.mw-button-primary:hover {
    background: #e66a00;
    transform: translateY(-2px);
}

.mw-button-small {
    background: var(--mw-secondary);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.mw-button-small:hover { background: var(--mw-primary); color: white; }

/* Button Outline */
#content button.mw-button-outline {
    background: transparent !important;
    color: var(--mw-primary) !important;
    border: 2px solid var(--mw-primary) !important;
    padding: 10px 20px;
    box-shadow: none !important;
    text-shadow: none !important;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

#content button.mw-button-outline:hover {
    background-color: var(--mw-primary) !important;
    color: #ffffff !important;
    border-color: var(--mw-primary) !important;
}

.mw-excerpt {
    margin-top: 20px;
    background: var(--mw-bg-gray);
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* --- MAIN CONTENT & SPECS --- */
.mw-netzecho-section { margin-bottom: 40px; }
.mw-ai-box {
    background: #f0f8ff;
    border-left: 5px solid var(--mw-secondary);
    padding: 30px;
    border-radius: 0 8px 8px 0;
}
.mw-ai-box h3 { margin-top: 0; color: var(--mw-primary); display: flex; align-items: center; gap: 10px; }

.mw-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.mw-content-area h2 {
    color: #0a0a0a;
    border-bottom: 2px solid var(--mw-bg-gray);
    padding-bottom: 10px;
}

.mw-content-area a {
    color: var(--mw-link);
    font-weight: bold;
    text-decoration: none;
}
.mw-content-area a:hover { color: var(--mw-link-hover); }

/* Specs Sidebar */
.mw-specs-area {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
    height: fit-content;
}
.mw-specs-area h3 {
    margin: 0;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: var(--mw-primary);
    text-transform: uppercase;
}
.mw-specs-table { width: 100%; border-collapse: collapse; }
.mw-specs-table td { padding: 12px 20px; border-bottom: 1px solid #eee; font-size: 14px; color: #333; }
.mw-spec-label { font-weight: 600; color: #555; width: 40%; background: #fcfcfc; }

/* --- MARKET / PREISVERGLEICH (Single Page) --- */
.mw-market-section { background: #fff; padding: 40px 0; margin-top: 40px; border-top: 1px solid #eee; }
.mw-comparison-table { width: 100%; border-collapse: collapse; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.mw-comparison-table thead th { background: #555; color: white; padding: 15px 20px; text-align: left; font-size: 14px; text-transform: uppercase; font-weight: 700; }
.mw-comparison-table th:first-child { width: 20%; }
.mw-comparison-table th:nth-child(2) { width: 50%; }
.mw-comparison-table th:last-child { width: 30%; text-align: right; }
.mw-comparison-table tr { background: white; border-bottom: 1px solid #eee; }
.mw-comparison-table tr:hover { background: #f9f9f9; }
.mw-comparison-table td { padding: 20px; vertical-align: middle; }

.mw-logo-wrapper { height: 40px; display: flex; align-items: center; }
.mw-logo-wrapper img { max-height: 100%; max-width: 120px; object-fit: contain; }
.mw-price-big { font-size: 22px; font-weight: bold; color: #159304; display: block; }
.mw-stock-status { font-size: 12px; font-weight: 600; color: #333; }
.mw-tax-note { font-size: 10px; color: #999; }

.mw-shop-btn {
    background: var(--mw-button);
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}
.mw-shop-btn:hover { background: #e66a00; }

/* Community */
.mw-community-showcase { padding: 40px 0; background: white; border-top: 5px solid var(--mw-tertiary); }
.mw-community-showcase h2 { text-align: center; color: var(--mw-primary); margin-bottom: 30px; }
.mw-showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
.showcase-item { background: var(--mw-bg-gray); padding: 20px; border-radius: 8px; text-align: center; }

/* =========================================
   SHORTCODE: PRODUCT BOX (OLD VERSION RESTORED)
   ========================================= */

.mw-box {
    border: 1px solid var(--mw-border-color);
    border-radius: 4px;
    background: #fff;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 850px;
    margin-left: auto; margin-right: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Header */
.mw-box-header {
    background: var(--mw-primary);
    padding: 15px 20px;
    border-bottom: 1px solid var(--mw-primary);
}
.mw-box-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

/* Body */
.mw-box-body {
    display: flex;
    flex-wrap: wrap;
    padding: 25px;
    gap: 30px;
    align-items: center;
}
.mw-box-image {
    flex: 0 0 200px;
    display: flex;
    justify-content: center;
}
.mw-box-image img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
}
.mw-box-content {
    flex: 1;
    min-width: 280px;
}

/* Tags & Bullets */
.mw-box-tags {
    display: inline-block;
    font-size: 0.95rem;
    padding: 5px 12px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 5px;
    font-weight: 700;
    text-transform: uppercase;
}
.mw-tag {
    display: inline-block;
    color: #fff !important;
    background: var(--mw-secondary);
    font-size: 0.95rem;
    padding: 5px 12px;
    border-radius: 4px;
    margin-right: 6px; margin-bottom: 5px;
    font-weight: 700;
    text-transform: uppercase;
}
    
.mw-box-bullets {
    margin: 0;
    padding-left: 20px;
    font-size: 1.25rem;
    line-height: 1.5;
    color: #333;
}
.mw-box-bullets li { margin-bottom: 10px; }

/* FOOTER */
.mw-box-footer {
    padding: 20px 25px;
    background: #fff;
    border-top: 1px solid var(--mw-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center; /* ZENTRIERT ALLE 4 ELEMENTE VERTIKAL */
    flex-wrap: wrap;
    gap: 20px;
}

/* Linke Seite: Shops */
.mw-footer-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Kein flex: 1 hier, damit Shops kompakt links bleiben */
}
.mw-shop-label {
    font-size: 0.85rem;
    color: #777;
    font-weight: 600;
}
.mw-box-shops {
    display: flex;
    gap: 20px; /* Abstand zwischen Shop 1 und Shop 2 */
}

/* Shop Einheit */
.mw-shop-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 110px; 
}

/* Logos */
.mw-shop-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 3px;
    background: #fff;
    transition: border-color 0.2s;
}
.mw-shop-img-link:hover { border-color: var(--mw-tertiary); }
.mw-shop-img-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Text Link */
.mw-shop-text-link {
    font-size: 1.05rem;
    color: var(--mw-secondary);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}
.mw-shop-text-link:hover { text-decoration: underline; }

/* Fallback Area */
.mw-fallback-area span {
    display: block;
    font-size: 13px;
    color: #777;
    margin-bottom: 3px;
}
.mw-fallback-area a {
    font-weight: bold;
    color: #333;
    text-decoration: underline;
}

/* Rechte Seite: Preis & Button */
.mw-footer-right {
    display: flex;
    align-items: center;
    gap: 25px; /* Großzügiger Abstand zwischen Preis und Button */
    margin-left: auto; /* Drückt diesen Block ganz nach rechts */
}
.mw-price-wrapper {
    text-align: right;
    display: flex;
    align-items: baseline; /* Preis und 'ab' auf einer Linie */
    gap: 5px;
}
.mw-price-prefix {
    font-size: 1rem;
    color: #666;
}
.mw-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--mw-primary);
    white-space: nowrap;
    line-height: 1;
}
.mw-button {
    background: var(--mw-btn-color);
    color: #fff !important;
    padding: 14px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}
.mw-button:hover { opacity: 0.95; transform: scale(1.02); }

/* Disclaimer */
.mw-box-disclaimer {
    font-size: 0.75rem;
    color: #999;
    text-align: right;
    padding: 5px 25px 15px;
    font-style: italic;
}

/* Mobile Anpassung */
@media (max-width: 750px) {
    .mw-box-footer { flex-direction: column; align-items: center; }
    .mw-footer-left { width: 100%; align-items: center; }
    .mw-box-shops { justify-content: center; width: 100%; }
    .mw-shop-unit { width: 45%; max-width: 140px; } /* Shops teilen sich mobile Breite */
    
    .mw-footer-right { 
        width: 100%; 
        justify-content: space-between;
        margin-left: 0;
        margin-top: 20px;
        border-top: 1px dashed #eee;
        padding-top: 20px;
    }
}

/* =========================================
   EBAY BOX (Original Design)
   ========================================= */
.mw-ebay-box-wrapper {
    margin-top: 30px;
    padding: 20px 25px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    width: fit-content;
    min-width: 350px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.mw-ebay-title { font-size: 14px; font-weight: 800; color: #333; text-align: center; margin-bottom: 15px; display: block; }
.mw-ebay-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mw-ebay-logo { height: 35px; width: auto; object-fit: contain; }

button.mw-ebay-trigger {
    background-color: transparent !important;
    background-image: none !important;
    color: var(--mw-primary) !important;
    border: 2px solid var(--mw-primary) !important;
    border-radius: 5px !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
    text-shadow: none !important;
    width: auto !important;
}
button.mw-ebay-trigger:hover {
    background-color: var(--mw-primary) !important;
    color: white !important;
    transform: translateY(-1px);
}
.mw-ebay-icon { font-size: 16px; }

/* =========================================
   TEMPLATE: TAXONOMY / ARCHIVE (V14)
   ========================================= */

/* HERO */
.mw-tax-hero {
    background: var(--mw-primary);
    color: white;
    padding: 40px 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.mw-tax-info { position: relative; z-index: 5; flex: 1; }
.mw-tax-info h1 { margin: 0 0 10px 0; color: white !important; font-size: 32px; }
.mw-tax-desc { font-size: 15px; opacity: 0.9; max-width: 600px; line-height: 1.5; color: white; }
.mw-tax-icon { position: relative; z-index: 10; display: flex; align-items: center; justify-content: center; width: 150px; opacity: 1 !important; }
.mw-hero-icon-img { max-height: 100px; width: auto; object-fit: contain; display: block; opacity: 1 !important; }

/* Layout */
.mw-main-split { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.mw-sidebar { background: #fff; border: 1px solid var(--mw-border); border-radius: 6px; padding: 20px; position: sticky; top: 20px; }

/* Filter Sidebar */
.mw-filter-group { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.mw-filter-group:last-child { border-bottom: none; }
.mw-filter-label { font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: #333; font-size: 14px; }
.mw-filter-label .dashicons { font-size: 16px; width: 16px; height: 16px; color: #999; transition: transform 0.2s; }
.mw-filter-group.closed .mw-scroll-box, .mw-filter-group.closed .mw-checkbox-label, .mw-filter-group.closed select, .mw-filter-group.closed .mw-price-slider, .mw-filter-group.closed .mw-price-inputs { display: none; }
.mw-filter-group.closed .dashicons { transform: rotate(180deg); }
.mw-scroll-box { max-height: 150px; overflow-y: auto; border: 1px solid #eee; padding: 10px; background: #fcfcfc; border-radius: 4px; }
.mw-scroll-box::-webkit-scrollbar { width: 6px; }
.mw-scroll-box::-webkit-scrollbar-track { background: #f1f1f1; }
.mw-scroll-box::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.mw-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; color: #555; cursor: pointer; }
.mw-filter-disclaimer { font-size: 11px; color: #888; margin-top: 15px; text-align: center; line-height: 1.4; border-top: 1px solid #eee; padding-top: 10px; }

/* SHOP FILTER BAR */
.mw-shop-filter-container { background: #f9f9f9; border: 1px solid var(--mw-border); border-radius: 8px; padding: 15px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.mw-sf-label { font-weight: 800; color: #333; margin-right: 5px; }
.mw-filter-radio { display: flex; gap: 15px; align-items: center; }
.mw-filter-radio label { cursor: pointer; display: flex; align-items: center; gap: 5px; color: #555; }
.mw-filter-radio input[type="radio"] { margin: 0; cursor: pointer; accent-color: var(--mw-primary); }

/* Grid & Cards */
.mw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.mw-card { background: #fff; border: 1px solid #e1e4e8; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s; position:relative; height: 100%; }
.mw-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); border-color: #ccc; }
.mw-card-img { height: 200px; width: 100%; padding: 20px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; background: #fff; }
.mw-card-img img { max-height: 90%; max-width: 90%; object-fit: contain; }
.mw-card-body { padding: 15px; border-top: 1px solid #f0f0f0; flex-grow: 1; display: flex; flex-direction: column; background: #fff; position: relative; z-index: 2; }
.mw-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-height: 24px; }
.mw-tag-chip { font-size: 10px; background: #f0f2f5; padding: 3px 8px; border-radius: 4px; border: 1px solid #e1e4e8; color: #555; text-decoration: none; transition: background 0.2s; }
.mw-tag-chip:hover { background: var(--mw-primary); color: white; border-color: var(--mw-primary); }
.mw-card-title { font-size: 16px; font-weight: 700; margin: 0 0 15px 0; line-height: 1.4; color: #333; text-decoration: none; display: block; }
.mw-card-title:hover { color: var(--mw-primary); }
.mw-card-footer { margin-top: auto; border-top: 1px solid #eee; padding-top: 15px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.mw-btn-shop { background: var(--mw-button); color: white; text-align: center; padding: 6px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; text-decoration: none; display:block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-btn-shop:hover { background: #e66a00; }
.mw-btn-details { background: transparent; color: #777; text-align: center; padding: 5px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; border: 1px solid #ddd; text-decoration: none; display:block; }
.mw-btn-details:hover { border-color: #999; color: #333; background: #f9f9f9; }

/* FAQ Section */
.mw-faq-section { margin-top: 60px; background: #fff; padding: 40px; border-radius: 8px; border: 1px solid #eee; }
.mw-faq-item { border-bottom: 1px solid #eee; }
.mw-faq-question { width: 100%; text-align: left; background: none; border: none; padding: 15px 0; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.mw-faq-answer { display: none; padding-bottom: 20px; color: #555; line-height: 1.6; }
.mw-faq-item.active .mw-faq-answer { display: block; }
.mw-faq-item.active .mw-faq-question { color: var(--mw-primary); }

/* Blog Grid */
.mw-posts-section { margin-top: 60px; }
.mw-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
.mw-post-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: all 0.2s; }
.mw-post-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.mw-post-img-wrap { height: 200px; width: 100%; overflow: hidden; }
.mw-post-img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.3s; }
.mw-post-card:hover .mw-post-img { transform: scale(1.05); }
.mw-post-content { padding: 20px; }
.mw-post-title { margin: 0 0 10px 0; font-size: 18px; font-weight: bold; }
.mw-post-title a { text-decoration: none; color: #333; }
.mw-post-title a:hover { color: var(--mw-primary); }
.mw-post-excerpt { font-size: 14px; color: #666; line-height: 1.5; margin-bottom: 15px; }
.mw-post-link { color: var(--mw-primary); font-weight: 600; text-decoration: none; font-size: 14px; }
.mw-section-title { font-size: 20px; font-weight: 700; border-left: 5px solid var(--mw-button); padding-left: 15px; margin-bottom: 20px; }

/* Slider CSS */
.mw-price-slider { position: relative; height: 20px; margin: 20px 10px 20px -5px; }
.mw-slider-track { position: absolute; height: 6px; background: #ddd; top: 7px; left: 0; right: 0; border-radius: 3px; }
.mw-slider-range { position: absolute; height: 6px; background: var(--mw-primary); top: 7px; border-radius: 3px; }
.mw-slider-handle { position: absolute; width: 20px; height: 20px; background: var(--mw-primary); border: 3px solid #fff; border-radius: 50%; top: 0; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 5; }
.mw-price-inputs { display: flex; justify-content: space-between; margin-top: 15px; }
.mw-price-inputs input { width: 80px; text-align: center; padding: 6px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; }
.mw-btn-filter { width: 100%; padding: 10px; background: var(--mw-primary); color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; margin-top: 10px; }
.mw-btn-filter:hover { background: #225588; }

/* Mobile Global */
@media (max-width: 768px) {
    .mw-hero-grid, .mw-main-grid, .mw-main-split { grid-template-columns: 1fr; }
    .mw-header { padding: 15px 0 !important; }
    .mw-logo-wrapper { width: 100px; justify-content: center; margin: 0 auto 10px; }
    .mw-shop-btn-col { text-align: center; }
    .mw-comparison-table thead { display: none; }
    .mw-comparison-table td { display: block; text-align: center; border-bottom: none; padding: 10px; }
    .mw-comparison-table tr { border-bottom: 2px solid #ddd; padding: 10px 0; display: block; }
    
    .mw-ebay-inner { flex-direction: column; gap: 15px; text-align: center; }
    .mw-ebay-box-wrapper { width: 100%; min-width: 0; }
    button.mw-ebay-trigger { width: 100% !important; justify-content: center; }
    
    .mw-sidebar { position: static; margin-bottom: 30px; }
    .mw-tax-hero { text-align: center; }
}

/* =========================================
   SHORTCODE: VERGLEICHSTABELLE (Design Upgrade)
   ========================================= */

.mw-compare-container {
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Scroll Wrapper (Schatten & Rahmen außen) */
.mw-compare-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--mw-border-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Stärkerer Schatten */
    background: #fff;
}

/* Tabelle Basis */
.mw-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Bleibt wichtig für Mobile Scroll */
    background: #fff;
    table-layout: fixed; /* DAS IST NEU: Erzwingt gleich breite Spalten */
}

.mw-compare-header {
    background: var(--mw-primary); /* Dunkelblau */
    border-bottom: none;
}

.mw-compare-th.mw-label-col,
.mw-compare-td.mw-label-col {
    text-align: left;
    width: 140px; /* Feste Breite für die Beschriftung */
    min-width: 140px; /* Verhindert das Zusammenquetschen */
    background: #fafafa;
    color: #fff;
    font-weight: 700;
    vertical-align: top;
    border-right: 1px solid #eee;
    box-sizing: border-box;
}

/* Header spezifisch (Hintergrund abdunkeln wie zuvor) */
.mw-compare-th.mw-label-col {
    background: rgba(0,0,0,0.05);
}
    
/* Produkt-Spalten allgemein */
.mw-compare-th,
.mw-compare-td {
    overflow-wrap: break-word; /* Verhindert Layout-Sprengung bei langen Wörtern */
    word-wrap: break-word;
}
    
/* Produkt-Links im Header (Weiß) */
.mw-compare-table .mw-compare-th a {
    color: #fff !important; 
    text-decoration: none;
    font-size: 16px;
    display: block;
}
.mw-compare-table .mw-compare-th a:hover {
    color: var(--mw-tertiary) !important; /* Hellblau bei Hover */
}

/* Erste Spalte (Labels) Header */
.mw-compare-th.mw-label-col {
    text-align: left;
    width: 150px;
    background: rgba(0,0,0,0.05); /* Leicht abgedunkelt */
}

/* --- ZELLEN & INHALT --- */
.mw-compare-td {
    padding: 20px;
    border-left: 1px solid var(--mw-bg-light);
    color: var(--mw-text);
    vertical-align: top; /* Alles oben ausrichten */
}
.mw-compare-td:first-child { border-left: none; }

/* Label Spalte (Links) */
.mw-compare-td.mw-label-col {
    background: #fafafa;
    border-right: 1px solid #eee;
    font-weight: 700;
    color: #555;
    vertical-align: top;
}

/* Hintergrund Alternierend für Zeilen */
.mw-bg-alt { background: #fcfcfc; }

/* Bilder */
.mw-compare-img {
    height: 140px; /* Etwas größer */
    width: auto;
    object-fit: contain;
    display: block;
    margin: 10px auto;
    transition: transform 0.2s;
}
.mw-compare-img:hover { transform: scale(1.05); }

/* --- FAKTEN & TAGS --- */
.mw-facts-cell { font-size: 14px; line-height: 1.6; }

.mw-hardfact-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
    display: block;
    margin-top: 12px;
    margin-bottom: 2px;
    font-weight: 700;
    letter-spacing: 1px;
}
.mw-hardfact-value {
    font-weight: 600;
    color: #333;
}

/* Highlight Box */
.mw-compare-highlight {
    font-style: italic;
    color: #444;
    background: #fff;
    padding: 10px;
    border-left: 3px solid var(--mw-button); /* Orange */
    display: block;
    margin-top: 15px;
    font-size: 0.9em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 0 4px 4px 0;
}

/* Tags */
.mw-compare-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center; /* Zentriert unter Fakten */
}
.mw-compare-tags .mw-tag-chip {
    font-size: 11px;
    background: #f0f2f5;
    border: 1px solid #e1e4e8;
    color: #555;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}
.mw-compare-tags .mw-tag-chip:hover {
    background: var(--mw-secondary);
    color: #fff;
    border-color: var(--mw-secondary);
}

/* --- PREISE & SHOPS --- */
.mw-compare-price-box {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}
.mw-price-prefix { font-size: 12px; color: #888; margin-right: 4px; }

.mw-compare-main-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--mw-link); /* Grün */
}

/* Shop Liste Container */
.mw-compare-shop-list {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden; /* Damit Border-Radius wirkt */
}

/* Einzelner Shop Eintrag (Container) */
.mw-shop-list-item {
    display: flex;             /* NEU: Flexbox für vertikale Zentrierung */
    flex-direction: column;    /* Elemente untereinander */
    justify-content: center;   /* Inhalt vertikal mittig ausrichten */
    align-items: center;       /* Horizontal zentrieren */
    padding: 5px;              /* Etwas weniger Padding, da Box größer wird */
    height: 70px;              /* UPDATE: Erhöht von 55px auf 70px */
    box-sizing: border-box;    /* Wichtig: Padding ist in den 70px enthalten */
    width: 100%;
}

.mw-shop-list-item.mw-border-bottom {
    border-bottom: 1px solid #eee;
    margin-bottom: 0; 
}

/* Zeile 1: Bild */
.mw-shop-row-logo {
    margin-bottom: 4px;
    height: 25px; /* Feste Höhe für Logo-Bereich */
    display: flex;
    align-items: center;
    justify-content: center;
}
.mw-shop-list-img {
    max-height: 22px;
    max-width: 90px;
    object-fit: contain;
}

/* Zeile 2: Details */
.mw-shop-row-details {
    font-size: 12px;
    line-height: 1.2;
    color: #555;
    text-align: center; /* WICHTIG: Erzwingt die Zentrierung des Textes */
    width: 100%;        /* Stellt sicher, dass die volle Breite genutzt wird */
}
.mw-shop-link {
    color: var(--mw-primary); /* Dein Blau */
    text-decoration: none;
}
.mw-shop-link:hover {
    text-decoration: underline;
}
.mw-shop-price {
    color: #333;
    font-weight: 700;
    display: block;      /* NEU: Damit der Preis sauber in eine neue Zeile rutscht (falls gewünscht) oder zentriert bleibt */
    margin-top: 2px;     /* Kleiner Abstand zum Link */
}
.mw-shop-separator {
    display: none; /* Falls du den Bindestrich im PHP noch drin hast, wird er hiermit ausgeblendet */
}

/* Platzhalter für leere Slots */
.mw-spacer { display: block; height: 100%; width: 100%; }

/* Buttons */
.mw-compare-btn-wrap { text-align: center; margin-top: auto; }
.mw-compare-btn {
    width: 100%;
    display: block;
    background: var(--mw-button);
    color: #fff !important;
    padding: 12px 0;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.mw-compare-btn:hover {
    background: #e66a00; /* Darker Orange */
    transform: translateY(-1px);
}

/* Disclaimer */
.mw-compare-disclaimer {
    font-size: 9px;
    color: #aaa;
    margin-top: 15px;
    line-height: 1.3;
    text-align: center;
}
