/**
 * Team Karten — Überschrift und Fallback-Box
 *
 * Karte, Grid und Modal liegen in person-card.css (gemeinsame Komponente).
 * Farben, Größen und Typografie kommen aus den Elementor-Controls —
 * hier steht nur Struktur und was sich nicht sinnvoll steuern lässt.
 */

.bew-team-cards {
    width: 100%;
}

.bew-team-cards__heading {
    margin: 0 0 50px 0;
}


/* =========================================
   FALLBACK-BOX
   Text links, Bild rechts, das nach links
   in den Hintergrund ausläuft.
   ========================================= */

.bew-team-cards__fallback {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 360px;

    /* Keine runden Ecken – die Seite arbeitet durchgehend mit Kanten.
       Die Schräge unten rechts kommt aus dem Control „fb_slant". */
    border-radius: 0;
}

/* ── Bild ──
   Läuft nach links aus und liegt zurückgenommen hinter dem Text,
   damit die Überschrift auch über der Bildkante lesbar bleibt.

   Der Verlauf endet früh: im Standardbild steht die linke Person schon
   bei rund 9 % der Bildbreite. Ein langer Verlauf würde sie halb
   wegblenden, deshalb liegt der Übergang auf der leeren Wand davor.
   Steuerbar über das Control „Bild – Verlaufsbreite" (--bew-fb-fade). */
.bew-team-cards__fallback-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.55;

    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 var(--bew-fb-fade, 16%));
    mask-image: linear-gradient(to right, transparent 0%, #000 var(--bew-fb-fade, 16%));
}

/* Kein Punktraster ueber Bildern – die Deko ist projektweit abgeschafft. */

/* ── Textspalte ── */
.bew-team-cards__fallback-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.bew-team-cards__fallback-eyebrow {
    margin: 0 0 18px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.bew-team-cards__fallback-heading {
    margin: 0;
    line-height: 1.15;
}

.bew-team-cards__fallback-text {
    margin: 26px 0 0;
}

/* ── Aktionen ── */
.bew-team-cards__fallback-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 40px;
    margin-top: 38px;
}

.bew-team-cards__fallback-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    border: none;
    border-radius: 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.bew-team-cards__fallback-button:hover,
.bew-team-cards__fallback-button:focus {
    text-decoration: none;
}

.bew-team-cards__fallback-button svg {
    flex-shrink: 0;
    width: 22px;
    height: 12px;
    transition: transform 0.25s ease;
}

.bew-team-cards__fallback-button:hover svg {
    transform: translateX(4px);
}

/* ── Telefon ── */
.bew-team-cards__fallback-phone {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.bew-team-cards__fallback-phone:hover,
.bew-team-cards__fallback-phone:focus {
    text-decoration: none;
}

.bew-team-cards__fallback-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 0;
}

.bew-team-cards__fallback-phone-icon img {
    display: block;
    width: 36px;
    height: auto;
    max-width: none;
}

.bew-team-cards__fallback-phone-body {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
    .bew-team-cards__fallback-media {
        width: 46%;
        opacity: 0.5;
    }
}

@media (max-width: 767px) {
    .bew-team-cards__fallback {
        min-height: 0;
    }

    .bew-team-cards__fallback-media {
        display: none;
    }

    .bew-team-cards__fallback-content {
        max-width: 100%;
    }

    .bew-team-cards__fallback-actions {
        gap: 24px;
    }
}
