/* Karriere page content only: the shared header and footer continue to use main.css. */
.k-layout {
    --k-navy: var(--c-blue);
    --k-text: var(--c-text-muted);
    --k-blue-bg: var(--c-lightblue);
    --k-tile-bg: var(--c-lightblue);
    --k-icon-bg: var(--c-lightblue);
    --k-beige-bg: var(--c-beige);
    /* faded dark blue, so the marks stay visible on white and beige */
    --k-quote-mark: rgba(19, 40, 64, .22);
    margin-top: var(--nav-h, 56px);
    color: var(--k-navy);
}

.k-layout section {
    scroll-margin-top: calc(var(--nav-h) + var(--subnav-h) + 14px);
}

/* Reset the global h1/h2/h3 and section p rules from main.css. */
.k-layout h1,
.k-layout h2,
.k-layout h3 {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    transform: none;
    margin: 0;
    padding: 0;
    color: var(--k-navy);
    font-family: var(--font);
    font-weight: 700;
    text-align: left;
    text-transform: none;
    line-height: 1.2;
}

.k-layout p {
    margin: 0;
    color: var(--k-text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
}

.k-layout ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------- HERO (same proportions as the support and om pages) ---------- */
.k-hero {
    display: grid;
    grid-template-columns: 50% 50%;
    min-height: clamp(320px, 40vw, 600px);
}

.k-hero__copy {
    box-sizing: border-box;
    padding: clamp(48px, 7vw, 110px) 7%;
    background: var(--c-blue);
}

.k-layout .k-hero__copy h1 {
    margin-bottom: clamp(24px, 3.4vw, 56px);
    color: #fff;
    font-size: clamp(1.75rem, 2.8vw, 2.25rem) !important;
}

.k-layout .k-hero__copy p {
    max-width: 78%;
    color: #fff;
    font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem);
    line-height: 1.5;
}

.k-hero__visual {
    background: var(--c-blue) url('../image/hero-subpages-skrivebord.jpg?v=1') center / cover no-repeat;
}

/* ---------- TEXT + SIDE SECTIONS ---------- */
.k-section {
    --k-gap: clamp(40px, 5vw, 96px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
    column-gap: var(--k-gap);
    padding: clamp(40px, 4.5vw, 72px) 6%;
    background: #fff;
}

/* 50% of the content box equals 50% of the page here (6% padding each side),
   so the right column starts exactly where the hero image starts */
.k-everyday {
    grid-template-columns: calc(50% - var(--k-gap)) minmax(0, 1fr);
}

.k-section--beige {
    background: var(--k-beige-bg);
}

.k-copy {
    max-width: 560px;
}

.k-layout .k-section h2 {
    margin-bottom: 14px;
    font-size: clamp(1.5rem, 1rem + 1.2vw, 1.75rem) !important;
}

/* "Læs mere" button that expands the full text */
.k-more {
    margin-top: 26px;
}

.k-more summary {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0.85rem 1.6rem;
    border: 1.5px solid var(--c-red);
    border-radius: 8px;
    color: var(--c-red);
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.k-more summary::-webkit-details-marker {
    display: none;
}

.k-more summary:hover,
.k-more summary:focus-visible {
    background: var(--c-red);
    color: #fff;
}

.k-more__arrow {
    font-size: 1.15rem;
    transition: transform .2s ease;
}

.k-more__close,
.k-more[open] .k-more__open {
    display: none;
}

.k-more[open] .k-more__close {
    display: inline;
}

.k-more[open] .k-more__arrow {
    transform: rotate(-90deg);
}

.k-more__body {
    margin-top: 22px;
}

.k-more__body p + p {
    margin-top: 14px;
}

.k-more__body a {
    color: var(--k-navy);
}

/* Two quotes stacked in the right column (Nyansat) */
.k-quotes {
    display: grid;
    gap: clamp(20px, 2.5vw, 32px);
}

/* Feature tiles */
.k-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.k-feature {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 10px;
    background: var(--k-tile-bg);
}

.k-feature__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: clamp(56px, 4.6vw, 66px);
    height: clamp(56px, 4.6vw, 66px);
    border-radius: 50%;
    background: var(--k-icon-bg);
}

.k-feature__icon svg {
    width: 55%;
    height: 55%;
    fill: none;
    stroke: var(--k-navy);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.k-layout .k-feature h3 {
    margin-bottom: 4px;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.k-layout .k-feature p {
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 400;
}

/* Big quote */
.k-quote {
    position: relative;
    margin: 0;
    padding: 0 clamp(44px, 4.5vw, 68px);
    text-align: center;
}

.k-quote::before,
.k-quote::after {
    position: absolute;
    color: var(--k-quote-mark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(3.5rem, 4.5vw, 5rem);
    font-weight: 700;
    line-height: 1;
}

.k-quote::before {
    content: "\201C";
    top: -0.12em;
    left: 0;
}

.k-quote::after {
    content: "\201D";
    right: 0;
    bottom: -0.42em;
}

.k-layout .k-quote p {
    color: var(--k-navy);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.4;
    font-weight: 500;
}

.k-layout .k-quote .k-quote__name {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 400;
}

/* Den erfarne: Sven's quote sits in the vertical middle of the section */
#denerfarne > .k-quote {
    align-self: center;
}

/* ---------- VORES VÆRDIER ---------- */
.k-values {
    padding: clamp(40px, 4.5vw, 64px) 6%;
    background: var(--c-grey);
}

.k-layout .k-values h2 {
    font-size: clamp(1.5rem, 1rem + 1.2vw, 1.75rem) !important;
}

.k-layout .k-values__intro {
    margin-top: 4px;
    color: var(--k-navy);
}

.k-layout .k-values__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(24px, 2.2vw, 30px);
}

.k-value > div,
.k-feature > div {
    min-width: 0;
}

.k-value {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(19, 40, 64, .05);
}

.k-value img {
    flex: none;
    width: clamp(60px, 5vw, 76px);
    height: clamp(60px, 5vw, 76px);
}

.k-layout .k-value h3 {
    margin-bottom: 6px;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.k-layout .k-value p {
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 400;
}

/* ---------- LEDIGE STILLINGER ---------- */
.k-jobs {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 5vw, 80px) 6% clamp(48px, 5vw, 80px);
    background: var(--c-lightblue);
}

.k-jobs > * {
    position: relative;
    z-index: 1;
}

/* Same teaser label as on the front page, Om os and IT-løsninger */
.k-layout .k-eyebrow,
.k-layout .k-jobs__eyebrow {
    margin-bottom: 20px;
    color: var(--k-navy);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.k-layout .k-eyebrow + h2,
.k-layout .k-jobs__eyebrow + h2 {
    margin-top: 0 !important;
}

.k-eyebrow::after,
.k-jobs__eyebrow::after {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    margin-top: .9rem;
    background-color: var(--c-red);
}

.k-layout .k-jobs h2 {
    margin-top: 12px;
    font-size: clamp(1.5rem, 1rem + 1.2vw, 1.75rem) !important;
    letter-spacing: -0.02em;
}

.k-layout .k-jobs__intro {
    max-width: 40rem;
    margin-top: 14px;
    font-size: 1rem;
    font-weight: 400;
}

.k-jobs__inner {
    display: grid;
    /* Text and job card keep a readable width; the signpost centres in the space to the right */
    grid-template-columns: minmax(0, 46rem) minmax(220px, 1fr);
    align-items: center;
    column-gap: clamp(24px, 4vw, 64px);
}

/* Job cards */
.k-job {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    margin-top: clamp(20px, 2.5vw, 32px);
    padding: clamp(16px, 1.8vw, 24px) clamp(18px, 2vw, 28px);
    border-radius: 12px;
    background: var(--c-beige);
}

.k-job__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(48px, 4.5vw, 62px);
    height: clamp(48px, 4.5vw, 62px);
    border-radius: 50%;
    background: #fff;
}

.k-job__icon svg {
    width: 52%;
    height: 52%;
    fill: none;
    stroke: var(--k-navy);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.k-job__text {
    flex: 1;
    min-width: 0;
}

.k-layout .k-job h3 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

.k-layout .k-job p {
    margin-top: 6px;
    font-size: 1rem;
}

.k-job .k-button {
    flex: none;
}

/* Signpost with its dashed trail */
.k-jobs__art {
    position: relative;
    display: flex;
    justify-content: center;
}

.k-jobs__trail {
    position: absolute;
    right: 38%;
    bottom: 12%;
    width: 80%;
    height: 70%;
}

.k-jobs__trail path {
    fill: none;
    stroke: var(--c-grey);
    stroke-width: 1.5;
    stroke-dasharray: 7 7;
    vector-effect: non-scaling-stroke;
}

.k-paths__sign {
    position: relative;
    width: clamp(130px, 13vw, 180px);
    height: auto;
}

.k-paths__sign circle,
.k-sign__pole,
.k-sign__grass {
    fill: none;
    stroke: var(--k-navy);
    stroke-linecap: round;
    stroke-width: 2.2;
}

.k-sign__board {
    fill: #fff;
    stroke: var(--k-navy);
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.k-paths__sign text {
    fill: var(--k-navy);
    font-family: 'Caveat', 'Segoe Print', cursive;
    font-size: 21px;
    font-weight: 600;
    text-anchor: middle;
}

.k-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1.6rem;
    border: 1.5px solid var(--c-red);
    border-radius: 8px;
    color: var(--c-red);
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.k-button:hover,
.k-button:focus-visible {
    background: var(--c-red);
    color: #fff;
}

.k-button--primary {
    border-color: var(--c-red);
    background: var(--c-red);
    color: #fff;
}

.k-button--primary:hover,
.k-button--primary:focus-visible {
    border-color: var(--c-red);
    background: var(--c-red);
}

/* ---------- RESPONSIVE ---------- */
@media screen and (max-width: 1100px) {
    .k-jobs__inner {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .k-jobs__art {
        order: -1;
    }
}

/* Stack text and cards while the two columns would otherwise get narrow */
@media screen and (max-width: 1300px) {
    .k-section {
        grid-template-columns: 1fr;
        row-gap: 36px;
    }

    .k-copy {
        max-width: none;
    }
}

@media screen and (max-width: 900px) {
    .k-jobs__trail {
        display: none;
    }

    .k-section {
        padding: 48px 7%;
    }
}

@media screen and (max-width: 800px) {
    .k-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .k-hero__copy {
        padding: 48px 8%;
    }

    .k-layout .k-hero__copy p {
        max-width: 36rem;
    }

    .k-hero__visual {
        display: none;
    }

}

@media screen and (max-width: 600px) {
    .k-features,
    .k-job {
        flex-wrap: wrap;
    }

    .k-job__text {
        flex: 1 1 60%;
    }

    .k-quote {
        padding: 56px 0 0;
    }

    .k-quote::before,
    .k-quote::after {
        font-size: 5rem;
    }

    .k-button {
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
    }
}

/* Card grids: keep even rows at every width */
@media screen and (max-width: 1200px) {
    .k-layout .k-values__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 820px) {
    .k-features {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 560px) {
    .k-layout .k-values__grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 560px) {
    .k-layout .k-value h3,
    .k-layout .k-feature h3,
    .k-layout .k-value p,
    .k-layout .k-feature p {
        overflow-wrap: break-word;
    }
}
