/* =========================================
   PRODUCTS
   ========================================= */

.mg-products {
    box-sizing: border-box;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #d5e1d5;
    border-radius: 10px;
    scroll-margin-top: 30px;
}

.mg-products *,
.mg-products *::before,
.mg-products *::after {
    box-sizing: border-box;
}

.mg-products__intro {
    margin-bottom: 25px;
}

.mg-products__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #28783e;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mg-products__intro h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.25;
}

.mg-products__intro p {
    max-width: 800px;
    margin: 0;
    line-height: 1.6;
}

.mg-products__guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mg-products__guide-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    background: #f8faf8;
    border: 1px solid #d5e1d5;
    border-radius: 8px;
}

.mg-products__gsm {
    color: #28783e;
    font-size: 22px;
    font-weight: 700;
}

.mg-products__guide-card strong {
    font-size: 18px;
}

.mg-products__guide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #d5e1d5;
}

.mg-products__guide-footer p {
    margin: 0;
    font-size: 14px;
}

.mg-products__guide-footer a {
    color: #28783e;
    font-weight: 700;
    white-space: nowrap;
}

.mg-products__section {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid #d5e1d5;
}

.mg-products__section-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.mg-products__section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    background: #f1f7f1;
    border-radius: 50%;
    color: #28783e;
    font-size: 14px;
    font-weight: 700;
}

.mg-products__section-header h2 {
    margin: 0 0 5px;
    font-size: 26px;
    line-height: 1.3;
}

.mg-products__section-header p {
    margin: 0;
    line-height: 1.5;
}

.mg-products__group {
    margin-top: 25px;
}

.mg-products__group:first-of-type {
    margin-top: 0;
}

.mg-products__group h3 {
    margin: 0 0 10px;
    color: #28783e;
    font-size: 19px;
    line-height: 1.3;
}

.mg-products__table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #d5e1d5;
    border-radius: 8px;
}

.mg-products__table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    background: #fff;
}

.mg-products__table th,
.mg-products__table td {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid #e5ece5;
    text-align: left;
    vertical-align: middle;
}

.mg-products__table th {
    background: #f7faf7;
    color: #333;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mg-products__table tbody tr:last-child td {
    border-bottom: 0;
}

.mg-products__table tbody tr:hover {
    background: #fafcfa;
}

.mg-products__request {
    display: inline-block;
    padding: 8px 12px;
    background: #28783e;
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.mg-products__request:hover,
.mg-products__request:focus {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.mg-products__feature {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    overflow: hidden;
    background: #f8faf8;
    border: 1px solid #d5e1d5;
    border-radius: 8px;
}

.mg-products__feature-image {
    min-height: 340px;
    overflow: hidden;
}

.mg-products__feature-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    object-position: center;
}

.mg-products__feature-content {
    padding: 30px;
}

.mg-products__label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 9px;
    background: #eef5ee;
    border-radius: 4px;
    color: #28783e;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mg-products__feature-content h3 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.3;
}

.mg-products__feature-content > p {
    margin: 0 0 20px;
    line-height: 1.6;
}

.mg-products__spec {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid #d5e1d5;
    border-bottom: 1px solid #d5e1d5;
}

.mg-products__sizes {
    margin-bottom: 22px;
}

.mg-products__sizes > strong {
    display: block;
    margin-bottom: 10px;
}

.mg-products__size-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.mg-products__size-list span {
    display: inline-block;
    padding: 6px 9px;
    background: #fff;
    border: 1px solid #d5e1d5;
    border-radius: 4px;
    font-size: 13px;
}

.mg-products__tray-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.mg-products__tray-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f8faf8;
    border: 1px solid #d5e1d5;
    border-radius: 8px;
}

.mg-products__tray-image {
    height: 280px;
    overflow: hidden;
    background: #fff;
}

.mg-products__tray-image img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 15px;
    object-fit: contain;
    object-position: center;
    box-sizing: border-box;
}

.mg-products__tray-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.mg-products__tray-content h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.3;
}

.mg-products__tray-content > p {
    margin: 0 0 18px;
    line-height: 1.6;
}

.mg-products__tray-content ul {
    margin: 0 0 22px;
    padding-left: 22px;
    list-style-type: disc;
}

.mg-products__tray-content ul li {
    margin-bottom: 8px;
    line-height: 1.45;
    list-style-type: disc;
}

.mg-products__tray-content ul li:last-child {
    margin-bottom: 0;
}

.mg-products__tray-content .mg-products__request {
    align-self: flex-start;
    margin-top: auto;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {
    .mg-products__guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .mg-products__feature {
        grid-template-columns: 1fr;
    }

    .mg-products__feature-image,
    .mg-products__feature-image img {
        min-height: 280px;
    }

    .mg-products__tray-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .mg-products {
        padding: 18px;
    }

    .mg-products__intro h2 {
        font-size: 25px;
    }

    .mg-products__guide-card {
        padding: 18px;
    }

    .mg-products__guide-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mg-products__section {
        margin-top: 35px;
        padding-top: 28px;
    }

    .mg-products__section-header {
        gap: 12px;
    }

    .mg-products__section-number {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .mg-products__section-header h2 {
        font-size: 22px;
    }

    .mg-products__table {
        min-width: 650px;
    }

    .mg-products__feature-content {
        padding: 20px;
    }

    .mg-products__feature-image,
    .mg-products__feature-image img {
        min-height: 220px;
    }

    .mg-products__tray-image {
        height: 220px;
    }

    .mg-products__tray-content {
        padding: 20px;
    }

    .mg-products__tray-content h3 {
        font-size: 21px;
    }
}

.mg-thickness {
    display: block;
    width: 52px;
    margin: 8px 0 18px;
    background: #9b7653;
    border-radius: 2px;
}

.mg-thickness--small {
    height: 4px;
}

.mg-thickness--medium {
    height: 7px;
}

.mg-thickness--large {
    height: 14px;
}

/* Höhe Produktbilder 01–03 erzwingen */
.mg-products__section:not(.mg-products__coco) > .mg-products__feature-image {
    width: 100%;
    height: 170px !important;
    min-height: 0 !important;
    max-height: 170px !important;
    margin: 20px 0 28px;
    overflow: hidden;
    border-radius: 8px;
}

.mg-products__section:not(.mg-products__coco) > .mg-products__feature-image img {
    display: block;
    width: 100%;
    height: 170px !important;
    min-height: 0 !important;
    max-height: 170px !important;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 600px) {
    .mg-products__section:not(.mg-products__coco) > .mg-products__feature-image,
    .mg-products__section:not(.mg-products__coco) > .mg-products__feature-image img {
        height: 120px !important;
        max-height: 120px !important;
    }
}