/* ==========================================================================
   Coveto Jobboard Public Styles
   ========================================================================== */

/* List Container */
.cjb-list-container {
    margin: 0;
    padding: 0;
}

.cjb-list-title {
    margin-bottom: 10px;
}

.cjb-list-subtitle {
    margin-bottom: 15px;
}

.cjb-count-line {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9em;
}

/* List Items */
.cjb-items-container {
    margin: 0;
    padding: 0 !important;
    border-radius: 5px;
}

.cjb-item-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 5px 15px;
    margin-bottom: 5px;
    gap: 15px;
    border-radius: 5px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cjb-item-main {
    flex: 0 0 calc(75% - 11.25px);
    max-width: calc(75% - 11.25px);
    min-width: 0;
}

.cjb-item-line.no-side .cjb-item-main {
    flex: 0 0 100%;
    max-width: 100%;
}

.cjb-item-primary {
    width: 100%;
}

.cjb-item-side {
    flex: 0 0 calc(25% - 3.75px);
    max-width: calc(25% - 3.75px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    align-self: stretch;
    gap: 5px;
    margin-left: auto;
}

.cjb-item-line:not(.adevis-topjob):nth-child(odd) {
    background: #ececec;
    border: 1px solid #ececec;
}

.cjb-item-line:not(.adevis-topjob):nth-child(even) {
    background: #f6f5f5;
    border: 1px solid #f6f5f5;
}

.adevis-topjob {
    background-color: #d9ddee;
    border-left: 10px solid #ffd41d;
    border-right: 10px solid #ffd41d;
    border-radius: 20px;
}

.topjob-stellenfusszeile {
    font-size: 0.8em;
    text-align: right;
    color: #0750a3;
    font-weight: 900;
}

.cjb-item-line:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #cccccc;
}

.cjb-item-title {
    margin: 0 0 5px 0;
    color: #0850a3;
    line-height: 1em;
    font-weight: 500;
    font-size: 100%;
}

.cjb-item-link {
    text-decoration: none;
    color: #0850a3;
}

.cjb-item-link:hover {
    text-decoration: underline;
}

.cjb-item-apply-link {
    margin-left: 5px;
    font-size: 12px;
    background-color: #0850a3;
    color: #fff;
    padding: 0px 5px;
    border-radius: 5px;
    border: 1px solid #0850a3;
    text-decoration: none;
    align-self: flex-end;
}

.cjb-item-apply-link:hover {
    background-color: #fff;
    color: #000;
    border-color: #0850a3;
}

.cjb-item-action-line {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.cjb-item-location {
    color: #575757;
    font-size: 16px;
    margin-bottom: 3px;
}

.cjb-item-category {
    display: inline-block;
    color: #888;
    font-size: 0.85em;
    margin-right: 10px;
}

.cjb-item-employment-type {
    display: inline-block;
    color: #888;
    font-size: 0.85em;
}

.cjb-item-date-line {
    margin-top: 0;
}

.cjb-item-date {
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

.cjb-item-footer {
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
}

/* Empty List */
.cjb-empty-list {
    padding: 30px 0;
    text-align: center;
    color: #666;
}

/* List Footer */
.cjb-list-footer {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

/* Filter */
.cjb-filter-container {
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    display: none;
}

.cjb-filter-keyword {
    padding: 12px 12px !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 200px;
    width: 100%;
    font-size: 1.5rem;
}

.cjb-filter-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.cjb-filter-category,
.cjb-filter-city {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
}

.cjb-filter-employment-type {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 150px;
}

.cjb-filter-submit {
    padding: 8px 20px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #333;
    color: #fff;
    cursor: pointer;
}

.cjb-filter-submit:hover {
    background: #555;
}

.cjb-filter-reset {
    color: #666;
    font-size: 0.85em;
}

/* Pagination */
.cjb-pagination {
    margin-top: 20px;
    text-align: center;
}

.cjb-page-btn,
.cjb-page-btn-current,
.cjb-page-btn-disabled {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.cjb-page-btn:hover {
    background-color: #f5f5f5;
}

.cjb-page-btn-current {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.cjb-page-btn-disabled {
    color: #ccc;
    cursor: default;
}

.cjb-pagination-spacer {
    display: inline-block;
    padding: 6px 4px;
    color: #999;
}

/* Detail */
.cjb-detail-container {
    margin: 0;
    padding: 0;
}

.cjb-detail-title {
    margin-bottom: 15px;
}

/* Application Form */
.cjb-application-form-container {
    margin: 24px 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.cjb-application-form-header {
    margin-bottom: 18px;
}

.cjb-application-form-eyebrow {
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 400;
}

.cjb-application-form-title {
    margin: 0 0 16px;
    color: #111827;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 700;
    line-height: 1.15;
}

.cjb-application-form-info {
    max-width: 900px;
    margin: 0 0 16px;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.5;
}

.cjb-application-messages {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 6px;
}

.cjb-application-messages.is-error,
.cjb-application-messages.is-success {
    display: block;
}

.cjb-application-messages.is-error {
    background: #fff1f2;
    color: #9f1239;
}

.cjb-application-messages.is-success {
    background: #ecfdf5;
    color: #166534;
}

.cjb-application-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.cjb-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cjb-form-field-full {
    grid-column: 1 / -1;
}

.cjb-form-field input,
.cjb-form-field select,
.cjb-form-field textarea,
.cjb-application-upload input[type="file"] {
    width: 100%;
    padding: 10px 12px !important;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: #efefef;
    color: #111827;
    box-shadow: none;
}

.cjb-form-field label {
    color: #666;
    font-size: 1rem;
}

.cjb-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.cjb-input-error {
    border-color: #c81e1e !important;
}

.cjb-field-error,
.cjb-privacy-error {
    color: #b91c1c;
    margin-top: 6px;
}

.cjb-application-upload {
    margin-top: 26px;
}

.cjb-application-upload-title {
    margin: 0 0 6px;
    color: #333;
    font-size: 1.8rem;
    font-weight: 400;
}

.cjb-application-upload input[type="file"] {
    display: inline-block;
    width: auto;
    padding: 8px 10px;
    border: 0;
    background: #bcbcbc;
    color: #fff;
    cursor: pointer;
}

.cjb-application-upload-info {
    margin-top: 8px;
    color: #666;
    font-size: 1rem;
}

.cjb-application-footer {
    margin-top: 22px;
}

.cjb-privacy-label {
    display: block;
    margin-bottom: 10px;
    color: #666;
}

.cjb-application-submit-info {
    margin: 0 0 14px;
    color: #555;
    font-size: 1rem;
    font-weight: 600;
}

.cjb-application-submit {
    border: 0;
    border-radius: 2px;
    background: #0f4c81;
    color: #fff;
    padding: 12px 22px;
    cursor: pointer;
}

.cjb-application-submit:disabled {
    opacity: 0.6;
    cursor: progress;
}

.cjb-honeypot {
    position: absolute;
    left: -9999px;
}

.cjb-application-error {
    color: #b91c1c;
}

/* Not Found */
.cjb-notfound {
    padding: 40px 0;
    text-align: center;
    color: #666;
}

/* Jobdetails */
.cjb-jobdetails-container {
    margin: 15px 0;
}

/* Description */
.cjb-description {
    line-height: 1.6;
}

.cjb-description-footer {
    margin-top: 15px;
}

/* Buttons */
.cjb-apply-button,
.cjb-back2list-button,
.cjb-whatsapp-button {
    margin: 10px 0;
}

.cjb-whatsapp-link {
    display: inline-block;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 4px;
    color: #fff;
    background-color: #25D366;
}

.cjb-whatsapp-link:hover {
    background-color: #128C7E;
    color: #fff;
}

/* Jobshare */
.cjb-jobshare-container {
    margin: 15px 0;
}

.cjb-jobshare-header {
    font-weight: bold;
    margin-bottom: 10px;
}

.cjb-jobshare-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cjb-jobshare-buttons a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
}

.cjb-jobshare-buttons a:hover {
    background-color: #f5f5f5;
}

/* Google Maps */
.cjb-googlemaps-container {
    margin: 15px 0;
}

.cjb-googlemaps-header {
    font-weight: bold;
    margin-bottom: 10px;
}

.cjb-googlemaps-container iframe {
    border: 0;
    width: 100%;
}

/* Searchbox */
.cjb-searchbox-container {
    margin-bottom: 20px;
}

.cjb-searchbox-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.cjb-searchbox-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cjb-searchbox-keyword {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 200px;
}

.cjb-searchbox-category,
.cjb-searchbox-city {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.cjb-searchbox-submit {
    padding: 8px 20px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #333;
    color: #fff;
    cursor: pointer;
}

.cjb-searchbox-submit:hover {
    background: #555;
}

.cjb-searchbox-reset-container {
    margin-top: 5px;
    width: 100%;
}

.cjb-searchbox-reset {
    color: #666;
    font-size: 0.85em;
}

/* Image */
.cjb-image {
    max-width: 100%;
    height: auto;
}

/* Contact */
.cjb-contact-container {
    margin: 20px 0;
    padding: 15px;
}

/* ==========================================================================
   Coveto API - Statische Layout-Styles
   Quelle: Coveto API html-Feld (<style>-Bloecke)
   Dynamische Styles (Bilder, Kundenfarben) werden weiterhin via API geladen.
   ========================================================================== */

.custom-quickapply {
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    background-color: #333;
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

.custom-logo {
    max-width: 200px;
    margin: 0 auto;
    margin-top: 40px;
}

.custom-body {
    max-width: 950px;
    margin: auto;
    box-shadow: 0 0 20px rgb(0, 0, 0, 0.3);
    background-color: #fff;
}

.custom-paper {
    flex: 2;
}

.custom-identifier-slogan {
    flex: 0 0 50%;
    padding: 20px;
    font-size: 30px;
    line-height: 1.1;
}

.custom-identifier-bild {
    flex: 0 0 50%;
    background-size: cover;
    background-position: center;
    min-height: 200px;
}

.custom-inner {
    padding: 20px;
}

.custom-sidebar {
    flex: 1;
    background-color: #414549;
    color: #fff;
}

#coveto_public .custom-sidebar * {
    color: #fff;
}

.custom-sidebar .ctabtnp,
.custom-sidebar .ctabtns,
.custom-sidebar .ctabtnwa {
    display: inline-block;
    width: 80%;
}

#coveto_public h1 {
    border-bottom: 1px dashed;
}

.custom-share {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

/* ==========================================================================
   Detail Page — Enhanced Design
   ========================================================================== */

/* --- Job Title --- */
.cjb-jobtitle {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: rgba(87, 87, 86, 1) !important;
    line-height: 1.25;
    margin: 0 0 6px;
    padding-bottom: 14px;
    padding-top: 10px;
    padding-left: 25px;
    border-bottom: 3px solid #0850a3;
}

/* --- Apply Button (full-width in sidebar) --- */
.btn-detailview .cjb-apply-link {
    display: block;
    width: 100%;
    text-align: center;
    background: #0850a3;
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 20px;
    border-radius: 4px;
    border: 2px solid #0850a3;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-detailview .cjb-apply-link:hover {
    background: #fff;
    color: #0850a3 !important;
}

/* Apply button in main content area (below description) */
.cjb-apply-link {
    display: inline-block;
    background: #0850a3;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: 4px;
    border: 2px solid #0850a3;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.cjb-apply-link:hover {
    background: #fff;
    color: #0850a3;
}

/* --- Back to List Button --- */
.cjb-back2list-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
    padding: 9px 18px;
    border-radius: 4px;
    font-size: 0.88rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.cjb-back2list-link::before {
    content: "←";
    font-size: 1rem;
    line-height: 1;
}

.cjb-back2list-link:hover {
    border-color: #0850a3;
    color: #0850a3;
    background: #f0f5ff;
}

/* --- Job Details Card (sidebar) --- */
.zv-job-details-1 .cjb-jobdetails-container {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    margin: 0;
}

.cjb-jobdetails-header {
    background: #0850a3;
    color: #fff !important;
    padding: 12px 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cjb-jobdetails-line {
    display: flex;
    align-items: flex-start;
    padding: 9px 18px;
    border-bottom: 1px solid #f2f2f2;
    gap: 8px;
}

.cjb-jobdetails-line:last-child {
    border-bottom: none;
}

.cjb-jobdetails-label {
    flex: 0 0 44%;
    color: #888;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 2px;
}

.cjb-jobdetails-value {
    flex: 1;
    color: #222;
    font-size: 0.92rem;
    font-weight: 500;
}

/* --- Contact Card (sidebar) --- */
.contact-data .et_pb_code_inner {
    text-align: center;
}

.contact-data .cjb-contact-container {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    border-left: 4px solid #0850a3;
    margin: 0;
    text-align: left;
}

.cjb-contact-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0850a3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.cjb-contact-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.cjb-contact-position {
    color: #555;
    font-size: 0.88rem;
    margin-bottom: 2px;
    font-style: italic;
}

.cjb-contact-company {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cjb-contact-address {
    color: #777;
    font-size: 0.83rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.cjb-contact-phone,
.cjb-contact-email {
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cjb-contact-phone::before {
    content: "📞";
    font-size: 0.8rem;
    flex-shrink: 0;
}

.cjb-contact-email a {
    padding-top: 6px;
}

.cjb-contact-email::before {
    content: "✉";
    font-size: 2rem;
    flex-shrink: 0;
}

.cjb-contact-phone a,
.cjb-contact-email a {
    color: #0850a3;
    font-weight: 600;
    text-decoration: none;
}

.cjb-contact-phone a:hover,
.cjb-contact-email a:hover {
    text-decoration: underline;
}

/* --- Description Sections --- */

/* Slogan (intro teaser) */
.cjb-description-slogan {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0850a3;
    line-height: 1.55;
    border-left: 4px solid #0850a3;
    padding-left: 16px;
    margin-bottom: 16px;
}

/* Einleitung */
.cjb-description-einleitung {
    color: #444;
    line-height: 1.75;
}

/* Wir bieten */
.cjb-description-wir_bieten {
    line-height: 1.7;
}

.cjb-description-wir_bieten ul,
.cjb-description-aufgaben ul,
.cjb-description-profil ul {
    padding-left: 0;
    list-style: none !important;
    margin: 8px 0;
}

.cjb-description-wir_bieten ul li,
.cjb-description-aufgaben ul li,
.cjb-description-profil ul li {
    list-style: none !important;
    padding: 4px 0 4px 24px;
    position: relative;
    line-height: 1.55;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cjb-description-wir_bieten ul li::marker,
.cjb-description-aufgaben ul li::marker,
.cjb-description-profil ul li::marker {
    content: none;
    display: none;
}

.cjb-description-wir_bieten ul li:last-child,
.cjb-description-aufgaben ul li:last-child,
.cjb-description-profil ul li:last-child {
    border-bottom: none;
}

.cjb-description-wir_bieten ul li::before,
.cjb-description-aufgaben ul li::before,
.cjb-description-profil ul li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    color: #0850a3;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Aufgaben */
.cjb-description-aufgaben {
    margin-bottom: 20px;
}

/* Profil */
.cjb-description-profil {
    margin-bottom: 20px;
}

/* Headings inside descriptions */
.cjb-description h2,
.cjb-description-slogan h2,
.cjb-description-einleitung h2,
.cjb-description-wir_bieten h2,
.cjb-description-aufgaben h2,
.cjb-description-profil h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0850a3;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e8edf5;
}

/* --- Detail Footer --- */
.cjb-detail-footer {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.88rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
    /* List */
    .cjb-item-main,
    .cjb-item-side {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .cjb-item-side {
        align-items: flex-start;
        align-self: auto;
        margin-left: 0;
    }

    .cjb-item-apply-link {
        align-self: flex-start;
    }

    /* Filter & Searchbox */
    .cjb-filter-container,
    .cjb-searchbox-form {
        flex-direction: column;
    }

    .cjb-filter-row {
        flex-direction: column;
    }

    .cjb-filter-keyword,
    .cjb-filter-category,
    .cjb-filter-city,
    .cjb-filter-employment-type,
    .cjb-searchbox-keyword,
    .cjb-searchbox-category,
    .cjb-searchbox-city {
        width: 100%;
        min-width: unset;
    }

    .cjb-jobshare-buttons {
        flex-direction: column;
    }

    /* Application Form */
    .cjb-application-form-container {
        padding: 0;
    }

    .cjb-application-form-title {
        font-size: 2rem;
    }

    /* Detail Page Enhanced */
    .cjb-jobtitle {
        font-size: 1.4rem;
    }

    .btn-detailview .cjb-apply-link {
        padding: 14px 16px;
    }

    .cjb-jobdetails-label {
        flex: 0 0 40%;
    }
}
