/**
 * ApplySkope – job overview and job page.
 *
 * Design 2.7: SKOPOS orange (#ff9c1b) stays the brand colour, used as a surface with dark text
 * (contrast 8.3:1); orange text on white uses the darker #9a4d00 (6.1:1). Every text/background
 * pair meets WCAG 2.2 AA, form borders and focus rings meet 3:1.
 *
 * Specificity: the site theme (Enfold) styles inputs, buttons and headings with "#top …" selectors.
 * ":is(#top, body)" gives our rules the same weight on every theme without !important.
 *
 * This file is loaded on every front-end page (as before), so section 1 keeps the old site-wide
 * rules that are not tied to the plugin markup; everything else is scoped to .applyskope.
 */

/* ==========================================================================
   1. Site-wide rules of 1.x (kept unchanged; the plugin markup no longer uses them)
   ========================================================================== */

.jobs-overview h4 {
    font-size: 29px;
    font-weight: normal;
    color: #ff9c1b !important;
    line-height: 1.3em;
    background-color: white;
    padding-left: 0px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    margin-top: 50px;
}

.main_color .joblink {
    margin-bottom: 10px;
}

.main_color .joblink a {
    text-decoration: none;
    outline: 0;
    cursor: pointer;
    font-size: 18px;
    padding: 18px 20px;
    font-weight: 600;
    background-color: #f3f4f5;
    width: 100%;
    display: block;
    color: #666;
    transition: background-color .2s ease;
}

.main_color .joblink a:hover {
    color: white;
    background-color: #666;
}

.jobs-overview small {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3em;
}

.meta-icons,
.meta-text {
    margin-right: 10px;
    color: white;
    font-size: 18px;
}

.bildmitbildunterschrift img {
    display: block;
    width: 100%;
    height: auto;
}

.bildmitbildunterschrift .jobtitel {
    width: 75%;
    line-height: 7em;
    text-align: center;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bildmitbildunterschrift .metadata {
    width: 75%;
    line-height: 1.7em;
    text-align: center;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bildmitbildunterschrift {
    width: 100%;
    position: relative;
    margin-bottom: 0px;
    margin-top: 0px;
}

.search-wrapper {
    display: flex;
}

.search-wrapper .fas {
    padding-top: 5px;
    padding-right: 10px;
    color: #ff9c1b;
    font-size: 25px;
}

.container_wrap.container_wrap_first.main_color.fullsize {
    z-index: 2;
}

@media only screen and (min-device-width: 375px) and (max-device-width: 812px) {
    #top input[type="text"] {
        margin-bottom: 20px !important;
        width: 100%;
    }
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */

.applyskope {
    --as-orange: #ff9c1b;          /* SKOPOS orange: surfaces, with --as-ink text */
    --as-orange-ink: #9a4d00;      /* orange for text on white (6.1:1) */
    --as-orange-tint: #fff4e5;
    --as-ink: #1a1a1a;
    --as-text: #1a1a1a;
    --as-muted: #595959;           /* secondary text, 6.4:1 on --as-surface */
    --as-surface: #f3f4f5;         /* SKOPOS light grey */
    --as-surface-strong: #e7e8ea;
    --as-grey: #4a4a4a;            /* SKOPOS grey hover, white text 8.9:1 */
    --as-border: #8a8f95;          /* control borders, 3.3:1 */
    --as-white: #ffffff;
    --as-error: #b3261e;
    --as-error-tint: #fdf3f2;
    --as-success: #1e6b34;
    --as-success-tint: #eef7f0;
    --as-focus: #1a1a1a;
    --as-radius: 6px;
    --as-radius-large: 12px;
    --as-space: 1rem;
    --as-shadow: 0 1px 2px rgba(26, 26, 26, .08), 0 4px 16px rgba(26, 26, 26, .08);
    --as-transition: 160ms ease;

    color: var(--as-text);
    line-height: 1.6;
}

.applyskope *,
.applyskope *::before,
.applyskope *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   3. Utilities
   ========================================================================== */

.applyskope .applyskope-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.applyskope .wp-personio-hide,
.applyskope [hidden] {
    display: none !important;
}

.applyskope :focus-visible {
    outline: 3px solid var(--as-focus);
    outline-offset: 2px;
}

.applyskope [tabindex="-1"]:focus {
    outline: none;
}

.applyskope .applyskope-hint {
    margin: 0 0 .5rem;
    color: var(--as-muted);
    font-size: .9375rem;
}

.applyskope .applyskope-required {
    color: var(--as-error);
    font-weight: 700;
}

.applyskope .applyskope-optional {
    color: var(--as-muted);
    font-weight: 400;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

:is(#top, body) .applyskope .applyskope-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    position: relative;
    min-height: 2.75rem;            /* 44px touch target */
    margin: 0;
    padding: .75rem 1.5rem;
    border: 2px solid var(--as-orange);
    border-radius: var(--as-radius);
    background: var(--as-orange);
    color: var(--as-ink);
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--as-transition), border-color var(--as-transition), color var(--as-transition);
}

:is(#top, body) .applyskope .applyskope-button:hover {
    background: var(--as-grey);
    border-color: var(--as-grey);
    color: var(--as-white);
}

:is(#top, body) .applyskope .applyskope-button:disabled,
:is(#top, body) .applyskope .applyskope-button:disabled:hover {
    background: var(--as-surface-strong);
    border-color: var(--as-surface-strong);
    color: var(--as-muted);
    cursor: not-allowed;
}

:is(#top, body) .applyskope .applyskope-button--quiet {
    background: var(--as-white);
    border-color: var(--as-grey);
    color: var(--as-ink);
}

:is(#top, body) .applyskope .applyskope-button--quiet:hover {
    background: var(--as-surface);
    border-color: var(--as-ink);
    color: var(--as-ink);
}

:is(#top, body) .applyskope .applyskope-button--large {
    min-height: 3.25rem;
    padding: .875rem 2rem;
    font-size: 1.125rem;
}

/* Spinner inside the submit button while sending */
.applyskope .personio-outer-load {
    position: absolute;
    inset: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--as-radius);
    background: var(--as-orange);
}

.applyskope .personio-outer-load-hide {
    display: none;
}

.applyskope .personio-loader {
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid var(--as-ink);
    border-right-color: transparent;
    border-radius: 50%;
    animation: applyskope-spin .8s linear infinite;
}

@keyframes applyskope-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   5. Job page: header
   ========================================================================== */

.applyskope .applyskope-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: .75rem;
    min-height: clamp(18rem, 42vw, 32rem);
    padding: clamp(1.25rem, 4vw, 3rem);
    border-radius: var(--as-radius-large);
    overflow: hidden;
    background-color: var(--as-grey);
    background-image:
        linear-gradient(180deg, rgba(26, 26, 26, 0) 35%, rgba(26, 26, 26, .55) 100%),
        url('../img/skopos-job.jpg');
    background-size: cover;
    background-position: center 70%;
}

.applyskope .applyskope-hero__title {
    max-width: 48rem;
    padding: .5rem 1rem;
    border-radius: var(--as-radius);
    background: var(--as-orange);
}

:is(#top, body) .applyskope .applyskope-hero h1 {
    margin: 0;
    padding: 0;
    background: none;
    color: var(--as-ink);
    font-size: clamp(1.375rem, 1rem + 1.6vw, 2.125rem);
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
    letter-spacing: 0;
}

:is(#top, body) .applyskope .applyskope-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

:is(#top, body) .applyskope .applyskope-hero__meta li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: .375rem .875rem;
    border-radius: 999px;
    background: rgba(26, 26, 26, .82);
    color: var(--as-white);
    font-size: 1rem;
    line-height: 1.4;
}

.applyskope .applyskope-hero__meta i {
    color: var(--as-orange);
}

.applyskope .applyskope-back {
    margin: 1.5rem 0;
}

/* ==========================================================================
   6. Job page: description
   ========================================================================== */

.applyskope .applyskope-description {
    max-width: 50rem;
    font-size: 1.0625rem;
}

:is(#top, body) .applyskope .applyskope-description [class^="DescriptionName"] {
    margin: 2.5rem 0 .5rem;
    color: var(--as-orange-ink);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

:is(#top, body) .applyskope .applyskope-description .DescriptionName0 {
    margin-top: 0;
}

:is(#top, body) .applyskope .applyskope-description a {
    color: var(--as-orange-ink);
    text-decoration: underline;
    text-underline-offset: .15em;
}

:is(#top, body) .applyskope .applyskope-description a:hover {
    color: var(--as-ink);
}

.applyskope .applyskope-cta {
    margin: 2.5rem 0 1rem;
}

#personio-apply-now#personio-apply-now {
    color: white;
}

#submitButton#submitButton.applyskope-button{
    margin-right: 20px;
}


/* ==========================================================================
   7. Messages (error summary, success)
   ========================================================================== */

.applyskope .applyskope-alert {
    display: flex;
    gap: 1rem;
    margin: 0 0 2rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid;
    border-left-width: 6px;
    border-radius: var(--as-radius);
}

.applyskope .applyskope-alert__icon {
    flex: none;
    margin-top: .2rem;
    font-size: 1.5rem;
}

.applyskope .applyskope-alert__body {
    min-width: 0;
}

:is(#top, body) .applyskope .applyskope-alert__title {
    margin: 0 0 .5rem;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

:is(#top, body) .applyskope .applyskope-alert p {
    margin: 0 0 .5rem;
}

:is(#top, body) .applyskope .applyskope-alert--error {
    border-color: var(--as-error);
    background: var(--as-error-tint);
}

:is(#top, body) .applyskope .applyskope-alert--error .applyskope-alert__icon,
:is(#top, body) .applyskope .applyskope-alert--error .applyskope-alert__title {
    color: var(--as-error);
}

:is(#top, body) .applyskope .applyskope-alert__list {
    margin: .25rem 0 0;
    padding-left: 1.25rem;
    list-style: disc;
}

:is(#top, body) .applyskope .applyskope-alert__list li {
    margin: .25rem 0;
}

:is(#top, body) .applyskope .applyskope-alert__list a {
    color: var(--as-error);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .15em;
}

:is(#top, body) .applyskope .applyskope-alert__list a:hover {
    color: var(--as-ink);
}

:is(#top, body) .applyskope .applyskope-alert--success {
    border-color: var(--as-success);
    background: var(--as-success-tint);
}

:is(#top, body) .applyskope .applyskope-alert--success .applyskope-alert__icon,
:is(#top, body) .applyskope .applyskope-alert--success .applyskope-alert__title {
    color: var(--as-success);
}

/* ==========================================================================
   8. Application form
   ========================================================================== */

.applyskope .form {
    display: none;                   /* shown by the script for #app */
}

.applyskope .applyskope-form-section {
    max-width: 56rem;
    margin-top: 1rem;
}

:is(#top, body) .applyskope #formheadline {
    margin: 0 0 .5rem;
    color: var(--as-ink);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
}

.applyskope .applyskope-lead {
    margin: 0 0 .25rem;
    font-size: 1.125rem;
}

:is(#top, body) .applyskope .applyskope-fieldset {
    margin: 2rem 0 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

:is(#top, body) .applyskope .applyskope-fieldset legend {
    margin: 0 0 1rem;
    padding: 0 0 .5rem;
    width: 100%;
    border-bottom: 3px solid var(--as-orange);
    color: var(--as-ink);
    font-size: 1.25rem;
    font-weight: 700;
}

.applyskope .applyskope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.25rem 1.5rem;
}

.applyskope .applyskope-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

:is(#top, body) .applyskope .applyskope-label {
    display: block;
    margin: 0 0 .375rem;
    color: var(--as-ink);
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
}

:is(#top, body) .applyskope .applyskope-field input[type="text"],
:is(#top, body) .applyskope .applyskope-field input[type="email"],
:is(#top, body) .applyskope .applyskope-field input[type="tel"] {
    width: 100%;
    min-height: 3rem;
    margin: 0 !important;            /* overrides the site-wide mobile rule in section 1 */
    padding: .75rem .875rem;
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    background: var(--as-white);
    box-shadow: none;
    color: var(--as-ink);
    font: inherit;
    font-size: 1rem;                 /* 16px: no zoom on iOS */
    line-height: 1.4;
    transition: border-color var(--as-transition), box-shadow var(--as-transition);
}

:is(#top, body) .applyskope .applyskope-field input:hover {
    border-color: var(--as-ink);
}

:is(#top, body) .applyskope .applyskope-field input[type="text"]:focus,
:is(#top, body) .applyskope .applyskope-field input[type="email"]:focus,
:is(#top, body) .applyskope .applyskope-field input[type="tel"]:focus {
    border-color: var(--as-ink);
    outline: 2px solid var(--as-focus);
    outline-offset: 0;
    box-shadow: 0 0 0 5px rgba(255, 156, 27, .45);
}

/* Field with an error: red border, message above the control, no colour-only signal */
:is(#top, body) .applyskope .applyskope-field.wp-personio-error input[type="text"],
:is(#top, body) .applyskope .applyskope-field.wp-personio-error input[type="email"],
:is(#top, body) .applyskope .applyskope-field.wp-personio-error input[type="tel"] {
    border: 2px solid var(--as-error);
}

:is(#top, body) .applyskope .applyskope-field.wp-personio-error .applyskope-label,
:is(#top, body) .applyskope label.wp-personio-error {
    color: var(--as-error);
}

:is(#top, body) .applyskope .applyskope-field__error {
    display: flex;
    gap: .5rem;
    align-items: baseline;
    order: 0;
    margin: 0 0 .5rem;
    color: var(--as-error);
    font-size: .9375rem;
    font-weight: 600;
}

/* Checkbox */
.applyskope .applyskope-check {
    flex-direction: row;
    align-items: flex-start;
    gap: .75rem;
    margin: 2rem 0 0;
    padding: 1rem 1.25rem;
    border-radius: var(--as-radius);
    background: var(--as-surface);
}

:is(#top, body) .applyskope .applyskope-check input[type="checkbox"] {
    flex: none;
    width: 1.375rem;
    height: 1.375rem;
    margin: .125rem 0 0;
    accent-color: var(--as-ink);
    cursor: pointer;
}

:is(#top, body) .applyskope .applyskope-check label {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
}

:is(#top, body) .applyskope .applyskope-check a {
    color: var(--as-orange-ink);
    font-weight: 600;
    text-decoration: underline;
}

.applyskope .applyskope-check.wp-personio-error {
    background: var(--as-error-tint);
    box-shadow: inset 4px 0 0 var(--as-error);
}

.applyskope .applyskope-check .applyskope-field__error {
    flex-basis: 100%;
    order: -1;
}

.applyskope .applyskope-check.wp-personio-error {
    flex-wrap: wrap;
}

/* Actions */
.applyskope .applyskope-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 0;
}

.applyskope .applyskope-actions .applyskope-hint {
    flex-basis: 100%;
    margin: 0;
}

/* ==========================================================================
   9. File fields
   ========================================================================== */

.applyskope .applyskope-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7.5rem;
    padding: 1.25rem;
    border: 2px dashed var(--as-border);
    border-radius: var(--as-radius);
    background: var(--as-surface);
    text-align: center;
    transition: border-color var(--as-transition), background-color var(--as-transition);
}

/* The real input covers the zone: click, drop and keyboard work natively */
:is(#top, body) .applyskope .applyskope-file__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.applyskope .applyskope-dropzone__prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .375rem;
    color: var(--as-muted);
    font-size: .9375rem;
    pointer-events: none;
}

.applyskope .applyskope-dropzone__prompt i {
    color: var(--as-orange-ink);
    font-size: 1.75rem;
}

.applyskope .applyskope-dropzone__prompt strong {
    color: var(--as-ink);
    text-decoration: underline;
    text-underline-offset: .15em;
}

.applyskope .applyskope-dropzone:hover,
.applyskope .applyskope-dropzone.is-dragover {
    border-color: var(--as-ink);
    background: var(--as-orange-tint);
}

.applyskope .applyskope-dropzone:focus-within {
    border-color: var(--as-ink);
    outline: 3px solid var(--as-focus);
    outline-offset: 2px;
}

.applyskope .applyskope-file.has-files .applyskope-dropzone {
    min-height: 4.5rem;
    border-style: solid;
}

.applyskope .applyskope-file.wp-personio-error .applyskope-dropzone {
    border-color: var(--as-error);
    background: var(--as-error-tint);
}

.applyskope .applyskope-file__selection {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-top: .5rem;
}

:is(#top, body) .applyskope .applyskope-file__list {
    flex: 1 1 12rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

:is(#top, body) .applyskope .applyskope-file__list li {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin: 0 0 .25rem;
    font-size: .9375rem;
}

.applyskope .applyskope-file__name {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.applyskope .applyskope-file__size {
    flex: none;
    color: var(--as-muted);
}

:is(#top, body) .applyskope .applyskope-file__remove {
    min-height: 2.75rem;
    margin: -.75rem 0 0;
    padding: .5rem .25rem;
    border: 0;
    background: none;
    color: var(--as-error);
    font: inherit;
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

:is(#top, body) .applyskope .applyskope-file__remove:hover {
    color: var(--as-ink);
}

/* ==========================================================================
   10. Upload overlay (modal dialog)
   ========================================================================== */

.applyskope .applyskope-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(26, 26, 26, .55);
    backdrop-filter: blur(4px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 200ms linear, visibility 0s linear 200ms;
}

.applyskope .applyskope-overlay.personio-show-progress {
    visibility: visible;
    opacity: 1;
    transition: opacity 200ms linear;
}

.applyskope .applyskope-overlay__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 34rem;
    padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
    border-radius: var(--as-radius-large);
    background: var(--as-white);
    box-shadow: 0 12px 48px rgba(26, 26, 26, .3);
    text-align: center;
}

.applyskope #personio-inner-logo img {
    display: block;
    width: 12rem;
    max-width: 100%;
    height: auto;
    margin: 0;
}

:is(#top, body) .applyskope .applyskope-overlay__title {
    margin: 0;
    color: var(--as-ink);
    font-size: 1.375rem;
    font-weight: 700;
}

.applyskope #personio-progress-info {
    margin: 0;
    color: var(--as-muted);
}

.applyskope .personio-progress-bar {
    width: 100%;
    height: .875rem;
    overflow: hidden;
    border: 1px solid var(--as-border);
    border-radius: 999px;
    background: var(--as-surface);
}

.applyskope .personio-progress-bar span {
    display: block;
    height: 100%;
}

.applyskope .personio-progress {
    width: 0;
    background: var(--as-orange);
    transition: width 200ms linear;
}

.applyskope #personio-progress-percent {
    margin: 0;
    color: var(--as-ink);
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   11. Job overview
   ========================================================================== */

.applyskope .applyskope-search {
    margin: 0 0 1.25rem;
}

.applyskope .applyskope-search__field {
    position: relative;
}

.applyskope #personio-search-icon {
    position: absolute;
    top: 50%;
    left: 1.125rem;
    color: var(--as-orange-ink);
    font-size: 1.25rem;
    transform: translateY(-50%);
    pointer-events: none;
}

:is(#top, body) .applyskope #searchInput {
    width: 100%;
    min-height: 3.5rem;
    margin: 0 !important;
    padding: .875rem 3.5rem .875rem 3.25rem;
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    background: var(--as-white);
    box-shadow: none;
    color: var(--as-ink);
    font: inherit;
    font-size: 1.0625rem;
    -webkit-appearance: none;
    appearance: none;
}

:is(#top, body) .applyskope #searchInput::placeholder {
    color: var(--as-muted);
    opacity: 1;
}

:is(#top, body) .applyskope #searchInput:focus {
    border-color: var(--as-ink);
    outline: 2px solid var(--as-focus);
    outline-offset: 0;
    box-shadow: 0 0 0 5px rgba(255, 156, 27, .45);
}

.applyskope #searchInput::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

:is(#top, body) .applyskope .applyskope-search__clear {
    position: absolute;
    top: 50%;
    right: .375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--as-radius);
    background: none;
    color: var(--as-muted);
    font-size: 1.25rem;
    transform: translateY(-50%);
    cursor: pointer;
}

:is(#top, body) .applyskope .applyskope-search__clear:hover {
    background: var(--as-surface);
    color: var(--as-ink);
}

.applyskope #searchInput:placeholder-shown + .applyskope-search__clear {
    visibility: hidden;
}

.applyskope .applyskope-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

:is(#top, body) .applyskope .applyskope-filters button {
    min-height: 2.75rem;
    margin: 0;
    padding: .5rem 1.125rem;
    border: 1px solid var(--as-surface-strong);
    border-radius: 999px;
    background: var(--as-surface);
    color: var(--as-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color var(--as-transition), border-color var(--as-transition);
}

:is(#top, body) .applyskope .applyskope-filters button:hover {
    border-color: var(--as-ink);
    background: var(--as-white);
    color: var(--as-ink);
}

/* Pressed: orange plus a check mark and bold text, not colour alone */
:is(#top, body) .applyskope .applyskope-filters button[aria-pressed="true"] {
    border-color: var(--as-orange);
    background: var(--as-orange);
    color: var(--as-ink);
    font-weight: 700;
}

.applyskope .applyskope-filters button[aria-pressed="true"]::before {
    content: "\2713\00a0";
}

.applyskope .applyskope-result-count {
    min-height: 1.5em;
    margin: 1rem 0 0;
    color: var(--as-muted);
    font-size: .9375rem;
}

:is(#top, body) .applyskope .applyskope-group__title {
    margin: 2.5rem 0 1rem;
    padding: 0;
    background: none;
    color: var(--as-orange-ink);
    font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem);
    font-weight: 400;
    line-height: 1.3;
}

:is(#top, body) .applyskope .applyskope-group:first-child .applyskope-group__title {
    margin-top: 1rem;
}

:is(#top, body) .applyskope .applyskope-joblist {
    display: grid;
    gap: .625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

:is(#top, body) .applyskope .applyskope-job {
    margin: 0;
    padding: 0;
}

:is(#top, body) .applyskope .applyskope-job a {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid transparent;
    border-left: 4px solid transparent;
    border-radius: var(--as-radius);
    background: var(--as-surface);
    color: var(--as-ink);
    text-decoration: none;
    transition: background-color var(--as-transition), border-color var(--as-transition);
}

:is(#top, body) .applyskope .applyskope-job a:hover {
    border-color: var(--as-surface-strong);
    border-left-color: var(--as-orange);
    background: var(--as-white);
    box-shadow: var(--as-shadow);
}

.applyskope .applyskope-job__title {
    grid-column: 1;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
}

.applyskope .applyskope-job a:hover .applyskope-job__title {
    text-decoration: underline;
    text-underline-offset: .15em;
}

.applyskope .applyskope-job__meta {
    grid-column: 1;
    color: var(--as-muted);
    font-size: .9375rem;
}

.applyskope .applyskope-job__arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--as-orange-ink);
    font-size: 1.125rem;
    transition: transform var(--as-transition);
}

.applyskope .applyskope-job a:hover .applyskope-job__arrow {
    transform: translateX(4px);
}

.applyskope .applyskope-empty {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: var(--as-radius);
    background: var(--as-surface);
    text-align: center;
}

/* ==========================================================================
   11a. Text fields are always white (2.8.2)

   The theme colours inputs with "#top .main_color input[type='text']" (same weight as our rules, loaded
   later) and browsers paint autofilled fields blue or yellow. White is binding here in every state, so
   these rules use the form's ID and !important for the background only.
   ========================================================================== */

:is(#top, body) .applyskope :is(#personioApplicationForm, .applyskope-search) :is(
    input[type="text"], input[type="email"], input[type="tel"], input[type="search"]
),
:is(#top, body) .applyskope :is(#personioApplicationForm, .applyskope-search) :is(
    input[type="text"], input[type="email"], input[type="tel"], input[type="search"]
):is(:hover, :focus, :active) {
    background-color: var(--as-white) !important;
    background-image: none !important;
    color: var(--as-ink) !important;
}

/* Autofill: the browser's own background cannot be overridden, only covered with an inset shadow */
.applyskope :is(#personioApplicationForm, .applyskope-search) input:-webkit-autofill,
.applyskope :is(#personioApplicationForm, .applyskope-search) input:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0 1000px var(--as-white) inset !important;
    box-shadow: 0 0 0 1000px var(--as-white) inset !important;
    -webkit-text-fill-color: var(--as-ink);
    caret-color: var(--as-ink);
}

.applyskope :is(#personioApplicationForm, .applyskope-search) input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--as-white) inset, 0 0 0 5px rgba(255, 156, 27, .45) !important;
    box-shadow: 0 0 0 1000px var(--as-white) inset, 0 0 0 5px rgba(255, 156, 27, .45) !important;
}

/* ==========================================================================
   12. Small screens, motion, forced colours
   ========================================================================== */

@media (max-width: 40rem) {
    .applyskope .applyskope-hero {
        border-radius: 0;
        margin-left: calc(-1 * var(--as-space));
        margin-right: calc(-1 * var(--as-space));
    }

    :is(#top, body) .applyskope .applyskope-actions .applyskope-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .applyskope *,
    .applyskope *::before,
    .applyskope *::after {
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }

    .applyskope .personio-loader {
        animation-duration: 2.4s;
    }

    .applyskope .applyskope-job a:hover .applyskope-job__arrow {
        transform: none;
    }
}

@media (forced-colors: active) {
    :is(#top, body) .applyskope .applyskope-button,
    :is(#top, body) .applyskope .applyskope-filters button,
    .applyskope .applyskope-alert,
    .applyskope .applyskope-hero__title {
        border: 2px solid CanvasText;
    }

    :is(#top, body) .applyskope .applyskope-filters button[aria-pressed="true"] {
        outline: 3px solid Highlight;
    }

    .applyskope .personio-progress {
        background: Highlight;
    }
}

@media print {
    .applyskope .applyskope-hero {
        min-height: 0;
        background: none;
        color: #000;
    }

    .applyskope .applyskope-back,
    .applyskope .applyskope-cta,
    .applyskope .applyskope-form-section,
    .applyskope .applyskope-overlay {
        display: none !important;
    }
}
