/* =========================================
   XIVOTEC TEAM PAGE STYLES
   ========================================= */

:root {
    --xivotec-primary: #002340;
    --xivotec-accent: #0cbcdb;
    --xivotec-bg-light: #ffffff;
    --xivotec-bg-gray: #f8f9fa;
    --xivotec-text-dark: #1d1d1f;
    --xivotec-text-gray: #86868b;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.xivotec-page-container {
    background-color: var(--xivotec-bg-light);
    color: var(--xivotec-text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.xivotec-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-spacing {
    padding: 80px 0;
}

/* --- Shared: Section Label --- */
.section-label {
    display: inline-block;
    color: var(--xivotec-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 16px;
    background: rgba(12, 188, 219, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
}

/* =========================================
   SECTION 1: GRÜNDUNGSGESCHICHTE (Origin)
   ========================================= */
.origin-story {
    background-color: var(--xivotec-bg-light);
}

.origin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.origin-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--xivotec-primary);
    line-height: 1.15;
    margin-bottom: 24px;
}

.origin-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
}

.origin-image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.origin-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 35, 64, 0.12);
}

/* Founder Tags below image */
.founder-tags {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    justify-content: center;
}

.founder-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.founder-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--xivotec-primary);
}

.founder-role {
    font-size: 0.8rem;
    color: var(--xivotec-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* =========================================
   SECTION 2: VISION (Text links, Bild rechts)
   ========================================= */
.vision-section {
    background-color: white;
}

.vision-section .vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.vision-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--xivotec-primary);
    line-height: 1.15;
    margin-bottom: 24px;
}

.vision-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
}

.vision-quote {
    margin: 28px 0 0 0;
    padding: 20px 24px;
    border-left: 4px solid var(--xivotec-accent);
    background: rgba(12, 188, 219, 0.06);
    border-radius: 0 12px 12px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--xivotec-primary);
    font-style: italic;
    line-height: 1.5;
}

.vision-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vision-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 35, 64, 0.12);
}

/* =========================================
   SECTION 3: MISSION (Dark Background)
   ========================================= */
.mission-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--xivotec-primary);
    color: #ffffff;
    padding: 100px 0;
    overflow: hidden;
}

.mission-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.mission-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
}

.mission-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Mission Key Points */
.mission-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.mission-point {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.point-number {
    display: inline-block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--xivotec-accent);
    margin-bottom: 12px;
    line-height: 1;
}

.point-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.point-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* =========================================
   SECTION 4: WERTE (Values Cards)
   ========================================= */
.values-section {
    background-color: #f7f7f7;
}

.values-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.values-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--xivotec-primary);
    margin-bottom: 16px;
}

.values-subtitle {
    font-size: 1.1rem;
    color: var(--xivotec-text-gray);
    line-height: 1.6;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.value-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.value-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.value-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 188, 219, 0.08);
    border-radius: 14px;
}

.value-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.value-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--xivotec-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.value-card-text {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--xivotec-text-gray);
}

/* =========================================
   TEAM GRID
   ========================================= */
.xivotec-team-list {
    background-color: #ffffff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.team-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: none;
}

.team-image-wrapper {
    width: 100%;
    aspect-ratio: 1/1.1;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    transition: none;
}

.team-content {
    padding: 18px 18px 12px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.team-header {
    margin-bottom: 6px;
}

.team-name {
    font-size: 1.08rem;
    margin-bottom: 2px;
    color: #002340;
    font-weight: 700;
}

.team-role {
    color: #0cbcdb;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 2px;
}

.team-bio {
    font-size: 0.93rem;
    line-height: 1.5;
    color: #86868b;
    margin-bottom: 10px;
    flex-grow: 1;
}

/* Social Links */
.team-footer {
    border-top: 1px solid #eee;
    padding-top: 10px;
    display: flex;
    justify-content: flex-start;
}

.social-link {
    display: inline-flex;
    align-items: center;
    color: #002340;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f5f5f7;
    padding: 7px 14px;
    border-radius: 30px;
    margin-top: 2px;
    transition: none;
}

.social-link svg {
    margin-right: 6px;
    fill: currentColor;
    width: 16px;
    height: 16px;
}

.social-link:hover {
    background: #e6f7fa;
    color: #0cbcdb;
}

/* =========================================
   JOIN US CTA
   ========================================= */
.xivotec-showcase.section-spacing {
    background-color: var(--xivotec-bg-gray);
    margin-top: 60px;
}

.showcase-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.showcase-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--xivotec-primary);
    font-weight: 800;
}

.showcase-box p {
    color: var(--xivotec-text-gray);
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-block;
    background: var(--xivotec-primary);
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 35, 64, 0.2);
    background: #00335c;
    color: #ffffff;
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablet */
@media (max-width: 1024px) {
    .origin-grid,
    .vision-section .vision-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .origin-image-col {
        order: -1;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .mission-points {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section-spacing {
        padding: 48px 0;
    }

    .xivotec-container {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 80px;
    }

    /* Origin */
    .origin-title,
    .vision-title,
    .mission-title,
    .values-title {
        font-size: 2rem;
    }

    .origin-text p,
    .vision-text p {
        font-size: 1rem;
    }

    .origin-photo,
    .vision-photo {
        max-height: 320px;
        border-radius: 12px;
        width: fit-content;
    }

    .founder-tags {
        gap: 16px;
    }

    /* Vision */
    .vision-quote {
        font-size: 1rem;
        padding: 16px 20px;
    }

    /* Mission */
    .mission-section {
        padding: 60px 0;
    }

    .mission-content {
        margin-bottom: 40px;
    }

    .mission-points {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mission-point {
        padding: 24px 20px;
    }

    .mission-text p {
        font-size: 1rem;
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .value-card {
        padding: 24px 16px;
    }

    .value-icon-wrap {
        width: 52px;
        height: 52px;
    }

    .value-icon {
        width: 28px;
        height: 28px;
    }

    .value-card-title {
        font-size: 0.95rem;
    }

    .value-card-text {
        font-size: 0.85rem;
    }

    /* Team Grid */
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }

    .showcase-box h2 {
        font-size: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 420px) {
    .origin-title,
    .vision-title,
    .mission-title,
    .values-title {
        font-size: 1.6rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
        gap: 12px;
    }

    .team-content {
        padding: 12px 12px 10px 12px;
    }

    .team-name {
        font-size: 0.95rem;
    }

    .team-role {
        font-size: 0.75rem;
    }

    .team-bio {
        font-size: 0.85rem;
    }

    .showcase-box h2 {
        font-size: 1.6rem;
    }

    .origin-text p,
    .vision-text p {
        font-size: 0.95rem;
    }

    .mission-text p {
        font-size: 0.95rem;
    }

    .xivotec-container {
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 80px;
    }
}
