/* ==========================================================================
   Karriere Page Styles
   ========================================================================== */

.karriere-hero {
    position: relative;
    padding: 12rem 2rem 6rem;
    background-color: var(--color-bg);
    text-align: center;
    overflow: hidden;
}

.karriere-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 50% 0%, rgba(203, 1, 1, 0.06), transparent 60%);
}

.karriere-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.karriere-hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.karriere-hero-desc {
    font-size: 1.2rem;
    color: #5a6577;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Job List Section */
.jobs-section {
    padding: 2rem 2rem 8rem;
    background-color: var(--color-bg);
    position: relative;
    z-index: 10;
}

.jobs-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Modern Job Card (Accordion) */
.job-card {
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.job-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: rgba(203, 1, 1, 0.15);
}

.job-header {
    padding: 2rem 2.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.job-title-wrapper {
    flex: 1;
}

.job-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--color-text);
    transition: color 0.3s;
}

.job-card:hover .job-title {
    color: var(--color-primary);
}

.job-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.job-meta-tag {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    background: rgba(45, 55, 72, 0.05);
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.3px;
}

.job-meta-tag.primary {
    background: rgba(203, 1, 1, 0.08);
    color: var(--color-primary);
}

.job-meta-tag svg {
    opacity: 0.7;
}

.job-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(45, 55, 72, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.job-card:hover .job-toggle {
    background: var(--color-primary);
    color: var(--color-white);
}

.job-toggle svg {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.job-card.active .job-toggle svg {
    transform: rotate(180deg);
}

.job-card.active .job-toggle {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(203, 1, 1, 0.25);
}

.job-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.job-card.active .job-content {
    grid-template-rows: 1fr;
}

.job-content-inner {
    overflow: hidden;
    padding: 0 2.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    transition-delay: 0s;
}

.job-card.active .job-content-inner {
    padding: 0 2.5rem 2.5rem;
    opacity: 1;
    transition-delay: 0.2s;
}

.job-details-wrapper {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 0.5rem;
    padding-top: 2rem;
}

.job-section-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--color-text);
    margin-top: 2rem;
}

.job-section-title:first-child {
    margin-top: 0;
}

.job-content-inner p {
    margin-bottom: 1.5rem;
    color: #5a6577;
    line-height: 1.8;
}

.job-content-inner ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.job-content-inner li {
    margin-bottom: 0.8rem;
    color: #5a6577;
    position: relative;
    list-style-type: disc;
    line-height: 1.6;
}

.job-content-inner li::marker {
    color: var(--color-primary);
}

.job-apply-wrapper {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    text-align: center;
}

.job-apply-btn {
    width: auto;
    min-width: 200px;
    font-size: 1.1rem;
    padding: 1rem 3rem;
}

/* Empty Job Card Style */
.job-card.empty .job-header {
    cursor: default;
}

.job-card.empty:hover {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
}

.job-card.empty:hover .job-title {
    color: var(--color-text);
}

.job-card.empty .job-title {
    opacity: 0.6;
}

.job-card.empty .job-meta-tag {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .job-content-inner {
        padding: 0 1.5rem;
    }

    .job-card.active .job-content-inner {
        padding: 0 1.5rem 1.5rem;
    }

    .job-toggle {
        align-self: flex-end;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .karriere-hero {
        padding: 8rem 1.5rem 4rem;
    }
}

.mobile-break {
    display: none;
}

@media (max-width: 430px) {
    .job-title {
        font-size: 16px;
    }

    .mobile-break {
        display: block;
    }

    .karriere-hero-title {
        font-size: 32px;
    }
}