/* =========================================================
   THINK3DDD – JOBS
   Nur für jobs.html
   ========================================================= */

#jobs {
    padding: 40px 0;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.hero-jobs {
    position: relative;
    padding: 50px 0 40px;
    background:
        linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.88)),
        url("../assets/images/team/jobs-teamarbeit.webp");
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-jobs h1 {
    margin-bottom: 15px;
    color: #111827;
}

.hero-jobs p {
    max-width: 800px;
    margin: 20px auto 0;
    padding: 22px 30px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    color: #475569;
}

.hero-actions {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.job-bereiche {
    padding: 30px 0;
}

.bereiche-title {
    margin-bottom: 30px;
    color: #111827;
    text-align: center;
    font-size: 2.2rem;
}

.job-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    padding: 35px 30px;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
}

.job-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.35);
}

.job-section > * {
    position: relative;
    z-index: 1;
}

.software-bg {
    background-image: url("../assets/images/team/jobs-softwareentwicklung.webp");
}

.medtech-bg {
    background-image: url("../assets/images/team/jobs-medizintechnik.webp");
}

.business-bg {
    background-image: url("../assets/images/team/jobs-business-management.webp");
}

.engineering-bg {
    background-image: url("../assets/images/team/jobs-ingenieurwesen.webp");
}

.job-category {
    display: table;
    margin: 0 auto 35px;
    padding: 12px 35px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 15px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    color: var(--primary);
    font-size: 2rem;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.job-card {
    display: flex;
    flex-direction: column;
    padding: 35px;
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 22px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
}

.job-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.job-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.job-card h3 {
    margin-bottom: 15px;
    color: #222;
    font-size: 1.35rem;
}

.job-card p {
    flex: 1;
    margin-bottom: 25px;
}

.job-card .btn-secondary {
    margin-top: auto;
    cursor: pointer;
}

.job-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: auto;
    padding: 40px 20px;
    background: rgba(0,0,0,.7);
}

.job-modal-content {
    position: relative;
    max-width: 900px;
    max-height: 85vh;
    margin: auto;
    padding: 50px;
    overflow-y: auto;
    border-radius: 28px;
    background: #fff;
    line-height: 1.7;
    box-shadow: 0 25px 80px rgba(0,0,0,.25);
}

.job-modal-content h2 {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eaeaea;
    color: var(--primary);
    font-size: 2rem;
}

.job-modal-content h3 {
    margin: 30px 0 15px;
    color: var(--primary);
}

.job-modal-content p {
    margin-bottom: 15px;
}

.job-modal-content ul {
    padding-left: 20px;
}

.job-modal-content li {
    margin-bottom: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
    cursor: pointer;
    font-size: 28px;
}

.job-modal-content .btn-primary {
    margin-top: 30px;
}

@media (max-width: 1100px) {
    .job-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .job-grid {
        grid-template-columns: 1fr;
    }

    .job-section {
        padding: 28px 18px;
    }

    .job-category {
        max-width: 100%;
        padding: 10px 20px;
        text-align: center;
        font-size: 1.4rem;
    }

    .job-modal {
        padding: 20px 10px;
    }

    .job-modal-content {
        padding: 28px 22px;
    }
}

/* Aktuelle Ausschreibungen (von JOIN) */
.open-jobs {
    display: grid;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.open-job {
    padding: 24px 26px;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--primary);
    border-radius: 16px;
    background: #fff;
    text-align: left;
}

.open-job h3 {
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.open-job h3 a {
    color: var(--dark);
    text-decoration: none;
}

.open-job h3 a:hover {
    color: var(--primary);
}

.open-job-meta {
    margin-bottom: 10px;
    color: #475569;
    font-size: .92rem;
}

.open-jobs-empty {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.open-jobs-empty p {
    margin-bottom: 18px;
    color: #475569;
}

.job-badge {
    display: inline-block;
    margin: 4px 0 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--brand-tint-teal);
    color: var(--brand-teal-text);
    font-size: .82rem;
    font-weight: 700;
}

.job-status {
    margin: 0 0 24px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.job-status-open {
    border-color: #9adcd8;
    background: var(--brand-tint-teal);
}

.job-status-title {
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: 700;
}

.job-status ul {
    margin: 0;
}
