/* ==========================================================
 * DGM HOME CATEGORIES – V4.0.11 MOCKUP DESIGN
 *
 * Ziel:
 * - ruhige, hochwertige Karten wie im freigegebenen Mockup
 * - grössere Bildfläche (6:5)
 * - stark gerundete obere Ecken
 * - Icon überlappt Bild/Text
 * - dezenter warmer Akzent unter dem Bild
 * - CTA als helle Pill mit orangem Rundpfeil
 *
 * Globale Farben/Typografie ausschliesslich via DGM/Elementor Tokens.
 * ========================================================== */

.dgm-categories,
.dgm-categories * {
    box-sizing: border-box;
}

.dgm-categories {
    width: 100%;
    padding-block: clamp(34px, 4vw, 60px);
    background: transparent;
}

.dgm-categories__inner {
    width: calc(100% - 32px);
    max-width: var(--container-max-width, 1360px);
    margin-inline: auto;
}

/* ==========================================================
 * HEADER
 * ========================================================== */

.dgm-categories__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.dgm-categories__heading {
    min-width: 0;
}

.dgm-categories__eyebrow {
    position: relative;
    margin-bottom: 9px;
    padding-left: 18px;
    color: var(--dgm-color-primary);
    font-family: var(--dgm-label-family);
    font-size: var(--dgm-label-size);
    font-weight: var(--dgm-label-weight);
    letter-spacing: var(--dgm-label-spacing);
    text-transform: var(--dgm-label-transform);
}

.dgm-categories__eyebrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 17px;
    border-radius: 999px;
    background: var(--dgm-color-primary);
    transform: translateY(-50%);
}

.dgm-categories__title {
    margin: 0 0 6px;
    color: var(--dgm-color-text-strong);
    font-family: var(--dgm-h2-family);
    font-size: var(--dgm-h2-size);
    font-weight: var(--dgm-h2-weight);
    line-height: var(--dgm-h2-line);
    letter-spacing: var(--dgm-h2-spacing);
}

.dgm-categories__intro {
    margin: 0;
    color: var(--dgm-color-text-light);
    font-family: var(--dgm-body-s-family);
    font-size: var(--dgm-body-s-size);
    font-weight: var(--dgm-body-s-weight);
    line-height: var(--dgm-body-s-line);
}

.dgm-categories__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.dgm-categories__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--dgm-color-primary);
    border-radius: 9px;
    background: var(--dgm-color-primary);
    color: var(--dgm-color-white);
    text-decoration: none;
    font-family: var(--dgm-button-family);
    font-size: var(--dgm-button-size);
    font-weight: var(--dgm-button-weight);
    box-shadow: 0 6px 16px rgb(0 0 0 / 5%);
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.dgm-categories__all svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dgm-categories__all:hover {
    transform: translateY(-1px);
    border-color: var(--dgm-color-accent);
    background: var(--dgm-color-accent);
    color: var(--dgm-color-white);
}

.dgm-categories__arrows {
    display: flex;
    gap: 8px;
}

.dgm-categories__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--dgm-color-border);
    border-radius: 9px;
    background: var(--dgm-color-white);
    color: var(--dgm-color-text-light);
    box-shadow: 0 5px 14px rgb(0 0 0 / 5%);
    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease,
                color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dgm-categories__arrow[data-dgm-cat-next] {
    border-color: var(--dgm-color-primary);
    background: var(--dgm-color-primary);
    color: var(--dgm-color-white);
}

.dgm-categories__arrow:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--dgm-color-accent);
    background: var(--dgm-color-accent);
    color: var(--dgm-color-white);
    box-shadow: 0 7px 18px rgb(0 0 0 / 8%);
}

.dgm-categories__arrow:disabled {
    opacity: .42;
    cursor: default;
    box-shadow: none;
}

/* ==========================================================
 * SLIDER
 * ========================================================== */

.dgm-categories__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding-bottom: 2px;
}

.dgm-categories__viewport::-webkit-scrollbar {
    display: none;
}

.dgm-categories__track {
    --dgm-cards-visible: 4;
    --dgm-card-gap: 22px;

    display: grid;
    grid-auto-flow: column;
    grid-auto-columns:
        calc(
            (
                100%
                - ((var(--dgm-cards-visible) - 1) * var(--dgm-card-gap))
            )
            / var(--dgm-cards-visible)
        );
    gap: var(--dgm-card-gap);
    width: 100%;
}

/* ==========================================================
 * CARD
 * ========================================================== */

.dgm-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    scroll-snap-align: start;

    border: 1px solid var(--dgm-color-border);
    border-radius: 22px;
    background: var(--dgm-color-white);

    box-shadow:
        0 8px 26px rgb(0 0 0 / 4%);

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.dgm-cat-card:hover {
    border-color: var(--dgm-color-primary);
    box-shadow:
        inset 0 0 0 1px var(--dgm-color-primary),
        0 10px 28px rgb(0 0 0 / 7%);
}

/* ==========================================================
 * IMAGE
 * ========================================================== */

.dgm-cat-card__media {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 6 / 5;
    overflow: visible;
    background: var(--dgm-color-light);
    text-decoration: none;
}

/* Bild selbst clippen, damit der dekorative Bogen und das Icon
   ausserhalb der eigentlichen Bildkante stehen dürfen. */
.dgm-cat-card__image,
.dgm-cat-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 21px 21px 54px 21px;
}

.dgm-cat-card__placeholder {
    background: var(--dgm-color-light);
}

/* warmer, sehr dezenter Mockup-Bogen */
.dgm-cat-card__media::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: -8%;
    bottom: -12px;
    width: 62%;
    height: 62px;
    border-radius: 0 70% 60% 0;
    background: var(--dgm-color-primary-light);
    opacity: .78;
    pointer-events: none;
}

.dgm-cat-card__icon {
    position: absolute;
    z-index: 4;
    left: 24px;
    bottom: -17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    border: 1px solid var(--dgm-color-bg-white);
    border-radius: 50%;
    background: var(--dgm-color-white);
    color: var(--dgm-color-primary);

    box-shadow:
        0 8px 20px rgb(0 0 0 / 10%);
}

.dgm-cat-card__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================
 * CONTENT
 * ========================================================== */

.dgm-cat-card__body {
    position: relative;
    z-index: 3;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 250px;
    padding: 38px 24px 22px;
}

.dgm-cat-card__title {
    margin: 0 0 9px;
    color: var(--dgm-color-text-strong);
    font-family: var(--dgm-card-title-s-family) !important;
    font-size: clamp(1.05rem, 1.15vw, 1.28rem) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
}

.dgm-cat-card__title a {
    color: inherit;
    text-decoration: none;
}

.dgm-cat-card__title a:hover,
.dgm-cat-card:hover .dgm-cat-card__title,
.dgm-cat-card:hover .dgm-cat-card__title a {
    color: var(--dgm-color-text-strong);
}

.dgm-cat-card__description {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;

    color: var(--dgm-color-text-light);
    font-family: var(--dgm-body-s-family);
    font-size: var(--dgm-body-s-size);
    font-weight: var(--dgm-body-s-weight);
    line-height: 1.55;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* ==========================================================
 * CTA PILL
 * ========================================================== */

.dgm-cat-card__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    min-height: 52px;

    margin-top: auto;
    padding: 6px 7px 6px 18px;

    border: 0;
    border-radius: 999px;

    background: var(--dgm-color-primary-light);
    color: var(--dgm-color-text-strong);
    text-decoration: none;

    font-family: var(--dgm-button-family);
    font-size: var(--dgm-button-size);
    font-weight: var(--dgm-button-weight);

    transition: background-color .18s ease;
}

.dgm-cat-card__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    border: 1px solid var(--dgm-color-primary);
    border-radius: 50%;

    background: var(--dgm-color-primary);
    color: var(--dgm-color-white);

    font-family: Arial, sans-serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1;

    transition:
        transform .18s ease,
        background-color .18s ease,
        border-color .18s ease;
}

.dgm-cat-card__cta:hover {
    background: var(--dgm-color-primary-light);
    color: var(--dgm-color-text-strong);
}

.dgm-cat-card__cta:hover .dgm-cat-card__cta-icon,
.dgm-cat-card:hover .dgm-cat-card__cta-icon {
    transform: translateX(2px);
    background: var(--dgm-color-accent);
    border-color: var(--dgm-color-accent);
}

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

@media (min-width: 1440px) {
    .dgm-categories__track {
        --dgm-cards-visible: 4;
        --dgm-card-gap: 24px;
    }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .dgm-categories__track {
        --dgm-cards-visible: 3;
        --dgm-card-gap: 20px;
    }
}

@media (min-width: 1025px) and (max-width: 1199px) {
    .dgm-categories__track {
        --dgm-cards-visible: 3;
        --dgm-card-gap: 18px;
    }

    .dgm-cat-card__body {
        min-height: 236px;
        padding-inline: 20px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dgm-categories__track {
        --dgm-cards-visible: 2;
        --dgm-card-gap: 18px;
    }

    .dgm-cat-card__body {
        min-height: 228px;
    }
}

@media (max-width: 767px) {
    .dgm-categories {
        padding-block: 32px;
    }

    .dgm-categories__header {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 26px;
    }

    .dgm-categories__actions {
        justify-content: space-between;
        width: 100%;
    }

    .dgm-categories__all {
        min-height: 42px;
        padding-inline: 15px;
    }

    .dgm-categories__arrow {
        width: 42px;
        height: 42px;
    }

    .dgm-categories__track {
        --dgm-cards-visible: 1.08;
        --dgm-card-gap: 14px;
        grid-auto-columns: 88%;
    }

    .dgm-cat-card {
        border-radius: 20px;
    }

    .dgm-cat-card__image,
    .dgm-cat-card__placeholder {
        border-radius: 19px 19px 46px 19px;
    }

    .dgm-cat-card__icon {
        left: 20px;
        bottom: -16px;
        width: 54px;
        height: 54px;
    }

    .dgm-cat-card__icon svg {
        width: 24px;
        height: 24px;
    }

    .dgm-cat-card__body {
        min-height: 220px;
        padding: 35px 18px 18px;
    }

    .dgm-cat-card__cta {
        min-height: 48px;
        padding-left: 16px;
    }

    .dgm-cat-card__cta-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}

@media (max-width: 480px) {
    .dgm-categories__track {
        grid-auto-columns: 92%;
    }

    .dgm-categories__intro {
        max-width: 34ch;
    }
}

/* ==========================================================
 * ACCESSIBILITY / REDUCED MOTION
 * ========================================================== */

.dgm-categories a:focus-visible,
.dgm-categories button:focus-visible,
.dgm-categories__viewport:focus-visible {
    outline: 2px solid var(--dgm-color-primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .dgm-categories__viewport {
        scroll-behavior: auto;
    }

    .dgm-cat-card,
    .dgm-cat-card__cta,
    .dgm-cat-card__cta-icon,
    .dgm-categories__all,
    .dgm-categories__arrow {
        transition: none;
    }

    .dgm-categories__all:hover,
    .dgm-categories__arrow:hover,
    .dgm-cat-card__cta:hover .dgm-cat-card__cta-icon,
    .dgm-cat-card:hover .dgm-cat-card__cta-icon {
        transform: none;
    }
}


/* ==========================================================
 * DGM V4.0.12 – MOCKUP REFINEMENT
 *
 * Ziel:
 * Screenshot-Differenzen zum freigegebenen Mockup korrigieren:
 * - Bild füllt den kompletten 6:5-Medienbereich (kein grauer Leerraum)
 * - Icon sitzt exakt am Bild/Body-Übergang
 * - Karteninhalt kompakter und näher am Mockup
 * - CTA wirkt ruhiger und hochwertiger
 * - Bild-/Textproportionen entsprechen dem Mockup deutlich besser
 * ========================================================== */

.dgm-cat-card__media {
    position: relative;
    aspect-ratio: 6 / 5;
    overflow: visible;
}

/* Globales img{height:auto} kann sonst das Bild auf ca. 16:9 drücken.
   Absolut positioniert füllt das Kategorie-Bild garantiert die gesamte
   6:5-Medienfläche. */
.dgm-cat-card__media > .dgm-cat-card__image,
.dgm-cat-card__media > .dgm-cat-card__placeholder {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 21px 21px 48px 21px;
}

/* Dekorativer warmer Bogen kleiner und direkt am Bildrand wie im Mockup. */
.dgm-cat-card__media::after {
    z-index: 2;
    left: -4%;
    bottom: -1px;
    width: 54%;
    height: 56px;
    border-radius: 0 80% 58% 0;
    opacity: .64;
}

/* Icon exakt über Übergang Bild/Text. */
.dgm-cat-card__icon {
    left: 24px;
    bottom: -16px;
    width: 56px;
    height: 56px;
    z-index: 4;
}

/* Inhalt im Mockup startet direkt nach dem Icon und ist kompakter. */
.dgm-cat-card__body {
    min-height: 238px;
    padding: 36px 24px 20px;
}

/* Titel etwas kräftiger, ohne künstlich neue Typografie einzuführen. */
.dgm-cat-card__title {
    margin-bottom: 8px;
    font-size: clamp(1.03rem, 1.08vw, 1.22rem) !important;
    line-height: 1.24 !important;
}

/* Beschreibungen im Mockup: 3 saubere Zeilen, danach CTA. */
.dgm-cat-card__description {
    margin-bottom: 16px;
    line-height: 1.5;
    -webkit-line-clamp: 3;
}

/* CTA etwas niedriger und optisch ruhiger. */
.dgm-cat-card__cta {
    min-height: 48px;
    padding: 5px 6px 5px 17px;
}

.dgm-cat-card__cta-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 20px;
}

/* Desktop-Mockup: etwas engerer Kartenabstand. */
@media (min-width: 1440px) {
    .dgm-categories__track {
        --dgm-card-gap: 22px;
    }
}

/* Laptop/kleiner Desktop: Proportionen stabil halten. */
@media (min-width: 1025px) and (max-width: 1439px) {
    .dgm-cat-card__body {
        min-height: 232px;
        padding: 34px 20px 18px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .dgm-cat-card__body {
        min-height: 224px;
        padding: 34px 20px 18px;
    }
}

/* Mobile bleibt wie Mockup kompakt, Bild weiterhin vollständig 6:5. */
@media (max-width: 767px) {
    .dgm-cat-card__media > .dgm-cat-card__image,
    .dgm-cat-card__media > .dgm-cat-card__placeholder {
        border-radius: 19px 19px 42px 19px;
    }

    .dgm-cat-card__media::after {
        height: 50px;
        width: 58%;
    }

    .dgm-cat-card__icon {
        left: 20px;
        bottom: -15px;
        width: 52px;
        height: 52px;
    }

    .dgm-cat-card__body {
        min-height: 214px;
        padding: 32px 18px 17px;
    }

    .dgm-cat-card__cta {
        min-height: 46px;
    }

    .dgm-cat-card__cta-icon {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }
}


/* ==========================================================
 * DGM V4.0.13 – CATEGORY GRADIENT REFINEMENT
 * Mockup-Angleichung: weicher Verlauf unten links wie im
 * freigegebenen Mockup, sichtbarer und eleganter.
 * ========================================================== */

/* Der frühere Medien-Bogen wird für die Mockup-Version neutralisiert,
   weil der gewünschte Verlauf eigentlich im Übergangsbereich zum Body sitzt. */
.dgm-cat-card__media::after {
    opacity: 0 !important;
}

.dgm-cat-card__body {
    position: relative;
    overflow: hidden;
}

/* Weicher Verlauf / Blob unten links – nahe am Mockup */
.dgm-cat-card__body::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 10px;
    left: 0;
    width: 250px;
    height: 76px;
    pointer-events: none;
    border-radius: 0 999px 999px 0;
    background:
        radial-gradient(120% 95% at 0% 50%,
            rgba(242,101,34,0.14) 0%,
            rgba(242,101,34,0.11) 28%,
            rgba(242,101,34,0.07) 54%,
            rgba(242,101,34,0.025) 72%,
            rgba(242,101,34,0) 100%);
}

/* Inhalt über dem Verlauf halten */
.dgm-cat-card__body > * {
    position: relative;
    z-index: 1;
}

/* Icon leicht weiter nach links und optisch besser in den Verlauf setzen */
.dgm-cat-card__icon {
    left: 22px;
    bottom: -18px;
    box-shadow: 0 10px 22px rgb(0 0 0 / 10%);
}

/* etwas mehr Abstand nach oben, damit Verlauf und Icon ruhiger wirken */
.dgm-cat-card__title {
    margin-top: 4px;
}

@media (max-width: 1024px) {
    .dgm-cat-card__body::before {
        width: 220px;
        height: 70px;
        top: 10px;
    }
}

@media (max-width: 767px) {
    .dgm-cat-card__body::before {
        width: 205px;
        height: 64px;
        top: 8px;
    }
}


/* ==========================================================
 * DGM V4.0.14 – CATEGORY MOCKUP 95% MATCH
 * Ziel: Ergebnis visuell deutlich näher an das freigegebene
 * Mockup bringen: grössere, weichere Kartenoptik, grösserer
 * Verlauf unten links, harmonischere Abstände, hochwertiger CTA.
 * ========================================================== */

.dgm-cat-card {
    border-radius: 30px;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow:
        0 18px 42px rgb(15 23 42 / 6%),
        0 6px 16px rgb(15 23 42 / 3%);
}

.dgm-cat-card:hover {
    border-color: rgba(242, 101, 34, 0.38);
    box-shadow:
        inset 0 0 0 1px rgba(242, 101, 34, 0.30),
        0 20px 46px rgb(15 23 42 / 8%),
        0 8px 18px rgb(15 23 42 / 4%);
}

.dgm-cat-card__media > .dgm-cat-card__image,
.dgm-cat-card__media > .dgm-cat-card__placeholder {
    border-radius: 28px 28px 56px 28px;
}

/* Der grosse, weiche Verlauf wie im Mockup */
.dgm-cat-card__body::before {
    top: 6px;
    left: 0;
    width: 68%;
    height: 98px;
    border-radius: 0 999px 999px 0;
    background:
        radial-gradient(120% 130% at 0% 50%,
            rgba(242,101,34,0.11) 0%,
            rgba(242,101,34,0.09) 22%,
            rgba(242,101,34,0.06) 43%,
            rgba(242,101,34,0.025) 63%,
            rgba(242,101,34,0.00) 82%);
}

.dgm-cat-card__icon {
    left: 20px;
    bottom: -22px;
    width: 72px;
    height: 72px;
    border: 4px solid #fff;
    box-shadow: 0 14px 28px rgb(15 23 42 / 12%);
}

.dgm-cat-card__icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.7;
}

.dgm-cat-card__body {
    min-height: 312px;
    padding: 56px 24px 26px;
}

.dgm-cat-card__title {
    min-height: 2.45em;
    margin: 0 0 10px;
    font-size: clamp(1.18rem, 1.28vw, 1.36rem) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.02em !important;
}

.dgm-cat-card__description {
    margin: 0 0 24px;
    color: #667085;
    font-size: clamp(0.98rem, 0.98vw, 1.02rem);
    line-height: 1.42;
    -webkit-line-clamp: 4;
}

.dgm-cat-card__cta {
    min-height: 56px;
    padding: 6px 8px 6px 20px;
    background: #fdf3ed;
    font-size: clamp(0.99rem, 1vw, 1.06rem);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.dgm-cat-card__cta-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 22px;
    box-shadow: 0 4px 10px rgb(242 101 34 / 18%);
}

/* Der Body soll etwas luftiger sein, aber der CTA immer sauber unten sitzen. */
.dgm-cat-card__body {
    justify-content: flex-start;
}

/* Grosse Desktop-Breakpoints */
@media (min-width: 1440px) {
    .dgm-categories__track {
        --dgm-card-gap: 28px;
    }

    .dgm-cat-card__body {
        min-height: 322px;
        padding: 58px 24px 28px;
    }
}

/* Desktop / Laptop */
@media (min-width: 1200px) and (max-width: 1439px) {
    .dgm-cat-card__body {
        min-height: 306px;
        padding: 54px 22px 24px;
    }

    .dgm-cat-card__title {
        font-size: clamp(1.12rem, 1.14vw, 1.28rem) !important;
    }
}

@media (min-width: 1025px) and (max-width: 1199px) {
    .dgm-cat-card__body {
        min-height: 296px;
        padding: 52px 20px 22px;
    }

    .dgm-cat-card__body::before {
        width: 72%;
        height: 92px;
    }

    .dgm-cat-card__icon {
        width: 66px;
        height: 66px;
        bottom: -20px;
    }

    .dgm-cat-card__title {
        min-height: 2.55em;
        font-size: clamp(1.08rem, 1.12vw, 1.22rem) !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dgm-cat-card {
        border-radius: 26px;
    }

    .dgm-cat-card__media > .dgm-cat-card__image,
    .dgm-cat-card__media > .dgm-cat-card__placeholder {
        border-radius: 24px 24px 50px 24px;
    }

    .dgm-cat-card__body {
        min-height: 286px;
        padding: 50px 20px 22px;
    }

    .dgm-cat-card__body::before {
        width: 74%;
        height: 86px;
        top: 8px;
    }

    .dgm-cat-card__icon {
        width: 64px;
        height: 64px;
        left: 18px;
        bottom: -20px;
    }

    .dgm-cat-card__icon svg {
        width: 28px;
        height: 28px;
    }

    .dgm-cat-card__title {
        min-height: 2.45em;
        font-size: 1.08rem !important;
    }

    .dgm-cat-card__description {
        font-size: 0.96rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .dgm-cat-card {
        border-radius: 24px;
    }

    .dgm-cat-card__media > .dgm-cat-card__image,
    .dgm-cat-card__media > .dgm-cat-card__placeholder {
        border-radius: 22px 22px 44px 22px;
    }

    .dgm-cat-card__body {
        min-height: 250px;
        padding: 44px 20px 20px;
    }

    .dgm-cat-card__body::before {
        width: 76%;
        height: 78px;
        top: 6px;
    }

    .dgm-cat-card__icon {
        left: 18px;
        bottom: -18px;
        width: 60px;
        height: 60px;
    }

    .dgm-cat-card__icon svg {
        width: 26px;
        height: 26px;
    }

    .dgm-cat-card__title {
        min-height: auto;
        font-size: 1.05rem !important;
        line-height: 1.18 !important;
    }

    .dgm-cat-card__description {
        margin-bottom: 18px;
        font-size: 0.95rem;
        line-height: 1.42;
        -webkit-line-clamp: 4;
    }

    .dgm-cat-card__cta {
        min-height: 52px;
        padding: 6px 6px 6px 18px;
    }

    .dgm-cat-card__cta-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 20px;
    }
}


/* ==========================================================
 * DGM V4.0.15 – CONCAVE IMAGE CUTOUT MOCKUP FIX
 * Wunsch: Bildbereich näher an Mockup mit echtem Eindruck von
 * innenliegendem Radius unten links, orangefarbener weicher Form
 * hinter dem Icon und sauberer Positionierung des Kreises.
 * ========================================================== */

/* Alter Body-Verlauf ausschalten – die Farbe soll im Bild-/Übergangsbereich sitzen. */
.dgm-cat-card__body::before {
    display: none !important;
}

.dgm-cat-card__media {
    position: relative;
    isolation: isolate;
    overflow: visible;
    aspect-ratio: 6 / 5;
}

/* Bildfläche wie Mockup: oben links/rechts und unten rechts rund,
   unten links bleibt fast gerade; die innere Rundung entsteht per Overlay. */
.dgm-cat-card__media > .dgm-cat-card__image,
.dgm-cat-card__media > .dgm-cat-card__placeholder {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 28px 28px 28px 0 !important;
}

/* Warmer, feiner Orange-Hintergrund direkt im Ausschnittsbereich. */
.dgm-cat-card__media::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: -1px;
    width: 66%;
    height: 96px;
    pointer-events: none;
    border-radius: 0 999px 999px 0;
    background:
        radial-gradient(130% 110% at 0% 50%,
            rgba(242,101,34,0.12) 0%,
            rgba(242,101,34,0.10) 24%,
            rgba(242,101,34,0.07) 48%,
            rgba(242,101,34,0.035) 68%,
            rgba(242,101,34,0) 100%);
}

/* Weisser Ausschnitt, der optisch den innenliegenden Radius unten links bildet. */
.dgm-cat-card__media::before {
    content: "";
    position: absolute;
    z-index: 3;
    left: -6px;
    bottom: -3px;
    width: 120px;
    height: 104px;
    pointer-events: none;
    border-radius: 0 100% 0 0;
    background: var(--dgm-color-white);
}

.dgm-cat-card__icon {
    position: absolute;
    z-index: 4;
    left: 22px;
    bottom: -20px;
    width: 70px;
    height: 70px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #fff;
    color: var(--dgm-color-primary);
    box-shadow: 0 14px 30px rgb(15 23 42 / 12%);
}

.dgm-cat-card__icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.8;
}

/* Card und Content etwas näher an das Mockup anpassen. */
.dgm-cat-card {
    border-radius: 30px;
    box-shadow:
        0 18px 42px rgb(15 23 42 / 6%),
        0 6px 16px rgb(15 23 42 / 3%);
}

.dgm-cat-card__body {
    min-height: 320px;
    padding: 58px 24px 26px;
}

.dgm-cat-card__title {
    margin: 0 0 12px;
    font-size: clamp(1.16rem, 1.25vw, 1.34rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.02em !important;
}

.dgm-cat-card__description {
    margin: 0 0 26px;
    line-height: 1.45;
    font-size: clamp(0.98rem, 0.98vw, 1.03rem);
    -webkit-line-clamp: 4;
}

.dgm-cat-card__cta {
    min-height: 56px;
    padding: 6px 8px 6px 20px;
    background: #fdf3ed;
}

.dgm-cat-card__cta-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 22px;
}

/* Hover ruhig, nicht aggressiv. */
.dgm-cat-card:hover {
    border-color: rgba(242, 101, 34, 0.34);
    box-shadow:
        inset 0 0 0 1px rgba(242, 101, 34, 0.24),
        0 20px 44px rgb(15 23 42 / 8%),
        0 8px 18px rgb(15 23 42 / 4%);
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .dgm-cat-card__media::before {
        width: 112px;
        height: 98px;
    }
    .dgm-cat-card__media::after {
        width: 68%;
        height: 92px;
    }
    .dgm-cat-card__body {
        min-height: 306px;
        padding: 56px 22px 24px;
    }
    .dgm-cat-card__title {
        font-size: clamp(1.10rem, 1.16vw, 1.28rem) !important;
    }
}

@media (min-width: 1025px) and (max-width: 1199px) {
    .dgm-cat-card__media::before {
        width: 104px;
        height: 92px;
    }
    .dgm-cat-card__media::after {
        width: 70%;
        height: 86px;
    }
    .dgm-cat-card__icon {
        left: 20px;
        bottom: -18px;
        width: 66px;
        height: 66px;
    }
    .dgm-cat-card__body {
        min-height: 298px;
        padding: 54px 20px 22px;
    }
    .dgm-cat-card__description {
        margin-bottom: 22px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dgm-cat-card {
        border-radius: 28px;
    }
    .dgm-cat-card__media > .dgm-cat-card__image,
    .dgm-cat-card__media > .dgm-cat-card__placeholder {
        border-radius: 24px 24px 24px 0 !important;
    }
    .dgm-cat-card__media::before {
        width: 98px;
        height: 88px;
        left: -4px;
    }
    .dgm-cat-card__media::after {
        width: 72%;
        height: 82px;
    }
    .dgm-cat-card__icon {
        width: 64px;
        height: 64px;
        left: 18px;
        bottom: -18px;
    }
    .dgm-cat-card__icon svg {
        width: 28px;
        height: 28px;
    }
    .dgm-cat-card__body {
        min-height: 286px;
        padding: 50px 20px 22px;
    }
    .dgm-cat-card__title {
        font-size: 1.08rem !important;
    }
    .dgm-cat-card__description {
        font-size: 0.96rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .dgm-cat-card {
        border-radius: 26px;
    }
    .dgm-cat-card__media > .dgm-cat-card__image,
    .dgm-cat-card__media > .dgm-cat-card__placeholder {
        border-radius: 22px 22px 22px 0 !important;
    }
    .dgm-cat-card__media::before {
        width: 92px;
        height: 78px;
        left: -2px;
        bottom: -2px;
    }
    .dgm-cat-card__media::after {
        width: 74%;
        height: 74px;
    }
    .dgm-cat-card__icon {
        left: 16px;
        bottom: -16px;
        width: 58px;
        height: 58px;
        border-width: 3px;
    }
    .dgm-cat-card__icon svg {
        width: 24px;
        height: 24px;
    }
    .dgm-cat-card__body {
        min-height: 250px;
        padding: 42px 20px 20px;
    }
    .dgm-cat-card__title {
        font-size: 1.04rem !important;
        line-height: 1.2 !important;
    }
    .dgm-cat-card__description {
        font-size: 0.95rem;
        margin-bottom: 18px;
        -webkit-line-clamp: 4;
    }
    .dgm-cat-card__cta {
        min-height: 52px;
        padding: 6px 6px 6px 18px;
    }
    .dgm-cat-card__cta-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 20px;
    }
}


/* ==========================================================
 * DGM V4.0.16 – MOCKUP CURVE / ORANGE SWOOSH REFINEMENT
 * Feintuning: Innenradius unten links schöner, organischer und
 * orangefarbener Hintergrund hinter dem Icon klarer sichtbar.
 * ========================================================== */

.dgm-cat-card__media {
    overflow: hidden;
}

/* Orange Swoosh wie im Mockup – feine weiche Fläche unter dem Bild links. */
.dgm-cat-card__media::after {
    z-index: 2;
    left: -4px;
    bottom: -2px;
    width: 66%;
    height: 88px;
    border-radius: 0 120px 0 0;
    background:
        radial-gradient(140% 120% at 0% 100%,
            rgba(242,101,34,0.16) 0%,
            rgba(242,101,34,0.12) 24%,
            rgba(242,101,34,0.08) 48%,
            rgba(242,101,34,0.045) 66%,
            rgba(242,101,34,0.015) 82%,
            rgba(242,101,34,0) 100%);
}

/* Ausschnitt unten links: runder, eleganter und näher am Mockup. */
.dgm-cat-card__media::before {
    z-index: 3;
    left: -2px;
    bottom: -2px;
    width: 128px;
    height: 98px;
    border-radius: 0 84px 0 0;
    background: var(--dgm-color-white);
    box-shadow: none;
}

.dgm-cat-card__icon {
    z-index: 4;
    left: 18px;
    bottom: -18px;
    width: 66px;
    height: 66px;
    border-width: 3px;
    box-shadow: 0 12px 24px rgb(15 23 42 / 10%);
}

.dgm-cat-card__body {
    padding-top: 56px;
}

/* Bildcontainer oben rund, unten links mit concave Eindruck sauber erhalten. */
.dgm-cat-card__media > .dgm-cat-card__image,
.dgm-cat-card__media > .dgm-cat-card__placeholder {
    border-radius: 28px 28px 28px 0 !important;
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .dgm-cat-card__media::after {
        width: 67%;
        height: 84px;
    }
    .dgm-cat-card__media::before {
        width: 122px;
        height: 94px;
        border-radius: 0 80px 0 0;
    }
    .dgm-cat-card__icon {
        left: 18px;
        bottom: -18px;
        width: 64px;
        height: 64px;
    }
}

@media (min-width: 1025px) and (max-width: 1199px) {
    .dgm-cat-card__media::after {
        width: 68%;
        height: 80px;
    }
    .dgm-cat-card__media::before {
        width: 116px;
        height: 90px;
        border-radius: 0 76px 0 0;
    }
    .dgm-cat-card__icon {
        left: 16px;
        bottom: -17px;
        width: 62px;
        height: 62px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dgm-cat-card__media::after {
        width: 69%;
        height: 76px;
        border-radius: 0 108px 0 0;
    }
    .dgm-cat-card__media::before {
        width: 108px;
        height: 84px;
        border-radius: 0 70px 0 0;
    }
    .dgm-cat-card__icon {
        left: 15px;
        bottom: -16px;
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 767px) {
    .dgm-cat-card__media::after {
        width: 70%;
        height: 72px;
        left: -3px;
        border-radius: 0 96px 0 0;
    }
    .dgm-cat-card__media::before {
        width: 96px;
        height: 72px;
        left: -2px;
        bottom: -1px;
        border-radius: 0 62px 0 0;
    }
    .dgm-cat-card__icon {
        left: 14px;
        bottom: -15px;
        width: 56px;
        height: 56px;
    }
}


/* ==========================================================
 * DGM V4.0.17 – WAVE CONCAVE RADIUS REFINEMENT
 * Wunsch: keine halbkreisartige Aussparung, sondern weichere,
 * flachere Wellenform nach innen + grösseres Icon.
 * ========================================================== */

/* Orange Hintergrundform flacher und eleganter wie im Mockup. */
.dgm-cat-card__media::after {
    z-index: 2;
    left: -6px;
    bottom: -2px;
    width: 60%;
    height: 76px;
    border-radius: 0 120px 0 0 / 0 76px 0 0;
    background:
        radial-gradient(145% 115% at 0% 100%,
            rgba(242,101,34,0.14) 0%,
            rgba(242,101,34,0.105) 28%,
            rgba(242,101,34,0.07) 52%,
            rgba(242,101,34,0.038) 72%,
            rgba(242,101,34,0.012) 86%,
            rgba(242,101,34,0) 100%);
}

/* Weisse Wellen-Aussparung: flacher und weniger halbkreisförmig. */
.dgm-cat-card__media::before {
    z-index: 3;
    left: -2px;
    bottom: -2px;
    width: 150px;
    height: 72px;
    border-radius: 0 92px 0 0 / 0 72px 0 0;
    background: var(--dgm-color-white);
    box-shadow: none;
}

/* Bildkante links unten optisch etwas ruhiger, damit die Wellenform feiner wirkt. */
.dgm-cat-card__media > .dgm-cat-card__image,
.dgm-cat-card__media > .dgm-cat-card__placeholder {
    border-radius: 28px 28px 28px 0 !important;
}

/* Icon etwas grösser wie im Mockup. */
.dgm-cat-card__icon {
    z-index: 4;
    left: 18px;
    bottom: -20px;
    width: 74px;
    height: 74px;
    border-width: 4px;
    box-shadow: 0 14px 28px rgb(15 23 42 / 11%);
}

.dgm-cat-card__icon svg {
    width: 32px;
    height: 32px;
}

.dgm-cat-card__body {
    padding-top: 60px;
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .dgm-cat-card__media::after {
        width: 61%;
        height: 74px;
    }
    .dgm-cat-card__media::before {
        width: 142px;
        height: 68px;
        border-radius: 0 88px 0 0 / 0 68px 0 0;
    }
    .dgm-cat-card__icon {
        width: 72px;
        height: 72px;
        bottom: -19px;
    }
    .dgm-cat-card__icon svg {
        width: 31px;
        height: 31px;
    }
    .dgm-cat-card__body {
        padding-top: 58px;
    }
}

@media (min-width: 1025px) and (max-width: 1199px) {
    .dgm-cat-card__media::after {
        width: 62%;
        height: 70px;
    }
    .dgm-cat-card__media::before {
        width: 132px;
        height: 64px;
        border-radius: 0 82px 0 0 / 0 64px 0 0;
    }
    .dgm-cat-card__icon {
        left: 16px;
        width: 68px;
        height: 68px;
        bottom: -18px;
    }
    .dgm-cat-card__icon svg {
        width: 29px;
        height: 29px;
    }
    .dgm-cat-card__body {
        padding-top: 56px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dgm-cat-card__media::after {
        width: 64%;
        height: 66px;
        border-radius: 0 100px 0 0 / 0 66px 0 0;
    }
    .dgm-cat-card__media::before {
        width: 120px;
        height: 58px;
        border-radius: 0 76px 0 0 / 0 58px 0 0;
    }
    .dgm-cat-card__icon {
        left: 15px;
        width: 64px;
        height: 64px;
        bottom: -17px;
    }
    .dgm-cat-card__icon svg {
        width: 28px;
        height: 28px;
    }
    .dgm-cat-card__body {
        padding-top: 54px;
    }
}

@media (max-width: 767px) {
    .dgm-cat-card__media::after {
        width: 65%;
        height: 58px;
        left: -4px;
        border-radius: 0 88px 0 0 / 0 58px 0 0;
    }
    .dgm-cat-card__media::before {
        width: 102px;
        height: 50px;
        left: -2px;
        bottom: -1px;
        border-radius: 0 64px 0 0 / 0 50px 0 0;
    }
    .dgm-cat-card__icon {
        left: 14px;
        width: 60px;
        height: 60px;
        bottom: -15px;
    }
    .dgm-cat-card__icon svg {
        width: 26px;
        height: 26px;
    }
    .dgm-cat-card__body {
        padding-top: 52px;
    }
}
