/* ===== Exakt wie statische Vorlage (aus Konsole-Dump) ===== */

/* row_inner */
.cblm-wrapper {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    padding-right: 13%;
    padding-left: 10%;
    box-sizing: border-box;
    font-family: source-sans-3-custom, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26.4px;
    color: rgb(35, 24, 18);
    color: #231812;
    background: none;
}

.cblm-content-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    align-items: center;
    gap: 0 3.2%;
    row-gap: 0;
    margin-bottom: 60px;
}

.cblm-layout-ltr .cblm-text-section { order: 1; }
.cblm-layout-ltr .cblm-map-section { order: 2; }
.cblm-layout-rtl .cblm-text-section { order: 2; }
.cblm-layout-rtl .cblm-map-section { order: 1; }

.cblm-text-section,
.cblm-map-section {
    min-width: 0;
}

/* column_last – Text-Panel */
.cblm-text-section {
    display: grid;
    align-items: center;
    position: relative;
    padding: 45px;
    background-color: rgb(249, 240, 196);
    background-color: #f9f0c4;
    color: #231812;
    border: 0 none;
    border-radius: 0;
    box-shadow: rgba(36, 25, 18, 0.13) 0 0 10px 0;
    font-family: source-sans-3-custom, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26.4px;
}

/* H1 – Unsere Einrichtungen (source-serif-4, 64px, letter-spacing -1.92px) */
.cblm-heading {
    font-family: source-serif-4-custom, Georgia, serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 76.8px;
    letter-spacing: -1.92px;
    margin: 0 0 32px;
    color: rgb(0, 0, 0);
    color: #000;
}

/* P – paragraph (margin 0 0 20.8px) */
.cblm-intro {
    font-family: source-sans-3-custom, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26.4px;
    color: #231812;
    margin: 0 0 20.8px;
}

/* module_icon – Filter-Wrapper (padding-top 25px) */
.cblm-filter-wrap {
    padding-top: 25px;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
}

/* sub_row – Filter-Grid, zwei Spalten, gap 3.2% */
.cblm-filter-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3.2%;
    row-gap: 0;
    margin: 0;
}

/* module_icon-item – jede Filterzeile (flex, align-items center, margin-bottom 6.4px) */
.cblm-filter-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 0 6.4px;
    padding: 0;
    cursor: pointer;
    font-family: source-sans-3-custom, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 26.4px;
    color: #231812;
}

.cblm-filter-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* icon_item EM – farbiger Kreis 32×32: golden when selected, blue when not */
.cblm-checkbox-box {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 0;
    margin: 0;
    padding: 0;
    border: 0 none;
    background-color: #0e2146 !important;
    transition: background-color 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cblm-filter-label input:checked + .cblm-checkbox-box {
    background-color: #eed965 !important;
}

/* Checkmark symbol when checked */
.cblm-filter-label input:checked + .cblm-checkbox-box::after {
    content: '✓';
    display: block;
    color: #231812;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    position: absolute;
    top: 53%;
    left: 46%;
    transform: translate(-50%, -50%);
}

.cblm-filter-label input:focus-visible + .cblm-checkbox-box {
    outline: 2px solid #0e2146;
    outline-offset: 2px;
}

/* icon_item SPAN – Abstand zwischen Kreis und Text 9.6px */
.cblm-filter-text {
    margin: 0 9.6px;
    display: block;
}

/* module_buttons – Abstand über dem Button (padding-top 35px, padding-bottom 4px) */
.cblm-button-wrap {
    padding-top: 35px;
    padding-right: 0;
    padding-bottom: 4px;
    padding-left: 0;
}

/* column_first / image_wrap – Map max 500×668, aspect ratio 500:668, center in parent */
.cblm-map-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    background: none;
}

#cblm-map {
    display: block;
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 668px;
    aspect-ratio: 500 / 668;
    height: auto;
    border: 0 none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

/* Image fills container; coordinates map to this area (clip image so tooltips can overflow) */
.cblm-map-image-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.cblm-map-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

/* Markers layer: same size as map, so left/top % match image */
.cblm-markers {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.cblm-pin-wrap {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease;
    overflow: visible;
}

/* Dimmed markers should not respond to hover */
.cblm-pin-wrap.cblm-dimmed {
    cursor: default !important;
}

.cblm-pin-wrap:hover {
    z-index: 10001;
}

.cblm-pin-wrap.cblm-filtered-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cblm-pin {
    position: relative;
    width: 15px;
    height: 15px;
}

/* Cluster marker styles */
.cblm-cluster-marker {
    z-index: 10;
    overflow: visible !important;
}

.cblm-cluster-marker .cblm-pin {
    position: relative;
    overflow: visible !important;
}

.cblm-cluster-marker .cblm-pin svg {
    overflow: visible !important;
}

.cblm-cluster-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #231812;
    font-size: 11px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.cblm-cluster-tooltip {
    max-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 10000 !important;
}

.cblm-cluster-tooltip hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.cblm-spiderfy-marker {
    z-index: 11;
    transition: transform 0.3s ease-out;
}

.cblm-spiderfy-marker:hover {
    z-index: 10001 !important;
}

.cblm-spiderfy-marker .cblm-tooltip {
    z-index: 10000 !important;
    position: absolute !important;
}

.cblm-small-cluster-marker {
    z-index: 2;
}

.cblm-small-cluster-marker:hover {
    z-index: 10001 !important;
}

.cblm-small-cluster-marker .cblm-tooltip {
    z-index: 10000 !important;
    position: absolute !important;
}

.cblm-pin-wrap .cblm-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 180px;
    max-width: 280px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 13px;
    line-height: 1.4;
    color: #231812;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 10000 !important;
}

.cblm-pin-wrap:hover .cblm-tooltip {
    opacity: 1;
    visibility: visible;
    z-index: 10000 !important;
}

/* Dimmed markers should not show tooltips */
.cblm-pin-wrap.cblm-dimmed:hover .cblm-tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
}

.cblm-spiderfy-marker:hover .cblm-tooltip,
.cblm-small-cluster-marker:hover .cblm-tooltip {
    opacity: 1;
    visibility: visible;
    z-index: 10000 !important;
}

/* Button – Mehr über uns (padding 12.5px 25px, source-serif-4 20px, border-radius 0) */
.cblm-button {
    display: inline-flex;
    align-items: center;
    padding: 12.5px 25px;
    margin: 0;
    background-color: rgb(14, 33, 70);
    background-color: #0e2146;
    color: rgb(255, 255, 255) !important;
    color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
    font-family: source-serif-4-custom, Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 27px;
    text-decoration: none;
    transition: background 0.3s;
}

.cblm-button:hover {
    background: #1a3566;
}

.cblm-custom-marker {
    cursor: pointer;
}

.cblm-custom-marker:hover {
    z-index: 10;
}

.cblm-tooltip {
    font-size: 14px;
    line-height: 1.5;
}

/* Locations Grid - Based on provided design */
.cblm-locations-list {
    display: block;
    margin-top: 60px;
    margin-bottom: 0;
    padding-left: 10%;
    padding-right: 13%;
    padding-bottom: 70px;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: calc(-1 * 10%);
    clear: both;
    font-family: source-sans-3-custom, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26.4px;
    color: rgb(35, 24, 18);
    color: #231812;
    background-image: linear-gradient(0deg, rgba(217, 192, 0, 0.39) 0%, rgb(255, 255, 255) 100%);
    background-position: 0% 0%;
    background-repeat: repeat;
    box-sizing: border-box;
}

/* Category Section */
.cblm-category-section {
    margin-bottom: 60px;
}

.cblm-category-section:last-child {
    margin-bottom: 0;
}

/* Category Heading */
.cblm-category-heading {
    margin-bottom: 32px;
}

.cblm-category-title {
    font-family: source-serif-4-custom, Georgia, serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 76.8px;
    letter-spacing: -1.92px;
    color: rgb(0, 0, 0);
    margin: 0 0 32px 0;
    padding: 0;
}

/* Category Description */
.cblm-category-description {
    margin-bottom: 26px;
}

.cblm-category-description p {
    font-family: source-sans-3-custom, Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    color: rgb(35, 24, 18);
    margin: 0 0 26px 0;
    padding: 0;
    text-align: left;
}

/* Category Locations Grid */
.cblm-category-locations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    row-gap: 35px;
}

.cblm-location-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    background: transparent;
    border: 0 none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    column-gap: 3.2%;
    clear: left;
}

.cblm-location-card.cblm-filtered-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cblm-location-card:hover {
    transform: none;
    box-shadow: none;
}

/* Image container */
.cblm-card-image-container {
    display: grid;
    position: relative;
    clear: left;
    box-sizing: border-box;
}

.cblm-card-image {
    display: inline-block;
    width: 100%;
    height: auto;
    aspect-ratio: 458.891 / 209.359;
    background-size: cover;
    background-position: center;
    background-color: transparent;
    border: 0 none;
    border-radius: 0;
    overflow: clip;
    box-sizing: border-box;
    object-fit: cover;
}

/* Text container */
.cblm-card-text {
    display: grid;
    position: relative;
    align-items: center;
    box-sizing: border-box;
}

.cblm-card-text-inner {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.cblm-card-text-content {
    width: 100%;
    margin-bottom: 20.8px;
    font-family: source-sans-3-custom, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26.4px;
    color: rgb(35, 24, 18);
    color: #231812;
}

.cblm-location-card h3 {
    display: inline;
    font-family: source-sans-3-custom, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 26.4px;
    color: rgb(35, 24, 18);
    color: #231812;
    margin: 0;
    padding: 0;
    border: 0 none;
}

.cblm-location-card p {
    display: inline;
    font-family: source-sans-3-custom, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26.4px;
    color: rgb(35, 24, 18);
    color: #231812;
    margin: 0;
    padding: 0;
    border: 0 none;
}

/* Category badges */
.cblm-location-card .cblm-category-badge {
    display: inline;
    padding-right: 2px;
    padding-left: 2px;
    border: 0 none;
    border-radius: 2px;
    font-family: source-sans-3-custom, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26.4px;
    color: rgb(230, 0, 100);
    color: #e60064;
    background-color: rgb(242, 224, 127);
    background-color: #f2e07f;
}

/* Links in location cards - matching entry-content p a styles */
.cblm-location-card a:not(.cblm-card-image-link):not(.cblm-card-name-link),
.cblm-location-card .cblm-card-text-content a {
    background-color: #f2e07f;
    color: #e60064;
    padding: 0 2px;
    border-radius: 2px;
    text-decoration: none;
    font-family: source-sans-3-custom, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 26.4px;
}

.cblm-location-card a:not(.cblm-card-image-link):not(.cblm-card-name-link):hover,
.cblm-location-card .cblm-card-text-content a:hover {
    background-color: #f9f0c4;
    text-decoration: none !important;
    color: #e60064;
}

/* Ensure proper spacing and layout */
.cblm-location-card .cblm-card-text-content strong {
    font-weight: 700;
}

/* Clickable image link */
.cblm-card-image-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.cblm-card-image-link:hover {
    opacity: 0.9;
}

/* Clickable name link */
.cblm-card-name-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.cblm-card-name-link:hover {
    text-decoration: underline;
}

/* Bootstrap Breakpoints */
@media (max-width: 992px) {
    .cblm-content-area {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: 0;
    }

    .cblm-layout-ltr .cblm-text-section,
    .cblm-layout-rtl .cblm-text-section { order: 1; }

    .cblm-layout-ltr .cblm-map-section,
    .cblm-layout-rtl .cblm-map-section { order: 2; }

    .cblm-heading {
        font-family: "source-serif-4-custom";
        font-weight: 700;
        font-size: 48px;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .cblm-category-locations {
        grid-template-columns: 1fr !important;
    }

    .cblm-location-card {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile: Remove padding from wrapper */
@media (max-width: 1280px) {
    .cblm-heading,
    .cblm-category-title {
        font-family: "source-serif-4-custom";
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    .cblm-wrapper.cblm-layout-ltr {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }

    .cblm-heading,
    .cblm-category-title {
        font-family: "source-serif-4-custom";
        font-weight: 700;
    }

    .cblm-map-section {
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 60px;
    }

    .cblm-category-title,
    .cblm-category-description {
        margin-left: 10px;
        margin-right: 10px;
    }

    .cblm-location-card {
        margin-left: 10px;
        margin-right: 10px;
    }

    .cblm-category-locations {
        grid-template-columns: 1fr !important;
    }

    .cblm-location-card {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 680px) {
    .cblm-heading,
    .cblm-category-title {
        font-family: "source-serif-4-custom";
        font-weight: 800;
        font-size: 2em;
    }

    .cblm-map-section {
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 60px;
    }

    .cblm-category-title,
    .cblm-category-description {
        margin-left: 10px;
        margin-right: 10px;
    }

    .cblm-location-card {
        margin-left: 10px;
        margin-right: 10px;
    }
}

