/* ==========================================================================
   LLI Speaker Card Widget – Liquid Legal Summit Design (Dreieck-Sprache)
   Farbwelt:
   - Marineblau    #0c2340  (Headlines, Name, dunkle Dreiecke)
   - Akzent-Rot    #d6263d  (Links, CTA, helle Dreiecke)
   - Sekundärtext  #3a4a63
   - Rahmen Light  #e6eaf2
   ========================================================================== */

.lli-speaker-card {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 360px;
    /* Gleichhohe Karten: Card f\u00fcllt H\u00f6he des Elementor-Parent (Section/Column/Container) */
    height: 100%;
    min-height: 100%;
    margin: 0 auto;
    padding: 40px 28px 32px;
    background-color: #ffffff;
    border: 1px solid #e6eaf2;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(12, 35, 64, 0.06);
    overflow: hidden;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Wenn Elementor-Widget-Wrapper mehrere Karten nebeneinander zeigt
   (z. B. Container Flex/Grid), den Wrapper selbst auf volle H\u00f6he ziehen */
.elementor-widget-lli_speaker_card,
.elementor-widget-lli_speaker_card > .elementor-widget-container {
    height: 100%;
}

.lli-speaker-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(12, 35, 64, 0.10);
}

/* --- Hintergrund-Dreiecke (SVG füllt komplette Card) --- */
.lli-speaker-card__triangles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.lli-speaker-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* F\u00fcllt die Card-H\u00f6he aus, damit Karten visuell gleich gewichtet sind */
    flex: 1 1 auto;
    width: 100%;
}

/* --- Foto --- */
.lli-speaker-photo-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lli-speaker-photo-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(12, 35, 64, 0.10) 0%, rgba(214, 38, 61, 0.10) 100%);
    z-index: 0;
}

.lli-speaker-photo {
    position: relative;
    z-index: 1;
    /* Strikt quadratisch erzwingen, unabhängig vom hochgeladenen Bildverhältnis */
    width: 132px !important;
    height: 132px !important;
    min-width: 132px;
    min-height: 132px;
    max-width: 132px;
    max-height: 132px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    /* Bild auf den runden Rahmen zuschneiden, ohne zu verzerren */
    object-fit: cover;
    object-position: center center;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(12, 35, 64, 0.12);
    display: block;
    /* Fallback für sehr alte Browser, die border-radius bei <img> ignorieren */
    -webkit-clip-path: circle(50% at 50% 50%);
            clip-path: circle(50% at 50% 50%);
    overflow: hidden;
}

/* --- Name --- */
.lli-speaker-name {
    margin: 8px 0 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #0c2340;
    letter-spacing: -0.01em;
}

/* --- LinkedIn-Link --- */
.lli-speaker-link {
    display: inline-block;
    margin: 0 0 22px;
    padding: 2px 0;
    font-size: 16px;
    font-weight: 600;
    color: #d6263d;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.lli-speaker-link:hover,
.lli-speaker-link:focus {
    border-bottom-color: currentColor;
    opacity: 0.85;
}

/* --- Unternehmen / Position --- */
.lli-speaker-company {
    /* Bei gleich hohen Karten: nach unten dr\u00fccken, damit kurze und lange Texte gleich wirken */
    margin: auto 0 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #3a4a63;
    max-width: 280px;
}

/* ==========================================================================
   Modifier: Summit-Look (kräftige Dreiecke, dunkler Verlauf)
   Auf dunklem Hintergrund müssen Schrift, Foto-Rand und Link heller werden.
   ========================================================================== */

.lli-speaker-card--bold {
    background-color: #0c2340; /* Fallback hinter SVG */
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 28px rgba(12, 35, 64, 0.25);
}

.lli-speaker-card--bold .lli-speaker-photo {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.lli-speaker-card--bold .lli-speaker-photo-ring {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.20) 0%, rgba(214, 38, 61, 0.30) 100%);
}

.lli-speaker-card--bold .lli-speaker-name {
    color: #ffffff;
}

.lli-speaker-card--bold .lli-speaker-link {
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.lli-speaker-card--bold .lli-speaker-link:hover,
.lli-speaker-card--bold .lli-speaker-link:focus {
    color: #ffd9df;
    border-bottom-color: #ffd9df;
    opacity: 1;
}

.lli-speaker-card--bold .lli-speaker-company {
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 480px) {
    .lli-speaker-card {
        padding: 32px 20px 26px;
        max-width: 100%;
    }
    .lli-speaker-photo-wrap {
        width: 120px;
        height: 120px;
    }
    .lli-speaker-photo {
        width: 114px !important;
        height: 114px !important;
        min-width: 114px;
        min-height: 114px;
        max-width: 114px;
        max-height: 114px;
    }
    .lli-speaker-name {
        font-size: 20px;
    }
}
