/* =============================================
   Modelle Block — taubenloft/modelle
   Pixel-perfect from Figma node 81:7538 (desktop 1920) + 81:7634 (mobile 440)
   ─────────────────────────────────────────────
   Section bg:   #EAEBE6
   Padding:      96px vertical (mobile 48)
   Header→cards: 96px gap (mobile 32)
   Header:       eyebrow (dot 20 + 16/21.824 w500 UPPER #333A42) + heading
                 36/50.4 w500 #333A42, gap 32, centered + 0.5px #333A42 rule
   Cards:        row gap 24, two cards ~464 wide, 0.5px #333A42 border
                 Hover: 2px #333A42 border + filled dark button
   Card media:   4:3 image, radius 4
   Tag:          14/19.096 w500 UPPER #809595
   Title:        36/50.4 w500 #002244 (mobile 24/28.8 w600 SemiBold)
   Text:         16/24 w400 #002244
   Divider:      0.5px #333A42, 12px vertical padding
   Features:     gap 16, 20px circle (1px #333A42) + check + 16/24 #002244
   Button:       pad 10/20, radius 50, gap 10, 16/24 w400
   ============================================= */

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

.tl-modelle {
    background: #eaebe6;
    color: #333a42;
    font-family: 'Nunito Sans', 'Nunito Sans Fallback', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    padding: 96px 24px;
}

.tl-modelle__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 96px;                         /* Figma: titles → cards itemSpacing 96 */
}

/* ── Header ─────────────────────────────────── */
.tl-modelle__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;           /* Figma: header left-aligned in the 1200 content (not centered) */
    gap: 32px;                         /* Figma title itemSpacing 32 */
    text-align: left;
    width: 100%;
}

.tl-modelle__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;                         /* Figma eyebrow itemSpacing 12 */
}
.tl-modelle__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #333a42;
    flex: 0 0 auto;
}
.tl-modelle__eyebrow-text {
    font-size: 16px;
    line-height: 21.824px;             /* Figma lineHeightPx */
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #333a42;
}

.tl-modelle__heading {
    margin: 0;
    font-weight: 500;
    font-size: 36px;
    line-height: 50.4px;               /* Figma lineHeightPx 50.4 */
    letter-spacing: 0;
    color: #333a42;
    max-width: 1200px;
}

/* Divider rule under header (Figma Line 11, stroke #333A42 0.5px) */
.tl-modelle__rule {
    display: block;
    width: 100%;
    height: 0;
    border: 0;
    border-top: 0.5px solid #333a42;
    margin-top: -64px;                 /* container gap is 96; pull rule up to sit ~64 below header */
}

/* ── Cards row ──────────────────────────────── */
.tl-modelle__cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;                         /* Figma modelle_cards itemSpacing 24 */
    width: 100%;
}

.tl-modelle__card {
    flex: 1 1 0;
    max-width: 464px;                  /* Figma card width 464 */
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 24px;                     /* Figma default-card padding */
    border: 0.5px solid #333a42;
    border-radius: 2px;
    background: #eaebe6;
}

/* ── Media ──────────────────────────────────── */
.tl-modelle__media {
    width: 100%;
    margin-bottom: 16px;               /* card_text vertical padding/gap rhythm */
}
.tl-modelle__photo {
    width: 100%;
    aspect-ratio: 4 / 3;               /* Figma image 400×300 */
    object-fit: cover;
    border-radius: 4px;                /* Figma image cornerRadius 4 */
}

/* ── Body ───────────────────────────────────── */
.tl-modelle__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;                         /* Figma inner column itemSpacing 12 */
    padding: 16px 0;                   /* Figma card_text paddingTop/Bottom 16 */
    width: 100%;
}

.tl-modelle__tag {
    font-size: 14px;
    line-height: 19.096px;             /* Figma lineHeightPx 19.096 */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #809595;
}

.tl-modelle__title {
    margin: 0;
    font-weight: 500;
    font-size: 36px;
    line-height: 50.4px;               /* Figma desktop title 36/50.4 */
    letter-spacing: 0;
    color: #002244;
}

.tl-modelle__text {
    margin: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;                 /* Figma 16/24 */
    letter-spacing: 0;
    color: #002244;
}

/* Inner divider (Figma Line 67, 0.5px #333A42, 12px vertical padding) */
.tl-modelle__divider {
    display: block;
    width: 100%;
    height: 0;
    border-top: 0.5px solid #333a42;
    margin: 12px 0;                    /* Figma Frame17690 paddingTop/Bottom 12 */
}

/* ── Features checklist ─────────────────────── */
.tl-modelle__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;                         /* Figma checklist itemSpacing 16 */
    width: 100%;
}
.tl-modelle__feature {
    display: flex;
    align-items: center;
    gap: 10px;                         /* Figma item itemSpacing 10 */
    text-align: left;
}
.tl-modelle__check {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #333a42;         /* Figma Ellipse 6 stroke 1 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333a42;                    /* checkmark stroke #333A42 weight 1.6 */
}
.tl-modelle__check svg {
    width: 12px;
    height: 9px;
    display: block;
}
.tl-modelle__feature-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;                 /* Figma 16/24 */
    color: #002244;
}

/* ── Button ─────────────────────────────────── */
.tl-modelle__button {
    margin-top: 16px;                  /* Figma Frame17691 button group itemSpacing 48 minus body gap; visual gap */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;                         /* Figma buttons itemSpacing 10 */
    padding: 10px 20px;                /* Figma buttons padding 10/20 */
    border-radius: 50px;               /* Figma cornerRadius 50 */
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;                 /* Figma 16/24 */
    text-decoration: none;
    box-sizing: border-box;
    background: transparent;
    color: #333a42;
    border: 1px solid #333a42;
    transition: background 0.2s ease, color 0.2s ease;
}
.tl-modelle__button-text { display: inline; }
.tl-modelle__arrow {
    flex: 0 0 auto;
    width: 24px;                         /* horizontal → (Kaufmodell): Figma glyph 14 */
    height: 24px;
    transition: transform 0.25s ease-out;
}
/* Hover — filled dark, light text and a horizontal arrow. */
.tl-modelle__button:hover,
.tl-modelle__button:focus-visible {
    background: #333a42;
    color: #eaebe6;
}
.tl-modelle__button:hover .tl-modelle__arrow,
.tl-modelle__button:focus-visible .tl-modelle__arrow {
    transform: rotate(-45deg) translate(2px, 2px);
}

/* ── Laptop ≤1440 ─────────────────────────────────── */
@media (max-width: 1440px) {
    .tl-modelle__container { gap: 72px; }
    .tl-modelle__rule { margin-top: -48px; }
}

/* ── Tablet ≤1024 ─────────────────────────────────── */
@media (max-width: 1024px) {
    .tl-modelle { padding: 72px 32px; }
    .tl-modelle__container { gap: 56px; }
    .tl-modelle__rule { margin-top: -36px; }
    .tl-modelle__heading { font-size: 30px; line-height: 1.3; }
    .tl-modelle__title { font-size: 30px; line-height: 1.25; }
}

/* ── Mobile ≤767 — Figma node 81:7634 (440 wide) ─────
   Section padding 48/16; header→cards gap 32 (Frame17699);
   cards stack vertically gap 24; heading 24/28.8 w500;
   card title 24/28.8 w600 (SemiBold) — DIFFERENT from desktop 36/500;
   card padding 24/16.
*/
@media (max-width: 767px) {
    .tl-modelle { padding: 48px 16px; }
    .tl-modelle__container { gap: 32px; }

    .tl-modelle__header { gap: 32px; }
    .tl-modelle__heading {
        font-size: 24px;
        line-height: 28.8px;           /* Figma mobile heading 24/28.8 w500 */
        font-weight: 500;
    }
    .tl-modelle__rule { margin-top: 0; }   /* reset desktop negative pull */

    .tl-modelle__cards {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 24px;                     /* Figma mobile cards gap 24 */
    }
    .tl-modelle__card {
        flex: 1 1 auto;
        max-width: 100%;               /* reset desktop 464 cap */
        width: 100%;
        padding: 24px 16px;            /* Figma mobile card padding 24/16 */
    }

    .tl-modelle__title {
        font-size: 24px;
        line-height: 28.8px;           /* Figma mobile card title 24/28.8 */
        font-weight: 600;              /* Figma mobile SemiBold — RESET from desktop 500 */
    }
    .tl-modelle__button {
        width: 100%;                   /* Figma mobile button full width 376/360 */
    }
}

/* ── Narrow mobile ≤480 — keep button text from bleeding ── */
@media (max-width: 480px) {
    .tl-modelle__card { padding: 20px 16px; }
    .tl-modelle__feature-text { font-size: 15px; line-height: 22px; }
    .tl-modelle__button {
        font-size: 15px;
        line-height: 22px;
        padding: 10px 16px;
    }
}
