/* ==========================================================================
   Careers Page Styles (page-karriere.php)
   ========================================================================== */

/* Hero */
.page-careers .hero-section .section-label {
    display: block;
    margin-bottom: var(--space-sm);
}

.page-careers .hero-section h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: var(--ls-heading-tight);
    margin-bottom: var(--space-sm);
}

.page-careers .hero-paragraph {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-text-body);
    max-width: 720px;
}

/* Jobs Section */
.jobs-section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
}

.jobs-section h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: var(--ls-heading-tight);
    margin-bottom: var(--space-sm);
}

.jobs-section .section-intro {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-text-body);
    max-width: 720px;
    margin-bottom: var(--section-gap);
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.job-card {
    background-color: var(--color-white);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--button-radius);
    transition: box-shadow 0.3s ease;
}

.job-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.job-card__header {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.job-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 400;
    letter-spacing: var(--ls-heading);
    color: var(--color-text-heading);
}

.job-card__location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-body);
}

.job-card__location svg {
    flex-shrink: 0;
}

.job-card__excerpt {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--color-text-body);
    flex: 1;
}

.job-card__button {
    align-self: flex-start;
}

/* Contact Person Section */
.contact-person-section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.contact-person-section h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: var(--ls-heading-tight);
    margin-bottom: var(--space-sm);
}

.contact-person-section > .container > p {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-body);
    margin-bottom: var(--space-md);
}

.contact-person {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-person__name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--color-text-heading);
}

.contact-person__role {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-body);
}

.contact-person__email {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-heading);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-xs);
}

.contact-person__email:hover {
    color: var(--color-accent-red);
}

/* No results */
.page-careers .no-results {
    padding: var(--space-xl) 0;
    text-align: center;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-body);
}

/* Responsive */
@media (max-width: 1023px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .page-careers .hero-section h2,
    .jobs-section h2,
    .contact-person-section h2 {
        font-size: 32px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-card__button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 479px) {
    .page-careers .hero-section h2,
    .jobs-section h2,
    .contact-person-section h2 {
        font-size: 28px;
    }
}
