/* ==========================================================
 * DGM HERO SLIDER – MODUL CSS
 *
 * Gemeinsame Elementor-Farben und Typografie stehen zentral in:
 * /dgm-custom/assets/css/dgm-design-system.css
 * Diese Datei enthält nur Hero-spezifisches Layout und Verhalten.
 * ========================================================== */

/* ==========================================================
 * 2. BASIS
 * ========================================================== */

.dgm-hero-slider {
    position: relative;

    width: 100%;
    max-width: none;

    margin-bottom: 0 !important;

    overflow: hidden;

    /*
     * Verhindert, dass der Browser den Hero beim Scrollen als
     * Scroll-Anker verwendet und dadurch sichtbare Sprünge erzeugt.
     */
    overflow-anchor: none;

    isolation: isolate;
}


.dgm-hero-track {
    position: relative;

    width: 100%;

    overflow-anchor: none;
}


.dgm-hero-slide {
    position: relative;

    width: 100%;

    overflow-anchor: none;

    background-color:
        var(
            --dgm-hero-bg-color,
            var(--dgm-color-bg-white)
        );
}



/* ==========================================================
 * 2B. INITIALER LADEZUSTAND / FOUC-SCHUTZ
 *
 * Verhindert, dass beim ersten Seitenaufbau mehrere Slides
 * kurz untereinander sichtbar werden, bevor hero.js startet.
 * Ohne JavaScript bleibt wenigstens der erste Slide sichtbar.
 * ========================================================== */

.dgm-hero-slider:not([data-dgm-hero-initialized="1"]) .dgm-hero-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.dgm-hero-slider:not([data-dgm-hero-initialized="1"]) .dgm-hero-slide {
    grid-area: 1 / 1;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dgm-hero-slider:not([data-dgm-hero-initialized="1"]) .dgm-hero-slide:first-child {
    z-index: 2;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ==========================================================
 * 3. ELEMENTOR INHALTSBREITE
 * Gemeinsame Basis. Ab 1025 px (Tablet Querformat / Laptop /
 * Desktop / Breitbild) bleibt das Layout zweispaltig. Bis 1024 px
 * (Tablet Hochformat bis Mobile) wird Text oben + Bild unten genutzt.
 * ========================================================== */

.dgm-hero-inner {
    position: relative;
    z-index: 3;

    width: calc(100% - 40px);
    max-width: var(--container-max-width, 1360px);

    margin-inline: auto;
}


/* Desktop: Text links / Vordergrundbild rechts bzw. umgekehrt */

@media (min-width: 1025px) {

    .dgm-hero-inner {
        display: grid;

        grid-template-columns:
            minmax(0, 58%)
            minmax(0, 42%);

        align-items: center;

        min-height: inherit;

        column-gap: clamp(18px, 1.6vw, 28px);
    }
}


/* ==========================================================
 * 4. HINTERGRUND
 * ========================================================== */


/*
 * Echte Hintergrundbilder direkt auf dem Slide.
 * Sie verhalten sich damit exakt wie die Hintergrundfarbe:
 * volle Slide-Höhe, volle Slide-Breite.
 */
.dgm-hero-slide.dgm-hero-background-image::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 0;

    background-image:
        var(--dgm-hero-bg-image-desktop, none);

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    pointer-events: none;
}

/*
 * Das alte <picture>-Hintergrundbild wird für Bild-Slides nicht
 * mehr sichtbar gerendert. Es bleibt nur noch als Fallback im HTML.
 */
.dgm-hero-slide.dgm-hero-background-image
> .dgm-hero-background-media--image {
    display: none;
}

@media (max-width: 1024px) {

    .dgm-hero-slide.dgm-hero-background-image::before {
        background-image:
            var(
                --dgm-hero-bg-image-mobile,
                var(--dgm-hero-bg-image-desktop, none)
            );

        background-position: center center;
        background-size: cover;
    }
}


.dgm-hero-background-media {
    position: absolute;

    inset: 0;

    z-index: 0;

    overflow: hidden;

    pointer-events: none;
}


.dgm-hero-background-media picture {
    display: block;

    width: 100%;
    height: 100%;
}


.dgm-hero-background-image,
.dgm-hero-background-video,
.dgm-hero-video-mobile-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center center;
}


.dgm-hero-video-mobile-image {
    display: none;
}
/* ----------------------------------------------------------
 * Mobile / Tablet Hintergrund
 *
 * Bild:
 * Desktop-Hintergrund bleibt immer als Fallback sichtbar.
 * Ein vorhandenes Mobile-Bild wird automatisch über <picture>
 * ausgewählt. So entsteht kein weisser Hintergrund, wenn kein
 * separates Mobile-Bild hinterlegt ist.
 *
 * Video:
 * Desktop-Video wird bis 1024 px aus Performancegründen verborgen.
 * Ein vorhandenes Mobile-Ersatzbild wird angezeigt.
 * ---------------------------------------------------------- */

@media (max-width: 1024px) {

    /*
     * Tablet Hochformat bis Mobile:
     * Hintergrundbild füllt den kompletten Hero-Bereich –
     * genauso wie eine Hintergrundfarbe.
     * Hinweis: Bei anderem Seitenverhältnis wird das Bild an
     * den Rändern beschnitten. Dafür kann ein eigenes Mobile-
     * Hintergrundbild hinterlegt werden.
     */
    .dgm-hero-background-image,
    .dgm-hero-video-mobile-image {
        object-fit: cover;
        object-position: center center;
    }

    .dgm-hero-background-video {
        display: none;
    }

    .dgm-hero-has-mobile-background
    .dgm-hero-video-mobile-image {
        display: block;
    }
}


/* ==========================================================
 * 5. OVERLAY
 * ========================================================== */

.dgm-hero-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        var(
            --dgm-hero-overlay-color,
            var(--dgm-color-bg-dark)
        );

    opacity:
        var(
            --dgm-hero-overlay-opacity,
            0.35
        );

    pointer-events: none;
}


/* ==========================================================
 * 6. TEXTBEREICH
 * ========================================================== */

.dgm-hero-content {
    position: relative;

    z-index: 3;

    min-width: 0;
}


/* Inhaltsbreite */

.dgm-hero-content-width-narrow
.dgm-hero-content {
    max-width: 520px;
}


.dgm-hero-content-width-medium
.dgm-hero-content {
    max-width: 620px;
}


.dgm-hero-content-width-wide
.dgm-hero-content {
    max-width: 760px;
}


/* Textposition */

.dgm-hero-text-position-left
.dgm-hero-content {
    text-align: left;
}


.dgm-hero-text-position-center
.dgm-hero-content {
    text-align: center;
}


.dgm-hero-text-position-right
.dgm-hero-content {
    text-align: right;
}


/* Textfarben */

.dgm-hero-text-dark {
    color:
        var(--dgm-color-text-strong);
}


.dgm-hero-text-light {
    color:
        var(--dgm-color-text-white);
}


/* ==========================================================
 * 7. TYPOGRAFIE
 * ========================================================== */


/* ----------------------------------------------------------
 * EYEBROW → Elementor Global: Label
 * ---------------------------------------------------------- */

.dgm-hero-eyebrow {
    margin:
        0
        0
        12px;

    font-family:
        var(--dgm-type-label-family);

    font-size:
        var(--dgm-type-label-size);

    font-weight:
        var(--dgm-type-label-weight);

    line-height:
        var(--dgm-type-label-line-height);

    letter-spacing:
        var(--dgm-type-label-letter-spacing);

    word-spacing:
        var(--dgm-type-label-word-spacing);

    text-transform:
        var(--dgm-type-label-transform);

    color: inherit;
}


/* ----------------------------------------------------------
 * HERO TITEL → Elementor Global: H1-HERO
 * ---------------------------------------------------------- */

h1.dgm-hero-title,
h2.dgm-hero-title {
    margin:
        0
        0
        18px;

    font-family:
        var(--dgm-type-h1-hero-family);

    font-size:
        var(--dgm-type-h1-hero-size);

    font-weight:
        var(--dgm-type-h1-hero-weight);

    line-height:
        var(--dgm-type-h1-hero-line-height);

    letter-spacing:
        var(--dgm-type-h1-hero-letter-spacing);

    word-spacing:
        var(--dgm-type-h1-hero-word-spacing);

    color: inherit;
}


/* ----------------------------------------------------------
 * BESCHREIBUNG → Elementor Global: Lead-Text
 * ---------------------------------------------------------- */

.dgm-hero-description {
    margin:
        0
        0
        24px;

    max-width: 680px;

    font-family:
        var(--dgm-type-lead-family);

    font-size:
        var(--dgm-type-lead-size);

    font-weight:
        var(--dgm-type-lead-weight);

    line-height:
        var(--dgm-type-lead-line-height);

    letter-spacing:
        var(--dgm-type-lead-letter-spacing);

    word-spacing:
        var(--dgm-type-lead-word-spacing);

    color: inherit;
}


/* ==========================================================
 * 8. BUTTONS
 * ========================================================== */

.dgm-hero-actions {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 14px;
}


.dgm-hero-text-position-center
.dgm-hero-actions {
    justify-content: center;
}


.dgm-hero-text-position-right
.dgm-hero-actions {
    justify-content: flex-end;
}


/* Elementor Global: Button-Large */

.dgm-hero-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    min-height: 50px;

    padding:
        0
        24px;

    border:
        2px solid
        transparent;

    border-radius: 4px;

    font-family:
        var(--dgm-type-button-large-family);

    font-size:
        var(--dgm-type-button-large-size);

    font-weight:
        var(--dgm-type-button-large-weight);

    line-height:
        var(--dgm-type-button-large-line-height);

    letter-spacing:
        var(--dgm-type-button-large-letter-spacing);

    text-decoration: none;

    cursor: pointer;

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


.dgm-hero-button-arrow {
    display: inline-flex;

    font-size: 1.15em;

    line-height: 1;

    transition:
        transform 0.2s ease;
}


.dgm-hero-button:hover
.dgm-hero-button-arrow {
    transform:
        translateX(3px);
}


/* ----------------------------------------------------------
 * Primär
 * ---------------------------------------------------------- */

.dgm-hero-button--primary {
    background:
        var(--dgm-color-primary);

    border-color:
        var(--dgm-color-primary);

    color:
        var(--dgm-color-text-white);
}


.dgm-hero-button--primary:hover {
    background:
        var(--dgm-color-primary-dark);

    border-color:
        var(--dgm-color-primary-dark);

    color:
        var(--dgm-color-text-white);

    transform:
        translateY(-1px);
}


/* ----------------------------------------------------------
 * Sekundär – dunkler Text
 * ---------------------------------------------------------- */

.dgm-hero-text-dark
.dgm-hero-button--secondary {
    background:
        color-mix(
            in srgb,
            var(--dgm-color-bg-white) 4%,
            transparent
        );

    border-color:
        var(--dgm-color-text-strong);

    color:
        var(--dgm-color-text-strong);
}


.dgm-hero-text-dark
.dgm-hero-button--secondary:hover {
    background:
        var(--dgm-color-text-strong);

    border-color:
        var(--dgm-color-text-strong);

    color:
        var(--dgm-color-text-white);
}


/* ----------------------------------------------------------
 * Sekundär – heller Text
 * ---------------------------------------------------------- */

.dgm-hero-text-light
.dgm-hero-button--secondary {
    background:
        color-mix(
            in srgb,
            var(--dgm-color-bg-white) 8%,
            transparent
        );

    border-color:
        color-mix(
            in srgb,
            var(--dgm-color-text-white) 80%,
            transparent
        );

    color:
        var(--dgm-color-text-white);
}


.dgm-hero-text-light
.dgm-hero-button--secondary:hover {
    background:
        var(--dgm-color-text-white);

    border-color:
        var(--dgm-color-text-white);

    color:
        var(--dgm-color-text-strong);
}


/* ----------------------------------------------------------
 * Textlink
 * ---------------------------------------------------------- */

.dgm-hero-button--text {
    min-height: 44px;

    padding:
        0
        4px;

    border: 0;

    background: transparent;

    color: inherit;
}


/* ==========================================================
 * 9. VORDERGRUNDBILD
 * ========================================================== */

.dgm-hero-foreground {
    position: relative;

    z-index: 3;

    display: flex;

    min-width: 0;

    width: 100%;
}


.dgm-hero-foreground picture {
    display: block;

    width: 100%;
}


.dgm-hero-foreground-image {
    display: block;

    width: 100%;

    height: auto;

    object-fit: contain;
}


/* Position */

.dgm-hero-foreground-position-right
.dgm-hero-content {
    grid-column: 1;
}


.dgm-hero-foreground-position-right
.dgm-hero-foreground {
    grid-column: 2;

    justify-content: flex-end;
}


.dgm-hero-foreground-position-left
.dgm-hero-content {
    grid-column: 2;
}


.dgm-hero-foreground-position-left
.dgm-hero-foreground {
    grid-column: 1;

    grid-row: 1;

    justify-content: flex-start;
}


/* Breite */

.dgm-hero-foreground-width-small
.dgm-hero-foreground-image {
    max-width: 460px;
}


.dgm-hero-foreground-width-medium
.dgm-hero-foreground-image {
    max-width: 620px;
}


.dgm-hero-foreground-width-large
.dgm-hero-foreground-image {
    max-width: 760px;
}


/* Vertikale Ausrichtung */

.dgm-hero-foreground-align-top
.dgm-hero-foreground {
    align-self: start;
}


.dgm-hero-foreground-align-center
.dgm-hero-foreground {
    align-self: center;
}


.dgm-hero-foreground-align-bottom
.dgm-hero-foreground {
    align-self: end;
}


/* ==========================================================
 * 10. CONTENT VERTIKALE AUSRICHTUNG
 * ========================================================== */

.dgm-hero-content-vertical-top
.dgm-hero-inner {
    align-items: start;
}


.dgm-hero-content-vertical-center
.dgm-hero-inner {
    align-items: center;
}


.dgm-hero-content-vertical-bottom
.dgm-hero-inner {
    align-items: end;
}


/* ==========================================================
 * 11. HERO HÖHEN DESKTOP
 * ========================================================== */

@media (min-width: 1025px) {

    .dgm-hero-height-desktop-compact {
        min-height: 420px;
    }


    .dgm-hero-height-desktop-standard {
        min-height: 500px;
    }


    .dgm-hero-height-desktop-large {
        min-height: 620px;
    }


    .dgm-hero-height-desktop-fullscreen {
        min-height: 100svh;
    }
}


/* ==========================================================
 * 12. SLIDER PFEILE
 * Scoped + harte Resets gegen Elementor/Button-Styles
 * Pfeile bewusst im äusseren Bereich des Hero-Sliders
 * ========================================================== */

.dgm-hero-slider .dgm-hero-arrow {
    position: absolute !important;
    top: 50% !important;
    z-index: 20 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 2px solid var(--dgm-color-primary) !important;
    border-radius: 999px !important;


    color: var(--dgm-color-primary) !important;

    box-shadow: 0 4px 18px rgb(0 0 0 / 14%) !important;

    font-family: Arial, sans-serif !important;
    font-size: 31px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-decoration: none !important;

    cursor: pointer !important;
    transform: translateY(-50%) !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease !important;
}

.dgm-hero-slider .dgm-hero-arrow:hover,
.dgm-hero-slider .dgm-hero-arrow:focus-visible {
    background: var(--dgm-color-primary) !important;
    border-color: var(--dgm-color-primary) !important;
    color: var(--dgm-color-text-white) !important;
}

.dgm-hero-slider .dgm-hero-arrow:focus-visible {
    outline: 3px solid var(--dgm-color-primary-light) !important;
    outline-offset: 3px !important;
}

.dgm-hero-slider .dgm-hero-arrow:disabled {
    opacity: 0.35 !important;
    cursor: default !important;
}

/* Aussenposition: bewusst nah am Hero-Rand, nicht an der Inhaltsbreite */

.dgm-hero-slider .dgm-hero-arrow--prev {
    left: 18px !important;
    right: auto !important;
}

.dgm-hero-slider .dgm-hero-arrow--next {
    right: 18px !important;
    left: auto !important;
}


/* ==========================================================
 * 13. DOTS
 * Kleine runde graue Punkte, aktiver Punkt grösser + DGM-Orange
 * Ebenfalls hart gegen Elementor-Button-Styles abgesichert
 * ========================================================== */

.dgm-hero-slider .dgm-hero-dots {
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;
    z-index: 20 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 10px !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: translateX(-50%) !important;
}

.dgm-hero-slider .dgm-hero-dot {
    display: block !important;

    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 999px !important;

    background: #BFC3C8 !important;

    box-shadow: none !important;
    outline: none;

    opacity: 0.9 !important;

    cursor: pointer !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    transform: none !important;

    transition:
        width 0.2s ease,
        height 0.2s ease,
        min-width 0.2s ease,
        min-height 0.2s ease,
        background-color 0.2s ease,
        opacity 0.2s ease !important;
}

.dgm-hero-slider .dgm-hero-dot:hover {
    background: var(--dgm-color-secondary) !important;
    opacity: 1 !important;
}

.dgm-hero-slider .dgm-hero-dot.is-active,
.dgm-hero-slider .dgm-hero-dot[aria-current="true"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;

    background: var(--dgm-color-primary) !important;
    opacity: 1 !important;
}

.dgm-hero-slider .dgm-hero-dot:focus-visible {
    outline: 2px solid var(--dgm-color-primary) !important;
    outline-offset: 3px !important;
}


/* Tablet */

@media (max-width: 1024px) {

    .dgm-hero-slider .dgm-hero-arrow {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;

        font-size: 28px !important;
    }

    .dgm-hero-slider .dgm-hero-arrow--prev {
        left: 10px !important;
    }

    .dgm-hero-slider .dgm-hero-arrow--next {
        right: 10px !important;
    }
}


/* Mobile */

@media (max-width: 767px) {

    .dgm-hero-slider .dgm-hero-arrow {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;

        font-size: 25px !important;
    }

    .dgm-hero-slider .dgm-hero-arrow--prev {
        left: 8px !important;
    }

    .dgm-hero-slider .dgm-hero-arrow--next {
        right: 8px !important;
    }

    .dgm-hero-slider .dgm-hero-dots {
        bottom: 12px !important;
        gap: 9px !important;
    }

    .dgm-hero-slider .dgm-hero-dot {
        width: 9px !important;
        height: 9px !important;
        min-width: 9px !important;
        min-height: 9px !important;
        max-width: 9px !important;
        max-height: 9px !important;
    }

    .dgm-hero-slider .dgm-hero-dot.is-active,
    .dgm-hero-slider .dgm-hero-dot[aria-current="true"] {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        max-width: 14px !important;
        max-height: 14px !important;
    }
}


/* ----------------------------------------------------------
 * Tablet Hochformat bis Mobile: nur Dots, keine Pfeile
 * ---------------------------------------------------------- */

@media (max-width: 1024px) {

    .dgm-hero-slider .dgm-hero-arrow {
        display: none !important;
    }
}


/* ==========================================================
 * 14. TABLET – 768 BIS 1024 PX
 * Gleicher Breakpoint wie der mobile Header:
 * Text oben, Vordergrundbild darunter.
 * ========================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    .dgm-hero-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: calc(100% - 40px);

        min-height: 0;
        padding: 34px 0 24px;

        gap: 18px;
    }

    .dgm-hero-content {
        order: 1;

        width: 100%;
        max-width: 680px !important;
    }

    .dgm-hero-foreground {
        order: 2;

        width: 100%;

        justify-content: center !important;
        align-self: stretch;

        margin-top: 4px;
    }

    .dgm-hero-content-width-narrow .dgm-hero-content,
    .dgm-hero-content-width-medium .dgm-hero-content,
    .dgm-hero-content-width-wide .dgm-hero-content {
        max-width: 680px !important;
    }
    .dgm-hero-description {
        max-width: 650px;
    }

    .dgm-hero-foreground picture {
        width: auto;
        max-width: 100%;

        margin-inline: auto;
    }

    .dgm-hero-foreground-image {
        width: auto;

        max-width: min(620px, 88vw) !important;
        max-height: 300px;

        object-fit: contain;

        margin-inline: auto;
    }

    /* Auf Tablet keine Desktop-Mindesthöhe erzwingen. */
    .dgm-hero-height-desktop-compact,
    .dgm-hero-height-desktop-standard,
    .dgm-hero-height-desktop-large,
    .dgm-hero-height-mobile-compact,
    .dgm-hero-height-mobile-standard,
    .dgm-hero-height-mobile-large {
        min-height: 0;
    }

    .dgm-hero-height-desktop-fullscreen,
    .dgm-hero-height-mobile-fullscreen {
        min-height: 100svh;
    }
}


/* ==========================================================
 * 15. MOBILE – BIS 767 PX
 * Text oben, Bild darunter.
 * ========================================================== */

@media (max-width: 767px) {

    .dgm-hero-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: calc(100% - 28px);

        min-height: 0;

        padding: 38px 0;

        gap: 14px;
    }

    .dgm-hero-content {
        order: 1;

        width: 100%;
        max-width: none !important;
    }

    .dgm-hero-foreground {
        order: 2;

        width: 100%;

        justify-content: center !important;
        align-self: stretch;

        margin-top: 0;
    }

    .dgm-hero-title {
        margin-bottom: 16px;
    }

    .dgm-hero-description {
        margin-bottom: 22px;
    }

    .dgm-hero-actions {
        gap: 10px;
    }

    .dgm-hero-button {
        min-width: 210px;
        min-height: 48px;

        padding: 0 20px;

        justify-content: center;
    }

    .dgm-hero-foreground picture {
        width: auto;
        max-width: 100%;

        margin-inline: auto;
    }

    .dgm-hero-foreground-image {
        width: auto;

        max-width: 100% !important;
        max-height: 330px;

        margin-inline: auto;
    }

    .dgm-hero-height-mobile-compact {
        min-height: 480px;
    }

    .dgm-hero-height-mobile-standard {
        min-height: 540px;
    }

    .dgm-hero-height-mobile-large {
        min-height: 700px;
    }

    .dgm-hero-height-mobile-fullscreen {
        min-height: 100svh;
    }
}


/* ==========================================================
 * 16. ECHTES MOBILE – BIS 480 PX
 * Bewahrt den aktuell guten Handy-Stand.
 * ========================================================== */

@media (max-width: 480px) {

    .dgm-hero-slide {
        min-height: 0;
        height: auto;
    }

    .dgm-hero-inner {
        width: calc(100% - 28px);

        min-height: 0;
        height: auto;

        padding: 24px 0 18px;

        row-gap: 6px;
    }

    .dgm-hero-eyebrow {
        margin-bottom: 8px;
    }

    .dgm-hero-title {
        margin-bottom: 12px;
    }

    .dgm-hero-description {
        margin-bottom: 16px;
    }

    .dgm-hero-button {
        width: auto;
        min-width: 0;
        min-height: 44px;

        padding: 0 18px;
    }

    .dgm-hero-foreground {
        margin-top: 4px;
    }

    .dgm-hero-foreground-image {
        width: 100%;

        max-width: 360px !important;
        max-height: 220px;

        object-fit: contain;

        margin-inline: auto;
    }

    .dgm-hero-height-mobile-compact,
    .dgm-hero-height-mobile-standard,
    .dgm-hero-height-mobile-large {
        min-height: 0;
    }
}


/* ==========================================================
 * 17. REDUCED MOTION
 * ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .dgm-hero-button,
    .dgm-hero-button-arrow,
    .dgm-hero-arrow {
        transition: none;
    }
}

/* ==========================================================
 * 17. DGM HERO V2 – AGENTUR-LAYOUT
 * Version 1.7.0
 * ========================================================== */

.dgm-hero-layout-v2 .dgm-hero-inner {
    padding-top: clamp(34px, 3vw, 54px);
    padding-bottom: clamp(48px, 4vw, 68px);
    box-sizing: border-box;
}

.dgm-hero-layout-v2 .dgm-hero-content {
    width: 100%;
    max-width: none !important;
}

.dgm-hero-layout-v2.dgm-hero-text-position-left .dgm-hero-content {
    text-align: left;
}

.dgm-hero-layout-v2 .dgm-hero-eyebrow {
    margin-bottom: 16px;
    color: var(--dgm-color-primary);
    font-size: clamp(.75rem, .72vw, .88rem);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: .02em;
}

.dgm-hero-layout-v2 h1.dgm-hero-title-v2,
.dgm-hero-layout-v2 h2.dgm-hero-title-v2 {
    display: block;
    margin: 0 0 20px;
    max-width: 820px;

    font-family: var(--dgm-type-h1-hero-family);
    font-size: clamp(1.75rem, 2.35vw, 2.75rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.035em;
}

.dgm-hero-layout-v2 .dgm-hero-title-primary,
.dgm-hero-layout-v2 .dgm-hero-title-accent {
    display: block;
}

.dgm-hero-layout-v2 .dgm-hero-title-primary {
    color: var(--dgm-color-text-strong);
}

.dgm-hero-layout-v2 .dgm-hero-title-accent {
    margin-top: .12em;
    color: var(--dgm-color-primary);
}

.dgm-hero-layout-v2.dgm-hero-text-light
.dgm-hero-title-primary {
    color: var(--dgm-color-text-white);
}

.dgm-hero-layout-v2 .dgm-hero-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    margin: 0 0 28px;
    max-width: 700px;

    font-family: var(--dgm-type-body-m-family);
    font-size: clamp(.98rem, 1vw, 1.08rem);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
}

.dgm-hero-layout-v2 .dgm-hero-actions {
    display: flex;
    margin-bottom: 30px;
}

.dgm-hero-layout-v2 .dgm-hero-button {
    min-height: 52px;
    padding-inline: 26px;
    border-radius: 4px;
}

.dgm-hero-layout-v2 .dgm-hero-benefits {
    display: grid;
    gap: 0;

    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    margin-bottom: 0;
    padding: 0;

    list-style: none;

    align-items: start;
}

/* Exakte Breiten je nach Anzahl sichtbarer Vorteile */
.dgm-hero-layout-v2 .dgm-hero-benefits--count-1 {
    grid-template-columns: 1fr;
}

.dgm-hero-layout-v2 .dgm-hero-benefits--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dgm-hero-layout-v2 .dgm-hero-benefits--count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dgm-hero-layout-v2 .dgm-hero-benefits--count-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dgm-hero-layout-v2 .dgm-hero-benefit {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;

    min-width: 0;
    padding: 0 clamp(14px, 1.15vw, 20px);

    border-right: 1px solid
        color-mix(
            in srgb,
            var(--dgm-color-border-light) 72%,
            transparent
        );
}

.dgm-hero-layout-v2 .dgm-hero-benefit:first-child {
    padding-left: 0;
}

.dgm-hero-layout-v2 .dgm-hero-benefit:last-child {
    padding-right: 0;
    border-right: 0;
}

.dgm-hero-layout-v2 .dgm-hero-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: var(--dgm-color-primary);
}

.dgm-hero-layout-v2 .dgm-hero-benefit-icon svg {
    display: block;
    width: 36px;
    height: 36px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;

    vector-effect: non-scaling-stroke;
}

.dgm-hero-layout-v2 .dgm-hero-benefit-copy {
    display: block;
    min-width: 0;
    padding-top: 1px;
}

.dgm-hero-layout-v2 .dgm-hero-benefit-title {
    display: block;
    margin: 0 0 4px;

    color: inherit;
    font-family: var(--dgm-type-body-s-family);
    font-size: clamp(.82rem, .78vw, .92rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: 0;
}

.dgm-hero-layout-v2 .dgm-hero-benefit-text {
    display: block;

    color: var(--dgm-color-text-light);
    font-family: var(--dgm-type-body-s-family);
    font-size: clamp(.74rem, .7vw, .82rem);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
}

/* Bildbereich immer rechts und als ruhige Produktkarte */
@media (min-width: 1025px) {

    .dgm-hero-layout-v2 .dgm-hero-content {
        grid-column: 1 !important;
        grid-row: 1 !important;

        width: 100%;
        padding-right: clamp(8px, .8vw, 14px);
        box-sizing: border-box;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        grid-column: 2 !important;
        grid-row: 1 !important;

        display: flex;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;

        width: 100%;
        height: clamp(340px, 27vw, 410px);
        min-height: 0;

        overflow: hidden;
        box-sizing: border-box;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: 100%;
        min-height: 0;
        padding: clamp(18px, 1.8vw, 28px);

        overflow: hidden;

        border: 1px solid var(--dgm-color-border-dark);
        border-radius: 2px;

        background:
            color-mix(
                in srgb,
                var(--dgm-color-bg-white) 92%,
                transparent
            );

        box-sizing: border-box;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame picture {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground-image {
        display: block;

        width: 100% !important;
        height: 100% !important;

        max-width: 100% !important;
        max-height: 100% !important;

        object-fit: contain !important;
        object-position: center center !important;

        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {

    .dgm-hero-layout-v2 .dgm-hero-inner {
        gap: 24px;
        padding: 34px 0 30px;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 0;
        width: 100%;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        padding-inline: 14px;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit:nth-child(odd) {
        padding-left: 0;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit:nth-child(even) {
        padding-right: 0;
        border-right: 0;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: 320px;
        min-height: 0;
        padding: 22px;

        overflow: hidden;

        border: 1px solid var(--dgm-color-border-dark);
        background: color-mix(in srgb, var(--dgm-color-bg-white) 92%, transparent);
        box-sizing: border-box;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame picture {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground-image {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

@media (max-width: 767px) {

    .dgm-hero-layout-v2 .dgm-hero-inner {
        gap: 22px;
        padding: 26px 0 24px;
    }

    .dgm-hero-layout-v2 h1.dgm-hero-title-v2,
    .dgm-hero-layout-v2 h2.dgm-hero-title-v2 {
        margin-bottom: 16px;
        font-size: clamp(1.65rem, 7vw, 2rem);
        line-height: 1.08;
    }

    .dgm-hero-layout-v2 .dgm-hero-description {
        margin-bottom: 20px;
        font-size: .96rem;
        line-height: 1.5;
    }

    .dgm-hero-layout-v2 .dgm-hero-actions {
        margin-bottom: 24px;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 0;
        width: 100%;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px;
        padding-inline: 10px;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit:nth-child(odd) {
        padding-left: 0;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit:nth-child(even) {
        padding-right: 0;
        border-right: 0;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        width: 32px;
        height: 32px;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon svg {
        width: 30px;
        height: 30px;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: 285px;
        min-height: 0;
        padding: 18px;

        overflow: hidden;

        border: 1px solid var(--dgm-color-border-dark);
        background: color-mix(in srgb, var(--dgm-color-bg-white) 94%, transparent);
        box-sizing: border-box;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame picture {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground-image {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

@media (max-width: 480px) {

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        padding: 0;
        border-right: 0;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame {
        height: 250px;
        min-height: 0;
        padding: 14px;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground-image {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }
}


/* ==========================================================
 * 18. V1.6.2 – BREITBILD NAVIGATION
 * ========================================================== */

@media (min-width: 1367px) {

    .dgm-hero-slider .dgm-hero-dots {
        gap: 11px !important;
        bottom: 0 !important;
    }

    .dgm-hero-slider .dgm-hero-dot {
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        min-height: 12px !important;
        max-width: 12px !important;
        max-height: 12px !important;
    }

    .dgm-hero-slider .dgm-hero-dot.is-active,
    .dgm-hero-slider .dgm-hero-dot[aria-current="true"] {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }
}


/* ==========================================================
 * 19. V1.6.4 – PROFESSIONELLE SLIDER-NAVIGATION
 *
 * > 1550 px:
 *   Pfeile bleiben seitlich am Hero.
 *
 * 1025–1550 px:
 *   Pfeile + Dots bilden EINEN gemeinsamen Navigationsblock.
 *   Dieser komplette Block wird exakt mittig zentriert.
 * ========================================================== */


/* ----------------------------------------------------------
 * NAVIGATION-WRAPPER
 * Auf grossen Ansichten erzeugt er keine eigene Box.
 * ---------------------------------------------------------- */

.dgm-hero-navigation {
    display: contents;
}


/* ----------------------------------------------------------
 * GEMEINSAMER HOCHWERTIGER PFEIL-STIL
 * ---------------------------------------------------------- */

.dgm-hero-slider .dgm-hero-arrow {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(242, 101, 34, 0.82) !important;
    color: var(--dgm-color-primary) !important;

    box-shadow:
        0 4px 14px rgba(17, 17, 17, 0.07),
        0 1px 2px rgba(17, 17, 17, 0.04) !important;

    font-size: 26px !important;
    font-weight: 400 !important;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease !important;
}


.dgm-hero-slider .dgm-hero-arrow:hover {
    background: var(--dgm-color-primary) !important;
    border-color: var(--dgm-color-primary) !important;
    color: #FFFFFF !important;

    box-shadow:
        0 7px 18px rgba(242, 101, 34, 0.18),
        0 2px 5px rgba(17, 17, 17, 0.07) !important;
}


.dgm-hero-slider .dgm-hero-arrow:focus-visible {
    background: #FFFFFF !important;
    border-color: var(--dgm-color-primary) !important;
    color: var(--dgm-color-primary) !important;

    outline: 3px solid
        color-mix(
            in srgb,
            var(--dgm-color-primary) 22%,
            transparent
        ) !important;

    outline-offset: 3px !important;
}


/* ----------------------------------------------------------
 * BREITBILD > 1550 PX
 * Pfeile bleiben seitlich.
 * Dots bleiben unten mittig.
 * ---------------------------------------------------------- */

@media (min-width: 1551px) {

    .dgm-hero-navigation {
        display: contents;
    }


    .dgm-hero-slider .dgm-hero-arrow {
        position: absolute !important;

        top: 50% !important;
        bottom: auto !important;

        width: 46px !important;
        height: 46px !important;

        min-width: 46px !important;
        min-height: 46px !important;

        max-width: 46px !important;
        max-height: 46px !important;

        transform: translateY(-50%) !important;

        z-index: 20 !important;
    }


    .dgm-hero-slider .dgm-hero-arrow--prev {
        left: 18px !important;
        right: auto !important;
    }


    .dgm-hero-slider .dgm-hero-arrow--next {
        right: 18px !important;
        left: auto !important;
    }


    .dgm-hero-slider .dgm-hero-arrow:hover {
        transform:
            translateY(-50%)
            scale(1.04) !important;
    }
}


/* ----------------------------------------------------------
 * DESKTOP / LAPTOP 1025–1550 PX
 *
 * Der komplette Block
 * [Pfeil] [Dots] [Pfeil]
 * wird als EIN Element zentriert.
 *
 * Dadurch ist die Mitte immer korrekt – unabhängig davon,
 * ob 2, 3, 4 oder mehr Dots vorhanden sind.
 * ---------------------------------------------------------- */

@media (min-width: 1025px) and (max-width: 1550px) {

    .dgm-hero-navigation {
        position: absolute;

        left: 50%;
        bottom: 0;

        z-index: 25;

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

        width: max-content;
        max-width: calc(100% - 40px);

        gap: 12px;

        transform: translateX(-50%);
    }


    .dgm-hero-slider .dgm-hero-arrow {
        position: static !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        flex: 0 0 36px;

        width: 36px !important;
        height: 36px !important;

        min-width: 36px !important;
        min-height: 36px !important;

        max-width: 36px !important;
        max-height: 36px !important;

        margin: 0 !important;

        font-size: 23px !important;

        transform: none !important;
    }


    .dgm-hero-slider .dgm-hero-arrow:hover {
        transform: translateY(-2px) !important;
    }


    /*
     * Dots sind innerhalb dieses Flex-Blocks nicht mehr absolut.
     * Genau das sorgt für die echte Gesamtzentrierung.
     */
    .dgm-hero-slider .dgm-hero-dots {
        position: static !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;

        margin: 0 !important;

        transform: none !important;
    }


    /*
     * Genügend Luft für die unten liegende Navigation.
     * Linker Inhaltsbereich bleibt ansonsten unverändert.
     */
    .dgm-hero-layout-v2 .dgm-hero-inner {
        padding-bottom:
            clamp(
                72px,
                6vw,
                84px
            ) !important;
    }
}


/* ==========================================================
 * 20. V1.6.6 – RESPONSIVE MASTER
 *
 * WICHTIG:
 * - Desktop ab 1025 px bleibt optisch unverändert.
 * - Tablet/Mobile wurden neu aufgebaut, damit sich Bild und
 *   Text NIEMALS überlagern.
 * - Portrait-Reihenfolge exakt:
 *   Eyebrow → Titel → Beschreibung → CTA → Bild → Vorteile → Dots
 * - Mobile/Tablet ohne Pfeile.
 * ========================================================== */


/* ----------------------------------------------------------
 * DESKTOP – bestätigter Stand
 * ---------------------------------------------------------- */

@media (min-width: 1025px) {

    .dgm-hero-layout-v2 .dgm-hero-actions {
        margin-bottom: 64px;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        margin-top: 42px;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        grid-template-columns:
            clamp(48px, 3.2vw, 62px)
            minmax(0, 1fr);

        gap: clamp(10px, .8vw, 14px);
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        width: clamp(48px, 3.2vw, 62px);
        height: clamp(48px, 3.2vw, 62px);
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon svg {
        width: 100%;
        height: 100%;
        stroke-width: 1.2;
    }
}


/* ==========================================================
 * GEMEINSAME BASIS TABLET + MOBILE
 * ========================================================== */

@media (max-width: 1024px) {

    /*
     * Auf Tablet/Mobile nur Dots.
     * Damit kann nie ein Pfeil in Text oder Bild hineinlaufen.
     */
    .dgm-hero-slider .dgm-hero-arrow {
        display: none !important;
    }

    /*
     * Alle alten Desktop-Grid-Zuweisungen neutralisieren.
     * Das war die Ursache dafür, dass Titel und Bild im Video
     * teilweise in unterschiedliche Spalten gesprungen sind.
     */
    .dgm-hero-foreground-position-right .dgm-hero-content,
    .dgm-hero-foreground-position-left .dgm-hero-content,
    .dgm-hero-foreground-position-right .dgm-hero-foreground,
    .dgm-hero-foreground-position-left .dgm-hero-foreground {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-content {
        display: contents !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-eyebrow,
    .dgm-hero-layout-v2 .dgm-hero-title-v2,
    .dgm-hero-layout-v2 .dgm-hero-description,
    .dgm-hero-layout-v2 .dgm-hero-actions,
    .dgm-hero-layout-v2 .dgm-hero-foreground,
    .dgm-hero-layout-v2 .dgm-hero-benefits {
        grid-column: 1 / -1 !important;
        min-width: 0;
    }

    .dgm-hero-layout-v2 .dgm-hero-eyebrow {
        grid-row: 1 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-title-v2 {
        grid-row: 2 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-description {
        grid-row: 3 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-actions {
        grid-row: 4 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        grid-row: 5 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        grid-row: 6 !important;
    }

    /*
     * Bildbereich muss in seiner eigenen Zeile bleiben.
     * Kein absoluter Inhalt, kein Überlaufen in Text.
     */
    .dgm-hero-layout-v2 .dgm-hero-foreground {
        position: relative !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        max-width: none !important;

        overflow: hidden;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame {
        position: relative !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

        margin: 0 !important;

        border: 0 !important;
        background: transparent !important;

        overflow: hidden !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame picture {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        height: 100% !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground-image {
        display: block !important;

        width: 100% !important;
        height: 100% !important;

        max-width: 100% !important;
        max-height: 100% !important;

        object-fit: contain !important;
        object-position: center center !important;

        margin: 0 auto !important;
    }

    /*
     * Vorteile genau wie Referenz:
     * 3 gleich breite Spalten, Icon oben, Text zentriert.
     */
    .dgm-hero-layout-v2 .dgm-hero-benefits {
        display: grid !important;
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        width: 100% !important;

        gap: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;

        min-width: 0 !important;

        text-align: center !important;

        border-right:
            1px solid
            var(--dgm-color-border-light) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit:first-child {
        padding-left: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit:last-child {
        padding-right: 0 !important;
        border-right: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        flex: 0 0 auto !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon svg {
        width: 100% !important;
        height: 100% !important;

        stroke-width: 1.2;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-copy {
        display: block !important;

        width: 100% !important;

        padding: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-title,
    .dgm-hero-layout-v2 .dgm-hero-benefit-text {
        display: block !important;

        width: 100% !important;
    }

    /*
     * Dots unten exakt mittig.
     */
    .dgm-hero-navigation {
        position: absolute !important;

        left: 50% !important;

        z-index: 30 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: max-content !important;

        transform: translateX(-50%) !important;
    }

    .dgm-hero-slider .dgm-hero-dots {
        position: static !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: auto !important;

        margin: 0 !important;

        transform: none !important;
    }
}


/* ==========================================================
 * TABLET HOCHFORMAT – 768 BIS 1024
 * ========================================================== */

@media
    (min-width: 768px)
    and (max-width: 1024px)
    and (orientation: portrait) {

    .dgm-hero-slider {
        --dgm-hero-header-h: 0px;

        height:
            calc(
                100svh -
                var(--dgm-hero-header-h)
            ) !important;

        min-height: 720px !important;
        max-height:
            calc(
                100svh -
                var(--dgm-hero-header-h)
            ) !important;

        margin-bottom: 64px !important;

        overflow: hidden !important;
    }

    .dgm-hero-slider .dgm-hero-track,
    .dgm-hero-slider .dgm-hero-slide {
        height: 100% !important;
        min-height: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-inner {
        display: grid !important;

        grid-template-columns: minmax(0, 1fr) !important;

        grid-template-rows:
            auto
            auto
            auto
            auto
            minmax(220px, 1fr)
            auto !important;

        width: min(calc(100% - 56px), 820px) !important;
        max-width: 820px !important;

        height: 100% !important;
        min-height: 0 !important;

        margin: 0 auto !important;

        padding:
            clamp(24px, 3svh, 34px)
            0
            clamp(58px, 6svh, 72px) !important;

        row-gap: 0 !important;
        column-gap: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-eyebrow {
        margin: 0 0 clamp(10px, 1.2svh, 14px) !important;

        font-size: clamp(.84rem, 1.55svh, 1rem) !important;
        line-height: 1.2 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-title-v2 {
        margin: 0 0 clamp(14px, 1.7svh, 20px) !important;

        font-size: clamp(2rem, 4.2svh, 3rem) !important;
        line-height: 1.06 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-title-v2 span {
        display: block;
    }

    .dgm-hero-layout-v2 .dgm-hero-description {
        margin: 0 0 clamp(16px, 1.9svh, 22px) !important;

        max-width: 760px !important;

        font-size: clamp(1rem, 1.8svh, 1.16rem) !important;
        line-height: 1.42 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-actions {
        display: flex !important;

        margin: 0 0 clamp(18px, 2.2svh, 26px) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-button {
        width: 100% !important;

        min-height: clamp(54px, 6svh, 64px) !important;

        justify-content: center !important;

        padding: 0 26px !important;

        font-size: clamp(.98rem, 1.6svh, 1.08rem) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        min-height: 220px !important;

        margin: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame {
        height: 100% !important;
        min-height: 220px !important;

        padding: clamp(4px, 1svh, 10px) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        margin: clamp(16px, 2svh, 22px) 0 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        padding:
            0
            clamp(14px, 2.4vw, 24px) !important;

        gap: clamp(7px, .9svh, 10px) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        width: clamp(48px, 5.2svh, 62px) !important;
        height: clamp(48px, 5.2svh, 62px) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-title {
        margin-bottom: 4px !important;

        font-size: clamp(.84rem, 1.45svh, .98rem) !important;
        line-height: 1.18 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-text {
        font-size: clamp(.72rem, 1.25svh, .88rem) !important;
        line-height: 1.3 !important;
    }

    .dgm-hero-navigation {
        bottom: 14px !important;
    }

    .dgm-hero-slider .dgm-hero-dots {
        gap: 10px !important;
    }
}


/* ==========================================================
 * MOBILE HOCHFORMAT – BIS 767
 * ========================================================== */

@media
    (max-width: 767px)
    and (orientation: portrait) {

    .dgm-hero-slider {
        --dgm-hero-header-h: 0;

        height:
            calc(
                100svh -
                var(--dgm-hero-header-h)
            ) !important;

        min-height: 560px !important;
        max-height:
            calc(
                100svh -
                var(--dgm-hero-header-h)
            ) !important;

        margin-bottom: 64px !important;

        overflow: hidden !important;
    }

    .dgm-hero-slider .dgm-hero-track,
    .dgm-hero-slider .dgm-hero-slide {
        height: 100% !important;
        min-height: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-inner {
        display: grid !important;

        grid-template-columns: minmax(0, 1fr) !important;

        grid-template-rows:
            auto
            auto
            auto
            auto
            minmax(135px, 1fr)
            auto !important;

        width:
            calc(
                100% -
                clamp(28px, 8vw, 42px)
            ) !important;

        max-width: none !important;

        height: 100% !important;
        min-height: 0 !important;

        margin: 0 auto !important;

        padding:
            clamp(15px, 2.2svh, 22px)
            0
            clamp(46px, 5.5svh, 58px) !important;

        row-gap: 0 !important;
        column-gap: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-eyebrow {
        margin: 0 0 clamp(7px, 1svh, 10px) !important;

        font-size: clamp(.7rem, 1.4svh, .82rem) !important;
        line-height: 1.18 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-title-v2 {
        margin: 0 0 clamp(10px, 1.4svh, 14px) !important;

        font-size: clamp(1.6rem, 3.4svh, 2.2rem) !important;
        line-height: 1.05 !important;
    }

    /*
     * Referenz: schwarzer und oranger Titel jeweils eigene Zeile.
     */
    .dgm-hero-layout-v2 .dgm-hero-title-v2 span {
        display: block !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-description {
        margin: 0 0 clamp(11px, 1.5svh, 16px) !important;

        max-width: none !important;

        font-size: clamp(.82rem, 1.6svh, .98rem) !important;
        line-height: 1.38 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-actions {
        display: flex !important;

        margin: 0 0 clamp(12px, 1.7svh, 17px) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-button {
        width: 100% !important;

        min-height: clamp(46px, 5.9svh, 54px) !important;

        justify-content: center !important;

        padding: 0 18px !important;

        font-size: clamp(.86rem, 1.7svh, .98rem) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        min-height: 135px !important;

        margin: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame {
        height: 100% !important;
        min-height: 135px !important;

        padding: 2px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        margin: clamp(9px, 1.35svh, 13px) 0 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        padding:
            0
            clamp(5px, 2vw, 9px) !important;

        gap: clamp(5px, .7svh, 7px) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        width: clamp(36px, 5svh, 48px) !important;
        height: clamp(36px, 5svh, 48px) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-title {
        margin-bottom: 3px !important;

        font-size: clamp(.64rem, 1.3svh, .78rem) !important;
        line-height: 1.15 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-text {
        font-size: clamp(.56rem, 1.1svh, .69rem) !important;
        line-height: 1.24 !important;
    }

    .dgm-hero-navigation {
        bottom: clamp(8px, 1.2svh, 12px) !important;
    }

    .dgm-hero-slider .dgm-hero-dots {
        gap: 9px !important;
    }

    .dgm-hero-slider .dgm-hero-dot {
        width: 12x !important;
        height: 12px !important;
        min-width: 12px !important;
        min-height: 12px !important;
        max-width: 12px !important;
        max-height: 12px !important;
    }

    .dgm-hero-slider .dgm-hero-dot.is-active,
    .dgm-hero-slider .dgm-hero-dot[aria-current="true"] {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;
        max-width: 16px !important;
        max-height: 16px !important;
    }
}


/* ==========================================================
 * MOBILE QUERFORMAT – BIS 880
 *
 * Gleiche Reihenfolge wie Portrait, nur stärker komprimiert,
 * damit der komplette Hero in die kurze Fensterhöhe passt.
 * ========================================================== */

@media
    (max-width: 880px)
    and (orientation: landscape) {

    .dgm-hero-slider {
        --dgm-hero-header-h: 68px;

        height:
            calc(
                100svh -
                var(--dgm-hero-header-h)
            ) !important;

        min-height: 300px !important;
        max-height:
            calc(
                100svh -
                var(--dgm-hero-header-h)
            ) !important;

        margin-bottom: 64px !important;

        overflow: hidden !important;
    }

    .dgm-hero-slider .dgm-hero-track,
    .dgm-hero-slider .dgm-hero-slide {
        height: 100% !important;
        min-height: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-inner {
        display: grid !important;

        grid-template-columns: minmax(0, 1fr) !important;

        grid-template-rows:
            auto
            auto
            auto
            auto
            minmax(55px, 1fr)
            auto !important;

        width:
            calc(
                100% -
                clamp(28px, 5vw, 48px)
            ) !important;

        max-width: none !important;

        height: 100% !important;
        min-height: 0 !important;

        margin: 0 auto !important;

        padding:
            clamp(7px, 1.5svh, 10px)
            0
            clamp(30px, 6svh, 38px) !important;

        row-gap: 0 !important;
        column-gap: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-eyebrow {
        margin: 0 0 3px !important;

        font-size: clamp(.58rem, 2svh, .72rem) !important;
        line-height: 1.12 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-title-v2 {
        margin: 0 0 4px !important;

        font-size: clamp(1.14rem, 4.7svh, 1.62rem) !important;
        line-height: 1.02 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-title-v2 span {
        display: inline !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-title-accent::before {
        content: " ";
    }

    .dgm-hero-layout-v2 .dgm-hero-description {
        display: -webkit-box !important;

        margin: 0 0 5px !important;

        max-width: none !important;

        overflow: hidden !important;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;

        font-size: clamp(.66rem, 2.35svh, .82rem) !important;
        line-height: 1.24 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-actions {
        margin: 0 0 5px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-button {
        width: 100% !important;

        min-height: clamp(34px, 8.5svh, 40px) !important;

        justify-content: center !important;

        padding: 0 16px !important;

        font-size: clamp(.7rem, 2.3svh, .84rem) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        min-height: 55px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame {
        height: 100% !important;
        min-height: 55px !important;

        padding: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        margin: 5px 0 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        padding: 0 6px !important;

        gap: 3px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        width: clamp(24px, 6svh, 32px) !important;
        height: clamp(24px, 6svh, 32px) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-title {
        margin-bottom: 1px !important;

        font-size: clamp(.53rem, 1.8svh, .66rem) !important;
        line-height: 1.08 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-text {
        font-size: clamp(.46rem, 1.55svh, .58rem) !important;
        line-height: 1.12 !important;
    }

    .dgm-hero-navigation {
        bottom: 5px !important;
    }

    .dgm-hero-slider .dgm-hero-dots {
        gap: 7px !important;
    }

    .dgm-hero-slider .dgm-hero-dot {
        width: 7px !important;
        height: 7px !important;
        min-width: 7px !important;
        min-height: 7px !important;
        max-width: 7px !important;
        max-height: 7px !important;
    }

    .dgm-hero-slider .dgm-hero-dot.is-active,
    .dgm-hero-slider .dgm-hero-dot[aria-current="true"] {
        width: 11px !important;
        height: 11px !important;
        min-width: 11px !important;
        min-height: 11px !important;
        max-width: 11px !important;
        max-height: 11px !important;
    }
}


/* ==========================================================
 * 21. V1.6.7 – FESTER BILDBEREICH TABLET / MOBILE
 *
 * Ziel:
 * - Produktbild bekommt eine eigene, klar begrenzte Box.
 * - Es kann weder in CTA/Text noch in Vorteile/Dots laufen.
 * - object-fit: contain hält das komplette Produkt in der Box.
 * - Portrait bleibt wie Referenz:
 *   Text → CTA → Bild → Vorteile → Dots.
 * ========================================================== */


/* ----------------------------------------------------------
 * GEMEINSAM TABLET + MOBILE
 * ---------------------------------------------------------- */

@media (max-width: 1024px) {

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        position: relative !important;

        justify-self: center !important;
        align-self: center !important;

        flex: none !important;

        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        max-height: none !important;

        margin: 0 auto !important;

        overflow: hidden !important;

        z-index: 2 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame {
        position: relative !important;

        width: 100% !important;
        height: 100% !important;

        min-width: 0 !important;
        min-height: 0 !important;

        max-width: 100% !important;
        max-height: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;

        border: 0 !important;
        background: transparent !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame picture {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        height: 100% !important;

        min-width: 0 !important;
        min-height: 0 !important;

        overflow: hidden !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground-image {
        position: static !important;

        display: block !important;

        width: 100% !important;
        height: 100% !important;

        min-width: 0 !important;
        min-height: 0 !important;

        max-width: 100% !important;
        max-height: 100% !important;

        margin: 0 auto !important;

        object-fit: contain !important;
        object-position: center center !important;

        transform: none !important;
    }
}


/* ==========================================================
 * TABLET HOCHFORMAT – 768–1024
 *
 * Feste sichtbare Produktbox:
 * max. 520 × 300 px
 * ========================================================== */

@media
    (min-width: 768px)
    and (max-width: 1024px)
    and (orientation: portrait) {

    .dgm-hero-layout-v2 .dgm-hero-inner {
        grid-template-rows:
            auto
            auto
            auto
            auto
            300px
            auto !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-actions {
        margin-bottom: 20px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        width: min(68vw, 520px) !important;
        height: 300px !important;

        min-height: 300px !important;
        max-height: 300px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        margin-top: 18px !important;
    }
}


/* ==========================================================
 * MOBILE HOCHFORMAT – BIS 767
 *
 * Feste Produktbox:
 * Breite max. 380 px
 * Höhe 230 px
 *
 * Kleine Geräte <= 390px:
 * 330 × 205 px
 * ========================================================== */

@media
    (max-width: 767px)
    and (orientation: portrait) {

    .dgm-hero-layout-v2 .dgm-hero-inner {
        grid-template-rows:
            auto
            auto
            auto
            auto
            230px
            auto !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-actions {
        margin-bottom: 18px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        width: min(82vw, 380px) !important;
        height: 230px !important;

        min-height: 230px !important;
        max-height: 230px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        margin-top: 14px !important;
    }
}


@media
    (max-width: 390px)
    and (orientation: portrait) {

    .dgm-hero-layout-v2 .dgm-hero-inner {
        grid-template-rows:
            auto
            auto
            auto
            auto
            205px
            auto !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        width: min(84vw, 330px) !important;
        height: 205px !important;

        min-height: 205px !important;
        max-height: 205px !important;
    }
}


/* ==========================================================
 * MOBILE QUERFORMAT – BIS 880
 *
 * In Querformat muss das Produkt deutlich kompakter sein,
 * damit alles in die geringe Fensterhöhe passt.
 * ========================================================== */

@media
    (max-width: 880px)
    and (orientation: landscape) {

    .dgm-hero-layout-v2 .dgm-hero-inner {
        grid-template-rows:
            auto
            auto
            auto
            auto
            76px
            auto !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-actions {
        margin-bottom: 7px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        width: min(42vw, 300px) !important;
        height: 76px !important;

        min-height: 76px !important;
        max-height: 76px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        margin-top: 6px !important;
    }
}


/* ==========================================================
 * SEHR KURZE BILDSCHIRME
 * Sicherheit: Bildbox reduziert sich, bevor sie andere Inhalte
 * verdrängt oder überlagert.
 * ========================================================== */

@media
    (max-width: 767px)
    and (orientation: portrait)
    and (max-height: 760px) {

    .dgm-hero-layout-v2 .dgm-hero-inner {
        grid-template-rows:
            auto
            auto
            auto
            auto
            175px
            auto !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        width: min(72vw, 310px) !important;
        height: 175px !important;

        min-height: 175px !important;
        max-height: 175px !important;
    }
}


/* ==========================================================
 * 22. V1.6.8 – RESPONSIVE POLISH
 *
 * Ziele:
 * - Beschreibung NIE abschneiden.
 * - Mobile Portrait: kompakter Text, groesseres Bild.
 * - Mobile Vorteile: nur Icon + Titel.
 * - Tablet Portrait und Mobile Landscape duerfen natuerlich
 *   hoeher werden und scrollen.
 * - Innenbreite folgt dem Header-Gutter.
 * - Desktop/Laptop: Abstaende werden bei kleinerem Fenster
 *   proportional enger, ohne den bestaetigten Desktop-Look
 *   auf grossen Bildschirmen zu veraendern.
 * ========================================================== */


/* ----------------------------------------------------------
 * BESCHREIBUNG IMMER VOLLSTAENDIG
 * ---------------------------------------------------------- */

.dgm-hero-layout-v2 .dgm-hero-description {
    display: block !important;

    max-height: none !important;
    overflow: visible !important;

    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;

    text-overflow: clip !important;
}


/* ----------------------------------------------------------
 * DESKTOP / LAPTOP – weniger Leeraum bei kleinerem Fenster
 * ---------------------------------------------------------- */

@media (min-width: 1025px) {

    .dgm-hero-layout-v2 .dgm-hero-inner {
        column-gap:
            clamp(
                18px,
                1.55vw,
                28px
            ) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-actions {
        margin-bottom:
            clamp(
                34px,
                4vw,
                64px
            ) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        margin-top:
            clamp(
                24px,
                2.65vw,
                42px
            ) !important;
    }

    /*
     * Unter 1250px etwas mehr Platz fuer Text und weniger
     * optische Distanz zum Produktbild.
     */
    @media (max-width: 1250px) {

        .dgm-hero-layout-v2 .dgm-hero-inner {
            grid-template-columns:
                minmax(0, 60%)
                minmax(0, 40%) !important;
        }

        .dgm-hero-layout-v2 .dgm-hero-description {
            line-height: 1.42 !important;
        }
    }
}


/* ==========================================================
 * GEMEINSAME INNENBREITE TABLET + MOBILE
 *
 * Der Gutter passt sich wie der mobile Header an:
 * ca. 16px auf kleinen Handys bis ca. 32px auf Tablet.
 * ========================================================== */

@media (max-width: 1024px) {

    .dgm-hero-layout-v2 .dgm-hero-inner {
        --dgm-hero-side-gutter:
            clamp(
                16px,
                4vw,
                32px
            );

        width:
            calc(
                100% -
                (2 * var(--dgm-hero-side-gutter))
            ) !important;

        max-width: none !important;

        margin-inline: auto !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-description {
        width: 100% !important;
        max-width: none !important;
    }
}


/* ==========================================================
 * TABLET HOCHFORMAT – NATUERLICHE HOEHE / SCROLLBAR ERLAUBT
 * ========================================================== */

@media
    (min-width: 768px)
    and (max-width: 1024px)
    and (orientation: portrait) {

    .dgm-hero-slider {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: hidden !important;
    }

    .dgm-hero-slider .dgm-hero-track,
    .dgm-hero-slider .dgm-hero-slide {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-inner {
        height: auto !important;
        min-height: 0 !important;

        grid-template-rows:
            auto
            auto
            auto
            auto
            330px
            auto !important;

        padding:
            clamp(24px, 3vw, 34px)
            0
            68px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-eyebrow {
        margin-bottom: 10px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-title-v2 {
        margin-bottom: 14px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-description {
        margin-bottom: 16px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-actions {
        margin-bottom: 18px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        width: min(72vw, 560px) !important;
        height: 330px !important;

        min-height: 330px !important;
        max-height: 330px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        margin-top: 18px !important;
    }

    .dgm-hero-navigation {
        bottom: 14px !important;
    }
}


/* ==========================================================
 * MOBILE HOCHFORMAT
 *
 * Handy bleibt mindestens so hoch wie der sichtbare Bereich,
 * darf aber wachsen, falls Text/Inhalt mehr Platz benoetigt.
 * So bleibt immer der ganze Text sichtbar.
 * ========================================================== */

@media
    (max-width: 767px)
    and (orientation: portrait) {

    .dgm-hero-slider {
        --dgm-hero-header-h: 78px;

        height: auto !important;

        min-height:
            calc(
                100svh -
                var(--dgm-hero-header-h)
            ) !important;

        max-height: none !important;

        overflow: hidden !important;
    }

    .dgm-hero-slider .dgm-hero-track,
    .dgm-hero-slider .dgm-hero-slide {
        height: auto !important;
        min-height: inherit !important;
        max-height: none !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-inner {
        height: auto !important;

        min-height:
            calc(
                100svh -
                var(--dgm-hero-header-h)
            ) !important;

        grid-template-rows:
            auto
            auto
            auto
            auto
            270px
            auto !important;

        padding:
            18px
            0
            54px !important;
    }

    /*
     * Textbereich kompakter, aber ohne Abschneiden.
     */
    .dgm-hero-layout-v2 .dgm-hero-eyebrow {
        margin-bottom: 7px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-title-v2 {
        margin-bottom: 10px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-description {
        margin-bottom: 12px !important;

        font-size:
            clamp(
                .82rem,
                3.55vw,
                .98rem
            ) !important;

        line-height: 1.34 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-actions {
        margin-bottom: 14px !important;
    }

    /*
     * Produktbild bewusst groesser als in 1.6.7,
     * bleibt aber sicher in eigener Box.
     */
    .dgm-hero-layout-v2 .dgm-hero-foreground {
        width:
            min(
                86vw,
                420px
            ) !important;

        height: 270px !important;

        min-height: 270px !important;
        max-height: 270px !important;
    }

    /*
     * Vorteile auf Handy:
     * nur Icon + Titel, Beschreibung ausblenden.
     */
    .dgm-hero-layout-v2 .dgm-hero-benefits {
        margin-top: 12px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        padding-inline:
            clamp(
                5px,
                1.8vw,
                9px
            ) !important;

        gap: 6px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        width:
            clamp(
                42px,
                11vw,
                52px
            ) !important;

        height:
            clamp(
                42px,
                11vw,
                52px
            ) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-title {
        margin: 0 !important;

        font-size:
            clamp(
                .68rem,
                3.1vw,
                .82rem
            ) !important;

        line-height: 1.16 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-text {
        display: none !important;
    }

    .dgm-hero-navigation {
        bottom: 10px !important;
    }
}


/* ----------------------------------------------------------
 * KLEINE HANDYS
 * ---------------------------------------------------------- */

@media
    (max-width: 390px)
    and (orientation: portrait) {

    .dgm-hero-layout-v2 .dgm-hero-inner {
        grid-template-rows:
            auto
            auto
            auto
            auto
            235px
            auto !important;

        padding-top: 15px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        width: min(88vw, 350px) !important;
        height: 235px !important;

        min-height: 235px !important;
        max-height: 235px !important;
    }
}


/* ==========================================================
 * MOBILE QUERFORMAT – NATUERLICHE HOEHE
 *
 * Kein Zwang mehr auf Bildschirmhoehe.
 * Der komplette Inhalt darf nach unten weiterlaufen.
 * ========================================================== */

@media
    (max-width: 880px)
    and (orientation: landscape) {

    .dgm-hero-slider {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: hidden !important;
    }

    .dgm-hero-slider .dgm-hero-track,
    .dgm-hero-slider .dgm-hero-slide {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-inner {
        height: auto !important;
        min-height: 0 !important;

        grid-template-rows:
            auto
            auto
            auto
            auto
            180px
            auto !important;

        padding:
            16px
            0
            52px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-eyebrow {
        margin-bottom: 6px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-title-v2 {
        margin-bottom: 9px !important;

        font-size:
            clamp(
                1.35rem,
                4.2vw,
                2rem
            ) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-description {
        margin-bottom: 10px !important;

        font-size:
            clamp(
                .78rem,
                2.1vw,
                .94rem
            ) !important;

        line-height: 1.34 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-actions {
        margin-bottom: 12px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        width: min(58vw, 420px) !important;
        height: 180px !important;

        min-height: 180px !important;
        max-height: 180px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        margin-top: 12px !important;
    }

    .dgm-hero-navigation {
        bottom: 9px !important;
    }
}


/* ==========================================================
 * 23. V1.6.9 – MOBILE NATUERLICHE INHALTSHOEHE
 *
 * Unter 786px keine Viewport-/Fensterhoehe mehr.
 * Der Slider ist exakt so hoch wie sein Inhalt.
 *
 * Mehr Inhalt  -> Slider wird hoeher.
 * Weniger Inhalt -> Slider bleibt kompakter.
 *
 * Dadurch werden Text, Bild, Vorteile und Dots nie in eine
 * kuenstliche Bildschirmhoehe gepresst.
 * ========================================================== */

@media (max-width: 785px) {

    .dgm-hero-slider {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: hidden !important;
    }

    .dgm-hero-slider .dgm-hero-track,
    .dgm-hero-slider .dgm-hero-slide {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-inner {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    /*
     * Keine viewport-basierte Gridhoehe mehr.
     * Bild bekommt weiterhin eine eigene feste Zeile.
     */
    .dgm-hero-layout-v2 .dgm-hero-inner {
        grid-template-rows:
            auto
            auto
            auto
            auto
            auto
            auto !important;
    }

    /*
     * Bildgroesse jetzt nur noch von der Fensterbreite
     * abhaengig, nicht mehr von der Fensterhoehe.
     */
    .dgm-hero-layout-v2 .dgm-hero-foreground {
        width:
            min(
                86vw,
                420px
            ) !important;

        height:
            clamp(
                220px,
                62vw,
                300px
            ) !important;

        min-height: 0 !important;
        max-height: 300px !important;

        margin-inline: auto !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame {
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
    }

    /*
     * Vertikale Abstaende rein inhaltsbasiert.
     */
    .dgm-hero-layout-v2 .dgm-hero-inner {
        padding:
            18px
            0
            54px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-eyebrow {
        margin-bottom: 7px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-title-v2 {
        margin-bottom: 10px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-description {
        margin-bottom: 12px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-actions {
        margin-bottom: 14px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        margin-top: 12px !important;
    }

    /*
     * Dots gehoeren weiterhin zum unteren Bereich des Sliders.
     * Da der Slider jetzt inhaltsbasiert hoeher wird, bleibt
     * genuegend Platz durch das untere Padding.
     */
    .dgm-hero-navigation {
        bottom: 10px !important;
    }
}


/* Kleine Handys */
@media (max-width: 390px) {

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        width:
            min(
                88vw,
                350px
            ) !important;

        height:
            clamp(
                205px,
                64vw,
                250px
            ) !important;

        max-height: 250px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-inner {
        padding-top: 15px !important;
    }
}


/* Mobile Querformat unter 786px ebenfalls inhaltsbasiert */
@media
    (max-width: 785px)
    and (orientation: landscape) {

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        width:
            min(
                58vw,
                420px
            ) !important;

        height:
            clamp(
                150px,
                28vw,
                220px
            ) !important;

        max-height: 220px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-inner {
        padding:
            16px
            0
            52px !important;
    }
}


/* ==========================================================
 * 24. V1.7.0 – DESKTOP/MOBILE BILDER WIRKLICH GETRENNT
 *
 * Vordergrund:
 * - Desktopbild allein = nur ab 1025 px
 * - Mobilebild allein = nur bis 1024 px
 * - Beide gesetzt = je nach Breakpoint das passende Bild
 *
 * Hintergrund:
 * - Mobile-Hintergrund funktioniert auch dann, wenn kein
 *   Desktop-Hintergrund ausgewählt wurde.
 * ========================================================== */

@media (max-width: 1024px) {

    .dgm-hero-foreground--desktop-only {
        display: none !important;
    }
}

@media (min-width: 1025px) {

    .dgm-hero-foreground--mobile-only {
        display: none !important;
    }
}

/*
 * Wenn nur ein Mobile-Hintergrund gesetzt ist, bleibt Desktop
 * bei der gewählten Grundfarbe statt das Mobilebild zu strecken.
 */
@media (min-width: 1025px) {

    .dgm-hero-slide.dgm-hero-background-image {
        background-color:
            var(
                --dgm-hero-bg-color,
                var(--dgm-color-bg-white)
            );
    }
}


/* ==========================================================
 * V2.2.4 – TABLET/MOBILE: BILD ZUERST, VORTEILE DANACH
 *
 * Reihenfolge <=1024px:
 * 1. Text / Button
 * 2. Vordergrundbild
 * 3. Vorteile
 *
 * Die Vorteile bleiben technisch NACH dem Bild, werden aber
 * optisch 32px nach oben gezogen und liegen dadurch im unteren
 * Bereich des Bildes.
 * ========================================================== */

@media (max-width: 1024px) {

    /*
     * Bild vor den Vorteilen.
     */
    .dgm-hero-layout-v2 .dgm-hero-foreground {
        grid-row: 5 !important;
        grid-column: 1 / -1 !important;

        position: relative !important;
        z-index: 2 !important;

        margin-top: 0 !important;
    }

    /*
     * Vorteile kommen nach dem Bild.
     * transform: translateY(-32px) = optisch in den unteren
     * Bildbereich hinein.
     * margin-bottom:-32px = kein unnötiger Leerraum danach.
     */
    .dgm-hero-layout-v2 .dgm-hero-benefits {
        grid-row: 6 !important;
        grid-column: 1 / -1 !important;

        position: relative !important;
        z-index: 20 !important;

        width: calc(100% - 32px) !important;
        max-width: none !important;

        margin:
            0
            auto
            -32px !important;

        padding: 16px !important;

        box-sizing: border-box !important;

        transform: translateY(-32px) !important;

        background:
            var(
                --dgm-color-bg-light
            ) !important;

        border:
            1px solid
            var(
                --dgm-color-border-light
            ) !important;

        border-radius: 14px !important;

        box-shadow:
            0 10px 28px
            rgba(17, 17, 17, .08) !important;

        overflow: visible !important;
    }

    /*
     * Icons bewusst etwas kleiner als zuvor.
     */
    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        width: clamp(38px, 5vw, 48px) !important;
        height: clamp(38px, 5vw, 48px) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        padding:
            0
            10px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit:first-child {
        padding-left: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit:last-child {
        padding-right: 0 !important;
    }
}


/* Tablet Hochformat */
@media
    (min-width: 768px)
    and (max-width: 1024px)
    and (orientation: portrait) {

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        width: calc(100% - 40px) !important;

        padding: 16px !important;

        transform: translateY(-32px) !important;
        margin-bottom: -32px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        width: 46px !important;
        height: 46px !important;
    }
}


/* Mobile Hochformat */
@media
    (max-width: 767px)
    and (orientation: portrait) {

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        width: calc(100% - 16px) !important;

        padding: 16px !important;

        transform: translateY(-32px) !important;
        margin-bottom: -32px !important;

        border-radius: 12px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        padding:
            0
            5px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        width: 40px !important;
        height: 40px !important;
    }

    /*
     * Auf Handy nur Icon + Titel.
     */
    .dgm-hero-layout-v2 .dgm-hero-benefit-text {
        display: none !important;
    }
}


/* Mobile Querformat */
@media
    (max-width: 880px)
    and (orientation: landscape) {

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        grid-row: 5 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        grid-row: 6 !important;

        width: calc(100% - 32px) !important;

        padding: 16px !important;

        transform: translateY(-32px) !important;
        margin-bottom: -32px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        width: 38px !important;
        height: 38px !important;
    }
}


/* ==========================================================
 * V2.2.5 – BENEFIT-AUSRICHTUNG
 *
 * DESKTOP:
 * - Icon oben
 * - Text darunter
 *
 * MOBILE:
 * - Icon links
 * - Titel rechts
 * - Kurztext weiterhin ausgeblendet
 * - Benefit-Karte nur noch 16px über dem Bild
 * ========================================================== */


/* ----------------------------------------------------------
 * DESKTOP >= 1025px
 * Icon oben, Text unten
 * ---------------------------------------------------------- */

@media (min-width: 1025px) {

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;

        grid-template-columns: none !important;

        gap: 10px !important;

        text-align: center !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        flex: 0 0 auto !important;

        margin: 0 auto !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-copy {
        width: 100% !important;

        padding: 0 !important;

        text-align: center !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-title,
    .dgm-hero-layout-v2 .dgm-hero-benefit-text {
        display: block !important;

        width: 100% !important;

        text-align: center !important;
    }
}


/* ----------------------------------------------------------
 * MOBILE <= 767px
 * Icon links, Titel rechts
 * ---------------------------------------------------------- */

@media (max-width: 767px) {

    /*
     * Die Benefits-Karte liegt jetzt nur noch 16px
     * im unteren Bildbereich.
     */
    .dgm-hero-layout-v2 .dgm-hero-benefits {
        transform: translateY(-16px) !important;
        margin-bottom: -16px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;

        grid-template-columns: none !important;

        gap: 8px !important;

        padding:
            0
            6px !important;

        text-align: left !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        flex:
            0
            0
            36px !important;

        width: 36px !important;
        height: 36px !important;

        margin: 0 !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-copy {
        flex: 1 1 auto !important;

        min-width: 0 !important;

        padding: 0 !important;

        text-align: left !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-title {
        display: block !important;

        width: 100% !important;

        margin: 0 !important;

        text-align: left !important;
    }

    /*
     * Handy weiterhin nur Icon + Titel.
     */
    .dgm-hero-layout-v2 .dgm-hero-benefit-text {
        display: none !important;
    }
}


/* Mobile Querformat ebenfalls nur 16px Überlappung */
@media
    (max-width: 880px)
    and (orientation: landscape) {

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        transform: translateY(-16px) !important;
        margin-bottom: -16px !important;
    }
}


/* ==========================================================
 * V2.2.6 – BENEFITS EINHEITLICH
 *
 * MOBILE:
 * - Icon wieder oben
 * - Titel darunter
 * - Kurztext weiterhin ausgeblendet
 * - Überlappung bleibt -16px
 *
 * DESKTOP:
 * - Icon oben / Text unten
 * - jetzt ebenfalls als helle Benefit-Karte
 *   mit 16px Innenabstand, Border und Schatten
 * ========================================================== */


/* ----------------------------------------------------------
 * DESKTOP >= 1025px
 * Benefit-Bereich jetzt ebenfalls mit Hintergrund-Karte
 * ---------------------------------------------------------- */

@media (min-width: 1025px) {

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        position: relative !important;
        z-index: 8 !important;

        box-sizing: border-box !important;

        padding: 16px !important;

        background:
            var(
                --dgm-color-bg-light
            ) !important;

        border:
            1px solid
            var(
                --dgm-color-border-light
            ) !important;

        border-radius: 14px !important;

        box-shadow:
            0 10px 28px
            rgba(17, 17, 17, .08) !important;

        overflow: visible !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;

        gap: 10px !important;

        text-align: center !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        margin: 0 auto !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-copy,
    .dgm-hero-layout-v2 .dgm-hero-benefit-title,
    .dgm-hero-layout-v2 .dgm-hero-benefit-text {
        width: 100% !important;
        text-align: center !important;
    }
}


/* ----------------------------------------------------------
 * MOBILE <= 767px
 * Icon wieder oben, Titel darunter
 * ---------------------------------------------------------- */

@media (max-width: 767px) {

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        transform: translateY(-16px) !important;
        margin-bottom: -16px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;

        gap: 6px !important;

        padding:
            0
            5px !important;

        text-align: center !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        flex: 0 0 auto !important;

        width: 40px !important;
        height: 40px !important;

        margin: 0 auto !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-copy {
        width: 100% !important;

        min-width: 0 !important;

        padding: 0 !important;

        text-align: center !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-title {
        display: block !important;

        width: 100% !important;

        margin: 0 !important;

        text-align: center !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-text {
        display: none !important;
    }
}


/* Mobile Querformat: ebenfalls Icon oben */
@media
    (max-width: 880px)
    and (orientation: landscape) {

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        gap: 6px !important;

        text-align: center !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        width: 38px !important;
        height: 38px !important;

        margin: 0 auto !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-copy,
    .dgm-hero-layout-v2 .dgm-hero-benefit-title {
        text-align: center !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        transform: translateY(-16px) !important;
        margin-bottom: -16px !important;
    }
}


/* ==========================================================
 * V2.2.7 – BENEFIT-KARTE FEINSCHLIFF
 *
 * - gleiche Hintergrundfarbe auf Desktop / Tablet / Mobile
 * - Abstand Button -> Vorteile Desktop = 32px
 * - nur minimaler Schatten auf allen Geräten
 * - Desktop Icons = ca. 48px
 * - optimierter Abstand Icon -> Titel
 * ========================================================== */

/* Einheitlicher Karten-Hintergrund und minimaler Schatten */
.dgm-hero-layout-v2 .dgm-hero-benefits {
    background:
        var(
            --dgm-color-bg-light
        ) !important;

    border:
        1px solid
        var(
            --dgm-color-border-light
        ) !important;

    box-shadow:
        0 3px 10px
        rgba(17, 17, 17, .045) !important;
}


/* ----------------------------------------------------------
 * DESKTOP
 * ---------------------------------------------------------- */

@media (min-width: 1025px) {

    /*
     * Abstand vom Button-/Contentbereich zu den Vorteilen.
     * Vorher ca. 64px, jetzt bewusst 32px.
     */
    .dgm-hero-layout-v2 .dgm-hero-benefits {
        margin-top: 32px !important;

        padding: 16px !important;

        border-radius: 14px !important;
    }

    /*
     * Desktop-Icons kompakter: exakt 48px.
     */
    .dgm-hero-layout-v2 .dgm-hero-benefit-icon {
        width: 48px !important;
        height: 48px !important;

        flex: 0 0 48px !important;
    }

    /*
     * Abstand Icon -> Text optimiert.
     */
    .dgm-hero-layout-v2 .dgm-hero-benefit {
        gap: 7px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-title {
        margin-top: 0 !important;
        margin-bottom: 3px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-copy {
        margin-top: 0 !important;
    }
}


/* ----------------------------------------------------------
 * TABLET
 * ---------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1024px) {

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        padding: 16px !important;

        border-radius: 14px !important;

        box-shadow:
            0 3px 10px
            rgba(17, 17, 17, .045) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        gap: 7px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-title {
        margin-bottom: 3px !important;
    }
}


/* ----------------------------------------------------------
 * MOBILE
 * ---------------------------------------------------------- */

@media (max-width: 767px) {

    .dgm-hero-layout-v2 .dgm-hero-benefits {
        padding: 16px !important;

        border-radius: 12px !important;

        box-shadow:
            0 3px 10px
            rgba(17, 17, 17, .045) !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit {
        gap: 5px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-title {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}


/* ==========================================================
 * V2.2.8 – DESKTOP VORDERGRUNDBILD OHNE RAHMEN / HINTERGRUND
 *
 * Nur Desktop >=1025px:
 * - keine Hintergrundfarbe im Bildbereich
 * - keine Umrandung
 * - kein Schatten
 * Tablet/Mobile bleiben unverändert.
 * ========================================================== */

@media (min-width: 1025px) {

    .dgm-hero-layout-v2 .dgm-hero-media-frame {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
}


/* ==========================================================
 * V2.3.3 – FINALER DESKTOP-BILDBEREICH
 *
 * PROFESSIONELLE, STABILE LÖSUNG OHNE JS-MESSUNG
 *
 * Ab 1025px:
 * - linke Content-Spalte bestimmt automatisch die Höhe
 * - rechte Bild-Spalte nutzt exakt dieselbe Grid-Zeile
 * - Oberkante = Oberkante Eyebrow
 * - Unterkante = Unterkante Vorteile
 * - Bild kann niemals in den Text laufen
 *
 * Tablet Hochformat / Mobile <=1024px bleiben unverändert.
 * ========================================================== */

@media (min-width: 1025px) {

    /*
     * Eine gemeinsame Grid-Zeile.
     * Die Höhe wird vom linken Content bestimmt.
     */
    .dgm-hero-layout-v2 .dgm-hero-inner {
        display: grid !important;

        grid-template-columns:
            minmax(0, 58%)
            minmax(0, 42%) !important;

        grid-template-rows:
            auto !important;

        align-items: stretch !important;

        position: relative !important;
    }

    /*
     * Linker Bereich:
     * Eyebrow bis Ende Vorteile.
     */
    .dgm-hero-layout-v2 .dgm-hero-content {
        grid-row: 1 !important;
        grid-column: 1 !important;

        align-self: stretch !important;

        min-width: 0 !important;

        position: relative !important;
        z-index: 4 !important;
    }

    /*
     * Rechter Bildcontainer:
     * exakt dieselbe Grid-Zeile / exakt dieselbe Höhe wie links.
     */
    .dgm-hero-layout-v2.dgm-hero-foreground-position-right
    .dgm-hero-foreground {
        grid-row: 1 !important;
        grid-column: 2 !important;

        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        align-self: stretch !important;
        justify-self: stretch !important;

        width: 100% !important;
        height: auto !important;

        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        display: block !important;

        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;

        overflow: hidden !important;

        z-index: 3 !important;
    }

    /*
     * Falls Bildposition links verwendet wird:
     * gleiche Logik gespiegelt.
     */
    .dgm-hero-layout-v2.dgm-hero-foreground-position-left
    .dgm-hero-content {
        grid-column: 2 !important;
    }

    .dgm-hero-layout-v2.dgm-hero-foreground-position-left
    .dgm-hero-foreground {
        grid-row: 1 !important;
        grid-column: 1 !important;

        position: relative !important;

        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        align-self: stretch !important;
        justify-self: stretch !important;

        width: 100% !important;
        height: auto !important;

        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        display: block !important;

        overflow: hidden !important;

        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;

        z-index: 3 !important;
    }

    /*
     * Der Frame liegt absolut innerhalb der Grid-Zelle.
     * Dadurch beeinflusst die natürliche Bildgrösse NICHT die
     * Zeilenhöhe. Nur der linke Content bestimmt die Höhe.
     */
    .dgm-hero-layout-v2 .dgm-hero-media-frame {
        position: absolute !important;

        inset: 0 !important;

        width: 100% !important;
        height: 100% !important;

        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        display: block !important;

        overflow: hidden !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame picture {
        position: absolute !important;

        inset: 0 !important;

        display: block !important;

        width: 100% !important;
        height: 100% !important;

        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: hidden !important;
    }

    /*
     * Entscheidend:
     * Das Bild wird über die HÖHE des rechten Containers skaliert.
     * Damit wächst / schrumpft es automatisch mit dem linken Inhalt.
     *
     * width:auto bewahrt das Produktverhältnis.
     * overflow:hidden hält alles sicher in der rechten 42%-Spalte.
     */
    .dgm-hero-layout-v2 .dgm-hero-foreground-image {
        position: absolute !important;

        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;

        display: block !important;

        width: auto !important;
        height: 100% !important;

        min-width: 0 !important;
        min-height: 100% !important;

        max-width: none !important;
        max-height: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: center center !important;

        transform:
            translate(
                -50%,
                -50%
            ) !important;
    }
}


/* ==========================================================
 * V2.3.5 – HERO TITEL FORTLAUFEND
 *
 * Titel Teil 1 (schwarz) und Titel Teil 2 (DGM Orange)
 * stehen im selben Textfluss.
 *
 * Kein erzwungener Zeilenumbruch mehr.
 * Wenn der Platz nicht reicht, umbrechen beide Teile
 * natürlich wie normaler Text.
 * Gilt für Desktop, Tablet und Mobile.
 * ========================================================== */

.dgm-hero-layout-v2 .dgm-hero-title-primary,
.dgm-hero-layout-v2 .dgm-hero-title-accent {
    display: inline !important;
}

.dgm-hero-layout-v2 .dgm-hero-title-primary::after {
    content: " ";
}


/* ==========================================================
 * V2.3.6 – TITEL FORTLAUFEND AUF ALLEN BREAKPOINTS
 *
 * Gilt ohne Ausnahme für:
 * - Breitbild
 * - Desktop
 * - Laptop
 * - Tablet Querformat
 * - Tablet Hochformat
 * - Mobile Querformat
 * - Mobile Hochformat
 * ========================================================== */

.dgm-hero-slider .dgm-hero-title .dgm-hero-title-primary,
.dgm-hero-slider .dgm-hero-title .dgm-hero-title-accent,
.dgm-hero-layout-v2 .dgm-hero-title-primary,
.dgm-hero-layout-v2 .dgm-hero-title-accent {
    display: inline !important;
    width: auto !important;
}

.dgm-hero-slider .dgm-hero-title .dgm-hero-title-primary::after,
.dgm-hero-layout-v2 .dgm-hero-title-primary::after {
    content: " " !important;
}

/* Sicherheits-Override für Tablet/Mobile Hochformat */
@media (max-width: 1024px) {

    .dgm-hero-slider .dgm-hero-title .dgm-hero-title-primary,
    .dgm-hero-slider .dgm-hero-title .dgm-hero-title-accent,
    .dgm-hero-layout-v2 .dgm-hero-title-primary,
    .dgm-hero-layout-v2 .dgm-hero-title-accent {
        display: inline !important;
        width: auto !important;
    }
}

@media (max-width: 767px) and (orientation: portrait) {

    .dgm-hero-slider .dgm-hero-title .dgm-hero-title-primary,
    .dgm-hero-slider .dgm-hero-title .dgm-hero-title-accent,
    .dgm-hero-layout-v2 .dgm-hero-title-primary,
    .dgm-hero-layout-v2 .dgm-hero-title-accent {
        display: inline !important;
        width: auto !important;
    }

    .dgm-hero-slider .dgm-hero-title .dgm-hero-title-primary::after,
    .dgm-hero-layout-v2 .dgm-hero-title-primary::after {
        content: " " !important;
    }
}


/* ==========================================================
 * V2.3.7 – DESKTOP VORDERGRUNDBILD OHNE BESCHNEIDUNG
 *
 * Ziel:
 * - Desktop-Bild niemals seitlich oder in der Höhe beschneiden
 * - 35px Sicherheitsabstand links/rechts im Bildbereich
 * - Höhe des Bildbereichs bleibt wie bisher vom linken Bereich
 * - Tablet Hochformat / Mobile bleiben unverändert
 * ========================================================== */

@media (min-width: 1025px) {

    .dgm-hero-layout-v2 .dgm-hero-foreground {
        display: flex !important;
        align-items: stretch !important;
        justify-content: center !important;

        overflow: hidden !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-media-frame,
    .dgm-hero-layout-v2 .dgm-hero-media-frame picture {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        height: 100% !important;

        padding: 0 35px !important;
        box-sizing: border-box !important;

        overflow: hidden !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-foreground-image,
    .dgm-hero-layout-v2 .dgm-hero-foreground-image[data-dgm-autofit="1"] {
        position: relative !important;
        inset: auto !important;
        left: auto !important;
        top: auto !important;

        display: block !important;

        width: auto !important;
        height: auto !important;

        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        max-height: 100% !important;

        margin: 0 auto !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: center center !important;

        transform: none !important;
    }
}


/* ==========================================================
 * V2.3.8 – DOTS ABSTAND UNTEN
 *
 * Dots sollen nicht am unteren Slider-Rand kleben.
 * Einheitlicher Abstand: 24px.
 * Gilt für Desktop, Tablet und Mobile.
 * ========================================================== */

.dgm-hero-slider .dgm-hero-dots,
.dgm-hero-slider .dgm-hero-navigation,
.dgm-hero-layout-v2 .dgm-hero-dots,
.dgm-hero-layout-v2 .dgm-hero-navigation {
    bottom: 24px !important;
}


/* ==========================================================
 * 21. OPTIONALER ZUSATZBEREICH – SERVICE-KARTE + BADGE
 * Version 2.4.0
 *
 * Desktop: kompaktere Service-Karte.
 * Tablet/Mobile: nur runder !-Trigger; Klick klappt die Karte
 * als schwebendes Panel auf. Bestehender Slider bleibt gleich.
 * ========================================================== */

.dgm-hero-extra-ui {
    display: none;
}

.dgm-hero-service-mobile {
    display: none;
}

/* ----------------------------------------------------------
 * DESKTOP – AB 1025 PX
 * ---------------------------------------------------------- */

@media (min-width: 1025px) {

    .dgm-hero-extra-ui {
        position: absolute;
        top: clamp(30px, 3.4vw, 52px);
        right: 0;
        z-index: 12;

        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;

        pointer-events: none;
    }

    .dgm-hero-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        min-height: 32px;
        padding: 6px 13px;

        border-radius: 999px;
        background: var(--dgm-color-primary, #f26522);
        color: #fff;
        box-shadow: 0 5px 16px rgb(0 0 0 / 11%);

        font-family: var(--dgm-type-body-m-family, Inter, sans-serif);
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: 0;
        text-transform: none;
        white-space: nowrap;

        pointer-events: auto;
    }

    .dgm-hero-service-card--desktop {
        width: clamp(218px, 15.5vw, 242px);
        padding: 18px 17px 17px;

        border: 1px solid rgb(17 17 17 / 8%);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 10px 26px rgb(0 0 0 / 13%);

        color: #171717;
        text-align: left;

        pointer-events: auto;
    }

    .dgm-hero-service-card--desktop .dgm-hero-service-media {
        min-height: 40px;
        margin-bottom: 11px;
    }

    .dgm-hero-service-card--desktop .dgm-hero-service-icon {
        width: 40px;
        height: 40px;
    }

    .dgm-hero-service-card--desktop .dgm-hero-service-icon svg {
        width: 19px;
        height: 19px;
    }

    .dgm-hero-service-card--desktop .dgm-hero-service-image {
        max-width: 56px;
        height: 40px;
        max-height: 40px;
    }

    .dgm-hero-service-card--desktop .dgm-hero-service-title {
        margin-bottom: 12px;
        font-size: clamp(1rem, 0.95vw, 1.12rem);
        line-height: 1.2;
        letter-spacing: 0;
    }

    .dgm-hero-service-card--desktop .dgm-hero-service-benefits {
        gap: 8px;
        margin-bottom: 15px;
    }

    .dgm-hero-service-card--desktop .dgm-hero-service-benefits li {
        grid-template-columns: 15px minmax(0, 1fr);
        gap: 7px;
        font-size: 0.82rem;
        line-height: 1.27;
        letter-spacing: 0;
    }

    .dgm-hero-service-card--desktop .dgm-hero-service-check {
        font-size: 0.92rem;
    }

    .dgm-hero-service-card--desktop .dgm-hero-service-button {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 0.84rem;
        letter-spacing: 0;
    }
}

/* ----------------------------------------------------------
 * GEMEINSAME KARTEN-INHALTE
 * ---------------------------------------------------------- */

.dgm-hero-service-media {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.dgm-hero-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background: var(--dgm-color-primary, #f26522);
    color: #fff;
}

.dgm-hero-service-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dgm-hero-service-image {
    display: block;
    width: auto;
    object-fit: contain;
}

.dgm-hero-service-title {
    margin: 0;
    color: var(--dgm-color-primary, #f26522);
    font-family: var(--dgm-type-card-title-family, Inter, sans-serif);
    font-weight: 700;
}

.dgm-hero-service-benefits {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dgm-hero-service-benefits li {
    display: grid;
    align-items: start;
    margin: 0;
    padding: 0;
    font-family: var(--dgm-type-body-m-family, Inter, sans-serif);
    font-weight: 400;
}

.dgm-hero-service-check {
    color: var(--dgm-color-primary, #f26522);
    font-weight: 800;
    line-height: 1.2;
}

.dgm-hero-service-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    border: 1.5px solid var(--dgm-color-primary, #f26522);
    border-radius: 4px;
    background: #fff;
    color: #171717;

    font-family: var(--dgm-type-button-family, Inter, sans-serif);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.dgm-hero-service-button:hover,
.dgm-hero-service-button:focus-visible {
    background: var(--dgm-color-primary, #f26522);
    border-color: var(--dgm-color-primary, #f26522);
    color: #fff;
}

.dgm-hero-service-button:focus-visible,
.dgm-hero-service-mobile-trigger:focus-visible {
    outline: 3px solid rgb(242 101 34 / 25%);
    outline-offset: 3px;
}

/* ----------------------------------------------------------
 * TABLET + MOBILE – BIS 1024 PX
 * ---------------------------------------------------------- */

@media (max-width: 1024px) {

    .dgm-hero-extra-ui {
        position: absolute;
        top: 12px;
        right: 0;
        z-index: 60;

        display: block;
        width: auto;
        height: auto;

        pointer-events: none;
    }

    /* Badge bleibt wie bisher Desktop-only. */
    .dgm-hero-extra-ui > .dgm-hero-badge,
    .dgm-hero-service-card--desktop {
        display: none !important;
    }

    .dgm-hero-service-mobile {
        position: relative;
        display: block;
        margin: 0;
        padding: 0;

        pointer-events: auto;
    }

    .dgm-hero-service-mobile-trigger {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;

        border: 0;
        border-radius: 999px;
        background: var(--dgm-color-primary, #f26522);
        color: #fff;
        box-shadow: 0 7px 20px rgb(0 0 0 / 18%);

        cursor: pointer;
        list-style: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .dgm-hero-service-mobile-trigger::-webkit-details-marker {
        display: none;
    }

    .dgm-hero-service-trigger-mark {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: 100%;

        font-family: Arial, sans-serif;
        font-size: 24px;
        font-weight: 800;
        line-height: 1;
    }

    .dgm-hero-service-trigger-mark--close {
        display: none;
        font-size: 27px;
        font-weight: 400;
    }

    .dgm-hero-service-mobile[open]
    .dgm-hero-service-trigger-mark--open {
        display: none;
    }

    .dgm-hero-service-mobile[open]
    .dgm-hero-service-trigger-mark--close {
        display: flex;
    }

    .dgm-hero-service-mobile-panel {
        position: absolute;
        top: 54px;
        right: 0;

        width: min(286px, calc(100vw - 32px));
        max-height: min(68svh, 500px);
        overflow: auto;
        overscroll-behavior: contain;

        padding: 18px 17px 17px;

        border: 1px solid rgb(17 17 17 / 8%);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 14px 34px rgb(0 0 0 / 20%);

        color: #171717;
        text-align: left;
        -webkit-overflow-scrolling: touch;
    }

    .dgm-hero-service-mobile-panel .dgm-hero-service-media {
        min-height: 40px;
        margin-bottom: 11px;
    }

    .dgm-hero-service-mobile-panel .dgm-hero-service-icon {
        width: 40px;
        height: 40px;
    }

    .dgm-hero-service-mobile-panel .dgm-hero-service-icon svg {
        width: 19px;
        height: 19px;
    }

    .dgm-hero-service-mobile-panel .dgm-hero-service-image {
        max-width: 56px;
        height: 40px;
        max-height: 40px;
    }

    .dgm-hero-service-mobile-panel .dgm-hero-service-title {
        margin-bottom: 12px;
        font-size: 1.05rem;
        line-height: 1.2;
        letter-spacing: 0;
    }

    .dgm-hero-service-mobile-panel .dgm-hero-service-benefits {
        gap: 8px;
        margin-bottom: 15px;
    }

    .dgm-hero-service-mobile-panel .dgm-hero-service-benefits li {
        grid-template-columns: 15px minmax(0, 1fr);
        gap: 7px;
        font-size: 0.84rem;
        line-height: 1.3;
        letter-spacing: 0;
    }

    .dgm-hero-service-mobile-panel .dgm-hero-service-check {
        font-size: 0.92rem;
    }

    .dgm-hero-service-mobile-panel .dgm-hero-service-button {
        min-height: 41px;
        padding: 9px 12px;
        font-size: 0.86rem;
        letter-spacing: 0;
    }
}

@media (max-width: 767px) {
    .dgm-hero-extra-ui {
        top: 8px;
        right: 0;
    }

    .dgm-hero-service-mobile-trigger {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }

    .dgm-hero-service-mobile-panel {
        top: 50px;
        width: min(274px, calc(100vw - 28px));
        max-height: min(64svh, 460px);
        padding: 16px 15px 15px;
    }
}


/* ==========================================================
 * V2.4.3 – TABLET/MOBILE ZUSATZANZEIGE AM BILD
 *
 * WICHTIG:
 * - Desktop ab 1025px bleibt exakt wie v2.4.1.
 * - Tablet + Mobile: Zusatzanzeige sitzt oben rechts im
 *   Vordergrundbild-Bereich.
 * - Service = runder !-Trigger.
 * - Badge = kompakte Badge an derselben Position.
 * - Nie Badge und Service gleichzeitig auf Tablet/Mobile.
 *   Wenn beide im Admin aktiv sind, hat Service Priorität.
 * ========================================================== */

@media (max-width: 1024px) {

    /*
     * Zusatz-UI exakt in dieselbe Grid-Zeile wie das Bild legen.
     * Höhe 0 verhindert jeden Einfluss auf die Slider-Höhe.
     */
    .dgm-hero-layout-v2 .dgm-hero-extra-ui {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;

        grid-row: 5 !important;
        grid-column: 1 / -1 !important;

        align-self: start !important;
        justify-self: stretch !important;

        display: block !important;

        width: 100% !important;
        height: 0 !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        z-index: 70 !important;
        pointer-events: none !important;
        overflow: visible !important;
    }

    /* Desktop-Karte bleibt auf Tablet/Mobile verborgen. */
    .dgm-hero-layout-v2 .dgm-hero-service-card--desktop {
        display: none !important;
    }

    /*
     * ENTWEDER Service ODER Badge:
     * Ist Service aktiviert, wird das Badge auf Tablet/Mobile
     * bewusst nicht angezeigt. Desktop wird davon nicht berührt.
     */
    .dgm-hero-layout-v2
    .dgm-hero-extra-ui--has-service > .dgm-hero-badge {
        display: none !important;
    }

    /* Badge-only: oben rechts direkt im Bildbereich. */
    .dgm-hero-layout-v2
    .dgm-hero-extra-ui--has-badge:not(.dgm-hero-extra-ui--has-service)
    > .dgm-hero-badge {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;

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

        width: auto !important;
        max-width: min(180px, 46vw) !important;
        min-height: 30px !important;

        margin: 0 !important;
        padding: 6px 11px !important;

        border-radius: 999px !important;
        background: var(--dgm-color-primary, #f26522) !important;
        color: #fff !important;
        box-shadow: 0 6px 18px rgb(0 0 0 / 16%) !important;

        font-family: var(--dgm-type-body-m-family, Inter, sans-serif) !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        letter-spacing: 0 !important;
        text-align: center !important;
        text-transform: none !important;
        white-space: normal !important;

        pointer-events: auto !important;
    }

    /* Service-only: !-Kreis an exakt derselben Position. */
    .dgm-hero-layout-v2 .dgm-hero-service-mobile {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;

        display: block !important;
        width: 44px !important;
        height: 44px !important;

        margin: 0 !important;
        padding: 0 !important;

        pointer-events: auto !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-service-mobile-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 999px !important;
        background: var(--dgm-color-primary, #f26522) !important;
        color: #fff !important;
        box-shadow: 0 7px 20px rgb(0 0 0 / 18%) !important;

        cursor: pointer !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-service-trigger-mark--open {
        font-family: Arial, sans-serif !important;
        font-size: 24px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
    }

    /* Karte öffnet sich unter dem ! und wächst nach links. */
    .dgm-hero-layout-v2 .dgm-hero-service-mobile-panel {
        top: 52px !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;

        width: min(286px, calc(100vw - 40px)) !important;
        max-height: min(68svh, 500px) !important;

        transform: none !important;
        z-index: 80 !important;
    }
}

/* Echtes Mobile: etwas kompakter, Position bleibt oben rechts. */
@media (max-width: 767px) {

    .dgm-hero-layout-v2
    .dgm-hero-extra-ui--has-badge:not(.dgm-hero-extra-ui--has-service)
    > .dgm-hero-badge {
        top: 8px !important;
        right: 8px !important;
        max-width: min(160px, 48vw) !important;
        min-height: 28px !important;
        padding: 5px 10px !important;
        font-size: 0.69rem !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-service-mobile {
        top: 8px !important;
        right: 8px !important;
        width: 42px !important;
        height: 42px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-service-mobile-trigger {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-service-trigger-mark--open {
        font-size: 22px !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-service-mobile-panel {
        top: 50px !important;
        width: min(274px, calc(100vw - 28px)) !important;
        max-height: min(64svh, 460px) !important;
    }
}

/* Sehr kleine Handys: Panel sicher innerhalb des Viewports. */
@media (max-width: 390px) {
    .dgm-hero-layout-v2 .dgm-hero-service-mobile-panel {
        width: min(258px, calc(100vw - 24px)) !important;
    }
}
.dgm-hero-slider {
    margin-bottom: 0 !important;;
}

/* ==========================================================
 * V3.0.1 – BENEFIT-TEXT UNABHÄNGIG VON HERO-TEXTFARBE
 *
 * Problem:
 * Bei dunklen Slides wird für den Hero-Inhalt "helle Schrift"
 * aktiviert. Der Benefit-Bereich besitzt jedoch bewusst eine
 * helle Karte. Der Benefit-Titel hatte bisher `color: inherit`
 * und übernahm dadurch ebenfalls Weiss.
 *
 * Lösung:
 * Der Benefit-Bereich bildet eine eigene visuelle Komponente.
 * Titel und Kurztext verwenden deshalb immer die für helle
 * Karten vorgesehenen DGM-Textfarben – unabhängig davon, ob
 * der eigentliche Hero-Text hell oder dunkel ist.
 *
 * Design, Abstände, Hintergrund, Icons und Responsive-Verhalten
 * werden dadurch nicht verändert.
 * ========================================================== */

.dgm-hero-layout-v2 .dgm-hero-benefits {
    color: var(--dgm-color-text-strong) !important;
}

.dgm-hero-layout-v2 .dgm-hero-benefit-title {
    color: var(--dgm-color-text-strong) !important;
}

.dgm-hero-layout-v2 .dgm-hero-benefit-text {
    color: var(--dgm-color-text-light) !important;
}

/* ==========================================================
 * V3.0.2 – MOBILE BENEFITS NUR MIT TITEL
 *
 * Mobile soll der Vorteil-Bereich bewusst kompakter sein.
 * Deshalb werden auf kleinen Displays Icon und Beschreibung
 * ausgeblendet. Sichtbar bleibt nur der Vorteil-Titel.
 *
 * Desktop und Tablet bleiben unverändert.
 * ========================================================== */

@media (max-width: 767px) {

    .dgm-hero-layout-v2 .dgm-hero-benefit-icon,
    .dgm-hero-layout-v2 .dgm-hero-benefit-text {
        display: none !important;
    }

    .dgm-hero-layout-v2 .dgm-hero-benefit-title {
        margin: 0 !important;
    }
}


