.category-section,
.category-section * {
    box-sizing: border-box;
}

.category-section {
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 48px 0 58px;
    color: #062855;
}

.category-section__headline {
    position: relative;
    margin: 0 0 30px;
    color: #062855;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    overflow-wrap: anywhere;
}

.category-section__headline::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin: 12px auto 0;
    background: #9a7b42;
}

.category-section__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 420px;
    padding: 26px 24px 24px;
    overflow: hidden;
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 7px 24px rgba(8, 45, 93, 0.07);
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.category-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 74px;
    height: 4px;
    background: #9a7b42;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #afbdcb;
    box-shadow: 0 13px 32px rgba(8, 45, 93, 0.12);
}

.category-card__title {
    margin: 0;
    color: #062855;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.category-card__text {
    min-height: 2.9em;
    margin: 7px 0 20px;
    color: #53677e;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.category-card__image {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    min-height: 220px;
    margin-bottom: 22px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid #dce3ea;
    border-radius: 7px;
    background: #f5f7fa;
}

.category-card__image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 188px;
    object-fit: contain;
    filter: drop-shadow(0 6px 7px rgba(6, 40, 85, 0.13));
}

.category-card--suspension .category-card__image img {
    width: 100%;
    max-width: 390px;
}

.category-card__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid #062855;
    border-radius: 3px;
    color: #ffffff;
    background: #062855;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
    text-align: left;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.category-card__button:hover,
.category-card__button:focus-visible {
    color: #ffffff;
    border-color: #9a7b42;
    background: #9a7b42;
    outline: 2px solid rgba(154, 123, 66, 0.28);
    outline-offset: 2px;
}

/* Breite Bildschirme: vier gleich breite Karten. */
@media (min-width: 1181px) {
    .category-section__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* iPad quer, iPad hoch und kleinere Notebooks: sauber als 2 x 2. */
@media (min-width: 641px) and (max-width: 1180px) {
    .category-section {
        width: calc(100% - 36px);
        padding-top: 40px;
    }

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

}

@media (max-width: 640px) {
    .category-section {
        width: calc(100% - 24px);
        padding: 32px 0 42px;
    }

    .category-section__headline {
        margin-bottom: 22px;
        font-size: 23px;
    }

    .category-section__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .category-card {
        min-height: 0;
        padding: 22px 18px 18px;
    }

    .category-card__title {
        font-size: 20px;
    }

    .category-card__text {
        min-height: 0;
        margin-bottom: 16px;
        font-size: 13px;
    }

    .category-card__image {
        height: 205px;
        min-height: 205px;
        margin-bottom: 18px;
        padding: 12px;
    }

    .category-card__image img {
        max-height: 178px;
    }

    .category-card__button {
        min-height: 45px;
    }
}

@media (max-width: 390px) {
    .category-section__headline {
        font-size: 21px;
    }

    .category-card__image {
        height: 180px;
        min-height: 180px;
    }

    .category-card__image img {
        max-height: 154px;
    }
}
