.c4mulo5-compare-table { padding: 60px 0; }

.c4mulo5-compare-table::before,
.c4mulo5-compare-table::after,
.c4m5-compare-wrap::before,
.c4m5-compare-wrap::after,
.c4m5-compare-table::before,
.c4m5-compare-table::after {
    display: none !important;
    content: none !important;
}

.c4mulo5-compare-table .c4m5-compare-headline {
    margin: 0 0 8px;
    color: #1d2327;
    font-weight: 700;
}
.c4mulo5-compare-table .c4m5-compare-subheadline {
    margin: 0 0 32px;
    color: #6b7280;
}

.c4m5-compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.c4m5-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    table-layout: fixed;
}

.c4m5-compare-table th,
.c4m5-compare-table td {
    padding: 16px;
    text-align: center;
    vertical-align: middle;
    border: none;
}

/* Erste Spalte: Zeilen-Labels */
.c4m5-compare-table th.c4m5-compare-label {
    text-align: left;
    background: #f5f7fa;
    font-weight: 600;
    color: #50575e;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: 18%;
    min-width: 140px;
}

/* Produktspalten */
.c4m5-compare-table td.c4m5-compare-cell {
    background: #ffffff;
    border-left: 1px solid #e5ebf0;
    transition: background 0.2s ease;
}
.c4m5-compare-table td.c4m5-compare-cell:hover {
    background: #fafbfc;
}

/* Highlight Best */
.c4m5-compare-table td.c4m5-compare-cell--highlight {
    background: #fef9ed !important;
    position: relative;
}
.c4m5-compare-table td.c4m5-compare-cell--highlight::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: 0;
    border: 2px solid #c8a84b;
    border-radius: 0;
    pointer-events: none;
    z-index: 1;
}
.c4m5-compare-table tr:first-child td.c4m5-compare-cell--highlight::before {
    content: "✓ Empfohlen" !important;
    display: inline-block !important;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #c8a84b;
    color: #1d2327;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    white-space: nowrap;
}

/* Zeilen-spezifische Styles */
.c4m5-compare-row-image td.c4m5-compare-cell { padding-top: 26px; }
.c4m5-compare-row-image img {
    max-width: 140px;
    max-height: 140px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.c4m5-compare-row-name td.c4m5-compare-cell {
    font-weight: 700;
    font-size: 1rem;
    color: #1d2327;
    padding-top: 8px;
    padding-bottom: 8px;
}
.c4m5-compare-row-name a {
    color: inherit;
    text-decoration: none !important;
}
.c4m5-compare-row-name a:hover {
    color: #1a5490;
}

.c4m5-compare-row-price td.c4m5-compare-cell {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a5490;
}
.c4m5-compare-row-price del {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 400;
    margin-right: 6px;
}
.c4m5-compare-row-price ins {
    text-decoration: none;
    color: #dc2626;
}

.c4m5-compare-row-rating .c4m5-compare-stars {
    --rating: 0%;
    display: inline-block;
    width: 90px;
    height: 16px;
    background-image: linear-gradient(to right, #f59e0b 0, #f59e0b var(--rating), #e5ebf0 var(--rating), #e5ebf0 100%);
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 18"><path d="M9 0l2.78 5.61L18 6.48l-4.5 4.3L14.56 17 9 13.97 3.44 17l1.06-6.22L0 6.48l6.22-.87zm18 0l2.78 5.61L36 6.48l-4.5 4.3L32.56 17 27 13.97 21.44 17l1.06-6.22L18 6.48l6.22-.87zm18 0l2.78 5.61L54 6.48l-4.5 4.3L50.56 17 45 13.97 39.44 17l1.06-6.22L36 6.48l6.22-.87zm18 0l2.78 5.61L72 6.48l-4.5 4.3L68.56 17 63 13.97 57.44 17l1.06-6.22L54 6.48l6.22-.87zm18 0l2.78 5.61L90 6.48l-4.5 4.3L86.56 17 81 13.97 75.44 17l1.06-6.22L72 6.48l6.22-.87z" fill="black"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 18"><path d="M9 0l2.78 5.61L18 6.48l-4.5 4.3L14.56 17 9 13.97 3.44 17l1.06-6.22L0 6.48l6.22-.87zm18 0l2.78 5.61L36 6.48l-4.5 4.3L32.56 17 27 13.97 21.44 17l1.06-6.22L18 6.48l6.22-.87zm18 0l2.78 5.61L54 6.48l-4.5 4.3L50.56 17 45 13.97 39.44 17l1.06-6.22L36 6.48l6.22-.87zm18 0l2.78 5.61L72 6.48l-4.5 4.3L68.56 17 63 13.97 57.44 17l1.06-6.22L54 6.48l6.22-.87zm18 0l2.78 5.61L90 6.48l-4.5 4.3L86.56 17 81 13.97 75.44 17l1.06-6.22L72 6.48l6.22-.87z" fill="black"/></svg>');
}
.c4m5-compare-row-rating .c4m5-compare-rating-count {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-left: 6px;
}

.c4m5-compare-row-stock .c4m5-compare-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.c4m5-compare-row-stock .c4m5-compare-stock--in {
    background: #e7f7ed;
    color: #0f766e;
}
.c4m5-compare-row-stock .c4m5-compare-stock--out {
    background: #fef2f2;
    color: #dc2626;
}
.c4m5-compare-row-stock .c4m5-compare-stock--back {
    background: #fef3c7;
    color: #b45309;
}

.c4m5-compare-row-shortdesc td.c4m5-compare-cell {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    text-align: left;
}

.c4m5-compare-row-cta {
    background: #f5f7fa;
}
.c4m5-compare-row-cta td.c4m5-compare-cell {
    background: #f5f7fa;
}
.c4m5-compare-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #c8a84b;
    color: #1d2327;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
}
.c4m5-compare-cta-btn:hover {
    background: #1a5490;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Empty / Loading */
.c4m5-compare-empty,
.c4m5-compare-loading {
    text-align: center;
    padding: 40px 20px;
    background: #f5f7fa;
    border: 1px dashed #c8a84b;
    border-radius: 8px;
    color: #50575e;
}
.c4m5-compare-loading::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px;
    height: 20px;
    border: 3px solid #e5ebf0;
    border-top-color: #c8a84b;
    border-radius: 50%;
    animation: c4m5-compare-spin 0.7s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}
@keyframes c4m5-compare-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .c4m5-compare-table th,
    .c4m5-compare-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    .c4m5-compare-row-image img {
        max-width: 80px;
        max-height: 80px;
    }
    .c4m5-compare-cta-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}
