/* ============================================
   Stellenangebote – Extension CSS
   Flat Design, BFSG/EAA-konform
   Fonts: PT Sans / PT Serif
   Farben werden über CSS-Custom-Properties und
   Unternehmensbereich-Farbschema-Klassen gesteuert
   Kein border-radius, klare Linien
   ============================================ */

/* Sticky footer is handled by the site layout; extension styles must not change body display */

/* --- Color scheme variables (default + 4 brand schemes) --- */
.joboffers {
    --joboffers-primary: #003A61;
    --joboffers-accent: #BD0927;
    --joboffers-on-primary: #fff;
}

.joboffers-scheme--snsa,
.joboffers-scheme--accent {
    --joboffers-primary: #BD1B2A;
    --joboffers-accent: #BD1B2A;
    --joboffers-on-primary: #fff;
}

.joboffers-scheme--senioren {
    --joboffers-primary: #F9B000;
    --joboffers-accent: #F9B000;
    --joboffers-on-primary: #fff;
}

.joboffers-scheme--bildung,
.joboffers-scheme--secondary {
    --joboffers-primary: #3061AC;
    --joboffers-accent: #3061AC;
    --joboffers-on-primary: #fff;
}

.joboffers-scheme--mvz {
    --joboffers-primary: #63b22b;
    --joboffers-accent: #63b22b;
    --joboffers-on-primary: #fff;
}

.joboffers-list {
    min-height: calc(80svh - var(--header-height, 180px)) !important;
}

/* --- Skip Link (Accessibility) --- */
.joboffers-skiplink {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 12px 24px;
    background: var(--joboffers-primary);
    color: var(--joboffers-on-primary);
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
}

.joboffers-skiplink:focus {
    left: 0;
}

/* --- Division Selector --- */
.joboffers-divisions {
    padding: 0 0 32px;
}

.joboffers-divisions__heading {
    font-family: 'PT Serif', Cambria, serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--joboffers-primary);
    margin: 0 0 20px;
}

.joboffers-divisions__grid {
    display: none;
}

@media (min-width: 800px) {
    .joboffers-divisions__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (min-width: 1000px) {
    .joboffers-divisions__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.joboffers-divisions__select {
    display: block;
    margin-bottom: 16px;
}

@media (min-width: 800px) {
    .joboffers-divisions__select {
        display: none;
    }
}

.joboffers-divisions__select .select {
    width: 100%;
    max-width: 400px;
}

.joboffers-divisions__label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--joboffers-primary);
}

.joboffers-division-card {
    display: block;
    padding: 18px 20px;
    margin-bottom: 0;
    border: 1px solid #CAD6DE;
    text-align: center;
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--joboffers-primary);
    text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
    cursor: pointer;
}

.joboffers-division-card:hover,
.joboffers-division-card:focus {
    border-color: var(--joboffers-primary);
    background-color: #e8edf2;
    color: var(--joboffers-primary);
}

.joboffers-division-card--active {
    border-color: var(--joboffers-primary);
    background-color: var(--joboffers-primary);
    color: var(--joboffers-on-primary);
}

.joboffers-division-card--active:hover,
.joboffers-division-card--active:focus {
    background-color: color-mix(in srgb, var(--joboffers-primary), #000 20%);
    border-color: color-mix(in srgb, var(--joboffers-primary), #000 20%);
    color: var(--joboffers-on-primary);
}

/* --- Filter Section --- */
.joboffers-filter {
    padding: 24px;
    margin-bottom: 0;
}

.joboffers-filter__row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    align-items: flex-start;
}

.joboffers-filter__group {
    margin-bottom: 0;
    border: none;
    padding: 0;
    min-width: 0;
    flex: 0 0 auto;
}

.joboffers-filter__search {
    flex: 1 1 200px;
    display: block;
}

.joboffers-filter__search-row {
    display: flex;
    align-items: stretch;
    border: 1px solid #CAD6DE;
    background-color: #fff;
}

.joboffers-filter__search-row .textinput {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    border: none;
    padding: 9px 16px;
}

.joboffers-filter__search-button {
    flex: 0 0 auto;
    padding: 0 24px;
    background-color: var(--joboffers-dark-blue);
    color: #fff;
    border: none;
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s;
}

.joboffers-filter__search-button:hover,
.joboffers-filter__search-button:focus {
    background-color: var(--joboffers-primary);
    color: #fff;
}

.joboffers-filter__legend,
label.joboffers-filter__legend {
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.7rem;
    margin: 0 0 10px 0;
    padding: 0;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.joboffers-filter__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 0;
    cursor: pointer;
    font-size: 1.6rem;
    color: #333;
}

.joboffers-filter__checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #7a8e9e;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s, background-color 0.15s;
}

.joboffers-filter__checkbox input[type="checkbox"]:checked {
    background-color: var(--joboffers-primary);
    border-color: var(--joboffers-primary);
}

.joboffers-filter__checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid var(--joboffers-on-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.joboffers-filter__checkbox input[type="checkbox"]:focus-visible {
    outline: 3px solid var(--joboffers-primary);
    outline-offset: 2px;
}

.joboffers-filter__count {
    color: #7a8e9e;
    font-size: 1.4rem;
    margin-left: 4px;
}

/* --- Search Input --- */
.joboffers-filter .iconinput_wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.joboffers-filter .textinput {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid #CAD6DE;
    background: #fff;
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
    font-size: 1.6rem;
    color: #333;
    transition: border-color 0.15s;
}

.joboffers-filter .textinput:focus {
    border-color: var(--joboffers-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 58, 97, 0.15);
}

.joboffers-filter .textinput::placeholder {
    color: #7a8e9e;
}

.joboffers-filter .iconinput_wrap .fa-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a8e9e;
    font-size: 1.4rem;
    pointer-events: none;
}

/* --- Results --- */
.joboffers-results {
    padding: 24px 0;
    min-height: 500px;
}

.joboffers-results__count {
    color: #7a8e9e;
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.joboffers-results__empty {
    padding: 48px 0;
    text-align: center;
    color: #7a8e9e;
    font-size: 1.6rem;
}

.joboffers-listitem__teaser {
    display: block;
    margin-top: 8px;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--joboffers-dark-blue);
}

/* --- Labels / Tags --- */
.joboffers-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.joboffers-detail__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.joboffers-detail__labels .joboffers-labels {
    display: contents;
}

.joboffers-label {
    display: inline-block;
    padding: 3px 10px;
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.joboffers-label--employment {
    background-color: var(--joboffers-primary);
    border-color: var(--joboffers-primary);
    color: var(--joboffers-on-primary);
}

.joboffers-label--remote {
    background-color: #1a7a4c;
    border-color: #1a7a4c;
    color: #fff;
}

.joboffers-label--ref {
    background-color: transparent;
    border-color: #CAD6DE;
    color: #555;
    font-weight: 400;
    text-transform: none;
}

.joboffers-label--meta {
    background-color: transparent;
    border-color: #CAD6DE;
    color: var(--joboffers-primary);
    font-weight: 400;
    text-transform: none;
}

.joboffers-label--meta .fa {
    margin-right: 4px;
    color: var(--joboffers-primary);
}

/* --- Detail Labels (bigger on detail page) --- */
.joboffers-detail__labels .joboffers-label {
    padding: 5px 14px;
    font-size: 1.3rem;
}



/* --- Detail Page --- */
.joboffers-detail__header {
    position: relative;
    overflow: hidden;
    max-height: 400px;
}

.joboffers-detail__headerimage {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 0 !important;
}

.joboffers-detail__division-desc {
    border-bottom: 1px solid #CAD6DE;
}

.joboffers-detail__body {
    padding-top: 32px;
}

.joboffers-detail__title {
    font-family: 'PT Serif', Cambria, serif;
    font-size: 2.7rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--joboffers-primary);
    margin: 8px 0 24px;
}

.joboffers-detail__teaser {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--joboffers-dark-blue);
    margin: -8px 0 24px;
}

.joboffers-detail__section {
    margin-bottom: 32px;
}

.joboffers-detail__section h2 {
    font-family: 'PT Serif', Cambria, serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--joboffers-primary);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--joboffers-accent);
}

.joboffers-detail__intro {
    margin-bottom: 32px;
}

/* --- Apply block (under meta) --- */
.joboffers-detail__apply {
    margin-bottom: 32px;
}

/* --- Info grid (apply + contacts, like eventinfos) --- */
.joboffers-detail__infos {
    margin-bottom: 32px;
}

.joboffers-detail__infos h4 {
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--joboffers-primary);
    margin: 0 0 12px;
}

/* --- Section h3 (share / social, full-width) --- */
.joboffers-detail__section h3 {
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--joboffers-primary);
    margin: 0 0 12px;
}

/* --- Contact Card --- */
.joboffers-contact {
    margin-bottom: 16px;
}

.joboffers-contact__image img {
    margin-bottom: 8px;
}

.joboffers-contact__name {
    margin: 0 0 2px;
    font-weight: 700;
}

.joboffers-contact__position {
    margin: 0 0 6px;
    color: #555;
    font-size: 1.6rem;
}

.joboffers-contact__email,
.joboffers-contact__phone {
    margin: 2px 0;
    font-size: 1.6rem;
}

.joboffers-contact__email a,
.joboffers-contact__phone a {
    color: var(--joboffers-primary);
    text-decoration: none;
}

.joboffers-contact__email a:hover,
.joboffers-contact__phone a:hover {
    text-decoration: underline;
}

.joboffers-contact__email .fa,
.joboffers-contact__phone .fa {
    width: 18px;
    margin-right: 6px;
    color: #7a8e9e;
}

/* --- Benefits (accordion cards) --- */
.joboffers-benefits {
    column-count: 1;
    column-gap: 0;
}

.joboffers-benefit-card {
    break-inside: auto;
    margin-bottom: 16px;
}

.joboffers-benefit-card .accordion_head_label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.joboffers-benefit-card__icon {
    font-size: 2.4rem;
    color: var(--joboffers-primary);
}

.joboffers-benefit-card__title {
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--joboffers-primary);
    margin: 0 0 12px;
}

.joboffers-benefit-card__list {
    list-style-type: circle;
    margin: 0;
    padding-left: 1.5em;
}

.joboffers-benefit-card__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 1.7rem;
    color: #333;
    border-top: 1px solid #e0e6eb;
}

.joboffers-benefit-card__item:first-child {
    border-top: none;
}

.joboffers-benefit-card__item .fa {
    margin-top: 5px;
    color: var(--joboffers-primary);
    font-size: 1rem;
}

.joboffers-benefit-card__item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.joboffers-benefit-card__item-title {
    font-weight: 700;
    color: #333;
}

.joboffers-benefit-card__item-desc {
    display: block;
    color: #555;
    font-size: 1.7rem;
    line-height: 1.4;
}

/* --- Application --- */
.joboffers-application {
    margin-bottom: 16px;
}

.joboffers-application__text {
    margin-bottom: 12px;
    font-size: 1.6rem;
    color: #333;
}

.joboffers-application__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #fff;
    color: var(--joboffers-dark-blue);
    border: 2px solid var(--joboffers-dark-blue);
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
}

.joboffers-application__button:hover,
.joboffers-application__button:focus {
    background-color: var(--joboffers-dark-blue);
    border-color: var(--joboffers-dark-blue);
    color: #fff;
}

.joboffers-application__button .fa {
    color: var(--joboffers-dark-blue);
}

.joboffers-application__button:hover .fa,
.joboffers-application__button:focus .fa {
    color: #fff;
}

/* --- Share Links --- */
.joboffers-share__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 12px;
    background-color: var(--joboffers-primary);
    color: var(--joboffers-on-primary);
    border: 1px solid var(--joboffers-primary);
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s;
}

.joboffers-share__button:hover,
.joboffers-share__button:focus {
    background-color: color-mix(in srgb, var(--joboffers-primary), #000 20%);
    border-color: color-mix(in srgb, var(--joboffers-primary), #000 20%);
    color: var(--joboffers-on-primary);
}

.joboffers-share__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.joboffers-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--joboffers-primary);
    color: var(--joboffers-on-primary);
    font-size: 1.6rem;
    transition: background-color 0.15s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.joboffers-share__link:hover,
.joboffers-share__link:focus {
    background-color: var(--joboffers-accent);
    color: var(--joboffers-on-primary);
}

.joboffers-share__copy {
    background-color: #7a8e9e;
}

.joboffers-share__copy:hover,
.joboffers-share__copy:focus {
    background-color: var(--joboffers-primary);
}

/* --- Utility: x-cloak (Alpine.js) --- */
.joboffers [x-cloak] {
    display: none !important;
}

/* --- Global focus-visible (BFSG/EAA) --- */
.joboffers-division-card:focus-visible,
.joboffers-application__button:focus-visible,
.joboffers-share__link:focus-visible,
.joboffers-share__button:focus-visible,
.joboffers-filter .textinput:focus-visible,
.joboffers-filter__checkbox input[type="checkbox"]:focus-visible {
    outline: 3px solid var(--joboffers-primary);
    outline-offset: 2px;
}

/* --- Responsive --- */
@media (max-width: 799px) {
    .joboffers-filter {
        padding: 16px;
    }
    .joboffers-filter__row {
        gap: 16px;
    }
}

.joboffers {
    --joboffers-dark-blue: #003A61;
    --joboffers-mid-gray: #CAD6DE;
    --joboffers-hover-gray: #e8edf2;
    color: var(--joboffers-dark-blue);
    font-family: 'PT Sans', Arial, Helvetica, sans-serif;
}

.joboffers-divisions__heading,
.joboffers-filter__legend,
.joboffers-filter__checkbox,
.joboffers-filter .textinput,
.joboffers-results__count,
.joboffers-results__empty,
.joboffers-filter__count {
    color: var(--joboffers-dark-blue);
}

.joboffers-division-card {
    border-color: var(--joboffers-mid-gray);
    color: var(--joboffers-dark-blue);
}

.joboffers-division-card:not(.joboffers-division-card--active):hover,
.joboffers-division-card:not(.joboffers-division-card--active):focus {
    border-color: var(--joboffers-mid-gray);
    background-color: var(--joboffers-hover-gray);
    color: var(--joboffers-dark-blue);
}

.joboffers-division-card--active,
.joboffers-division-card--active:hover,
.joboffers-division-card--active:focus {
    border-color: var(--joboffers-primary);
    background-color: var(--joboffers-primary);
    color: var(--joboffers-on-primary);
}

.joboffers-filter__checkbox input[type="checkbox"] {
    border-color: var(--joboffers-mid-gray);
}



.joboffers-label--remote,
.joboffers-label--ref,
.joboffers-label--meta {
    background-color: transparent;
    border-color: var(--joboffers-mid-gray);
    color: var(--joboffers-dark-blue);
}

.joboffers-detail__header {
    max-height: none;
    border-bottom: 5px solid var(--joboffers-primary);
}

.joboffers-detail__headerimage {
    max-height: 400px;
    object-fit: cover;
}

.joboffers-detail__division-desc {
    background-color: #fff;
    border-bottom: 0;
    color: var(--joboffers-dark-blue);
}

.joboffers-detail__title,
.joboffers-detail__section h2,
.joboffers-detail__section h3,
.joboffers-detail__infos h4,
.joboffers-detail__intro,
.joboffers-application__text {
    color: var(--joboffers-dark-blue);
}

.joboffers-detail__section h2 {
    border-bottom: 0;
    padding-bottom: 0;
}

.joboffers-detail__section h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 8px;
    background-color: var(--joboffers-primary);
}

.joboffers-detail__intro ul,
.joboffers-detail__section > ul,
.joboffers-detail__section > div > ul,
.joboffers-detail__division-desc ul {
    list-style: none;
    padding-left: 22px;
}

.joboffers-detail__intro li,
.joboffers-detail__section > ul > li,
.joboffers-detail__section > div > ul > li,
.joboffers-detail__division-desc li {
    position: relative;
    margin-bottom: 6px;
}

.joboffers-detail__intro li::before,
.joboffers-detail__section > ul > li::before,
.joboffers-detail__section > div > ul > li::before,
.joboffers-detail__division-desc li::before {
    content: '\203A';
    position: absolute;
    left: -18px;
    color: var(--joboffers-primary);
    font-weight: 700;
}

.joboffers-detail__infos .box--border {
    padding: 20px 24px;
}

.joboffers-detail__contacts {
    margin-top: 0;
}

.joboffers-contact__name,
.joboffers-contact__position,
.joboffers-contact__details a {
    color: var(--joboffers-dark-blue);
}

.joboffers-contact__details {
    margin-top: 8px;
}

.joboffers-contact__details .fa {
    color: var(--joboffers-primary);
}

.joboffers-benefit-card__title,
.joboffers-benefit-card__item-title {
    color: var(--joboffers-dark-blue);
}

.joboffers-benefit-card__item-desc {
    color: var(--joboffers-dark-blue);
}

.joboffers-share__button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--joboffers-dark-blue);
    font-weight: 700;
}

.joboffers-share__button:hover,
.joboffers-share__button:focus {
    border: 0;
    background: transparent;
    color: var(--joboffers-dark-blue);
    text-decoration: underline;
}

.joboffers-share__link,
.joboffers .socialmedia-link {
    border-radius: 50%;
    color: #fff;
}

.joboffers-share__link--linkedin,
.joboffers .socialmedia-link--linkedin {
    background-color: #0a66c2;
}

.joboffers-share__link--facebook,
.joboffers .socialmedia-link--facebook {
    background-color: #3964a8;
}

.joboffers-share__link--whatsapp,
.joboffers .socialmedia-link--whatsapp {
    background-color: #25d366;
}

.joboffers-share__link--email {
    background-color: var(--joboffers-primary);
}

.joboffers-share__copy {
    background-color: #6f7f89;
}

.joboffers .socialmedia-link--instagram {
    background-color: #b900b4;
}

.joboffers .socialmedia-link--youtube {
    background-color: #b30d0a;
}

.joboffers .socialmedia-link--xing {
    background-color: #006567;
}

.joboffers .socialmedia-link--twitter {
    background-color: #000;
}

.joboffers .socialmedia-link--tiktok {
    background-color: #000;
}

.joboffers .socialmedia-link--whatsapp {
    background-color: #25d366;
}

.joboffers-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.joboffers-social-links .socialmedia-link {
    position: relative;
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
}

.joboffers-social-links .socialmedia-link > .fa,
.joboffers-social-links .socialmedia-link > .fab {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    line-height: 1;
}

.joboffers-share__link:hover,
.joboffers-share__link:focus,
.joboffers .socialmedia-link:hover,
.joboffers .socialmedia-link:focus {
    color: #fff;
    filter: brightness(.82);
}


