.cgh-stellenkarte-wrap { width: 100%; margin: 1.5rem 0; }
.cgh-search-map-injection { width: 100%; margin: 0 0 22px; }
.cgh-search-map-injection .cgh-stellenkarte-wrap { margin-top: 0; }
.cgh-stellenkarte-compact .cgh-stellenkarte { box-shadow: 0 1px 5px rgba(18, 37, 63, .12); }
.cgh-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.cgh-map-count { font-size: 18px; font-weight: 700; color: #172b4d; white-space: nowrap; }
.cgh-map-filters { display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: 100%; }
.cgh-map-filters label { margin: 0; }
.cgh-map-filters input, .cgh-map-filters select { min-height: 44px; padding: 8px 12px; border: 1px solid #ccd2d8; border-radius: 6px; background: #fff; }
.cgh-map-filters input { width: min(300px, 28vw); }
.cgh-map-reset { min-height: 44px; padding: 8px 14px; border: 1px solid #254281; border-radius: 6px; color: #254281; background: #fff; cursor: pointer; font-weight: 600; }
.cgh-map-reset:hover, .cgh-map-reset:focus { color: #fff; background: #254281; }
.cgh-map-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr); gap: 18px; }
.cgh-stellenkarte { width: 100%; min-height: 360px; border-radius: 10px; overflow: hidden; background: #f4f6f8; }
.cgh-map-results { overflow-y: auto; border: 1px solid #e2e6ea; border-radius: 10px; background: #f8f9fa; }
.cgh-map-result { margin: 0; padding: 18px; border-bottom: 1px solid #e2e6ea; background: #fff; }
.cgh-map-result h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.35; }
.cgh-map-result h3 a { color: #172b4d; text-decoration: none; }
.cgh-map-result h3 a:hover { color: #254281; text-decoration: underline; }
.cgh-result-profession, .cgh-result-location { display: block; margin-top: 5px; color: #59636e; font-size: 14px; }
.cgh-result-link { display: inline-block; margin-top: 12px; color: #254281; font-weight: 700; text-decoration: none; }
.cgh-map-all-jobs { display: block; margin: 16px; padding: 12px 15px; border-radius: 6px; color: #fff !important; background: #254281; text-align: center; text-decoration: none !important; font-weight: 700; }
.cgh-map-all-jobs:hover { background: #172b4d; }
.cgh-results-empty { padding: 22px 18px; text-align: center; color: #59636e; }
.cgh-map-empty { display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 2rem; text-align: center; color: #50575e; }
.cgh-map-popup { min-width: 210px; line-height: 1.45; }
.cgh-map-popup strong, .cgh-map-popup span, .cgh-map-popup a { display: block; }
.cgh-map-popup strong { margin-bottom: .35rem; font-size: 15px; }
.cgh-map-popup span { margin-bottom: .4rem; color: #50575e; }
.cgh-map-popup a { margin-top: .55rem; font-weight: 700; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(37, 66, 129, .28); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { color: #fff; background-color: #254281; }
@media (max-width: 1399px) {
    .cgh-map-toolbar { align-items: stretch; flex-direction: column; }
    .cgh-map-filters { justify-content: stretch; flex-wrap: wrap; }
    .cgh-map-filters label { flex: 1 1 230px; }
    .cgh-map-filters input, .cgh-map-filters select { width: 100%; }
    .cgh-map-layout { grid-template-columns: 1fr; }
    .cgh-map-results { height: auto !important; max-height: 520px; }
}
@media (max-width: 600px) {
    .cgh-stellenkarte { min-height: 480px; border-radius: 6px; }
    .cgh-map-reset { width: 100%; }
}

/* Vollstaendige Stellenkarten-Seite: [cgh_stellenkarte layout="page"] */
.blog-single.entry-content:has(.cgh-map-page) > .blog-main-title { display: none; }
.blog-single.entry-content:has(.cgh-map-page) { padding-top: 0 !important; }
.cgh-map-page {
    --cgh-ink: #0b1f3a;
    --cgh-copy: #536277;
    --cgh-teal: #076a75;
    --cgh-blue: #2e4f98;
    --cgh-pale: #f1f7f8;
    --cgh-line: #d9e5e8;
    color: var(--cgh-ink);
    margin: 0 0 70px;
}
.cgh-map-page, .cgh-map-page * { box-sizing: border-box; }
.cgh-map-hero {
    position: relative;
    overflow: hidden;
    padding: 68px 42px 55px;
    border-radius: 0 0 28px 28px;
    background:
        radial-gradient(circle at 8% 12%, rgba(7,106,117,.13), transparent 32%),
        radial-gradient(circle at 93% 18%, rgba(46,79,152,.12), transparent 30%),
        linear-gradient(180deg, #f4fafb 0%, #fff 100%);
    text-align: center;
}
.cgh-map-eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--cgh-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.cgh-map-hero h1 {
    max-width: 820px;
    margin: 0 auto 17px;
    color: var(--cgh-ink);
    font-size: clamp(34px, 4.6vw, 52px);
    font-weight: 800;
    line-height: 1.1;
}
.cgh-map-hero > p {
    max-width: 750px;
    margin: 0 auto;
    color: var(--cgh-copy);
    font-size: 17px;
    line-height: 1.75;
}
.cgh-map-hero ul {
    display: flex;
    justify-content: center;
    gap: 34px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}
.cgh-map-hero li { color: var(--cgh-ink); font-size: 14px; font-weight: 700; }
.cgh-map-hero li::before { content: "\2713"; margin-right: 8px; color: var(--cgh-teal); }
.cgh-map-main { padding: 65px 0 25px; }
.cgh-map-section-heading { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.cgh-map-section-heading h2 {
    margin: 0 0 12px;
    color: var(--cgh-ink);
    font-size: clamp(27px, 3.6vw, 38px);
    font-weight: 800;
    line-height: 1.2;
}
.cgh-map-section-heading p { margin: 0; color: var(--cgh-copy); font-size: 15px; line-height: 1.7; }
.cgh-map-card {
    padding: 22px;
    border: 1px solid var(--cgh-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(11,31,58,.11);
}
.cgh-map-card .cgh-stellenkarte-wrap { margin: 0; }
.cgh-map-card .cgh-map-toolbar {
    margin: 0 0 18px;
    padding: 0 1px;
}
.cgh-map-card .cgh-map-count { color: var(--cgh-ink); font-size: 16px; }
.cgh-map-card .cgh-map-filters { gap: 9px; }
.cgh-map-card .cgh-map-filters input,
.cgh-map-card .cgh-map-filters select {
    min-height: 48px;
    padding: 9px 13px;
    border: 1px solid #cbd8dd;
    border-radius: 10px;
    color: var(--cgh-ink);
    background: #fff;
    font-size: 14px;
}
.cgh-map-card .cgh-map-filters input:focus,
.cgh-map-card .cgh-map-filters select:focus {
    border-color: var(--cgh-teal);
    box-shadow: 0 0 0 3px rgba(7,106,117,.12);
    outline: none;
}
.cgh-map-card .cgh-map-reset {
    min-height: 48px;
    padding: 9px 17px;
    border: 1px solid var(--cgh-blue);
    border-radius: 10px;
    color: var(--cgh-blue);
    background: #fff;
}
.cgh-map-card .cgh-map-reset:hover,
.cgh-map-card .cgh-map-reset:focus { color: #fff; background: var(--cgh-blue); }
.cgh-map-card .cgh-map-layout { grid-template-columns: minmax(0, 1.8fr) minmax(310px, .8fr); gap: 15px; }
.cgh-map-card .cgh-stellenkarte,
.cgh-map-card .cgh-map-results { border-radius: 14px; }
.cgh-map-card .cgh-map-results { border-color: var(--cgh-line); background: #f6f9fa; }
.cgh-map-card .cgh-map-result { padding: 19px; }
.cgh-map-card .cgh-map-result h3 { font-size: 16px; }
.cgh-map-card .cgh-result-link { color: var(--cgh-blue); }
.cgh-map-card .cgh-map-all-jobs {
    border-radius: 9px;
    background: var(--cgh-blue);
}
.cgh-map-page-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 38px;
    padding: 45px;
    border-radius: 24px;
    background: var(--cgh-pale);
}
.cgh-map-page-actions article {
    padding: 32px;
    border: 1px solid var(--cgh-line);
    border-radius: 17px;
    background: #fff;
}
.cgh-map-page-actions .cgh-map-employer {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #07535e, #087681);
}
.cgh-map-action-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 11px;
    color: var(--cgh-teal);
    background: #e8f4f5;
    font-size: 20px;
    font-weight: 800;
}
.cgh-map-employer .cgh-map-action-icon { color: #fff; background: rgba(255,255,255,.15); }
.cgh-map-page-actions h2 {
    margin: 0 0 11px;
    color: var(--cgh-ink);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}
.cgh-map-page-actions p { margin: 0 0 23px; color: var(--cgh-copy); line-height: 1.65; }
.cgh-map-employer h2 { color: #fff; }
.cgh-map-employer p { color: rgba(255,255,255,.86); }
.cgh-map-page-actions a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 10px 19px;
    border-radius: 9px;
    color: #fff !important;
    background: var(--cgh-blue);
    font-weight: 800;
    text-decoration: none !important;
}
.cgh-map-employer a { color: var(--cgh-ink) !important; background: #fff; }
.cgh-map-page-actions a:hover,
.cgh-map-page-actions a:focus { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11,31,58,.17); }

@media (min-width: 681px) and (max-width: 1399px) {
    /*
     * Der Nokri-Content-Wrapper ist in diesem Breitenbereich noch relativ
     * schmal. Deshalb darf die Karten-Seite hier nicht per left/transform
     * künstlich auf Desktop-Breite zentriert werden.
     */
    body[class*="page-id-"] .blog-single.entry-content .cgh-map-page,
    body[class*="page-id-"] .cgh-map-page {
        position: static !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }

    /* Gegen stärkere Child-Theme-/Customizer-Regeln absichern. */
    body[class*="page-id-"] .cgh-map-page .cgh-map-toolbar {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    body[class*="page-id-"] .cgh-map-page .cgh-map-count {
        justify-self: start !important;
    }

    body[class*="page-id-"] .cgh-map-page .cgh-map-card .cgh-map-filters {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
    }

    body[class*="page-id-"] .cgh-map-page .cgh-map-card .cgh-map-filters label {
        min-width: 0 !important;
    }

    body[class*="page-id-"] .cgh-map-page .cgh-map-card .cgh-map-reset {
        grid-column: 1 / -1 !important;
    }

    body[class*="page-id-"] .cgh-map-page .cgh-map-card .cgh-map-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        height: auto !important;
        width: 100% !important;
    }

    body[class*="page-id-"] .cgh-map-page .cgh-map-card .cgh-stellenkarte {
        width: 100% !important;
        min-height: 460px !important;
        height: 460px !important;
    }

    body[class*="page-id-"] .cgh-map-page .cgh-map-card .cgh-map-results {
        width: 100% !important;
        height: auto !important;
        max-height: 500px !important;
    }
}
@media (max-width: 1399px) {
    .cgh-map-hero { padding: 55px 28px 45px; }
    .cgh-map-hero ul { flex-wrap: wrap; gap: 10px 24px; }
    .cgh-map-card .cgh-map-layout { grid-template-columns: 1fr !important; }
    .cgh-map-card .cgh-map-results { height: auto !important; max-height: 430px; }
    .cgh-map-page-actions { padding: 28px; }
}
@media (max-width: 680px) {
    .cgh-map-page { margin-bottom: 45px; }
    .cgh-map-hero { padding: 44px 18px 38px; border-radius: 0 0 20px 20px; }
    .cgh-map-hero > p { font-size: 15px; }
    .cgh-map-hero ul { display: grid; gap: 7px; text-align: left; }
    .cgh-map-main { padding-top: 48px; }
    .cgh-map-card { padding: 11px; border-radius: 15px; }
    .cgh-map-card .cgh-map-toolbar { gap: 11px; }
    .cgh-map-card .cgh-map-filters { display: grid; grid-template-columns: 1fr; }
    .cgh-map-card .cgh-map-filters label { width: 100%; }
    .cgh-map-card .cgh-stellenkarte { min-height: 430px; }
    .cgh-map-page-actions { grid-template-columns: 1fr; margin-top: 28px; padding: 15px; border-radius: 17px; }
    .cgh-map-page-actions article { padding: 25px 22px; }
}

/* =========================================================
   1.4.3 – Trefferliste und Skalierung fuer viele Stellen
   ========================================================= */

/* Trefferzahl als ruhiger Status-Chip */
.cgh-map-card .cgh-map-count {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 12px;
    border-radius: 10px;
    background: #eaf6f6;
    color: #07535e;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

/* Filter auf grossen Bildschirmen besser verteilen */
@media (min-width: 1400px) {
    .cgh-map-card .cgh-map-filters label:first-child {
        flex: 1 1 360px;
    }

    .cgh-map-card .cgh-map-filters label:nth-child(2) {
        flex: 0 1 270px;
    }

    .cgh-map-card .cgh-map-filters input,
    .cgh-map-card .cgh-map-filters select {
        width: 100%;
    }
}

/* Karte optisch etwas klarer vom Ergebnisbereich trennen */
.cgh-map-card .cgh-stellenkarte {
    border: 1px solid #d9e5e8;
    box-shadow: 0 8px 24px rgba(11, 31, 58, .06);
}

/* Rechte Trefferliste als eigenstaendige, stabile Spalte */
.cgh-map-card .cgh-map-results {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d9e5e8;
    background: #f5f8f9;
    box-shadow: 0 8px 24px rgba(11, 31, 58, .05);
}

.cgh-map-results-head {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px 13px;
    border-bottom: 1px solid #dfe9ec;
    background: rgba(255, 255, 255, .96);
}

.cgh-map-results-head > div {
    min-width: 0;
}

.cgh-map-results-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #076a75;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cgh-map-results-head strong {
    display: block;
    color: #102d49;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.cgh-map-results-hint {
    flex: 0 0 auto;
    color: #71818b;
    font-size: 11px;
    line-height: 1.35;
    text-align: right;
}

.cgh-map-results-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #bdccd2 transparent;
}

.cgh-map-results-scroll::-webkit-scrollbar {
    width: 8px;
}

.cgh-map-results-scroll::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: #bdccd2;
    background-clip: padding-box;
}

/* Einzelne Treffer nicht mehr als endlose Tabellenzeile, sondern als Karte */
.cgh-map-card .cgh-map-result {
    margin: 10px 10px 0;
    padding: 15px 15px 14px;
    border: 1px solid #e0e9ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(11, 31, 58, .035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cgh-map-card .cgh-map-result:last-child {
    margin-bottom: 10px;
}

.cgh-map-card .cgh-map-result:hover,
.cgh-map-card .cgh-map-result.is-active {
    border-color: #b9d2d8;
    box-shadow: 0 9px 22px rgba(11, 31, 58, .08);
    transform: translateY(-1px);
}

.cgh-map-card .cgh-map-result.is-active {
    border-color: #076a75;
}

.cgh-map-card .cgh-map-result h3 {
    margin: 0 0 10px;
    color: #102d49;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.42;
}

.cgh-map-card .cgh-map-result h3 a {
    color: #102d49;
    text-decoration: none;
}

.cgh-map-card .cgh-map-result h3 a:hover,
.cgh-map-card .cgh-map-result h3 a:focus {
    color: #254281;
    text-decoration: none;
}

.cgh-result-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
}

.cgh-map-card .cgh-result-profession,
.cgh-map-card .cgh-result-location {
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.cgh-map-card .cgh-result-profession {
    padding: 5px 8px;
    border-radius: 999px;
    color: #07535e;
    background: #e8f5f5;
}

.cgh-map-card .cgh-result-location {
    color: #667782;
}

.cgh-map-card .cgh-result-location::before {
    content: "\2022";
    margin-right: 6px;
    color: #f00078;
    font-size: 17px;
    line-height: 0;
}

.cgh-result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.cgh-map-card .cgh-result-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0;
    color: #254281;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.cgh-map-card .cgh-result-link::after {
    content: "\2192";
    margin-left: 6px;
    transition: transform .18s ease;
}

.cgh-map-card .cgh-result-link:hover::after,
.cgh-map-card .cgh-result-link:focus::after {
    transform: translateX(2px);
}

.cgh-result-map-button {
    min-height: 34px;
    margin: 0;
    padding: 6px 9px;
    border: 1px solid #ccdce1;
    border-radius: 8px;
    color: #526a76;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.cgh-result-map-button:hover,
.cgh-result-map-button:focus {
    border-color: #076a75;
    color: #07535e;
    background: #eef8f8;
    outline: none;
}

/* Bei 50+ Treffern bleibt die Liste kurz; weitere Eintraege werden nachgeladen */
.cgh-map-more {
    display: block;
    width: calc(100% - 20px);
    min-height: 42px;
    margin: 10px;
    padding: 9px 12px;
    border: 1px solid #c9d8dd;
    border-radius: 9px;
    color: #254281;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.cgh-map-more[hidden] {
    display: none !important;
}

.cgh-map-more:hover,
.cgh-map-more:focus {
    border-color: #254281;
    background: #eef3fb;
    outline: none;
}

/* Der Hauptbutton bleibt immer sichtbar am unteren Rand der Ergebnisbox */
.cgh-map-card .cgh-map-all-jobs {
    flex: 0 0 auto;
    margin: 10px;
    min-height: 43px;
    padding: 11px 14px;
    border-radius: 9px;
    box-shadow: 0 7px 16px rgba(37, 66, 129, .14);
}

/* Popups an das neue Kartendesign angleichen */
.cgh-map-popup {
    min-width: 220px;
    max-width: 290px;
    color: #102d49;
}

.cgh-map-popup strong {
    margin-bottom: 7px;
    color: #102d49;
    font-size: 14px;
    line-height: 1.35;
}

.cgh-map-popup .cgh-popup-profession {
    display: inline-block;
    width: auto;
    margin: 0 0 7px;
    padding: 4px 7px;
    border-radius: 999px;
    color: #07535e;
    background: #e8f5f5;
    font-size: 11px;
    font-weight: 700;
}

.cgh-map-popup .cgh-popup-location {
    color: #65747e;
    font-size: 12px;
}

.cgh-map-popup a {
    color: #254281;
    font-size: 12px;
    font-weight: 800;
}

/* Clustering fuer viele Stellen deutlicher und moderner */
.cgh-map-page .marker-cluster-small,
.cgh-map-page .marker-cluster-medium,
.cgh-map-page .marker-cluster-large,
.cgh-search-map-injection .marker-cluster-small,
.cgh-search-map-injection .marker-cluster-medium,
.cgh-search-map-injection .marker-cluster-large {
    border-radius: 50%;
    background: rgba(37, 66, 129, .18);
    box-shadow: 0 5px 14px rgba(11, 31, 58, .18);
}

.cgh-map-page .marker-cluster-small div,
.cgh-map-page .marker-cluster-medium div,
.cgh-map-page .marker-cluster-large div,
.cgh-search-map-injection .marker-cluster-small div,
.cgh-search-map-injection .marker-cluster-medium div,
.cgh-search-map-injection .marker-cluster-large div {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #254281;
    font-weight: 800;
}

/* Tablet: Karte und Liste untereinander, Trefferliste mit eigener Scrollhoehe */
@media (min-width: 681px) and (max-width: 1399px) {
    body[class*="page-id-"] .cgh-map-page .cgh-map-card .cgh-map-results {
        height: 460px !important;
        max-height: 460px !important;
    }
}

/* Smartphone: kompakte Karten und ausreichend Platz fuer die Trefferliste */
@media (max-width: 680px) {
    .cgh-map-results-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 13px 13px 11px;
    }

    .cgh-map-results-hint {
        text-align: left;
    }

    .cgh-map-card .cgh-map-results {
        height: 470px !important;
        max-height: 470px !important;
    }

    .cgh-map-card .cgh-map-result {
        margin: 8px 8px 0;
        padding: 14px;
    }

    .cgh-map-card .cgh-map-result:last-child {
        margin-bottom: 8px;
    }

    .cgh-result-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
    }

    .cgh-map-card .cgh-result-link,
    .cgh-result-map-button {
        justify-content: center;
        width: 100%;
        min-height: 40px;
    }
}
