/* mod_serenade_team_grid */

.mod-serenade-team-grid {
    width: 100%;
    max-width: var(--layout-inner);
    margin: 0 auto;
    padding: 0;
}

.mod-serenade-team-grid__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s-7);
    row-gap: var(--s-7);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Grid lays out marker + name on row 1, bio spanning both columns on
 * row 2 — so the bio fluchtet links mit dem Marker, nicht mit dem
 * Namen. When no marker is rendered (marker = "none"), the auto column
 * collapses to 0 and the name sits flush left. */
.mod-serenade-team-grid__item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--s-3);
    row-gap: var(--s-2);
    /* Items in the same list row are stretched to equal height (the outer
       list grid's default align-items:stretch). Without this, each item's
       own rows would also stretch (grid align-content defaults to stretch),
       inflating the name row and making the name→bio gap larger for the
       shorter blocks. Packing the rows to the top keeps that gap exactly
       row-gap (var(--s-2)) for every block — uniform regardless of bio
       length. Surplus height simply falls below the bio. */
    align-content: start;
    list-style: none;
}

/* Figma node 23:345 etc. — 30 × 30 hollow circle with a 3 px gradient
 * stroke. Solid at the bottom, fading upwards to the same accent at
 * 10 % opacity. Same masked ::before technique as the teaser cards:
 * real gradient paint clipped to a ring with mask-composite: exclude. */
.mod-serenade-team-grid__marker {
    --marker-color:      var(--c-wasser);
    --marker-color-fade: rgba(50, 174, 171, 0.1);

    grid-column: 1;
    grid-row: 1;
    align-self: center;
    position: relative;
    width: 30px;
    height: 30px;
    background: transparent;
    border-radius: 50%;
}

.mod-serenade-team-grid__marker::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px;
    /* Figma draws the stroke horizontally then rotates the element -90°,
     * so on screen the solid end sits at the BOTTOM and fades upward to
     * the same accent at 10 % opacity. */
    background: linear-gradient(
        to top,
        var(--marker-color)      24.5%,
        var(--marker-color-fade) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
            mask-composite: exclude;
    pointer-events: none;
}

.mod-serenade-team-grid__marker--wasser {
    --marker-color:      var(--c-wasser);
    --marker-color-fade: rgba(50, 174, 171, 0.1);
}
.mod-serenade-team-grid__marker--wiese {
    --marker-color:      var(--c-wiese);
    --marker-color-fade: rgba(190, 211, 57, 0.1);
}
.mod-serenade-team-grid__marker--schilf {
    --marker-color:      var(--c-schilf);
    --marker-color-fade: rgba(254, 203, 60, 0.1);
}
.mod-serenade-team-grid__marker--petrol {
    --marker-color:      var(--c-petrol);
    --marker-color-fade: rgba(68, 112, 115, 0.1);
}

.mod-serenade-team-grid__name {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0;
    font-family: var(--ff-text);
    font-weight: var(--fw-bold);
    font-size: var(--fs-h3);
    line-height: var(--lh-text);
    color: var(--c-petrol);
}

.mod-serenade-team-grid__bio {
    grid-column: 1 / -1;
    grid-row: 2;
    font-family: var(--ff-text);
    font-weight: var(--fw-regular);
    font-size: var(--fs-body);
    line-height: var(--lh-text);
    color: var(--c-petrol);
}

.mod-serenade-team-grid__bio p {
    margin: 0 0 var(--s-4) 0;
}

.mod-serenade-team-grid__bio p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .mod-serenade-team-grid__list {
        grid-template-columns: 1fr;
        row-gap: var(--s-6);
    }

    .mod-serenade-team-grid__name { font-size: 20px; }
    .mod-serenade-team-grid__bio  { font-size: 17px; }
}
