/* ==========================================================================
   MachineRig Product Template V1.0
   Loaded only on product detail pages.
   ========================================================================== */

/* Overview: full-width heading, then 30/70 image/content */
.product-overview {
    padding: 78px 0 88px;
    background: var(--paper);
}

.product-overview__heading {
    margin-bottom: 30px;
}

.product-overview__heading .eyebrow {
    margin-bottom: 14px;
}

.product-overview__heading h2 {
    margin: 0;
    color: var(--graphite-950);
    font-size: clamp(2rem, 3.8vw, 3.15rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.product-overview__grid {
    display: grid;
    grid-template-columns: minmax(0, 30fr) minmax(0, 70fr);
    gap: 44px;
    align-items: start;
}

.product-overview__media {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border-light);
}

.product-overview__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
}

.product-overview__placeholder {
    color: var(--steel-500);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-overview__content {
    min-width: 0;
}

.product-overview__description {
    max-width: 78ch;
    color: #303438;
    font-size: 1rem;
    line-height: 1.68;
}

.product-overview__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 28px 0 0;
    border-top: 1px solid #deddd7;
    border-bottom: 1px solid #deddd7;
}

.product-overview__facts > div {
    min-width: 0;
    padding: 14px 16px 14px 0;
}

.product-overview__facts > div + div {
    padding-left: 16px;
    border-left: 1px solid #deddd7;
}

.product-overview__facts dt {
    color: #777d82;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.product-overview__facts dd {
    margin: 4px 0 0;
    color: var(--graphite-950);
    font-size: .91rem;
    font-weight: 750;
    line-height: 1.35;
}

/* Compact technical specifications */
.product-specifications {
    padding: 76px 0 88px;
}

.product-specifications__heading {
    margin-bottom: 28px;
}

.spec-table {
    overflow: visible;
    background: var(--white);
    border: 1px solid var(--border-light);
}

.spec-table__head,
.spec-row {
    display: grid;
    grid-template-columns:
        minmax(190px, 32%)
        minmax(190px, 38%)
        minmax(110px, 14%)
        minmax(120px, 16%);
}

.spec-table__head {
    align-items: center;
    background: #f3f1eb;
    border-bottom: 1px solid #dddcd5;
}

.spec-table__head > div {
    padding: 10px 16px;
    color: #111315;
    font-size: .8rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.spec-row {
    align-items: start;
    min-height: 0;
}

.spec-row + .spec-row {
    border-top: 1px solid #e8e7e1;
}

.spec-row__label,
.spec-row__value,
.spec-row__status,
.spec-row__source {
    min-width: 0;
    padding: 12px 16px;
    font-size: .9rem;
    line-height: 1.4;
}

.spec-row__label {
    color: var(--graphite-950);
    font-weight: 700;
}

.spec-row__value {
    color: var(--graphite-950);
    font-weight: 400;
}

.spec-row__status,
.spec-row__source {
    text-align: left;
}

.spec-row__status {
    display: flex;
    align-items: center;
}

.spec-row__source {
    border-left: 1px solid #ecebe6;
}

.spec-row .status {
    font-size: .72rem;
    font-weight: 750;
    white-space: nowrap;
}

.spec-row .status::before {
    width: 6px;
    height: 6px;
}

.spec-row .evidence {
    position: relative;
    display: inline-block;
    margin: 0;
    min-width: 0;
}

.spec-row .evidence summary {
    list-style: none;
    cursor: pointer;
    color: var(--orange-dark);
    font-size: .76rem;
    font-weight: 750;
    white-space: nowrap;
}

.spec-row .evidence summary::-webkit-details-marker {
    display: none;
}

.spec-row .evidence summary::after {
    content: " +";
}

.spec-row .evidence[open] summary::after {
    content: " −";
}


.spec-row:has(.evidence[open]) {
    position: relative;
    z-index: 20;
}

.spec-row .evidence__list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: min(620px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    margin: 0;
    padding: 12px 14px;
    background: #f7f5ef;
    border: 1px solid #dddcd5;
    box-shadow: 0 16px 34px rgba(17, 19, 21, .12);
    text-align: left;
}

.spec-row__source-empty {
    color: #a0a4a7;
}

.spec-row .evidence-item {
    padding: 9px 0;
    font-size: .76rem;
    line-height: 1.45;
}

.spec-row .evidence-item + .evidence-item {
    border-top: 1px solid #deddd7;
}

.evidence-item__line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    color: #555b60;
}

.evidence-status {
    font-size: .68rem;
    font-weight: 800;
}

.evidence-status--supports {
    color: #475c45;
}

.evidence-status--conflicts {
    color: #9f4b0d;
}

.evidence-status--unclear {
    color: #777d82;
}

.evidence-item__type {
    color: #8a8f93;
}

.evidence-item__title {
    margin-top: 4px;
    color: var(--graphite-950);
    font-weight: 700;
}

.evidence-item__observed {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    color: #666c71;
}

.evidence-item__observed strong {
    color: var(--graphite-950);
}

.evidence-item__notes {
    margin: 5px 0 0;
    color: #686e73;
}

.evidence-item__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 14px;
    margin-top: 6px;
    color: #858a8e;
    font-size: .7rem;
}

.evidence-item__footer a {
    color: var(--orange-dark);
    font-weight: 750;
}

.spec-table__empty {
    margin: 0;
    padding: 22px;
    color: #70767b;
}

.product-specifications__back {
    margin-top: 26px;
}

/* External user experience summary */
.product-experience {
    padding: 76px 0 86px;
    background: #f5f3ed;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.product-experience__heading {
    margin-bottom: 30px;
}

.product-experience__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: start;
}

.product-experience__main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.product-experience__panel,
.product-experience__editorial {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border-light);
}

.product-experience__panel h3 {
    margin: 0 0 15px;
    color: var(--graphite-950);
    font-size: 1rem;
    line-height: 1.25;
}

.product-experience__panel ul {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-experience__panel li {
    position: relative;
    padding-left: 19px;
    color: #3f4448;
    font-size: .9rem;
    line-height: 1.55;
}

.product-experience__panel li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--orange-dark);
    font-weight: 800;
}

.product-experience__muted,
.product-experience__editorial > p:not(.eyebrow) {
    margin: 0;
    color: #686e73;
    font-size: .88rem;
    line-height: 1.58;
}

.product-experience__editorial > p:not(.eyebrow) {
    margin-top: 13px;
    color: #34393d;
}

.product-experience__sources {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #e3e1da;
}

.product-experience__sources summary {
    cursor: pointer;
    color: var(--orange-dark);
    font-size: .76rem;
    font-weight: 800;
}

.product-experience__source-list {
    display: grid;
    gap: 12px;
    margin-top: 13px;
}

.product-experience__source {
    display: grid;
    gap: 3px;
    padding-top: 11px;
    border-top: 1px solid #eceae4;
    color: #686e73;
    font-size: .76rem;
    line-height: 1.4;
}

.product-experience__source:first-child {
    padding-top: 0;
    border-top: 0;
}

.product-experience__source strong {
    color: var(--graphite-950);
    font-size: .8rem;
}

.product-experience__source a {
    margin-top: 3px;
    color: var(--orange-dark);
    font-weight: 750;
}

.product-experience__checked {
    display: block;
    margin-top: 16px;
    color: #8a8f93;
    font-size: .68rem;
}

@media (max-width: 1080px) {
    .product-experience__grid {
        grid-template-columns: 1fr;
    }
}

/* Product-page continuation / contextual navigation */
.product-next {
    padding: 78px 0 92px;
    background: #eeece6;
    border-top: 1px solid var(--border-light);
}

.product-next__heading {
    margin-bottom: 30px;
}

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

.product-next-card {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border-light);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.product-next-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms ease;
    pointer-events: none;
}

.product-next-card:hover::before,
.product-next-card:focus-visible::before {
    transform: scaleX(1);
}


.product-next-card:hover {
    transform: translateY(-2px);
    border-color: #cac8c0;
    box-shadow: 0 14px 34px rgba(17, 19, 21, .07);
}


.product-next-card__meta,
.product-next-machine__brand {
    color: var(--orange-dark);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.product-next-card strong {
    display: block;
    color: var(--graphite-950);
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.product-next-card em,
.product-next-machine em {
    color: var(--graphite-950);
    font-size: .82rem;
    font-style: normal;
    font-weight: 800;
}

.product-next__related {
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid #d5d3cc;
}

.product-next__related-heading {
    margin-bottom: 18px;
}

.product-next__related-heading .eyebrow {
    margin-bottom: 10px;
}

.product-next__related-heading h3 {
    margin: 0;
    color: var(--graphite-950);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    letter-spacing: -.035em;
}

.product-next__machines {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.product-next-machine {
    position: relative;
    min-width: 0;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: rgba(255,255,255,.72);
    border: 1px solid #d9d7d0;    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.product-next-machine::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms ease;
    pointer-events: none;
}

.product-next-machine:hover::before,
.product-next-machine:focus-visible::before {
    transform: scaleX(1);
}

.product-next-machine:hover {
    transform: translateY(-2px);
    border-color: #cac8c0;
    box-shadow: 0 12px 28px rgba(17, 19, 21, .06);
}



.product-next-machine strong {
    color: var(--graphite-950);
    font-size: 1rem;
    line-height: 1.25;
}

.product-next-machine em {
    margin-top: auto;
}


/* Keep the complete product name + "im Überblick" on one line when space allows. */
@media (min-width: 980px) {
    .product-overview__heading h2 {
        white-space: nowrap;
    }
}

@media (max-width: 980px) {
    .product-overview__grid {
        grid-template-columns: minmax(220px, 35fr) minmax(0, 65fr);
        gap: 28px;
    }

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

    .product-overview__facts > div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid #deddd7;
    }

    .product-overview__facts > div:nth-child(n+3) {
        border-top: 1px solid #deddd7;
    }

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

@media (max-width: 760px) {
    .product-experience {
        padding-top: 58px;
        padding-bottom: 66px;
    }

    .product-experience__main {
        grid-template-columns: 1fr;
    }


    .product-overview,
    .product-specifications,
    .product-next {
        padding-top: 58px;
        padding-bottom: 66px;
    }

    .product-overview__grid {
        grid-template-columns: 1fr;
    }

    .product-overview__media {
        min-height: 240px;
    }

    .product-overview__facts {
        grid-template-columns: 1fr;
    }

    .product-overview__facts > div,
    .product-overview__facts > div + div,
    .product-overview__facts > div:nth-child(3) {
        padding: 12px 0;
        border-left: 0;
        border-top: 1px solid #deddd7;
    }

    .product-overview__facts > div:first-child {
        border-top: 0;
    }
    .spec-table__head {
        display: none;
    }

    .spec-row {
        grid-template-columns: 1fr;
        padding: 12px 14px;
    }

    .spec-row__label,
    .spec-row__value,
    .spec-row__status,
    .spec-row__source {
        padding: 3px 0;
    }

    .spec-row__source {
        border-left: 0;
    }


    .spec-row .evidence {
        display: block;
        width: 100%;
    }

    .spec-row .evidence__list {
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 8px;
        box-shadow: none;
    }


    .spec-row .evidence__list {
        width: min(100%, calc(100vw - 56px));
    }

    .product-next__primary,
    .product-next__machines {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Product variants – canonical interactive card behaviour
   ========================================================================== */

.variant-card {
    position: relative;
    overflow: hidden;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.variant-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms ease;
    pointer-events: none;
}

.variant-card:hover,
.variant-card:focus-within {
    border-color: rgba(232, 91, 31, .35);
    box-shadow: 0 14px 30px rgba(17, 19, 21, .08);
    transform: translateY(-2px);
}

.variant-card:hover::before,
.variant-card:focus-within::before {
    transform: scaleX(1);
}

.variant-card__description {
    margin: 10px 0 0;
    max-width: 62ch;
    color: #686f74;
    font-size: .92rem;
    line-height: 1.55;
}

.variant-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #ecece7;
}

.variant-card__offer-count {
    color: #747a7f;
    font-size: .78rem;
    font-weight: 700;
}

.variant-card__link {
    color: var(--orange-dark);
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}

.variant-card__link:hover,
.variant-card__link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

#angebote {
    scroll-margin-top: 110px;
}

@media (max-width: 700px) {
    .variant-card__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}


/* ==========================================================================
   Product alternatives fallback – canonical V1.0
   ========================================================================== */

.product-next__related--fallback {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.product-next__fallback-copy {
    max-width: 760px;
    margin: 14px 0 0;
    color: #686f74;
    font-size: .95rem;
    line-height: 1.6;
}

.product-next__primary--fallback {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
}

@media (max-width: 980px) {
    .product-next__primary--fallback {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .product-next__primary--fallback {
        grid-template-columns: 1fr;
    }
}


/* Product next navigation – canonical three-card layout */
.product-next__primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* ==========================================================================
   Händlerangebote / Offer Cards V1.0 – canonical product-page block
   ========================================================================== */

.product-offers {
    padding: 74px 0 82px;
    background: var(--white);
    border-top: 1px solid var(--border-light);
}

.offer-list {
    display: grid;
    gap: 12px;
}

.offer-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns:
        minmax(220px, 1.35fr)
        minmax(130px, .7fr)
        minmax(150px, .8fr)
        minmax(190px, auto);
    gap: 24px;
    align-items: center;
    min-width: 0;
    padding: 22px 24px;
    background: #f8f7f3;
    border: 1px solid #deddd7;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.offer-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms ease;
    pointer-events: none;
}

.offer-card:hover,
.offer-card:focus-within {
    transform: translateY(-2px);
    border-color: #cac8c0;
    box-shadow: 0 12px 28px rgba(17, 19, 21, .06);
}

.offer-card:hover::before,
.offer-card:focus-within::before {
    transform: scaleX(1);
}

.offer-card__merchant,
.offer-card__status,
.offer-card__price,
.offer-card__action {
    min-width: 0;
}

.offer-card__kicker,
.offer-card__label {
    display: block;
    margin: 0 0 6px;
    color: #858a8e;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.offer-card__merchant h3 {
    margin: 0;
    color: var(--graphite-950);
    font-size: 1.05rem;
    line-height: 1.2;
}

.offer-card__variant {
    margin: 7px 0 0;
    color: #444a4f;
    font-size: .82rem;
    font-weight: 700;
}

.offer-card__sku {
    margin: 5px 0 0;
    color: #858a8e;
    font-size: .7rem;
}

.offer-card__availability {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #565c61;
    font-size: .82rem;
    font-weight: 750;
}

.offer-card__availability::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #999;
}

.offer-card__availability.is-positive {
    color: #496147;
}

.offer-card__availability.is-positive::before {
    background: #769171;
}

.offer-card__availability.is-negative {
    color: #9a554c;
}

.offer-card__availability.is-negative::before {
    background: #b96056;
}

.offer-card__availability.is-neutral {
    color: #796d4e;
}

.offer-card__availability.is-neutral::before {
    background: #9f8c58;
}

.offer-card__availability.is-unknown {
    color: #777d82;
}

.offer-card__price {
    text-align: left;
}

.offer-card__price strong {
    display: inline;
    color: var(--graphite-950);
    font-size: 1.22rem;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.offer-card__price-basis {
    display: inline;
    margin-left: 5px;
    color: #777d82;
    font-size: .72rem;
    font-weight: 700;
}

.offer-card__action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.button--offer {
    min-width: 190px;
    justify-content: center;
}

.offer-card__checked {
    color: #858a8e;
    font-size: .66rem;
}

@media (max-width: 980px) {
    .offer-card {
        grid-template-columns:
            minmax(220px, 1.25fr)
            minmax(130px, .75fr)
            minmax(150px, .8fr);
    }

    .offer-card__action {
        grid-column: 1 / -1;
        align-items: stretch;
    }

    .offer-card__action .button {
        width: 100%;
    }

    .offer-card__checked {
        text-align: right;
    }
}

@media (max-width: 700px) {
    .offer-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .offer-card__action {
        grid-column: auto;
        align-items: stretch;
    }

    .offer-card__checked {
        text-align: left;
    }
}


/* Keep canonical dark offer section */
.product-offers {
    padding: 86px 0;
    background: var(--graphite-900);
    color: var(--off-white);
    border-top: 0;
}

.product-offers .section-heading h2 {
    color: var(--off-white);
}

.product-offers .section-heading > p {
    color: var(--steel-300);
}


/* Specifications typography – canonical */
.spec-row__label,
.spec-row__value {
    font-size: .9rem;
    line-height: 1.4;
    font-weight: 400;
}

.spec-row__label {
    color: var(--graphite-950);
}


/* Specifications table header – canonical */
