.mg-blog-hero[data-mg-blog-profile] {
    min-height: 312px;
    padding-block: clamp(32px, 5vw, 64px);
}

.mg-blog-profile__layout {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: clamp(104px, 12vw, 144px) minmax(0, 1fr);
    grid-template-areas: "portrait heading" "portrait bio";
    column-gap: clamp(24px, 3.2vw, 52px);
    align-items: start;
    width: min(1200px, calc(100% - 64px));
    margin-inline: auto;
    padding-inline: 15px;
}

.mg-blog-profile__layout--focus {
    grid-template-columns: clamp(104px, 12vw, 144px) minmax(0, 1fr) clamp(248px, 28vw, 350px);
    grid-template-areas: "portrait heading focus" "portrait bio focus";
}

.mg-blog-profile__portrait {
    box-sizing: border-box;
    grid-area: portrait;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #a9cdde70;
    border-radius: 50%;
    background: #193f60;
    box-shadow: 0 0 0 6px #b4d7e817;
    color: #eaf5fa;
    font-size: clamp(27px, 3.4vw, 48px);
    font-weight: 650;
    align-self: start;
    margin-block-start: 4px;
}

.mg-blog-profile__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.mg-blog-profile__heading {
    grid-area: heading;
    min-width: 0;
    overflow-wrap: anywhere;
}

[data-mg-blog-profile] .mg-blog-hero__kicker {
    margin-bottom: 9px;
}

[data-mg-blog-profile] .mg-blog-hero__title {
    margin-block-end: 14px;
    font-size: clamp(37px, 4vw, 57px);
}

.mg-blog-profile__bio {
    grid-area: bio;
    max-width: 68ch;
    color: #dceaf2;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.59;
    overflow-wrap: anywhere;
}

.mg-blog-profile__bio p,
.mg-blog-profile__focus p {
    margin-block: 0 .75em;
}

.mg-blog-profile__bio p:last-child,
.mg-blog-profile__focus p:last-child {
    margin-block-end: 0;
}

.mg-blog-profile__bio a,
.mg-blog-profile__focus a {
    color: #f0f9ff;
    text-decoration: underline;
    text-underline-offset: .21em;
}

.mg-blog-profile__bio a:hover,
.mg-blog-profile__focus a:hover {
    color: #fff;
    text-decoration-thickness: 2px;
}

.mg-blog-profile__bio a:focus-visible,
.mg-blog-profile__focus a:focus-visible {
    outline: 2px solid #c7e9fc;
    outline-offset: 4px;
}

.mg-blog-profile__posts {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    min-height: 44px;
    font-weight: 700;
    font-size: .9em;
}

.mg-blog-profile__focus {
    grid-area: focus;
    align-self: center;
    min-width: 0;
    padding: clamp(16px, 2vw, 24px);
    border: 1px solid #a8cfe655;
    border-radius: 15px;
    background: #d7efff10;
    color: #e4eff6;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.mg-blog-profile__focus h2 {
    margin: 0 0 7px;
    color: #fff;
    font: 700 16px/1.35 Arial, Helvetica, sans-serif;
}

.mg-blog-profile__more summary {
    display: block;
    cursor: pointer;
}

.mg-blog-profile__more summary::-webkit-details-marker {
    display: none;
}

.mg-blog-profile__more summary:focus-visible {
    outline: 2px solid #c7e9fc;
    outline-offset: 4px;
}

.mg-blog-profile__more-excerpt {
    display: block;
    margin-bottom: .35rem;
}

.mg-blog-profile__more-open,
.mg-blog-profile__more-close {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    min-height: 36px;
    color: #edf7fd;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .21em;
}

.mg-blog-profile__more-open::after {
    content: "↓" / "";
}

.mg-blog-profile__more-close::after {
    content: "↑" / "";
}

.mg-blog-profile__more:not([open]) .mg-blog-profile__more-close,
.mg-blog-profile__more[open] .mg-blog-profile__more-excerpt,
.mg-blog-profile__more[open] .mg-blog-profile__more-open {
    display: none;
}

#eb [data-mg-blog-profile-native] {
    padding: 0;
    margin-block: .4rem .8rem;
    background: transparent;
}

#eb [data-mg-blog-profile-native]:empty {
    display: none;
}

#eb .mg-blog-profile-actions {
    display: flex;
    justify-content: flex-end;
    padding-block: .15rem;
    background: transparent;
}

#eb .mg-blog-profile-actions .eb-authors-subscribe {
    margin: 0;
}

#eb .mg-blog-profile-actions a {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    min-height: 40px;
    border: 1px solid #cbdae5;
    border-radius: 50%;
    color: #153a5b;
}

#eb .mg-blog-profile-actions a:hover {
    background: #edf5fa;
    color: #092d4a;
}

#eb .mg-blog-profile-actions a:focus-visible {
    outline: 2px solid #286a9c;
    outline-offset: 3px;
}

#eb .mg-blog-profile-actions a.hide {
    display: none;
}

#mg-blog-profil-beitraege {
    scroll-margin-top: 110px;
}

@media (max-width: 991.98px) {
    .mg-blog-profile__layout--focus {
        grid-template-columns: clamp(90px, 13vw, 120px) minmax(0, 1fr);
        grid-template-areas: "portrait heading" "portrait bio" ". focus";
        row-gap: 6px;
    }

    .mg-blog-profile__focus {
        margin-top: 12px;
        max-width: 68ch;
    }
}

@media (max-width: 575.98px) {
    .mg-blog-hero[data-mg-blog-profile] {
        min-height: 0;
    }

    .mg-blog-profile__layout,
    .mg-blog-profile__layout--focus {
        width: calc(100% - 32px);
        padding-inline: 8px;
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-areas: "portrait heading" "bio bio" "focus focus";
        column-gap: 18px;
        row-gap: 19px;
    }

    .mg-blog-profile__heading {
        align-self: center;
    }

    [data-mg-blog-profile] .mg-blog-hero__title {
        margin-bottom: 0;
        font-size: clamp(27px, 7.6vw, 38px);
    }

    [data-mg-blog-profile] .mg-blog-hero__kicker {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .mg-blog-profile__focus {
        margin-top: 0;
    }

    .mg-blog-profile__layout:not(.mg-blog-profile__layout--focus) {
        grid-template-areas: "portrait heading" "bio bio";
    }
}

[data-mg-profile-theme="regulatorik"] .mg-blog-profile__portrait {
    border-color: #9bc6e166;
    border-radius: clamp(9px, 1vw, 15px);
    box-shadow: 0 0 0 4px #a6d9ef10;
}

[data-mg-profile-theme="regulatorik"] .mg-blog-profile__focus {
    padding: .25rem 0 .25rem clamp(19px, 2.8vw, 36px);
    border: 0;
    border-inline-start: 1px solid #7fa8c38c;
    border-radius: 0;
    background: transparent;
    color: #d7e9f4;
}

[data-mg-profile-theme="regulatorik"] .mg-blog-profile__focus h2 {
    margin-bottom: .65rem;
    color: #a9d0e5;
    font-weight: 650;
    letter-spacing: .12em;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    [data-mg-profile-theme="regulatorik"] .mg-blog-profile__focus {
        padding: .9rem 0 0;
        border-inline-start: 0;
        border-block-start: 1px solid #7fa8c38c;
    }
}
