/* =========================================================
   HIFI ELEMENTS – PRODUKTARCHIV
========================================================= */

body.post-type-archive-he_produkt .title_outer,
body.post-type-archive-he_produkt .title {
    display: none !important;
}

body.post-type-archive-he_produkt .content,
body.post-type-archive-he_produkt .content_inner,
body.post-type-archive-he_produkt .container,
body.post-type-archive-he_produkt .container_inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.he-product-archive,
.he-product-archive * {
    box-sizing: border-box;
}

.he-product-archive {
    --he-blue: #3858e9;
    --he-blue-dark: #2947cf;
    --he-dark: #101115;
    --he-text: #17191e;
    --he-muted: #6d717b;
    --he-border: #e2e4e9;
    --he-light: #f5f6f8;
    --he-white: #fff;

    width: 100%;
    overflow: hidden;
    background: var(--he-white);
    color: var(--he-text);
}

.he-product-archive a {
    text-decoration: none;
}

.he-product-archive__container {
    width: min(1380px, calc(100% - 80px));
    margin: 0 auto;
}

/* Hero */

.he-product-archive__hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 105px;
    background:
        radial-gradient(
            circle at 82% 15%,
            rgba(56, 88, 233, 0.24),
            transparent 34%
        ),
        linear-gradient(135deg, #0c0d10, #191b22);
    color: var(--he-white);
}

.he-product-archive__hero::after {
    position: absolute;
    right: -180px;
    bottom: -350px;
    width: 650px;
    height: 650px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    content: "";
}

.he-product-archive__hero h1 {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 0 25px;
    color: var(--he-white);
    font-size: clamp(54px, 6vw, 92px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.he-product-archive__hero p {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 18px;
    line-height: 1.75;
}

/* Überschriften */

.he-product-archive__eyebrow {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--he-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.he-product-archive__eyebrow::before {
    width: 32px;
    height: 2px;
    background: currentColor;
    content: "";
}

.he-product-archive__eyebrow--light {
    color: rgba(255, 255, 255, 0.75);
}

.he-product-archive__section-head {
    max-width: 820px;
    margin-bottom: 48px;
}

.he-product-archive__section-head h2 {
    margin: 0 0 18px;
    color: var(--he-text);
    font-size: clamp(42px, 4.5vw, 68px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1;
}

.he-product-archive__section-head p {
    max-width: 720px;
    margin: 0;
    color: var(--he-muted);
    font-size: 16px;
    line-height: 1.75;
}

/* Hauptkategorien */

.he-product-archive__categories {
    padding: 115px 0 125px;
    background: var(--he-light);
}

.he-product-archive__category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.he-product-archive__category {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--he-border);
    border-radius: 22px;
    background: var(--he-white);
    box-shadow: 0 10px 30px rgba(17, 18, 22, 0.05);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.he-product-archive__category:hover {
    border-color: rgba(56, 88, 233, 0.35);
    box-shadow: 0 22px 55px rgba(17, 18, 22, 0.11);
    transform: translateY(-6px);
}

.he-product-archive__category-link {
    position: absolute;
    z-index: 5;
    inset: 0;
}

.he-product-archive__category-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
}

.he-product-archive__category-icon {
    display: inline-flex;
    min-width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 14px;
    background: rgba(56, 88, 233, 0.1);
    color: var(--he-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.he-product-archive__category-count {
    color: var(--he-muted);
    font-size: 11px;
    font-weight: 700;
}

.he-product-archive__category h3 {
    margin: 0 0 16px;
    color: var(--he-text);
    font-size: 29px;
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.1;
    transition: color 0.25s ease;
}

.he-product-archive__category:hover h3 {
    color: var(--he-blue);
}

.he-product-archive__category p {
    margin: 0 0 24px;
    color: var(--he-muted);
    font-size: 13px;
    line-height: 1.7;
}

.he-product-archive__subcategories {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 25px;
}

.he-product-archive__subcategories span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f2f5;
    color: #636873;
    font-size: 10px;
    font-weight: 700;
}

.he-product-archive__category-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--he-text);
    font-size: 12px;
    font-weight: 800;
}

.he-product-archive__category-action strong {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(56, 88, 233, 0.1);
    color: var(--he-blue);
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.he-product-archive__category:hover
.he-product-archive__category-action strong {
    background: var(--he-blue);
    color: var(--he-white);
    transform: translateX(3px);
}

/* Produkte und Filter */

.he-product-archive__products {
    padding: 120px 0 130px;
    background: var(--he-white);
}

.he-product-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid var(--he-border);
    border-radius: 18px;
    background: var(--he-white);
    box-shadow: 0 8px 24px rgba(17, 18, 22, 0.04);
}

.he-product-filter__button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    outline: 0;
    background: #f1f2f5;
    color: #555a64;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.he-product-filter__button span {
    display: inline-flex;
    min-width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.07);
    font-size: 9px;
}

.he-product-filter__button:hover {
    border-color: rgba(56, 88, 233, 0.25);
    color: var(--he-blue);
    transform: translateY(-1px);
}

.he-product-filter__button.is-active {
    border-color: var(--he-blue);
    background: var(--he-blue);
    color: var(--he-white);
}

.he-product-filter__button.is-active span {
    background: rgba(255, 255, 255, 0.2);
}

.he-product-filter__result {
    min-height: 20px;
    margin: 0 0 24px;
    color: var(--he-muted);
    font-size: 12px;
    font-weight: 700;
}

.he-product-filter__empty {
    margin-top: 30px;
    padding: 30px;
    border: 1px dashed #cfd2d9;
    border-radius: 16px;
    background: var(--he-light);
    color: var(--he-muted);
    text-align: center;
}

.he-product-filter__empty strong,
.he-product-filter__empty span {
    display: block;
}

.he-product-filter__empty strong {
    margin-bottom: 5px;
    color: var(--he-text);
}

.he-product[hidden] {
    display: none !important;
}

/* Produkttitel beim Hover blau statt weiß */

.he-product-archive .he-product__title a:hover,
.he-product-archive .he-product:hover .he-product__title a {
    color: var(--he-blue) !important;
}

/* Responsive */

@media only screen and (max-width: 1100px) {
    .he-product-archive__container {
        width: min(100% - 50px, 1180px);
    }

    .he-product-archive__category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 767px) {
    .he-product-archive__container {
        width: calc(100% - 34px);
    }

    .he-product-archive__hero {
        padding: 85px 0 75px;
    }

    .he-product-archive__hero h1 {
        font-size: 48px;
    }

    .he-product-archive__hero p {
        font-size: 15px;
    }

    .he-product-archive__categories,
    .he-product-archive__products {
        padding-top: 80px;
        padding-bottom: 85px;
    }

    .he-product-archive__section-head h2 {
        font-size: 38px;
    }

    .he-product-archive__category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .he-product-archive__category {
        min-height: auto;
        padding: 25px;
    }

    .he-product-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 13px;
        scrollbar-width: thin;
    }

    .he-product-filter__button {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}
