/*
 * HOME FRONTEND V2 (master cleanup): styles for every NEW Home section this ticket adds - .home-categories-* (Was sucht ihr?),
 * .home-feature-card* (Today + Luca Match teaser pair), .home-highlights-* (the mixed real-listing grid) and .home-provider-cta*.
 * Loaded once, in home_1.blade.php's own @push('styles') - not repeated per partial, since several of these partials render on
 * every request. Age section, header, footer, hero and search are untouched by this file (their own stylesheets -
 * style.css/home-hero.css - are not touched here either, except a small dead-code removal noted in the commit that introduces
 * this file).
 *
 * HOME CLEANUP: .home-regions-* (Beliebte Familien-Regionen) is removed - regions already surface via the footer/GEO landings,
 * making this Home section redundant. Not kept alongside anything else - the section, its partial (home_regions.blade.php) and
 * every rule below are all removed together, in the same commit.
 *
 * Brand tokens match the already-established palette (home-hero.css/age_groups.blade.php's own <style>) - declared locally so this
 * file has zero load-order dependency on any other stylesheet.
 *
 * HOME V2 VISUAL POLISH: .home-categories-grid is now Home's own fixed mini-card grid (was a flex-wrap pill row); .home-feature-card*
 * got a visual weight upgrade (bigger orb/type scale, tinted accent background) so Today/Luca Match read as star features, not
 * discreet rows; .home-highlights-grid is now Home's own fixed 3-column grid (was .luca-geo-grid's `auto-fit` grid, reused verbatim
 * from luca-public-listing.css - see home_highlights.blade.php's own comment for why that produced 4 columns, not 3, in Home's
 * wider container). The retired .home-category-pill* rules this replaces are removed below, not kept alongside the new ones.
 *
 * FINAL SQUARE 3D CATEGORY CARD SYSTEM: .home-category-card is now a square, two-zone card (.home-category-card__visual - the 3D
 * object asset from App\Services\Home\HomeCategoryIconMap, one real .webp per canonical category, exact-slug mapped - stacked
 * above .home-category-card__content, the real HTML category name) on a white/cream base with only a very subtle per-accent
 * gradient tint, so the 3D object itself carries the visual weight, not the card background. Supersedes, not layers alongside, an
 * earlier icon-on-solid-tile version and, before that, an inline-<svg>-on-solid-tile version.
 *
 * FIX 3D ICON SCALE: .home-category-card__visual img's width is fluid (a % of the visual zone) with a per-breakpoint px ceiling,
 * not the flat 72x72px it briefly shipped as once the 30 real assets landed - that made the object read as a lost miniature
 * instead of the card's own visual protagonist.
 *
 * HOME V2 - "MEHR MIT LUCA" MARKETPLACE PRODUCT BLOCK: .home-more-luca-* is a new section, force-included after Provider CTA and
 * before the footer - 3 premium product-feature cards (Party Planner / Schlechtwetter-Modus / Last Minute), CSS-only hover lift,
 * no carousel/JS/animation library. Reuses the existing isax icon font + the same "clay" gradient-orb treatment already
 * established by .home-feature-card__orb, rather than new image assets. See home_more_with_luca.blade.php's own comment for the
 * route audit behind each card - two CTAs link to real, already-shipped destinations; the third (Last Minute, which has no
 * shipped route anywhere in the app) is a real, native disabled <button>, not a fake link.
 */
.home-categories-section,
.home-feature-cards-section,
.home-highlights-section,
.home-provider-cta,
.home-more-luca-section {
    --home-green: #6eaa89;
    --home-coral: #e8665d;
    --home-coral-dark: #d5544b;
    --home-yellow: #f2bd48;
    --home-turquoise: #9fdfd7;
    --home-blue: #5e7da2;
    --home-ink: #302d2a;
    --home-font-heading: "Exo 2", "Asap", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --home-font-body: "Asap", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==================== shared section heading (Categories/Highlights) ==================== */

.home-categories-header,
.home-highlights-header,
.home-more-luca-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 28px;
}

.home-categories-title,
.home-highlights-title,
.home-more-luca-title {
    font-family: var(--home-font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--home-ink);
    margin-bottom: 8px;
}

.home-categories-subtitle,
.home-highlights-subtitle,
.home-more-luca-subtitle {
    font-family: var(--home-font-body);
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* ==================== Was sucht ihr? (categories) ==================== */

.home-categories-section {
    padding: 44px 0;
}

.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* FINAL SQUARE 3D CATEGORY CARD SYSTEM: a square, two-zone card - .home-category-card__visual (the 3D object, ~60-70% of the
   card's height) above .home-category-card__content (the real category name, always real HTML - see home_categories.blade.php's
   own comment for why the label is never baked into the image). White/cream base with only a very subtle per-accent gradient
   tint behind the visual zone - the 3D object itself is meant to carry most of the color, not the card background. */
.home-category-card {
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.05);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(17, 24, 39, 0.12);
    text-decoration: none;
}

.home-category-card__visual {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px 0;
}

/* FIX 3D ICON SCALE: the object was capped at a flat 72x72px regardless of the (much bigger) card - the 3D asset read as a lost
   miniature instead of the card's visual protagonist. width is now fluid (a % of the visual zone, itself already flex-sized
   relative to the square card) with an absolute px ceiling per breakpoint, height:auto so a genuinely square source asset scales
   uniformly, max-height as a redundant safety net against a non-square source. Desktop lands at the formula's own 140px ceiling
   (card width far exceeds 72%'s point of dominance there); tablet/mobile override just the ceiling below, since 72% of THEIR
   narrower card widths would otherwise still hit the desktop ceiling unchanged. */
.home-category-card__visual img {
    width: 112px;
    height: 112px;
    max-width: 72%;
    max-height: 78%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.home-category-card:hover .home-category-card__visual img {
    transform: scale(1.03);
}

/* Asset-pending / load-failure state (see home_categories.blade.php's own onerror handler): hide the broken-image icon, keep the
   rest of the card (tint, label, link) reading cleanly - never a visibly broken image. */
.home-category-card__visual--missing img {
    display: none;
}

.home-category-card__content {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px 16px;
    text-align: center;
}

.home-category-card__label {
    font-family: var(--home-font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--home-ink);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-category-card--green { background: linear-gradient(180deg, rgba(110, 170, 137, 0.10), #ffffff 60%); }
.home-category-card--coral { background: linear-gradient(180deg, rgba(232, 102, 93, 0.10), #ffffff 60%); }
.home-category-card--yellow { background: linear-gradient(180deg, rgba(242, 189, 72, 0.14), #ffffff 60%); }
.home-category-card--turquoise { background: linear-gradient(180deg, rgba(159, 223, 215, 0.16), #ffffff 60%); }

.home-category-card--green:hover { box-shadow: 0 14px 26px rgba(110, 170, 137, 0.22); }
.home-category-card--coral:hover { box-shadow: 0 14px 26px rgba(232, 102, 93, 0.22); }
.home-category-card--yellow:hover { box-shadow: 0 14px 26px rgba(242, 189, 72, 0.24); }
.home-category-card--turquoise:hover { box-shadow: 0 14px 26px rgba(159, 223, 215, 0.28); }

@media (max-width: 991.98px) {
    .home-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Tablet's 2-column card is wide enough that 72% would still hit the desktop 140px ceiling unchanged - lower the ceiling
       itself so the object lands ~100-120px here instead of reading as desktop-sized again. */
    .home-category-card__visual img {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 575.98px) {
    .home-categories-grid {
        grid-auto-flow: column;
        grid-auto-columns: 132px;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 6px;
        margin: 0 -4px;
        padding-left: 4px;
        padding-right: 4px;
    }

    /* The horizontal-scroll card is a fixed 132px, so 72% (~95px) would sit slightly above this ticket's own 72-90px mobile
       target - both the percentage and the ceiling are lowered together to land in range without shrinking the card itself. */
    .home-category-card__visual img {
        width: 76px;
        height: 76px;
    }
}

/* ==================== Today + Luca Match feature cards ==================== */

.home-feature-cards-section {
    padding: 24px 0 48px;
}

.home-feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home-feature-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 30px;
    border-radius: 24px;
    border: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 148px;
}

.home-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.1);
    text-decoration: none;
}

.home-feature-card--today {
    background: linear-gradient(155deg, rgba(242, 189, 72, 0.12), rgba(159, 223, 215, 0.12) 100%), #ffffff;
}

.home-feature-card--luca-match {
    background: linear-gradient(155deg, rgba(232, 102, 93, 0.12), rgba(159, 223, 215, 0.12) 100%), #ffffff;
}

.home-feature-card__orb {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 28px;
    color: #ffffff;
}

.home-feature-card--today .home-feature-card__orb {
    background: linear-gradient(145deg, #f6cd76, var(--home-yellow));
    box-shadow: inset -6px -8px 14px rgba(178, 128, 20, 0.25), 0 10px 20px -10px rgba(242, 189, 72, 0.6);
}

.home-feature-card--luca-match .home-feature-card__orb {
    background: linear-gradient(145deg, #f2938c, var(--home-coral));
    box-shadow: inset -6px -8px 14px rgba(197, 73, 64, 0.25), 0 10px 20px -10px rgba(232, 102, 93, 0.6);
}

.home-feature-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.home-feature-card__eyebrow {
    display: block;
    font-family: var(--home-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--home-coral);
    margin-bottom: 2px;
}

.home-feature-card__title {
    font-family: var(--home-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--home-ink);
    margin: 0 0 6px;
}

.home-feature-card__copy {
    font-family: var(--home-font-body);
    font-size: 14px;
    color: #57534e;
    margin: 0;
}

.home-feature-card__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--home-font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--home-ink);
    white-space: nowrap;
}

.home-feature-card--today .home-feature-card__cta { color: #a06e15; }
.home-feature-card--luca-match .home-feature-card__cta { color: var(--home-coral-dark); }

@media (max-width: 767.98px) {
    .home-feature-cards-grid {
        grid-template-columns: 1fr;
    }

    .home-feature-card {
        flex-wrap: wrap;
    }

    .home-feature-card__cta {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ==================== Highlights für Familien ==================== */

.home-highlights-section {
    padding: 44px 0;
    background: rgba(159, 223, 215, 0.06);
}

/* HOME V2 VISUAL POLISH / GRID FIX: Home's own fixed 3-column grid - see home_highlights.blade.php's own comment for why reusing
   .luca-geo-grid's `auto-fit` grid here produced 4 columns instead of 3. A fixed column count also gives the required "1-2 results
   stay left-aligned, never stretched" behavior for free: a lone item simply leaves the other track(s) of its row empty. */
.home-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 991.98px) {
    .home-highlights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .home-highlights-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==================== provider CTA ==================== */

.home-provider-cta {
    padding: 32px 0 18px;
}

.home-provider-cta__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 32px 34px;
    border-radius: 22px;
    border: 1px solid rgba(110, 170, 137, 0.18);
    background:
        radial-gradient(circle at 92% 24%, rgba(159, 223, 215, 0.26) 0 34px, transparent 35px),
        linear-gradient(135deg, rgba(110, 170, 137, 0.08), rgba(159, 223, 215, 0.07) 58%, rgba(255, 255, 255, 0.98));
    box-shadow: 0 10px 28px rgba(48, 45, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.home-provider-cta__lead {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 560px;
    min-width: 0;
}

.home-provider-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    background: rgba(110, 170, 137, 0.13);
    color: #4f7f67;
    font-size: 20px;
}

.home-provider-cta__copy {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.home-provider-cta__eyebrow {
    display: block;
    margin-bottom: 3px;
    font-family: var(--home-font-body);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #4f7f67;
}

.home-provider-cta__title {
    font-family: var(--home-font-heading);
    font-size: 21px;
    font-weight: 700;
    color: var(--home-ink);
    margin: 0 0 5px;
}

.home-provider-cta__body {
    font-family: var(--home-font-body);
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.home-provider-cta__button {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid rgba(94, 125, 162, 0.34);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--home-blue);
    font-family: var(--home-font-body);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.home-provider-cta__button:hover,
.home-provider-cta__button:focus-visible {
    background: var(--home-blue);
    border-color: var(--home-blue);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .home-provider-cta__panel {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px;
    }

    .home-provider-cta__lead {
        align-items: flex-start;
    }

    .home-provider-cta__button {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== Mehr mit Luca (marketplace product block) ==================== */

.home-more-luca-section {
    padding: 22px 0 50px;
}

.home-more-luca-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-more-luca-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 28px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.home-more-luca-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.1);
}

.home-more-luca-card__orb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 18px;
}

.home-more-luca-card--party .home-more-luca-card__orb {
    background: linear-gradient(145deg, #f2938c, var(--home-coral));
    box-shadow: inset -6px -8px 14px rgba(197, 73, 64, 0.25), 0 10px 20px -10px rgba(232, 102, 93, 0.6);
}

.home-more-luca-card--weather .home-more-luca-card__orb {
    background: linear-gradient(145deg, #cdf1ec, var(--home-turquoise));
    box-shadow: inset -6px -8px 14px rgba(66, 148, 138, 0.2), 0 10px 20px -10px rgba(159, 223, 215, 0.7);
    color: #1f5c54;
}

.home-more-luca-card--last-minute .home-more-luca-card__orb {
    background: linear-gradient(145deg, #f6cd76, var(--home-yellow));
    box-shadow: inset -6px -8px 14px rgba(178, 128, 20, 0.25), 0 10px 20px -10px rgba(242, 189, 72, 0.6);
}

.home-more-luca-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    width: 100%;
}

.home-more-luca-card__eyebrow {
    font-family: var(--home-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--home-coral);
}

.home-more-luca-card--weather .home-more-luca-card__eyebrow { color: #2f8479; }
.home-more-luca-card--last-minute .home-more-luca-card__eyebrow { color: #a06e15; }

/* Honest "not live yet" indicator for the Last Minute card - see home_more_with_luca.blade.php's own comment on why its CTA is a
   real disabled <button>, never a fake link. */
.home-more-luca-card__badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(48, 45, 42, 0.08);
    color: var(--home-ink);
    font-family: var(--home-font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.home-more-luca-card__title {
    font-family: var(--home-font-heading);
    font-size: 19px;
    font-weight: 800;
    color: var(--home-ink);
    margin: 8px 0 6px;
}

.home-more-luca-card__copy {
    font-family: var(--home-font-body);
    font-size: 14px;
    color: #57534e;
    margin: 0 0 20px;
}

.home-more-luca-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--home-font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--home-ink);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
}

a.home-more-luca-card__cta:hover {
    text-decoration: underline;
}

.home-more-luca-card--party .home-more-luca-card__cta { color: var(--home-coral-dark); }
.home-more-luca-card--weather .home-more-luca-card__cta { color: #2f8479; }

button.home-more-luca-card__cta:disabled {
    color: #9c9691;
    cursor: not-allowed;
}

@media (max-width: 991.98px) {
    .home-more-luca-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 2+1: two cards share the top row, the third takes the full width below it rather than stretching to fill half a row. */
    .home-more-luca-card--last-minute {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .home-more-luca-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-more-luca-card--last-minute {
        grid-column: auto;
    }
}


/* HOME FINAL POLISH — compact the six Highlights cards without changing their data or actions. */
.home-highlights-section .luca-listing-card__media .listing-card-v2-media {
    aspect-ratio: 4 / 2.65;
}
.home-highlights-section .luca-listing-card__body {
    padding-top: 14px;
    padding-bottom: 14px;
}
.home-highlights-section .luca-listing-card__title {
    font-size: 18px !important;
}
.home-highlights-section .luca-listing-card__meta,
.home-highlights-section .luca-listing-card__age,
.home-highlights-section .luca-listing-card__environment {
    margin-bottom: 5px !important;
}
.home-highlights-section .luca-listing-card__footer .btn {
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
}
.home-highlights-section .luca-listing-card__footer .mb-2 {
    margin-bottom: 6px !important;
}

/* Available product first: Luca Wetter stays fully active; pre-launch cards recede slightly. */
.home-more-luca-card--weather {
    border-color: rgba(110, 170, 137, .18);
    background: linear-gradient(180deg, rgba(159, 223, 215, .10), #fff 58%);
    box-shadow: 0 8px 22px rgba(110, 170, 137, .08);
}
.home-more-luca-card--party,
.home-more-luca-card--last-minute {
    background: linear-gradient(180deg, #fbfaf8, #fff);
    border-color: rgba(48, 45, 42, .05);
}
.home-more-luca-card--party .home-more-luca-card__body,
.home-more-luca-card--last-minute .home-more-luca-card__body {
    opacity: .78;
}
.home-more-luca-card--party:hover,
.home-more-luca-card--last-minute:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(17, 24, 39, .06);
}

@media (max-width: 575.98px) {
    .home-highlights-section .luca-listing-card__media .listing-card-v2-media {
        aspect-ratio: 4 / 2.8;
    }
}
