/* ==========================================================
   LFS Feature Compare Section
   Datei: lfs-feature-compare-section.css
   ========================================================== */

:root {
    --lfs-feature-bg: #ffffff;
    --lfs-feature-surface: #f7f9fc;
    --lfs-feature-surface-alt: #f1f5f9;
    --lfs-feature-text: #111827;
    --lfs-feature-muted: #526176;
    --lfs-feature-border: #dfe7f1;
    --lfs-feature-primary: #0ea5e9;
    --lfs-feature-primary-soft: #eaf7ff;

    --lfs-feature-yes-bg: #dff9e8;
    --lfs-feature-yes-text: #176b37;
    --lfs-feature-yes-border: #86efac;

    --lfs-feature-no-bg: #ffe4e0;
    --lfs-feature-no-text: #b42318;
    --lfs-feature-no-border: #fca5a5;

    --lfs-feature-radius: 16px;
    --lfs-feature-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
}


/* ==========================================================
   Section
   ========================================================== */

.lfs--feature-compare-section {
    margin: 32px 0;
    color: var(--lfs-feature-text);
}

.lfs--feature-compare-section__inner {
    overflow: hidden;
    background: var(--lfs-feature-bg);
    border: 1px solid var(--lfs-feature-border);
    border-radius: var(--lfs-feature-radius);
    box-shadow: var(--lfs-feature-shadow);
}


/* ==========================================================
   Header
   ========================================================== */

.lfs--feature-compare-section__header {
    position: relative;
    overflow: hidden;
    padding: 26px 30px;
    background:
        radial-gradient(circle at 0 0, rgba(14, 165, 233, 0.16), transparent 30%),
        linear-gradient(135deg, #f4fbff 0%, #ffffff 55%, #f8fafc 100%);
    border-bottom: 1px solid var(--lfs-feature-border);
}

.lfs--feature-compare-section__header::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -120px;
    width: 260px;
    height: 260px;
    background: rgba(15, 23, 42, 0.035);
    border-radius: 999px;
    pointer-events: none;
}

.lfs--feature-compare-section__eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 5px 10px;
    color: var(--lfs-feature-primary);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(14, 165, 233, 0.12);
    border-radius: 999px;
}

.lfs--feature-compare-section__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.lfs--feature-compare-section__title {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--lfs-feature-text);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.lfs--feature-compare-section__intro {
    position: relative;
    z-index: 1;
    max-width: 1050px;
    margin: 12px 0 0;
    color: var(--lfs-feature-muted);
    font-size: 15px;
    line-height: 1.65;
}


/* ==========================================================
   Toolbar / Search
   ========================================================== */

.lfs--feature-compare-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 22px 24px 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--lfs-feature-border);
}

.lfs--feature-compare-search {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    width: 100%;
    max-width: 460px;
    height: 46px;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d7e2ee;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lfs--feature-compare-search:hover {
    border-color: #bfd0e3;
}

.lfs--feature-compare-search:focus-within {
    border-color: var(--lfs-feature-primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.lfs--feature-compare-search__icon {
    position: relative;
    flex: 0 0 48px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 44px;
    background: #eaf7ff;
    border-right: 1px solid #d7e2ee;
}

.lfs--feature-compare-search__icon::before {
    content: "";
    width: 15px;
    height: 15px;
    border: 2px solid var(--lfs-feature-primary);
    border-radius: 999px;
    box-sizing: border-box;
}

.lfs--feature-compare-search__icon::after {
    content: "";
    position: absolute;
    left: 29px;
    top: 28px;
    width: 8px;
    height: 2px;
    background: var(--lfs-feature-primary);
    border-radius: 999px;
    transform: rotate(45deg);
}

.lfs--feature-compare-search__input {
    flex: 1 1 auto;
    display: block;
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 16px;
    color: var(--lfs-feature-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 44px;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
}

.lfs--feature-compare-search__input:hover,
.lfs--feature-compare-search__input:focus {
    border: 0;
    box-shadow: none;
}

.lfs--feature-compare-search__input::placeholder {
    color: #8fa0b5;
    font-size: 14px;
    font-weight: 500;
}


/* ==========================================================
   Table Wrapper
   ========================================================== */

.lfs--feature-compare-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: var(--lfs-feature-bg);
}

.lfs--feature-compare-table-wrap::-webkit-scrollbar {
    height: 10px;
}

.lfs--feature-compare-table-wrap::-webkit-scrollbar-track {
    background: #eef2f7;
}

.lfs--feature-compare-table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border: 2px solid #eef2f7;
    border-radius: 999px;
}

.lfs--feature-compare-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* ==========================================================
   Grid Table
   ========================================================== */

.lfs--feature-compare-table {
    display: grid;
    grid-template-columns: minmax(280px, 1.45fr) repeat(var(--lfs-feature-cols), minmax(190px, 1fr));
    min-width: 760px;
    background: var(--lfs-feature-border);
    gap: 1px;
}

.lfs--feature-compare-row {
    display: contents;
}


/* ==========================================================
   Cells
   ========================================================== */

.lfs--feature-compare-cell {
    min-height: 58px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    background: var(--lfs-feature-surface);
    color: #1f2937;
    font-size: 14px;
    line-height: 1.45;
}

.lfs--feature-compare-cell--head {
    min-height: 88px;
    background: #ffffff;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lfs--feature-compare-cell--feature {
    font-weight: 800;
}

.lfs--feature-compare-cell--product,
.lfs--feature-compare-cell--value {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.lfs--feature-compare-row:nth-of-type(even) .lfs--feature-compare-cell {
    background: var(--lfs-feature-surface-alt);
}

.lfs--feature-compare-row:hover .lfs--feature-compare-cell {
    background: var(--lfs-feature-primary-soft);
}


/* ==========================================================
   Product Head
   ========================================================== */

.lfs--feature-compare-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lfs--feature-compare-product__image {
    display: block;
    width: 64px;
    height: 64px;
    padding: 6px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.lfs--feature-compare-product__name {
    display: block;
    color: var(--lfs-feature-text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* ==========================================================
   New JA / NEIN Badges
   ========================================================== */

.lfs--feature-compare-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 76px;
    margin: 0 auto;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.lfs--feature-compare-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor, transparent 78%);
}

.lfs--feature-compare-badge--yes {
    color: var(--lfs-feature-yes-text);
    background: var(--lfs-feature-yes-bg);
    border-color: var(--lfs-feature-yes-border);
}

.lfs--feature-compare-badge--no {
    color: var(--lfs-feature-no-text);
    background: var(--lfs-feature-no-bg);
    border-color: var(--lfs-feature-no-border);
}


/* ==========================================================
   Old Icon Mode
   ========================================================== */

.lfs--feature-compare-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 auto;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.lfs--feature-compare-icon--yes {
    color: var(--lfs-feature-yes-text);
    background: var(--lfs-feature-yes-bg);
    border: 1px solid var(--lfs-feature-yes-border);
}

.lfs--feature-compare-icon--no {
    color: var(--lfs-feature-no-text);
    background: var(--lfs-feature-no-bg);
    border: 1px solid var(--lfs-feature-no-border);
}

.lfs--feature-compare-icon--yes::before {
    content: "✓";
    position: absolute;
    left: 50%;
    top: 50%;
    color: currentColor;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    transform: translate(-50%, -52%);
}

.lfs--feature-compare-icon--no::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transform: translate(-50%, -50%);
}


/* ==========================================================
   Empty Search State
   ========================================================== */

.lfs--feature-compare-empty {
    grid-column: 1 / -1;
    padding: 22px;
    color: var(--lfs-feature-muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    background: #ffffff;
}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 767px) {
    .lfs--feature-compare-section {
        margin: 24px 0;
    }

    .lfs--feature-compare-section__inner {
        border-radius: 14px;
    }

    .lfs--feature-compare-section__header {
        padding: 22px 18px;
    }

    .lfs--feature-compare-section__title {
        font-size: 24px;
    }

    .lfs--feature-compare-section__intro {
        font-size: 14px;
    }

    .lfs--feature-compare-toolbar {
        padding: 16px 14px;
    }

    .lfs--feature-compare-search {
        max-width: none;
        height: 44px;
    }

    .lfs--feature-compare-search__icon {
        flex-basis: 46px;
        width: 46px;
        height: 42px;
    }

    .lfs--feature-compare-search__icon::after {
        left: 28px;
        top: 27px;
    }

    .lfs--feature-compare-search__input {
        height: 42px;
        padding: 0 14px;
        font-size: 13px;
        line-height: 42px;
    }

    .lfs--feature-compare-table {
        grid-template-columns: minmax(220px, 1.35fr) repeat(var(--lfs-feature-cols), minmax(150px, 1fr));
        min-width: 700px;
    }

    .lfs--feature-compare-cell {
        min-height: 52px;
        padding: 13px 14px;
    }

    .lfs--feature-compare-cell--head {
        min-height: 78px;
    }

    .lfs--feature-compare-product__image {
        width: 54px;
        height: 54px;
        padding: 5px;
    }

    .lfs--feature-compare-product__name {
        font-size: 12px;
    }

    .lfs--feature-compare-badge {
        min-width: 68px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .lfs--feature-compare-icon {
        width: 32px;
        height: 32px;
    }

    .lfs--feature-compare-icon--yes::before {
        font-size: 21px;
    }
}


@media (max-width: 480px) {
    .lfs--feature-compare-table {
        grid-template-columns: minmax(200px, 1.35fr) repeat(var(--lfs-feature-cols), minmax(135px, 1fr));
        min-width: 640px;
    }

    .lfs--feature-compare-section__header {
        padding: 20px 16px;
    }

    .lfs--feature-compare-toolbar {
        padding: 14px 12px;
    }
}