/*
 * Karriere (Stellenangebote) Page Styles
 * Xivotec Child Theme
 */
 :root {
    --xivotec-primary: #002340;
    --xivotec-accent: #0cbcdb;
    --xivotec-accent-hover: #09a8c4;
    --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);
}

.career-main {
  background: var(--xivotec-bg-light);
  color: var(--xivotec-text-dark);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  padding-bottom: 0;
}

/* =========================================
   HERO SECTION (Untouched)
   ========================================= */
.career-hero {
  padding: 3.5rem 0 2rem 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.career2-hero {
    background-size: cover;
    background-position: center;
    min-height: 62vh;
    display: block;
    padding: 0;
}
.career2-hero-overlay {
    padding: 3.6rem 0;
    position: relative;
    overflow: hidden;
}
.career2-hero-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--career-hero-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(6px);
    transform: scale(1.03);
    z-index: 0;
    pointer-events: none;
}
.career2-hero-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,35,64,0.66) 0%, rgba(0,35,64,0.48) 45%, rgba(0,35,64,0.14) 75%);
    z-index: 1;
    pointer-events: none;
}
.career2-hero-overlay > * { position: relative; z-index: 2; }
.career2-hero-inner {
    max-width: 880px;
    padding: 3rem 2rem 4rem 6vw;
    margin: 0 auto;
    text-align: left;
}
.career2-hero-title {
    font-size: 3rem;
    color: #fff;
    margin: 0 0 .6rem 0;
    line-height: 1.05;
    font-weight: 700;
}
.career2-hero-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    background: #fff;
    margin-top: 18px;
    border-radius: 3px;
    opacity: 0.98;
}
.career2-hero-sub { color: rgba(255,255,255,0.92); margin-bottom: 1.2rem; max-width: 56ch; }
.career2-hero-actions .btn { margin-right: 0.8rem;
text-transform:none; }
.xivotec-hero-fullscreen.career2-hero { height: auto; min-height: 0; max-height: none; background-size: cover !important; background-position: center center !important; background-repeat: no-repeat !important; display: block; padding: 0; overflow: hidden; }
.xivotec-hero-fullscreen.career2-hero .hero-fs-overlay,
.xivotec-hero-fullscreen.career2-hero .hero-fs-content-left,
.xivotec-hero-fullscreen.career2-hero .career2-hero-inner { position: relative; z-index: 2; }

/* =========================================
   SPLIT SECTION (About / Office Image)
   ========================================= */
.career-hero-split {
    padding: 80px 0;
    background: var(--xivotec-bg-light);
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-about {
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.8;
    padding-right: 1rem;
}

.hero-about h2,
.hero-about h3 {
    color: var(--xivotec-primary);
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-about p {
    margin-bottom: 16px;
}

.hero-office .career-hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 35, 64, 0.12);
}

/* =========================================
   EXPECTATIONS & BENEFITS
   ========================================= */
.career-expectations {
    margin-top: 0;
    margin-bottom: 0;
    padding: 80px 0;
    background: var(--xivotec-bg-gray);
}

.career-expectations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.career-expectations-block {
    background: var(--xivotec-bg-light);
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    padding: 36px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.career-expectations-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.career-expectations-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0%;
    background: var(--xivotec-accent);
    transition: height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 0 0 2px 0;
}

.career-expectations-block:hover::before {
    height: 100%;
}

.career-expectations-block h3 {
    color: var(--xivotec-primary);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.career-expectations-block h3::before {
    content: "";
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--xivotec-accent);
    border-radius: 50%;
    display: inline-block;
    margin-right: 12px;
}

.career-expectations-block p {
    color: #4a4a4a;
    margin: 0;
    line-height: 1.7;
    font-size: 1.02rem;
}

.career-expectations-block ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.career-expectations-block li {
    margin-bottom: 10px;
    color: #4a4a4a;
    line-height: 1.65;
    font-size: 1.02rem;
}

/* Remove checkmark circles from career list items */
.career-expectations-block li::before,
.career-job-details li::before {
    display: none !important;
    content: none !important;
}

.career-expectations-block li,
.career-job-details li {
    padding-left: 0;
}

.career-expectations-block li img.emoji,
.career-expectations-block li img.wp-smiley {
    display: none !important;
}

/* =========================================
   JOBS SECTION
   ========================================= */
.career-jobs {
    padding: 80px 0;
    background: var(--xivotec-bg-light);
}

.career-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 40px 0;
    color: var(--xivotec-primary);
    text-align: left;
    position: relative;
    display: inline-block;
}

.career-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--xivotec-accent);
    margin-top: 12px;
    border-radius: 2px;
}

.career-job-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 920px;
}

/* Job Cards */
.career-job-card {
    background: var(--xivotec-bg-light);
    border-radius: 14px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    padding: 24px 32px;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.career-job-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
    border-color: rgba(12, 188, 219, 0.2);
}

.career-job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0%;
    background: var(--xivotec-accent);
    transition: height 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 0 0 2px 0;
}

.career-job-card:hover::before {
    height: 100%;
}

/* Toggle Button */
.career-job-toggle {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--xivotec-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    outline: none;
    padding: 6px 0;
    transition: color 0.2s ease;
    min-height: 44px;
}

.career-job-card:hover .career-job-toggle {
    color: var(--xivotec-primary);
}

.career-job-toggle:focus-visible {
    outline: 3px solid var(--xivotec-accent);
    outline-offset: 4px;
    border-radius: 6px;
}




/* Job Details (expanded) */
.career-job-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    animation: slideDown 0.3s ease-out;
    color: #4a4a4a;
    font-size: 1.02rem;
    line-height: 1.75;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.career-job-details ul {
    margin: 0 0 1.5rem 1.2rem;
    padding: 0;
    list-style: disc;
}

.career-job-details li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.career-job-details li::marker {
    color: var(--xivotec-accent);
}

/* Benefits Box */
.career-job-benefits {
    background: var(--xivotec-bg-gray);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

.career-job-benefits strong {
    display: block;
    color: var(--xivotec-primary);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* CTA Button */
.career-job-cta {
    display: inline-block;
    background: var(--xivotec-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    padding: 14px 32px;
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 35, 64, 0.15);
    font-size: 0.95rem;
    min-height: 44px;
}

.career-job-cta:hover {
    background: var(--xivotec-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12, 188, 219, 0.25);
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablet */
@media (max-width: 900px) {
    .career-hero-split {
        padding: 48px 0;
    }

    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-about {
        padding-right: 0;
    }

    .hero-office .career-hero-image {
        height: auto;
    }

    .career-expectations {
        padding: 48px 0;
    }

    .career-expectations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .career-jobs {
        padding: 48px 0;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .career-section-title {
        font-size: 2rem;
    }

    .career-job-card {
        padding: 20px;
        border-radius: 12px;
    }

    .career-job-toggle {
        font-size: 1.08rem;
    }

    .career-expectations-block {
        padding: 24px 20px;
    }

    .career-expectations-block h3 {
        font-size: 1.15rem;
    }

    .career2-hero-inner {
        padding: 2rem 1rem 3rem 1rem;
    }

    .career2-hero-title {
        font-size: 2rem;
    }

    .career2-hero-sub {
        font-size: 0.95rem;
    }

    .career-job-cta {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .career-job-benefits {
        padding: 16px;
        border-radius: 10px;
    }

    .career2-hero-actions .btn {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 420px) {
    .career2-hero-title {
        font-size: 1.6rem;
    }

    .career-section-title {
        font-size: 1.6rem;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .career-job-details,
    .career-job-card,
    .career-job-card::before,
    .career-job-arrow,
    .career-expectations-block,
    .career-expectations-block::before,
    .hero-office .career-hero-image,
    .career-job-cta {
        transition: none !important;
        animation: none !important;
    }
}
