/* PTF Handels 2.4 — precise hero geometry, story ornament and Germanized loop info */

/*
 * Keep the homepage hero on the exact same width as the editorial sections.
 * v2.2 intentionally used a 1440 px frame; on the live site this extended
 * beyond the 1360 px content rhythm and exposed a grey vertical strip.
 */
.ptf-home-v24 .ptf-hero-v21 {
    padding: 0;
    background: #fff;
}

.ptf-home-v24 .ptf-hero-v21__frame {
    width: min(calc(100% - 48px), 1360px);
    min-height: 520px;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    overflow: visible;
    background: #fff;
}

.ptf-home-v24 .ptf-hero-v21__content {
    z-index: 2;
    min-width: 0;
    padding: 58px 28px 58px 0;
    background: #fff;
}

/* The old triangle overlaid only the upper corner and created the broken edge. */
.ptf-home-v24 .ptf-hero-v21__content::after {
    display: none !important;
}

.ptf-home-v24 .ptf-hero-v21 h1 {
    width: 100%;
    max-width: none;
    margin: 0 0 20px;
    font-size: clamp(48px, 4.05vw, 62px);
    line-height: 1.035;
    letter-spacing: -.05em;
}

.ptf-home-v24 .ptf-hero-v21 h1 > span {
    display: block;
    white-space: nowrap;
}

.ptf-home-v24 .ptf-hero-v21__content > p {
    max-width: 590px;
}

/* One continuous diagonal from top to bottom, matching the approved mock-up. */
.ptf-home-v24 .ptf-hero-v21__visual {
    min-width: 0;
    min-height: 520px;
    clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
}

.ptf-home-v24 .ptf-hero-v21__visual::after {
    background: linear-gradient(90deg, rgba(4, 28, 67, .11), rgba(4, 28, 67, 0) 34%);
}

.ptf-home-v24 .ptf-hero-v21__accent--navy { left: 2%; }
.ptf-home-v24 .ptf-hero-v21__accent--blue { left: calc(2% + 100px); }

/*
 * The story accents are now complete, deliberately inset objects. They no
 * longer end exactly at the clipping boundary, which looked accidental.
 */
.ptf-home-v24 .ptf-story-v21__content::before {
    z-index: -1;
    top: 24px;
    right: 34px;
    width: 104px;
    height: 176px;
    border: 0;
    opacity: .9;
    transform: none;
    background:
        linear-gradient(132deg, transparent 0 32%, #f1f5fa 33% 46%, transparent 47% 56%, #f1f5fa 57% 70%, transparent 71%);
    clip-path: inset(0 round 2px);
}

.ptf-home-v24 .ptf-story-v21__content::after {
    right: 22px;
    bottom: 20px;
    width: 92px;
    height: 70px;
    background: linear-gradient(135deg, transparent 0 42%, var(--ptf-blue) 43% 70%, var(--ptf-navy) 71% 100%);
    clip-path: inset(0 round 2px);
}

/*
 * Germanized outputs tax and shipping information as separate paragraphs.
 * The product link was a flex column in v2.3, forcing those paragraphs onto
 * separate rows. Make the link a normal block and render both paragraphs as
 * a compact legal line below the price.
 */
.ptf-home-v24 .ptf-product-showcase__products .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
    display: block;
    flex: 1 1 auto;
}

.ptf-home-v24 .ptf-product-showcase__products .woocommerce ul.products li.product .wc-gzd-additional-info {
    display: inline !important;
    min-height: 0 !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    color: #66738a !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
    white-space: normal;
}

.ptf-home-v24 .ptf-product-showcase__products .woocommerce ul.products li.product .wc-gzd-additional-info.tax-info {
    margin-left: 18px !important;
}

.ptf-home-v24 .ptf-product-showcase__products .woocommerce ul.products li.product .wc-gzd-additional-info.shipping-costs-info {
    margin-right: 18px !important;
}

.ptf-home-v24 .ptf-product-showcase__products .woocommerce ul.products li.product .wc-gzd-additional-info.shipping-costs-info::before {
    content: " · ";
    text-decoration: none;
}

.ptf-home-v24 .ptf-product-showcase__products .woocommerce ul.products li.product .wc-gzd-additional-info a {
    color: inherit !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* German Market compatibility uses one wrapper instead of two paragraphs. */
.ptf-home-v24 .ptf-product-showcase__products .woocommerce ul.products li.product .wgm-info {
    min-height: 0;
    margin: 8px 18px 0 !important;
    padding: 0 !important;
    color: #66738a !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
}

.ptf-home-v24 .ptf-product-showcase__products .woocommerce ul.products li.product .button {
    margin-top: 14px !important;
}

@media (max-width: 1180px) {
    .ptf-home-v24 .ptf-hero-v21__frame {
        grid-template-columns: minmax(0, 49%) minmax(0, 51%);
    }
    .ptf-home-v24 .ptf-hero-v21 h1 {
        font-size: clamp(44px, 4.6vw, 55px);
    }
    .ptf-home-v24 .ptf-hero-v21__content {
        padding-right: 20px;
    }
}

@media (max-width: 960px) {
    .ptf-home-v24 .ptf-hero-v21 h1 > span {
        white-space: normal;
    }
}

@media (max-width: 860px) {
    .ptf-home-v24 .ptf-hero-v21__frame {
        width: min(calc(100% - 32px), 1360px);
        grid-template-columns: 1fr;
        overflow: hidden;
    }
    .ptf-home-v24 .ptf-hero-v21__visual {
        clip-path: none;
    }
    .ptf-home-v24 .ptf-hero-v21__content {
        padding: 44px 34px 52px;
    }
    .ptf-home-v24 .ptf-hero-v21 h1 > span {
        white-space: normal;
    }
    .ptf-home-v24 .ptf-story-v21__content::before {
        right: 18px;
        opacity: .65;
    }
    .ptf-home-v24 .ptf-story-v21__content::after {
        right: 16px;
        bottom: 14px;
        width: 76px;
        height: 58px;
    }
}

@media (max-width: 620px) {
    .ptf-home-v24 .ptf-hero-v21__frame {
        width: min(calc(100% - 24px), 1360px);
    }
    .ptf-home-v24 .ptf-hero-v21__content {
        padding: 36px 20px 44px;
    }
    .ptf-home-v24 .ptf-hero-v21 h1 {
        font-size: clamp(38px, 12vw, 46px);
    }
    .ptf-home-v24 .ptf-product-showcase__products .woocommerce ul.products li.product .wc-gzd-additional-info {
        font-size: 10.5px !important;
    }
    .ptf-home-v24 .ptf-story-v21__content::before {
        display: none;
    }
}
