/* Expert-in-Residence Program Styles */

/* EiR Hero Section - Original (kept for backward compatibility) */
.eir-hero {
    background: linear-gradient(135deg, #0066CC 0%, #4A90E2 100%);
    color: white;
    padding: 100px 0 80px;
    margin-top: 60px; /* Account for fixed navigation */
}

.eir-hero h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.eir-hero .lead {
    font-size: 1.4rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

/* EiR Hero Section - Dark Purple (Title and Tagline only) */
.eir-hero-purple {
    background: linear-gradient(135deg, #7B3FF2 0%, #9D5CFF 100%);
    color: white;
    padding: 80px 0;
    margin-top: 60px; /* Account for fixed navigation */
}

.eir-hero-purple h1 {
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 3.5rem;
}

.eir-hero-purple .lead {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
}

/* EiR Experts Section - Light Purple Background */
.eir-experts-section {
    background: linear-gradient(135deg, #E8DCFF 0%, #F3E8FF 100%);
    padding: 60px 0;
    min-height: 400px;
}

/* Expert cards within experts section */
.eir-experts-section .expert-card,
.eir-experts-section .card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eir-experts-section .expert-card:hover,
.eir-experts-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Empty state styling within experts section */
.eir-experts-section .empty-state {
    background: rgba(255, 255, 255, 0.6);
    border: 2px dashed rgba(123, 63, 242, 0.3);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
}

.eir-experts-section .empty-state h3 {
    color: #2C3E50;
    font-weight: 600;
}

.eir-experts-section .empty-state p {
    color: #495057;
}

.eir-experts-section .empty-state i {
    color: rgba(123, 63, 242, 0.5);
}

/* EiR Overview Section */
.eir-overview {
    background-color: #fff;
}

/* EiR Distinction Section */
.eir-distinction .card {
    transition: transform 0.3s ease;
    height: 100%;
}

.eir-distinction .card:hover {
    transform: translateY(-5px);
}

.eir-distinction .card.border-primary {
    border-width: 2px;
}

/* EiR Role Section */
.eir-role .card {
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease;
}

.eir-role .card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.eir-role .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* EiR Expectations Section */
.eir-expectations {
    background-color: #f8f9fa;
}

.eir-expectations h6 {
    font-weight: 600;
    color: #333;
}

/* EiR Benefits Grid */
.eir-benefits .card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eir-benefits .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.eir-benefits .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.eir-benefits .card-text {
    color: #666;
}

/* EiR Structure Section */
.eir-structure {
    background-color: #f8f9fa;
}

.eir-structure .list-group-item {
    border-left: 3px solid #0066CC;
    transition: background-color 0.3s ease;
}

.eir-structure .list-group-item:hover {
    background-color: #f8f9fa;
}

/* EiR European Section */
.eir-european .card {
    transition: transform 0.3s ease;
}

.eir-european .card:hover {
    transform: scale(1.02);
}

.eir-european .card.border-primary {
    border-width: 2px;
}

/* EiR Impact Section */
.eir-impact {
    background-color: #f8f9fa;
}

.eir-impact .card {
    border: none;
    overflow: hidden;
}

.eir-impact .card-header {
    border-radius: 0;
    font-weight: 600;
}

.eir-impact .list-unstyled li {
    padding: 5px 0;
}

/* EiR Experts Cards Section */
.eir-experts {
    background-color: #f8f9fa;
}

.eir-experts.bg-light {
    background-color: #f8f9fa !important;
}

/* EiR Conclusion Section */
.eir-conclusion {
    background: linear-gradient(135deg, #0066CC 0%, #4A90E2 100%);
    position: relative;
}

.eir-conclusion h2 {
    font-weight: 700;
}

.eir-conclusion .lead {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* EiR Call to Action */
.eir-cta .card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eir-cta .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.eir-cta .card-title {
    font-weight: 600;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .eir-hero {
        padding: 80px 0 60px;
    }

    .eir-hero h1 {
        font-size: 2rem;
    }

    .eir-hero .lead {
        font-size: 1.1rem;
    }

    .card-deck {
        display: block;
    }

    .card-deck .card {
        margin-bottom: 1rem;
    }
}

/* KI Accelerator Navigation Styles */

/* Program Banner Navigation */
.program-banner {
    background: linear-gradient(135deg, #0066CC 0%, #4A90E2 100%);
    color: white;
    padding: 12px 0;
    text-align: center;
    position: fixed;
    top: 0; /* Direkt am Seitenanfang */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
}

.banner-text {
    font-weight: 800;
    font-size: 0.95rem;
    margin-right: 20px;
}

.banner-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.banner-nav-item {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.banner-nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    color: white !important;
    text-decoration: none !important;
}

.banner-nav-item.active {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Language Toggle */
.language-toggle-banner {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    margin-left: 15px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.language-toggle-banner:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Content offset when banner is fixed */
.with-program-banner {
    margin-top: 55px; /* Only program banner height */
}

/* Mentor and Expert Card Styles (from inline styles) */
.accelerator-modern {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.accelerator-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.card-gradient-overlay {
    height: 5px;
    background: linear-gradient(135deg, #7AB800 0%, #8CC619 100%);
}

.mentor-visual {
    position: relative;
    padding: 20px;
    text-align: center;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
}

.expertise-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #7AB800;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.mentor-content {
    padding: 20px;
}

.mentor-name {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.mentor-tagline {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.mentor-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.skill-tags {
    margin-top: 15px;
}

.skill-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 15px;
    margin: 2px;
    font-size: 0.85rem;
}

.social-links {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #7AB800;
    color: white;
}

/* Expert Card Styles - Equal Height Layout */
.expert-card.premium {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(149, 53, 255, 0.15);
    overflow: visible;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    min-height: 550px; /* Reduziert für bessere Proportionen */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.expert-card.premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(149, 53, 255, 0.25);
    border-color: #9535FF;
}

.expert-header {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.expert-image-container {
    position: relative;
    display: inline-block;
}

.expert-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.expert-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #9535FF;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* LinkedIn Corner Link */
.linkedin-corner-link {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.linkedin-corner-link:hover {
    transform: scale(1.1);
    background: #0077B5;
    box-shadow: 0 4px 8px rgba(0, 119, 181, 0.3);
}

.linkedin-corner-link:hover .linkedin-corner-icon {
    color: white;
}

.linkedin-corner-link:focus {
    outline: 2px solid #0077B5;
    outline-offset: 2px;
}

.linkedin-corner-icon {
    color: #0077B5;
    width: 20px;
    height: 20px;
}

/* Responsive adjustments for LinkedIn corner link */
@media (max-width: 768px) {
    .linkedin-corner-link {
        width: 28px;
        height: 28px;
        top: 14px;
        right: 14px;
    }

    .linkedin-corner-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .linkedin-corner-link {
        width: 24px;
        height: 24px;
        top: 12px;
        right: 12px;
    }

    .linkedin-corner-icon {
        width: 16px;
        height: 16px;
    }
}

.expert-content {
    padding: 30px 30px 20px 30px; /* oben/rechts/unten/links - Bottom padding reduziert */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.expert-name {
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.expert-title {
    color: #9535FF;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 26px;
}

.expert-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px; /* Reduziert von 15px */
    font-size: 0.9rem;
    min-height: 70px; /* Reduziert von 80px */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.expert-specializations {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.expert-specializations h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expert-specializations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expert-specializations li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.expert-specializations li:last-child {
    border-bottom: none;
}

.expert-specializations li:before {
    content: "→";
    color: #9535FF;
    font-weight: bold;
    margin-right: 10px;
}

.expert-project {
    background: linear-gradient(135deg, #9535FF 0%, #6B19B8 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.expert-project h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expert-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.social-link {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #9535FF;
    color: white;
    transform: scale(1.1);
}

/* Expert Card Additional Styles for Consistent Heights */
.expert-card .expert-company {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    min-height: 22px;
}

.expert-card .expertise-tags {
    min-height: 45px;
    margin-bottom: 10px;
}

.expert-card .expertise-tags .badge {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.expert-card .expert-features {
    min-height: 80px; /* Reduziert von 100px */
    flex-grow: 0;
}

.expert-card .expert-features .feature-row {
    margin-bottom: 5px;
    line-height: 1.4;
}

.expert-card .expert-social {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Ensure equal heights in grid */
.eir-experts-section .row {
    display: flex;
    flex-wrap: wrap;
}

.eir-experts-section .col-lg-4,
.eir-experts-section .col-md-6 {
    display: flex;
    flex-direction: column;
}

.eir-experts-section .expert-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hero Section for Experts */
.experts-hero {
    background: linear-gradient(135deg, #9535FF 0%, #6B19B8 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
    margin-top: 55px; /* Account for fixed program banner only */
}

.experts-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.experts-hero .lead {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-toggle-banner {
        margin-left: 0 !important;
        margin-top: 10px !important;
    }

    .program-banner {
        padding: 8px 0;
        position: static;
        margin-top: 0;
    }

    .banner-content {
        flex-direction: column;
        gap: 10px;
    }

    .banner-text {
        font-size: 0.85rem;
        margin-right: 0;
    }

    .banner-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .banner-nav-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .with-program-banner {
        margin-top: 0;
    }

    .experts-hero {
        margin-top: 0;
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .banner-nav {
        gap: 8px;
    }

    .banner-nav-item {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .experts-hero h1 {
        font-size: 2rem;
    }
}

/* ========================================
   SP-Connect Icon Styling for Mentor Cards
   ======================================== */

.sp-connect-corner-link {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sp-connect-corner-link:hover {
    background: #7B68EE; /* STARTPLATZ purple */
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(123, 104, 238, 0.3);
}

.sp-connect-corner-icon {
    color: #7B68EE;
    transition: color 0.3s ease;
}

.sp-connect-corner-link:hover .sp-connect-corner-icon {
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sp-connect-corner-link {
        width: 24px;
        height: 24px;
        top: 12px;
        right: 12px;
    }

    .sp-connect-corner-icon {
        width: 16px;
        height: 16px;
    }
}

/* Admin Edit Icon - Top Right Corner (for Admins/Masters only) */
.edit-corner-link {
    position: absolute;
    top: 16px;
    right: 56px; /* 40px space from SP-Connect icon */
    background: rgba(52, 152, 219, 0.9); /* Blue - prominent */
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none;
}

.edit-corner-link:hover {
    background: rgba(52, 152, 219, 1);
    transform: scale(1.1);
    text-decoration: none;
}

.edit-corner-link i {
    color: white;
    font-size: 14px;
}

/* Edit icon positioning - ensure cards are relative containers */
.mentor-card,
.mentor-card.accelerator-modern,
.expert-card.premium {
    position: relative !important;
}

/* Responsive: Smaller edit icon on mobile */
@media (max-width: 767px) {
    .edit-corner-link {
        width: 24px;
        height: 24px;
        top: 12px;
        right: 44px;
    }

    .edit-corner-link i {
        font-size: 12px;
    }
}

/* Mentor Card Badge - Hidden for cleaner design */
.mentor-card.accelerator-modern .mentor-badge {
    display: none; /* Badge removed as per requirements */
}

/* Mentor Feature Styling */
.mentor-card .mentor-feature {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mentor-card .mentor-feature:last-child {
    border-bottom: none;
}

.mentor-card .mentor-feature strong {
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
}

/* Mentor Card Specific Adjustments */
.mentor-card.accelerator-modern {
    position: relative;
    overflow: visible; /* Allow SP-Connect icon to be visible */
}

.mentor-card.accelerator-modern .mentor-visual {
    position: relative;
}

.mentor-card.accelerator-modern .mentor-tagline {
    color: #7B68EE;
    font-weight: 600;
    margin-bottom: 12px;
}