/* ==========================================================
   PROFILE CARD
========================================================== */

.profile-card.card-base {
    display: grid;
    grid-template-columns:
        minmax(160px, 260px) auto minmax(0, 1fr);

    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2.5rem);

    padding: clamp(1.4rem, 3vw, 2.4rem);
}

.profile-card-row {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.profile-card .section-eyebrow {
    margin-bottom: .75rem;
}

/* ==========================================================
   MEDIA
========================================================== */

.profile-card__media {
    margin: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card__media img {
    display: block;

    width: clamp(135px, 18vw, 215px);
    height: auto;
    aspect-ratio: 1 / 1.15;

    object-fit: contain;
}

/* ==========================================================
   DIVIDER
========================================================== */

.profile-card__divider {
    position: relative;

    width: 1px;
    height: min(180px, 100%);

    background: rgba(85, 142, 136, .38);
}

.profile-card__divider::after {
    content: "✦";

    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    padding: .25rem;

    color: var(--wp--preset--color--primary);
    background: rgba(255, 255, 255, .9);

    font-size: .9rem;
    line-height: 1;
}

/* ==========================================================
   CONTENT
========================================================== */

.profile-card__content {
    max-width: none;
}

.profile-card__content.is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.profile-card__content>*:first-child {
    margin-top: 0;
}

.profile-card__content>*:last-child {
    margin-bottom: 0;
}

/* gleiche Größenordnung wie normale Section-Überschriften */
.profile-card__title {
    margin-top: .5rem;
    margin-bottom: .85rem;

    color: var(--wp--preset--color--contrast);

    font-size: var(--font-h3);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

/* ==========================================================
   QUOTE
========================================================== */

.profile-card__quote {
    position: relative;

    max-width: 52ch;

    margin: 1.25rem 0 1.5rem 0;

    /* linksbündig im Content */
    margin-left: 0;
    margin-right: 0;

    padding: 1rem 3rem;

    border-top: 1px solid rgba(242, 154, 58, .28);
    border-bottom: 1px solid rgba(242, 154, 58, .28);
    border-left: 0;

    color: rgba(21, 48, 71, .75);

    font-size: var(--font-body);
    font-style: italic;
    line-height: 1.6;

    /* Container bleibt links */
    text-align: left;
}

.profile-card__quote::before,
.profile-card__quote::after {
    position: absolute;

    color: rgba(242, 154, 58, .55);

    font-size: 2rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.profile-card__quote::before {
    content: "“";
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
}

.profile-card__quote::after {
    content: "”";
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
}

.profile-card__quote.wp-block-quote {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 3rem !important;
}

.profile-card__quote p {
    margin: 0;
    text-align: center !important;
}

/* Gutenberg-Defaults überschreiben */
.profile-card__quote.wp-block-quote {
    padding-left: 3rem;
    margin-left: 0;
}

/* ==========================================================
   LINK
========================================================== */

.profile-card .text-link {
    margin-top: 1.25rem;
}

.profile-card .text-link a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 780px) {
    .profile-card.card-base {
        grid-template-columns: 1fr;
        gap: 1.5rem;

        padding: clamp(1.5rem, 7vw, 2.25rem);
    }

    .profile-card__content {
        text-align: center;
    }

    .profile-card__content.is-layout-constrained
        > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .profile-card .section-eyebrow {
        margin-inline: auto;
    }

    .profile-card .text-link {
        text-align: center;
    }

    .profile-card .text-link a {
        justify-content: center;
    }

    .profile-card__media {
        justify-content: center;
    }

    .profile-card__media img {
        width: clamp(150px, 52vw, 220px);
    }

    .profile-card__divider {
        display: none;
    }

    .profile-card__title {
        font-size: var(--font-h3);
    }

    .profile-card__quote {
        padding-inline: 2.25rem;
        text-align: center;
    }
}