
body {
    margin: 0 auto;
}

main {
    margin: 0 auto;
    width: 100%;
    max-width: 1224px;

    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;

    -webkit-box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.2);

    /*border: 12px solid;
    border-right-width: 0;
    border-left-width: 0;*/
}

main > section {
    margin: .75em 0;
    max-width: 100%;
    height: 100%;
}

main > section:last-child {
    margin-bottom: 1.5em;
}

main > .section-container [data-role] {
    margin-top: .75em;
    margin-bottom: .75em;
}

[data-editable] p:last-child {
    margin-bottom: 0;
}

[data-editable=logo] {
    max-width: 80%;
    max-height: 96px;
}

[data-role=image] {
    margin: 0;
}

[data-editable=image] {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    height: auto;
}

.title-section {
    padding-top: 2em;
    padding-bottom: 1.5em;
}

[data-role=title] .svg-icon {
    margin-right: .25em;
}

[data-role=title] h1:last-child,
[data-role=title] h2:last-child,
[data-role=title] h3:last-child {
    margin-bottom: 0;
}

[data-role=introduction] p {
    line-height: 1.5;
}

[data-editable=location],
[data-editable=workload] {
    margin-right: .75em;
}

main > .section-container [data-role=application] {
    padding-top: 1em;
    margin-bottom: .25em;
}

main > .section-container [data-role=contact] {
    margin-top: .25em;
    padding-bottom: 1em;
}

main > .section-container [data-role=company] {
    margin-top: .25em;
    padding-bottom: 1em;
}

.contact-name {
    font-weight: bolder;
}

 :root {
     --STSBlue: #004587;
     --STSYellow: #FECC00;
     --STSBlueLight: #95C0EA;
     --STSGrey: #f4f6f8;
     --STSText: #1c2b3a;
 }

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: "Hanken Grotesk", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--STSText);
    background: #ffffff;
}

main {
    margin: 0 auto;
    max-width: 1224px;
    width: 100%;
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.12);
    background: #fff;
    display: block;
}

a { color: var(--STSBlue); text-decoration: none; }
p { margin: 0 0 1em; }

h1, h2, h3 { font-family: "Hanken Grotesk", Arial, sans-serif; }

.content-block { padding: 0 56px; }

/* ---------- Top bar / Nav ---------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 56px;
    gap: 24px;
}
.topbar .logo svg { height: 44px; width: auto; display: block; }
.topbar .logo svg path { fill: var(--STSBlue); }
.mainnav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.mainnav a {
    color: var(--STSBlue);
    font-size: 15px;
    font-weight: 500;
}
.mainnav a:hover { color: var(--STSYellow); }

/* ---------- Burger ---------- */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--STSBlue);
    cursor: pointer;
}
.nav-toggle:hover { background: var(--STSGrey); }
.nav-toggle:focus-visible { outline: 2px solid var(--STSBlue); outline-offset: 2px; }
.nav-toggle-bars {
    position: relative;
    display: block;
    width: 26px;
    height: 18px;
}
.nav-toggle-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--STSBlue);
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 8px; }
.nav-toggle-bars span:nth-child(3) { top: 16px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ---------- Header image ---------- */
.header-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

/* ---------- Title band ---------- */
.title-band {
    background: var(--STSBlueLight);
    padding: 28px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.title-band .title-left { flex: 1 1 420px; }
.job-title {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--STSBlue);
    margin: 0 0 16px;
}
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    font-size: 20px;
    color: var(--STSBlue);
    font-weight: 500;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 9px;
}
.meta-item svg { flex: none; }
.meta-item b { font-weight: 600; }

.title-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------- Buttons ---------- */
.btn {
    display: flex;
    width: 195px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 40px;
    background: var(--STSBlue);
    color: #FFF;
    font-family: "Hanken Grotesk";
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn:hover { opacity: .92; color: #fff; }
.btn.btn-yellow { background: var(--STSYellow); color: var(--STSBlue); }
.btn.btn-wide { width: auto; padding: 0 26px; }

/* ---------- Section headings ---------- */
.section-title {
    font-size: 32px;
    line-height: 44px;
    font-weight: 700;
    color: var(--STSBlue);
    margin: 0 0 18px;
}

section.block { padding: 40px 56px 8px; }

/* ---------- Intro ---------- */
.intro { font-size: 16px; }

/* ---------- Two columns ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 24px 56px 16px;
}
.two-col .col h2 { font-size: 32px; color: var(--STSBlue); font-weight: 700; margin: 0 0 14px; line-height: 44px;}
.two-col ul { margin: 0; padding-left: 20px; }
.two-col li { margin-bottom: 8px; }

/* ---------- Optional box ---------- */
.optional-box { padding: 8px 56px 24px; margin:40px 0;text-align:center }
.optional-box h2 { font-size: 32px; color: var(--STSBlue); font-weight: 700; margin: 0 0 12px;text-align:center;}

/* ---------- Benefits carousel ---------- */
.benefits-wrap { padding: 24px 56px 40px; }
.benefits-box {
    background: var(--STSBlue);
    border-radius: 30px;
    padding: 100px 133px;
    position: relative;
    color: #fff;
}
.benefits-track {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.benefits-track::-webkit-scrollbar { display: none; }
.benefit-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    gap: 40px;
}
.benefit-slide img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    flex: none;
    filter: brightness(0) invert(1);
}
.benefit-slide .benefit-text { font-size: 18px; line-height: 1.5; }
.benefits-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    line-height: 0;
    cursor: pointer;
    padding: 0 8px;
}
.benefits-nav svg { display: block; }
.benefits-nav.prev { left: 30px; transform: translateY(-50%) scaleX(-1); }
.benefits-nav.next { right: 30px; }
.benefits-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}
.benefits-dots .dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    padding: 0;
}
.benefits-dots .dot.active { background: var(--STSYellow); }

/* ---------- Map ---------- */
.map-wrap { padding: 24px 56px 40px; }
.map-wrap .section-title { text-align: center; }
.map-wrap iframe {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 8px;
}

/* ---------- Video + about ---------- */
.about-wrap { padding: 24px 56px 40px; }
.about-wrap .section-title { text-align: center; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.about-grid.no-video { grid-template-columns: 1fr; }
.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 8px;
    overflow: hidden;
}
.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Social media ---------- */
.social-media {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 56px 24px;
}
.social-media .label { color: var(--STSBlue); font-weight: 700; font-size: 18px; }
.social-media a { display: inline-flex; }
.social-media svg path { fill: var(--STSBlue); }
.social-media a:hover svg path { fill: var(--STSYellow); }

/* ---------- Kontakt ---------- */
.kontakt-wrap { padding: 24px 56px 40px; }
.kontakt-box {
    background: var(--STSYellow);
    border-radius: 6px;
    padding: 40px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.kontakt-box .kontakt-col h3 { color: var(--STSBlue); font-size: 22px; font-weight: 700; margin: 0 0 16px; }
.kontakt-box .kontakt-col { color: var(--STSBlue); font-size: 16px; }
.kontakt-box a { color: var(--STSBlue); text-decoration: underline; }

/* ---------- Weitere Stellen ---------- */
.weitere-wrap { padding: 24px 56px 40px; }
.weitere-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}
.job-card {
    background: var(--STSGrey);
    border-radius: 8px;
    padding: 24px 24px 24px 26px;
    position: relative;
    display: block;
    color: var(--STSBlue);
    transition: box-shadow .15s ease;
}
.job-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.12); }
.job-card h3 { font-size: 19px; font-weight: 700; margin: 0 0 16px; color: var(--STSBlue); }
.job-card .card-meta { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; }
.job-card .card-meta svg { flex: none; transform: scale(.8); transform-origin: left center; }
.job-card .arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--STSYellow);
    font-size: 26px;
    font-weight: 700;
}
.weitere-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sticky footer ---------- */
.sticky-footer {
    position: sticky;
    bottom: 0;
    background: var(--STSBlue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    z-index: 50;
}
.sticky-footer .footer-icons {
    display: flex;
    align-items: center;
    gap: 22px;
}
.sticky-footer .footer-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}
.sticky-footer .icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 0;
}
.sticky-footer .icon-btn svg { display: block; }
.sticky-footer .icon-btn:hover { opacity: .8; }

/* ---------- Share popover ---------- */
.share-wrap { position: relative; display: inline-flex; }
.share-popover {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
    z-index: 60;
}
.share-popover[hidden] { display: none; }
.share-popover::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}
.share-popover .social.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}
.share-popover .social.icon svg {
    width: 100%;
    height: 100%;
    fill: var(--STSBlue);
}
.share-popover .social.icon:hover svg { fill: var(--STSYellow); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .content-block, .topbar, .title-band, section.block,
    .two-col, .optional-box, .benefits-wrap, .map-wrap,
    .about-wrap, .social-media, .kontakt-wrap, .weitere-wrap { padding-left: 24px; padding-right: 24px; }
    .two-col, .about-grid, .kontakt-box, .weitere-grid { grid-template-columns: 1fr; gap: 28px; }
    .job-title { font-size: 30px; }
    .title-band .title-left {
        flex:inherit;
    }
    .section-title, .two-col .col h2, .optional-box h2 { font-size: 27px; }
    .title-band { flex-direction: column; align-items: flex-start; }
    .title-actions { flex-direction: row; flex-wrap: wrap; }
    .header-image { height: 220px; }
    .benefit-slide { flex-direction: column; text-align: center; }
    .benefits-box {
        background: var(--STSBlue);
        border-radius: 30px;
        padding: 40px 43px;
        position: relative;
        color: #fff;
    }
    .benefits-nav svg {
        max-height: 30px;
    }
    .benefits-nav.next {
        right: 0px;
    }
    .benefits-nav.prev {
        left:0px;
    }

    /* ---------- Burger / Nav-Dropdown ---------- */
    .topbar { position: relative; }
    .topbar .logo img { max-width: 180px; height: auto; }
    .nav-toggle { display: inline-flex; }
    .mainnav {
        position: absolute;
        top: 100%;
        right: 24px;
        left: 24px;
        z-index: 20;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        padding: 8px 0;
        background: #fff;
        border-radius: 12px;
        border-top: 3px solid var(--STSBlue);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .mainnav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .mainnav a {
        padding: 13px 24px;
        font-size: 16px;
        border-bottom: 1px solid var(--STSGrey);
    }
    .mainnav a:last-child { border-bottom: 0; }
    .mainnav a:hover,
    .mainnav a:focus {
        color: var(--STSBlue);
        background: var(--STSGrey);
    }
    .sticky-footer {
        padding:14px 20px;
    }
    .footer-icons .printIcon {
        display: none;
    }
}
