/* ================================
   PROMPTR – Jobs / Careers Page
   ================================ */

/* --------------------------------
   Back Link (oben links) – wie lab.html
   -------------------------------- */
.jobs-back-link {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
}

.jobs-back-link a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out);
}

.jobs-back-link a:hover {
    color: var(--text-primary);
}

.jobs-back-link .back-arrow {
    font-size: 1rem;
    transition: transform 0.3s var(--ease-out);
}

.jobs-back-link a:hover .back-arrow {
    transform: translateX(-4px);
}

.jobs-page {
    padding: 9rem 0 6rem;
    background: var(--bg-primary);
    min-height: 100vh;
}

/* --------------------------------
   Hero Header
   -------------------------------- */
.jobs-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.jobs-label {
    display: inline-block;
    font-size: var(--section-label-size);
    font-weight: 500;
    letter-spacing: var(--section-label-spacing);
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.jobs-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 400;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
}

.jobs-title-line1 {
    color: var(--text-primary);
    font-style: normal;
}

.jobs-title-line2 {
    font-family: var(--font-headline-accent);
    font-style: italic;
    color: var(--accent-light);
}

.jobs-intro {
    font-size: var(--body-size);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: var(--body-line-height);
}

/* --------------------------------
   Job Count Badge
   -------------------------------- */
.jobs-count {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.jobs-count-number {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--accent-blue);
}

.jobs-count-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --------------------------------
   Job Card
   -------------------------------- */
.job-card {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.job-card:hover,
.job-card.open {
    border-color: rgba(59, 130, 246, 0.3);
}

/* --------------------------------
   Job Card Header (clickable)
   -------------------------------- */
.job-card-header {
    padding: 2rem 2.5rem;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background 0.2s ease;
}

.job-card-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.job-card-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.job-tag {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.job-tag-location {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.1);
}

.job-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    padding-right: 3rem;
}

.job-gender {
    font-size: 0.65em;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 400;
}

.job-teaser {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    padding-right: 3rem;
}

.job-toggle-btn {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.job-card:hover .job-toggle-btn {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.job-toggle-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.35s var(--ease-out);
}

.job-card.open .job-toggle-icon {
    transform: rotate(180deg);
}

/* --------------------------------
   Job Card Body (collapsible)
   -------------------------------- */
.job-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out);
}

.job-card.open .job-card-body {
    max-height: 1000px;
}

.job-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0 2.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.job-section {
    padding: 2rem 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.job-section:first-child {
    padding-left: 0;
}

.job-section:last-child {
    border-right: none;
    padding-right: 0;
}

.job-section-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.job-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

.job-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-size: 0.7rem;
    top: 0.42rem;
}

/* --------------------------------
   Job CTA (Apply Button)
   -------------------------------- */
.job-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 2.5rem 2.5rem;
    flex-wrap: wrap;
}

.job-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    background: var(--accent-blue);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.job-apply-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.job-apply-btn svg {
    transition: transform 0.3s ease;
}

.job-apply-btn:hover svg {
    transform: translateX(3px);
}

.job-apply-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.job-apply-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.job-cta-or {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --------------------------------
   General Contact CTA
   -------------------------------- */
.jobs-contact {
    max-width: 900px;
    margin: 3rem auto 0;
}

.jobs-contact-inner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(13, 29, 53, 0.6) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
}

.jobs-contact-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.jobs-contact-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}


/* --------------------------------
   Responsive
   -------------------------------- */
@media (max-width: 900px) {
    .job-sections {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 1.5rem;
    }

    .job-section {
        padding: 1.25rem 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .job-section:last-child {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .jobs-page {
        padding: 7rem 0 4rem;
    }

    .job-card-header {
        padding: 1.5rem;
    }

    .job-title {
        padding-right: 2.5rem;
        font-size: 1.5rem;
    }

    .job-teaser {
        padding-right: 0;
    }

    .job-toggle-btn {
        right: 1rem;
    }

    .job-cta {
        padding: 0 1.5rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .jobs-contact-inner {
        padding: 2rem 1.5rem;
    }

    .jobs-count-number {
        font-size: 2.5rem;
    }
}
