/* =========================================================
   Hegau24 — Single Job
   Component: jobs-single
   ========================================================= */

.hegau24-job-single {
    --hegau-job-blue: #123a68;
    --hegau-job-blue-dark: #0b2d52;
    --hegau-job-green: #2d8a4e;
    --hegau-job-text: #1d2b3a;
    --hegau-job-muted: #667789;
    --hegau-job-border: #dce4ec;
    --hegau-job-bg: #f4f7fa;
    --hegau-job-white: #ffffff;
    --hegau-job-radius: 18px;
    --hegau-job-shadow: 0 8px 28px rgba(24, 48, 72, 0.08);

    color: var(--hegau-job-text);
    background: var(--hegau-job-bg);
    padding: 28px 0 70px;
}

.hegau24-job-single *,
.hegau24-job-single *::before,
.hegau24-job-single *::after {
    box-sizing: border-box;
}

.hegau24-job-single__container {
    width: min(1800px, 94%);
    margin: 0 auto;
}

/* Breadcrumb */

.hegau24-job-single__breadcrumb {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--hegau-job-muted);
}

.hegau24-job-single__breadcrumb a {
    color: var(--hegau-job-blue);
    text-decoration: none;
}

.hegau24-job-single__breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero */

.hegau24-job-single__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 34px 38px;
    margin-bottom: 28px;
    background: var(--hegau-job-white);
    border: 1px solid var(--hegau-job-border);
    border-radius: var(--hegau-job-radius);
    box-shadow: var(--hegau-job-shadow);
}

.hegau24-job-single__hero-main {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    min-width: 0;
    flex: 1 1 auto;
}

.hegau24-job-single__company-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: var(--hegau-job-blue);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.hegau24-job-single__hero-content {
    min-width: 0;
}

.hegau24-job-single__company {
    margin-bottom: 7px;
    color: var(--hegau-job-blue);
    font-size: 15px;
    font-weight: 700;
}

.hegau24-job-single__title {
    margin: 0;
    color: var(--hegau-job-text);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.hegau24-job-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 17px;
    color: var(--hegau-job-muted);
    font-size: 14px;
}

.hegau24-job-single__meta > * {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hegau24-job-single__hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.hegau24-job-single__favorite,
.hegau24-job-single__apply {
    min-height: 46px;
    padding: 0 19px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.hegau24-job-single__favorite {
    border: 1px solid var(--hegau-job-border);
    background: #fff;
    color: var(--hegau-job-blue);
}

.hegau24-job-single__apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hegau-job-blue);
    background: var(--hegau-job-blue);
    color: #fff;
}

.hegau24-job-single__favorite:hover,
.hegau24-job-single__apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(24, 48, 72, .14);
}

.hegau24-job-single__apply:hover {
    background: var(--hegau-job-blue-dark);
}

/* Main layout */

.hegau24-job-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.hegau24-job-single__content {
    min-width: 0;
}

.hegau24-job-single__sidebar {
    min-width: 0;
}

/* Content sections */

.hegau24-job-single__section,
.hegau24-job-single__card {
    margin-bottom: 22px;
    padding: 30px 32px;
    background: var(--hegau-job-white);
    border: 1px solid var(--hegau-job-border);
    border-radius: var(--hegau-job-radius);
    box-shadow: var(--hegau-job-shadow);
}

.hegau24-job-single__section:last-child,
.hegau24-job-single__card:last-child {
    margin-bottom: 0;
}

.hegau24-job-single__section > h2,
.hegau24-job-single__card > h2,
.hegau24-job-single__card > h3 {
    margin: 0 0 19px;
    color: var(--hegau-job-text);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 750;
}

.hegau24-job-single__prose {
    color: #405366;
    font-size: 16px;
    line-height: 1.75;
}

.hegau24-job-single__prose p {
    margin: 0 0 16px;
}

.hegau24-job-single__prose p:last-child {
    margin-bottom: 0;
}

/* Lists generated from multiline content */

.hegau24-job-single__prose ul,
.hegau24-job-single__prose ol {
    margin: 0;
    padding-left: 22px;
}

.hegau24-job-single__prose li {
    margin-bottom: 9px;
}

/* Skills */

.hegau24-job-single__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hegau24-job-single__skills > * {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #cfe0d5;
    border-radius: 999px;
    background: #f0f8f2;
    color: var(--hegau-job-green);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
}

/* Sidebar facts */

.hegau24-job-single__card--facts {
    position: sticky;
    top: 24px;
}

.hegau24-job-single__fact {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f5;
}

.hegau24-job-single__fact:first-of-type {
    padding-top: 0;
}

.hegau24-job-single__fact:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.hegau24-job-single__fact-label {
    color: var(--hegau-job-muted);
    font-size: 13px;
}

.hegau24-job-single__fact-value {
    color: var(--hegau-job-text);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

/* Contact */

.hegau24-job-single__contact {
    background: #eef5fb;
    border-color: #d5e4f1;
}

.hegau24-job-single__contact p {
    margin: 0 0 8px;
    color: #405366;
    font-size: 14px;
    line-height: 1.55;
}

.hegau24-job-single__contact p:last-child {
    margin-bottom: 0;
}

.hegau24-job-single__contact a {
    color: var(--hegau-job-blue);
    text-decoration: none;
    font-weight: 600;
}

.hegau24-job-single__contact a:hover {
    text-decoration: underline;
}

/* Advertising slots */

.hegau24-job-single__ad-slot {
    width: 100%;
    min-height: 110px;
    margin: 22px 0;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #c7d2de;
    border-radius: 14px;
    background: #edf2f6;
    color: #8493a1;
    font-size: 12px;
    text-align: center;
}

.hegau24-job-single__ad-slot--sidebar {
    min-height: 180px;
    margin: 22px 0;
}

.hegau24-job-single__ad-slot--native {
    min-height: 130px;
}

/* Bottom area */

.hegau24-job-single__bottom {
    margin-top: 28px;
}

.hegau24-job-single__related {
    margin-top: 28px;
}

.hegau24-job-single__related > h2 {
    margin: 0 0 18px;
    color: var(--hegau-job-text);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 750;
}

.hegau24-job-single__related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* Responsive */

@media (max-width: 1199px) {
    .hegau24-job-single__layout {
        grid-template-columns: minmax(0, 1fr) 310px;
    }

    .hegau24-job-single__hero {
        padding: 28px;
    }

    .hegau24-job-single__related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hegau24-job-single {
        padding-top: 20px;
    }

    .hegau24-job-single__hero {
        flex-direction: column;
        align-items: stretch;
    }

    .hegau24-job-single__hero-actions {
        justify-content: flex-start;
    }

    .hegau24-job-single__layout {
        grid-template-columns: 1fr;
    }

    .hegau24-job-single__card--facts {
        position: static;
    }

    .hegau24-job-single__related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hegau24-job-single__container {
        width: min(100% - 24px, 1800px);
    }

    .hegau24-job-single__hero {
        padding: 22px 20px;
        border-radius: 14px;
    }

    .hegau24-job-single__hero-main {
        gap: 14px;
    }

    .hegau24-job-single__company-mark {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        border-radius: 13px;
        font-size: 21px;
    }

    .hegau24-job-single__title {
        font-size: 27px;
    }

    .hegau24-job-single__hero-actions {
        width: 100%;
    }

    .hegau24-job-single__favorite,
    .hegau24-job-single__apply {
        flex: 1 1 0;
        padding: 0 12px;
    }

    .hegau24-job-single__section,
    .hegau24-job-single__card {
        padding: 23px 20px;
        border-radius: 14px;
    }

    .hegau24-job-single__section > h2,
    .hegau24-job-single__card > h2,
    .hegau24-job-single__card > h3 {
        font-size: 20px;
    }

    .hegau24-job-single__prose {
        font-size: 15px;
    }

    .hegau24-job-single__fact {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hegau24-job-single__fact-value {
        text-align: left;
    }
}
