/* ==========================================================================
   CONTACT / TEAM SECTION (team.css)
   ========================================================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 60px;
}


/* ==========================================================================
   TEAM KARTEN (Exakter Glas-Effekt wie Features)
   ========================================================================== */

.team-card {
    /* 🔥 EXAKT DIE WERTE DER FEATURE-KARTE 🔥 */
    background: rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    /* Das spezifische Layout für das Team-Profil */
    padding: 0 30px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    /* Fallback-Variablen für die Hover-Effekte der Buttons */
    --card-gradient: linear-gradient(135deg, #ABD5FA, #E28FA6);
    --card-shadow: rgba(226, 143, 166, 0.3);
}

.team-card:hover {
    /* 🔥 EXAKT DIE WERTE DER FEATURE-KARTE 🔥 */
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   TEAM THEMEN-FARBEN (Überschreibt den Fallback)
   ========================================================================== */

/* Xoma: Mintgrün/Türkis */
.team-card.gradient-xoma {
    --card-gradient: linear-gradient(135deg, #BBF7ED, #6BDECB);
    --card-shadow: rgba(107, 222, 203, 0.3);
}

/* Dennis: Hellblau/Rosa */
.team-card.gradient-dennis {
    --card-gradient: linear-gradient(135deg, #ABD5FA, #E28FA6);
    --card-shadow: rgba(226, 143, 166, 0.3);
}

/* Morris: Pfirsich/Koralle */
.team-card.gradient-morris {
    --card-gradient: linear-gradient(135deg, #FCC9AA, #F78B94);
    --card-shadow: rgba(247, 139, 148, 0.3);
}

/* ==========================================================================
   BILDER UND KREISE (Nutzen die Variablen)
   ========================================================================== */

.team-avatar-wrapper {
    /* 🔥 DYNAMISCHE GRÖßE FÜR DESKTOP: Wächst stufenlos von 110px bis 140px */
    width: clamp(110px, 10vw, 140px);
    height: clamp(110px, 10vw, 140px);

    border-radius: 50%;
    background: var(--card-gradient) !important;

    /* 🔥 DYNAMISCHER ABSTAND: Schiebt das Bild immer exakt zur Hälfte nach oben raus */
    margin-top: calc(clamp(110px, 10vw, 140px) / -2);

    margin-bottom: 20px;
    padding: 4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-sizing: border-box;
    background-color: #ffffff;
}
.team-name {
    /* 🔥 Dynamisch: Wächst von 1.2rem bis 1.8rem fließend mit */
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #333333;
    margin: 0 0 5px 0;
    letter-spacing: -0.5px;
}

.team-role {
    /* 🔥 Dynamisch: Wächst von 0.75rem bis 0.95rem */
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    font-weight: 700;
    color: #E28FA6; /* Bleibt als einheitliches Branding zartrosa */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
}

.team-desc {
    /* 🔥 Dynamisch: Wächst von 0.9rem bis 1.15rem */
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    color: #666666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ==========================================================================
   TEAM ACTION ROW & BUTTONS
   ========================================================================== */

.team-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 15px;
    gap: 10px;
}

.team-socials {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    justify-content: center;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: all 0.3s ease;
}

/* Hover für Social Icons */
.social-icon:hover {
    background: var(--card-gradient) !important;
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px var(--card-shadow) !important;
}

/* 🔥 DER NEUE SENDEN-BUTTON 🔥
   Jetzt mit dem perfekten dynamischen Rand (Outline)
*/
.action-send {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    width: auto;
    flex-grow: 1;
    max-width: 200px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    color: #333333;

    /* Zieht die Farbe der Person als Rahmen */
    border: 2px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
    var(--card-gradient) border-box !important;
}

/* Hover für Senden-Button (Füllt sich mit der Farbe der Person) */
.action-send:hover {
    background: var(--card-gradient) border-box !important;
    color: #ffffff;
    box-shadow: 0 8px 15px var(--card-shadow) !important;
}

.send-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: none;
}

@media (max-width: 1050px) {
    .action-send {
        width: 42px !important;
        max-width: 42px !important;
        height: 42px;
        padding: 0;
        border-radius: 50%;
        flex-grow: 0;
    }

    .send-text {
        display: none;
    }

    .send-icon {
        display: block;
    }
}

/* ==========================================================================
   TEAM THEMEN-FARBEN (Bleibt wie gehabt)
   ========================================================================== */

.team-card.gradient-xoma {
    --card-gradient: linear-gradient(135deg, #BBF7ED, #6BDECB);
    --card-shadow: rgba(107, 222, 203, 0.3);
}

.team-card.gradient-dennis {
    --card-gradient: linear-gradient(135deg, #ABD5FA, #E28FA6);
    --card-shadow: rgba(226, 143, 166, 0.3);
}

.team-card.gradient-morris {
    --card-gradient: linear-gradient(135deg, #FCC9AA, #F78B94);
    --card-shadow: rgba(247, 139, 148, 0.3);
}

/* ==========================================================================
   TEAM KARTEN (Exakter Glas-Effekt wie Features)
   ========================================================================== */

.team-card {
    /* Halbtransparentes Weiß (Der Glas-Effekt) */
    background: rgba(255, 255, 255, 0.40);

    /* Der magische Glas-Weichzeichner */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); /* Wichtig für Apple/Safari User */

    border-radius: 28px;

    /* Heller Rand (Glasscheiben-Kante) und ganz weicher Schatten */
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);

    /* Das spezifische Layout für das Team-Profil */
    padding: 0 30px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    /* Etwas weichere und hochwertigere Hover-Animation */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-card:hover {
    transform: translateY(-10px); /* Exakt wie Features */

    /* Beim Hovern wird die "Glasscheibe" einen winzigen Tick milchiger/solider */
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   CONTACT HINTERGRUND (Gefixt: 4 große, perfekt positionierte Kreise & Glassmorphism)
   ========================================================================== */

#contact {
    position: relative;
    background-color: #fdfdfd;

    /* Ein ultra-sanftes Punkt-Raster (Dot-Grid) für den Entwickler-Vibe */
    background-image: radial-gradient(rgba(0, 0, 0, 0.03) 2px, transparent 2px);
    background-size: 30px 30px;

    overflow: hidden;

    /* Genug Puffer nach oben und unten, damit das Licht Platz hat */
    padding-top: 150px;
    padding-bottom: 200px;
}

/* Holt den Text und die Karten sicher in den Vordergrund */
#contact .features-header,
#contact .team-grid {
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   Die 4 schwebenden Licht-Auren (Orbs)
   ========================================================================== */

/* 1. Xoma's Kreis (Links) - Mint-Verlauf */
.xoma-aura {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1; /* Unter den Glaskarten */
    width: 450px;
    height: 450px;

    /* Exakt Xomas Verlauf */
    background: linear-gradient(135deg, #BBF7ED, #6BDECB);

    filter: blur(100px);

    /* Position: Exakt hinter der linken Karte ( tiefer) */
    top: 65%;
    left: 17%;
    transform: translate(-50%, -50%);

    animation: schweben-blau 14s ease-in-out infinite;
}

/* 2. Morris' Kreis (Rechts) - Pfirsich-Verlauf */
.morris-aura {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1; /* Unter den Glaskarten */
    width: 450px;
    height: 450px;

    /* Exakt Morris' Verlauf */
    background: linear-gradient(135deg, #FCC9AA, #F78B94);

    filter: blur(100px);

    /* Position: Exakt hinter der rechten Karte ( tiefer) */
    top: 65%;
    left: 83%;
    transform: translate(-50%, -50%);

    animation: schweben-rosa 16s ease-in-out infinite;
}

/* ================= =========================================================
   HILFS-ELEMENTE FÜR DIE ZENTRALE DOPPEL-AURA ÜBER DENNIS
   (Weil wir mit ::before und ::after am #contact-Container schon fertig sind,
   nutzen wir eigene divs dafür)
   ========================================================================== */

/* 3. 🔥 DIE DENNIS-AURA (Startfarbe, Blau) - Oben Links */
/* 3. 🔥 DIE DENNIS-AURA (Startfarbe, Blau) - Oben Links */
.dennis-aura-start {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    width: 450px;
    height: 450px;

    /* 🔥 DER FIX: Massive Volltonfarbe! Kein transparentes Ausfaden mehr! */
    background-color: #ABD5FA;

    filter: blur(120px); /* Der Blur macht ihn ganz weich */

    /* Position: Perfekt nach oben links hinter der Karte verschoben */
    top: 48%;
    left: 42%;
    transform: translate(-50%, -50%);

    animation: schweben-blau 15s ease-in-out infinite;
}

/* 4. 🔥 DIE DENNIS-AURA (Endfarbe, Pink) - Unten Rechts */
.dennis-aura-end {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    width: 450px;
    height: 450px;

    /* 🔥 DER FIX: Massive Volltonfarbe! Kein transparentes Ausfaden mehr! */
    background-color: #E28FA6;

    filter: blur(120px);

    /* Position: Perfekt nach unten rechts hinter der Karte verschoben */
    top: 72%;
    left: 58%;
    transform: translate(-50%, -50%);

    animation: schweben-rosa 13s ease-in-out infinite;
}

/* Die Schwebe-Animationen (Nutzen wir von Features) */
@keyframes schweben-blau {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    33% { transform: translate(-53%, -49%) scale(1.05); opacity: 0.6; }
    66% { transform: translate(-47%, -51%) scale(1.05); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
}

@keyframes schweben-rosa {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    33% { transform: translate(-47%, -51%) scale(1.05); opacity: 0.7; }
    66% { transform: translate(-53%, -49%) scale(1.05); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
}



.team-name {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.team-role {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
}

.team-desc {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.btn-outline-small .send-text {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}



/* ==========================================================================
   MOBILE LAYOUT (Handy-Ansicht)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Raster in eine Spalte umbrechen (Karten untereinander) */
    .team-grid {
        grid-template-columns: 1fr;

        /* 🔥 DER FIX: Den Abstand verdoppeln, damit die herausragenden Bilder Platz haben! */
        gap: 96px;

        padding: 48px 24px 0 24px;
        box-sizing: border-box;
    }

    /* 2. Karten-Padding etwas anpassen */
    .team-card {
        padding: 0 24px 30px 24px;
        width: 100%;
        box-sizing: border-box;
    }

    /* 3. 🔥 DYNAMISCHE AVATARE AUF DEM HANDY */
    .team-avatar-wrapper {
        /* Nutzt clamp, um das Bild auf kleinen Handys etwas zu verkleinern,
           ohne dass es winzig wird. Auf dem Desktop waren es 140px. */
        width: clamp(100px, 25vw, 120px);
        height: clamp(100px, 25vw, 120px);

        /* Der obere Margin muss sich dynamisch an die Bildgröße anpassen,
           damit das Bild immer genau zur Hälfte herausschaut */
        margin-top: calc(clamp(100px, 25vw, 120px) / -2);
    }
}