/* =============================================
   Comparison Block — taubenloft/comparison
   Pixel-perfect from Figma node 81:7533 (desktop 1920) + 81:7552 (mobile 440)
   ─────────────────────────────────────────────
   Section bg:  #EAEBE6   text: #333A42   font: Nunito Sans
   Title frame: HORIZONTAL space-between, pad 96 / 360 / 64 / 360 (inner 1200)
     eyebrow: dot 20px #333A42 + gap 12 + UPPER 16/21.824 wt500
     heading: 36/50.4 wt500, right-aligned
   Grid:  3 cols × N rows, cell pad 48 / 32, body 16/19.2 wt500
     col Kriterium = center, col Taubenloft = right + #EAEBE6 highlight,
     col Classic   = left.  icon 20×20 stroke #333A42, gap 10.
   Mobile (440): grid stays 3 cols, cell pad 48 / 16, body 14/16.8 wt400,
     Kriterium header 16/19.2 wt500; classic/attention cells stack icon over text.
   ============================================= */

/* Defensive */
.tl-comparison img { max-width: 100%; height: auto; display: block; }
.tl-comparison svg { max-width: 100%; }

.tl-comparison {
    background: #eaebe6;
    color: #333a42;
    font-family: 'Nunito Sans', 'Nunito Sans Fallback', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    padding: 0 24px 96px;            /* Figma: title pad-top 96 lives on head; section bottom 96 */
}

.tl-comparison__container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Title head (legacy) — now the standalone acf/section-header-right block.
   Kept for any page still using an embedded head. ────────────────────── */
.tl-comparison__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;                        /* Figma right-frame itemSpacing 48 */
    padding: 96px 0 64px;             /* Figma paddingTop 96 / paddingBottom 64 */
}
.tl-comparison__eyebrow {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;                        /* Figma eyebrow itemSpacing 12 */
    font-size: 16px;                  /* Figma fontSize */
    line-height: 21.824px;            /* Figma lineHeightPx 21.823999... */
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;        /* Figma textCase UPPER */
    color: #333a42;
    white-space: nowrap;
}
.tl-comparison__dot {
    flex: 0 0 auto;
    width: 20px;                      /* Figma Ellipse 7 20×20 */
    height: 20px;
    border-radius: 50%;
    background: #333a42;              /* Figma fill #333A42 */
}
.tl-comparison__heading {
    margin: 0;
    max-width: 650px;                 /* Figma right text frame width 650 */
    font-size: 36px;                  /* Figma fontSize */
    line-height: 50.4px;              /* Figma lineHeightPx 50.39999... */
    font-weight: 500;
    letter-spacing: 0;
    text-align: right;                /* Figma counterAxisAlignItems MAX */
    color: #333a42;
}

/* ── Table ───────────────────────────────────────────────────────────── */
.tl-comparison__table {
    display: block;
}
.tl-comparison__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;   /* Figma 3 equal cols (repeat(3,1fr)) */
    align-items: stretch;
}
.tl-comparison__row + .tl-comparison__row {
    border-top: 1px solid rgba(51, 58, 66, 0.16);   /* Figma row separator */
}

/* Cell base — Figma cell pad 48 / 32, body text 16/19.2 wt500 */
.tl-comparison__cell {
    display: flex;
    align-items: center;
    gap: 10px;                        /* Figma cell itemSpacing 10 */
    padding: 48px 32px;
    font-size: 16px;
    line-height: 19.2px;              /* Figma lineHeightPx 19.2 */
    font-weight: 500;
    letter-spacing: 0;
    color: #333a42;
    box-sizing: border-box;
}
/* Column alignment — Figma primaryAxisAlignItems per column */
.tl-comparison__cell--kriterium { justify-content: center; text-align: center; }
.tl-comparison__cell--taubenloft {
    justify-content: flex-end;        /* Figma Taubenloft col align MAX (right) */
    text-align: right;
    background: #eaebe6;              /* Figma Taubenloft cells fill #EAEBE6 (highlight) */
}
.tl-comparison__cell--classic {
    justify-content: flex-start;      /* Figma Classic col align start */
    text-align: left;
}

/* Header row — slightly stronger weight read, same metrics */
.tl-comparison__row--head .tl-comparison__cell {
    font-weight: 500;
}

.tl-comparison__icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    display: block;
}
.tl-comparison__value { display: inline; }
.tl-comparison__col-label { display: none; }   /* mobile-only column label (shown < 768) */

/* ── Laptop ≤1440 ────────────────────────────────────────────────────── */
@media (max-width: 1440px) {
    .tl-comparison__cell { padding: 40px 24px; }
}

/* ── ≤1280 ───────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
    .tl-comparison__head { padding: 80px 0 56px; }
    .tl-comparison__heading { font-size: 32px; line-height: 44px; }
    .tl-comparison__cell { padding: 36px 20px; }
}

/* ── Tablet ≤1024 ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .tl-comparison { padding: 0 32px 64px; }
    .tl-comparison__head { padding: 64px 0 48px; gap: 32px; }
    .tl-comparison__heading { font-size: 28px; line-height: 38px; }
    .tl-comparison__cell { padding: 32px 16px; font-size: 15px; line-height: 18px; }
}

/* ── Mobile shared (≤767) — section padding + stacked title ───────────── */
@media (max-width: 767px) {
    .tl-comparison { padding: 20px 16px 48px; }     /* +20px top gap from the block above (mobile) */

    .tl-comparison__head {
        flex-direction: column;                     /* RESET desktop row → column */
        align-items: flex-start;
        justify-content: flex-start;
        gap: 16px;
        padding: 24px 0 24px;
    }
    .tl-comparison__eyebrow { white-space: normal; }
    .tl-comparison__heading {
        max-width: none;                            /* RESET desktop 650 */
        font-size: 24px;
        line-height: 31px;
        text-align: left;                           /* RESET desktop right */
    }
}

/* ── 440–767 — Figma node 81:7552: compact 3-column grid (cells 136 @440) ── */
@media (min-width: 440px) and (max-width: 767px) {
    .tl-comparison__row {
        grid-template-columns: 1fr 1fr 1fr;         /* keep the 3-col table */
        align-items: stretch;
    }
    .tl-comparison__col-label { display: none; }    /* header row carries the column labels */

    .tl-comparison__cell {
        flex-wrap: wrap;                            /* long values wrap under the icon (Figma VERTICAL fallback) */
        gap: 6px;
        padding: 28px 8px;
        font-size: 14px;
        line-height: 16.8px;                        /* Figma mobile lineHeightPx 16.8 */
        font-weight: 400;
    }
    .tl-comparison__cell--kriterium {
        font-size: 16px;
        line-height: 19.2px;
        font-weight: 500;
        justify-content: center;
        text-align: center;
    }
    .tl-comparison__cell--taubenloft {
        justify-content: flex-end;                  /* Figma Taubenloft align MAX (right) */
        text-align: right;
    }
    .tl-comparison__cell--classic {
        justify-content: flex-start;                /* Figma Classic align start (left) */
        text-align: left;
    }
    .tl-comparison__icon { width: 20px; height: 20px; }
    .tl-comparison__row--head .tl-comparison__cell { font-size: 14px; font-weight: 500; }
}

/* ── < 440 — stacked one-card-per-criterion (3 cols too tight below 440) ── */
@media (max-width: 439px) {
    .tl-comparison__row.tl-comparison__row--head { display: none; }   /* labels move into each card */

    .tl-comparison__row {
        display: flex;                              /* RESET desktop grid */
        grid-template-columns: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 20px 0;
    }
    .tl-comparison__row + .tl-comparison__row {
        border-top: 1px solid rgba(51, 58, 66, 0.16);
    }
    .tl-comparison__cell {
        padding: 0;
        font-size: 16px;
        line-height: 1.35;
        font-weight: 400;
        text-align: left;
        justify-content: flex-start;
    }
    .tl-comparison__cell--kriterium {
        order: -1;
        font-size: 17px;
        line-height: 1.3;
        font-weight: 600;
        color: #333a42;
        text-align: left;
        margin-bottom: 4px;
    }
    .tl-comparison__cell--taubenloft,
    .tl-comparison__cell--classic {
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        gap: 4px 8px;
        padding: 11px 14px;
        border-radius: 8px;
        text-align: left;
    }
    .tl-comparison__cell--taubenloft { background: rgba(51, 58, 66, 0.06); }
    .tl-comparison__cell--classic { background: transparent; }
    .tl-comparison__col-label {
        display: block;
        flex: 1 0 100%;
        order: 0;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #809595;
    }
    .tl-comparison__cell .tl-comparison__icon { order: 1; }
    .tl-comparison__value { order: 2; font-weight: 500; color: #333a42; }
}
