/* The section and add-on settings live in PageBuilder. Shared design details are scoped to the PageBuilder rows. */
/* The action uses the full width of the facts column. */
#sp-page-builder .sppb-column-addons > .sppb-addon-wrapper:has(.mg-official-action) {
    display: block;
    width: 100%;
}

.mg-native-exec-intro .sppb-row {
    align-items: center;
}

.mg-native-exec-label p {
    margin: 0 0 1rem;
    color: #185775;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.mg-native-exec-lead p,
.mg-native-exec-project p {
    max-inline-size: 67ch;
    font-size: 1.0625rem;
    line-height: 1.68;
}

.mg-native-exec-portrait img {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center 39%;
    aspect-ratio: 7 / 5;
    border-radius: 5px;
}

/* One project surface with a native closing row. */
#sp-page-builder .mg-native-exec-case > .sppb-row-container {
    --mg-case-ring: clamp(116px, 25vw, 294px);
    padding: clamp(24px, 4.2vw, 49px);
    border-radius: 10px;
    background:
        radial-gradient(circle var(--mg-case-ring) at 100% 0%,
            transparent 50%, #427e9d25 50% 50.8%,
            transparent 50.8% 65%, #427e9d48 65% 68.4%,
            transparent 68.4% 82%, #427e9d28 82% 82.8%,
            transparent 82.8%),
        radial-gradient(ellipse at 100% 0%, #deedf4 0%, #e7f1f6 24%, transparent 64%),
        linear-gradient(112deg, #edf5f8, #f7fafb);
}

#sp-page-builder .mg-native-exec-case > .sppb-row-container > .sppb-row,
#sp-page-builder .mg-native-exec-case-closing > .sppb-container-inner > .sppb-row {
    margin-inline: 0;
}

#sp-page-builder .mg-native-exec-case > .sppb-row-container > .sppb-row > [id^="column-wrap-id-"],
#sp-page-builder .mg-native-exec-case-closing > .sppb-container-inner > .sppb-row > [id^="column-wrap-id-"] {
    min-width: 0;
    padding-inline: 0;
}

#sp-page-builder .mg-native-exec-case h2 { max-inline-size: 25ch; }
#sp-page-builder .mg-native-exec-case .mg-native-exec-project p { max-inline-size: 68ch; }
#sp-page-builder .mg-native-exec-case .mg-native-exec-project p:last-child { margin-block-end: 0; }

#sp-page-builder .mg-native-exec-case-closing {
    border-block-start: 1px solid #b9cfda;
}

#sp-page-builder .mg-native-exec-case-closing > .sppb-container-inner > .sppb-row {
    row-gap: 14px;
}

.mg-native-exec-case-summary p {
    max-inline-size: 64ch;
    margin-block-end: 0;
    font-size: 1rem;
    line-height: 1.5;
    text-wrap: pretty;
}

@media (min-width: 768px) {
    .mg-native-exec-case-summary { padding-inline-end: 1.5rem; }
}

@media (max-width: 767px) {
    #sp-page-builder .mg-native-exec-case > .sppb-row-container {
        --mg-case-ring: clamp(92px, 28vw, 140px);
    }
}

.mg-native-exec-testimonial > .sppb-row-container {
    padding: clamp(22px, 3vw, 36px);
    border-radius: 10px;
    background: linear-gradient(110deg, #102e42, #18485d);
    color: #fff;
}

.mg-native-exec-avatar img {
    display: block;
    inline-size: clamp(66px, 8vw, 88px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}

#sp-page-builder .mg-native-exec-testimonial .mg-native-exec-quote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    max-inline-size: 72ch;
    overflow-wrap: anywhere;
    border-inline-start: 2px solid #93c5dc;
    padding-inline-start: clamp(14px, 2vw, 25px);
    color: #e0edf4;
    font-family: inherit;
    font-size: clamp(1.0625rem, 1.55vw, 1.3rem);
    line-height: 1.38;
}

/* PageBuilder applies its percentage width to the wrapper, one level above .sppb-column. */
#sp-page-builder .mg-native-exec-certificates > .sppb-row-container > .sppb-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 22px;
    margin-inline: 0;
}

#sp-page-builder .mg-native-exec-certificates > .sppb-row-container > .sppb-row > [id^="column-wrap-id-"] {
    max-width: none;
    min-width: 0;
    padding-inline: 0;
}

#sp-page-builder .mg-native-exec-certificates .mg-native-exec-cert {
    text-align: center;
}

#sp-page-builder .mg-native-exec-seal .sppb-addon-single-image-container {
    display: block;
}

#sp-page-builder .mg-native-exec-seal :is(
    .sppb-addon-single-image-container > a[href],
    .sppb-addon-single-image-container:not(:has(> a[href]))
) {
    display: grid;
    place-items: center;
    inline-size: min(100%, 216px);
    min-block-size: 106px;
    margin: 0 auto 12px;
    border: 1px solid #d7e4eb;
    border-radius: 7px;
    background: linear-gradient(148deg, #fafcfd, #eef4f7);
}

.mg-native-exec-seal .sppb-addon-single-image-container > a:is(:hover, :focus-visible) {
    outline: 2px solid #77a9bf;
    outline-offset: 2px;
}

.mg-native-exec-seal img {
    display: block;
    width: min(120px, 100%);
    height: 82px;
    object-fit: contain;
    margin-inline: auto;
}

.mg-native-exec-seal--padded img {
    width: min(82px, 100%);
    aspect-ratio: 1;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.mg-native-exec-certificates h3 {
    font-size: 1.0625rem;
    line-height: 1.32;
    margin-block: 0 6px;
}

.mg-native-exec-credential-description {
    font-size: .94rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

/* Original SPPB quote entrance: copy from the right, portrait diagonally. */
@keyframes mg-native-exec-quote-copy {
    from { opacity: 0; transform: translate3d(24px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes mg-native-exec-quote-portrait {
    from { opacity: 0; transform: translate3d(-18px, 18px, 0) scale(.97); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
    .mg-exec-quote-motion .mg-native-exec-intro:not([data-quote-entered]) :is(.mg-native-exec-copy, .mg-native-exec-picture) > .sppb-column-addons { opacity: 0; }
    .mg-exec-quote-motion .mg-native-exec-intro[data-quote-entered] .mg-native-exec-copy > .sppb-column-addons {
        animation: mg-native-exec-quote-copy 1600ms 40ms cubic-bezier(.22, .61, .36, 1) backwards;
    }
    .mg-exec-quote-motion .mg-native-exec-intro[data-quote-entered] .mg-native-exec-picture > .sppb-column-addons {
        animation: mg-native-exec-quote-portrait 1600ms 220ms cubic-bezier(.22, .61, .36, 1) backwards;
    }
    .mg-native-exec-seal img { transition: transform 180ms ease; }
    .mg-native-exec-cert:hover .mg-native-exec-seal img { transform: translateY(-2px); }
}

#sp-page-builder :is(.mg-native-exec-intro, .mg-native-exec-case, .mg-native-exec-methods,
    .mg-native-exec-testimonial, .mg-native-exec-cert-title, .mg-native-exec-certificates,
    .mg-native-exec-book-title, .mg-native-exec-books, .mg-native-exec-contact) > .sppb-row-container {
    width: min(1200px, calc(100% - clamp(32px, 8vw, 96px)));
    margin-inline: auto;
    box-sizing: border-box;
}

#sp-page-builder :is(.mg-native-exec-intro, .mg-native-exec-methods, .mg-native-exec-testimonial)
    > .sppb-row-container > .sppb-row {
    margin-inline: 0;
}

#sp-page-builder .mg-native-exec-intro .mg-native-exec-copy {
    padding-inline-end: clamp(18px, 3vw, 44px);
}

.mg-native-exec-intro, .mg-native-exec-methods { margin-block-end: clamp(42px, 5vw, 72px); }
.mg-native-exec-case { margin-block-end: clamp(36px, 4.4vw, 62px); }
.mg-native-exec-certificates { margin-block-end: 20px; }

#sp-page-builder .mg-native-exec-certificates h3 a {
    color: #10354b;
    text-decoration: none;
    overflow-wrap: break-word;
}

@media (max-width: 767px) {
    #sp-page-builder .mg-native-exec-intro .mg-native-exec-copy { padding-inline-end: 0; }
    .mg-native-exec-intro .mg-native-exec-picture { margin-block-start: 20px; }
}

/* Typography and rhythm from the Executive design, on native PageBuilder sections. */
#sp-page-builder {
    --mg-exec-sans: Barlow, Arial, sans-serif;
    --mg-exec-ink: #10364e;
    --mg-exec-copy: #324c60;
}

#sp-page-builder .sppb-section[class*="mg-native-exec-"]:not(.mg-native-exec-contact) {
    font: 400 1.125rem/1.56 var(--mg-exec-sans);
    color: var(--mg-exec-copy);
}

#sp-page-builder .sppb-section[class*="mg-native-exec-"]:not(.mg-native-exec-contact)
    :is(h2, h3, p, .sppb-panel-title) {
    font-family: var(--mg-exec-sans);
}

#sp-page-builder .sppb-section[class*="mg-native-exec-"]:not(.mg-native-exec-contact) h2 {
    font-size: var(--mg-exec-heading-size, clamp(1.95rem, 3.4vw, 3rem));
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -.033em;
    text-wrap: balance;
}

#sp-page-builder .mg-native-exec-intro { padding-block-start: clamp(36px, 5vw, 66px); }
#sp-page-builder .mg-native-exec-intro .mg-native-exec-lead p { font-size: clamp(1.125rem, 1.65vw, 1.375rem); max-width: 51ch; }
#sp-page-builder .mg-native-exec-certificates h3 a:is(:hover, :focus-visible) { text-decoration: underline; }
#sp-page-builder .mg-native-exec-methods .mg-native-exec-lead { margin-block-end: 20px; }

#sp-page-builder .mg-native-exec-accordion .sppb-panel-group {
    border: 1px solid #cbdbe4;
    border-radius: 10px;
    overflow: hidden;
}

#sp-page-builder .mg-native-exec-accordion .sppb-panel {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
#sp-page-builder .mg-native-exec-accordion .sppb-panel + .sppb-panel { border-top: 1px solid #cbdbe4; }
#sp-page-builder .mg-native-exec-accordion .sppb-panel-heading {
    min-height: 58px;
    padding: 13px clamp(15px, 2vw, 27px);
    background: #fff;
}
#sp-page-builder .mg-native-exec-accordion .sppb-panel-heading:is(:hover, :focus-visible, [aria-expanded="true"]) {
    background: #ecf4f8;
}
#sp-page-builder .mg-native-exec-accordion .sppb-panel-title { color: var(--mg-exec-ink); font-size: 1.125rem; line-height: 1.3; }
#sp-page-builder .mg-native-exec-accordion .sppb-panel-body { background: #f2f7fa; }

@media (min-width: 850px) {
    #sp-page-builder :is(.mg-native-exec-intro, .mg-native-exec-methods, .mg-native-exec-testimonial)
        > .sppb-row-container > .sppb-row {
        display: grid;
        gap: clamp(28px, 4.4vw, 64px);
    }

    #sp-page-builder .mg-native-exec-intro > .sppb-row-container > .sppb-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
    #sp-page-builder .mg-native-exec-methods > .sppb-row-container > .sppb-row { grid-template-columns: minmax(0, .95fr) minmax(0, 1.6fr); }
    #sp-page-builder .mg-native-exec-testimonial > .sppb-row-container > .sppb-row { grid-template-columns: minmax(0, 1fr) minmax(0, 3.8fr); }

    #sp-page-builder :is(.mg-native-exec-intro, .mg-native-exec-methods, .mg-native-exec-testimonial)
        > .sppb-row-container > .sppb-row > [id^="column-wrap-id-"] {
        max-width: none;
        min-width: 0;
        padding-inline: 0;
    }

    #sp-page-builder .mg-native-exec-intro .mg-native-exec-copy { padding-inline-end: 0; }
}

#sp-page-builder .mg-native-exec-testimonial { --mg-exec-heading-size: clamp(1.45rem, 2.4vw, 2rem); }
#sp-page-builder .mg-native-exec-testimonial h2 { margin-block-end: .45em; }
#sp-page-builder .mg-native-exec-testimonial .sppb-row > [id^="column-wrap-id-"]:first-child p {
    font-size: .95rem;
    line-height: 1.4;
}
@media (max-width: 849px) {
    #sp-page-builder .mg-native-exec-testimonial .sppb-row > [id^="column-wrap-id-"]:first-child {
        margin-block-end: 16px;
    }
}

#sp-page-builder .mg-native-exec-story-intro > .sppb-row-container {
    width: min(1200px, calc(100% - clamp(32px, 8vw, 96px)));
    margin: clamp(24px, 4vw, 54px) auto;
    padding: clamp(22px, 3.6vw, 46px);
    border: 1px solid #d3e2ea;
    border-radius: 10px;
    background: linear-gradient(115deg, #f4f9fb, #f9fbfc);
    box-sizing: border-box;
}

#sp-page-builder .mg-native-exec-story-intro > .sppb-row-container > .sppb-row {
    margin-inline: 0;
    row-gap: 24px;
    align-items: start;
}

#sp-page-builder .mg-native-exec-story-intro > .sppb-row-container > .sppb-row > [id^="column-wrap-id-"] {
    min-width: 0;
    padding-inline: 0;
}

#sp-page-builder .mg-native-exec-story-intro h2 {
    --mg-exec-heading-size: clamp(1.65rem, 2.65vw, 2.5rem);
    margin-bottom: .5em;
    overflow-wrap: break-word;
}

#sp-page-builder .mg-native-exec-story-intro .mg-native-exec-project p:last-child {
    margin-bottom: 0;
}

#sp-page-builder .mg-native-exec-story-facts {
    border-inline-start: 2px solid #9cbfcf;
    padding: clamp(15px, 2vw, 23px);
    border-radius: 0 8px 8px 0;
    background: #eaf3f7;
    overflow-wrap: anywhere;
}

.mg-story-logo .sppb-addon-single-image-container {
    display: flex;
    justify-content: end;
    margin-block-end: 10px;
}

:is(.mg-story-logo, .mg-story-logo--hero) .sppb-addon-single-image-container > a {
    display: inline-grid;
    place-items: center;
    border-radius: 5px;
    filter: drop-shadow(0 2px 3px rgb(18 52 77 / 21%));
}

.mg-story-logo .sppb-addon-single-image-container > a {
    min-block-size: 44px;
    inline-size: min(100%, 182px);
}

.mg-story-logo img {
    display: block;
    width: 100%;
    height: clamp(62px, 7vw, 82px);
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(19%) sepia(15%) saturate(1603%) hue-rotate(160deg);
}

:is(.mg-story-logo, .mg-story-logo--hero) .sppb-addon-single-image-container > a:focus-visible {
    outline: 2px solid #4b8aaa;
    outline-offset: 4px;
    filter: drop-shadow(0 4px 5px rgb(18 52 77 / 34%));
}

@media (hover: hover) and (pointer: fine) {
    :is(.mg-story-logo, .mg-story-logo--hero) .sppb-addon-single-image-container > a:hover {
        filter: drop-shadow(0 5px 5px rgb(18 52 77 / 35%));
    }
}

@media (prefers-reduced-motion: no-preference) {
    :is(.mg-story-logo, .mg-story-logo--hero) .sppb-addon-single-image-container > a {
        transition: filter .2s ease, transform .2s ease;
    }
    :is(.mg-story-logo, .mg-story-logo--hero) .sppb-addon-single-image-container > a:focus-visible {
        transform: translateY(-2px);
    }
    @media (hover: hover) and (pointer: fine) {
        :is(.mg-story-logo, .mg-story-logo--hero) .sppb-addon-single-image-container > a:hover {
            transform: translateY(-2px);
        }
    }
}
.mg-story-facts { margin: 9px 0 0; font-size: .95rem; }
.mg-story-facts > div + div { border-top: 1px solid #c9dce6; margin-top: 13px; padding-top: 12px; }
.mg-story-facts dt { color: #1b516d; font-weight: 700; }
.mg-story-facts dd { margin: 3px 0 0; }

@media (min-width: 768px) {
    #sp-page-builder .mg-native-exec-story-intro > .sppb-row-container > .sppb-row > :first-child {
        padding-inline-end: clamp(18px, 3.5vw, 44px);
    }
}

#sp-page-builder .mg-native-exec-book-title {
    --mg-exec-heading-size: clamp(1.55rem, 2.5vw, 2.1rem);
    margin-block-start: clamp(20px, 4vw, 50px);
}
#sp-page-builder .mg-native-exec-books { margin-block-end: clamp(28px, 4vw, 50px); }

#sp-page-builder :is(.mg-native-exec-book-title, .mg-native-exec-books) > .sppb-row-container {
    padding-inline: 0;
}

#sp-page-builder .mg-native-exec-certificates > .sppb-container-inner > .sppb-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 22px;
    margin-inline: 0;
}

#sp-page-builder .mg-native-exec-certificates > .sppb-container-inner > .sppb-row > [id^="column-wrap-id-"] {
    max-width: none;
    padding-inline: 0;
}

#sp-page-builder:has(.mg-native-exec-story-intro) #hintergrund { scroll-margin-top: 100px; }

