/* H4R Projektkarte – dunkler Hero-Stil */
.h4r-map-wrap {
    width: 100%;
    position: relative;
    color: #f8fafc;
    font-family: inherit;
}
.h4r-map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}
.h4r-map-filter {
    appearance: none;
    border: 1px solid rgba(196, 220, 241, .28);
    border-radius: 999px;
    background: rgba(4, 26, 44, .88);
    color: #eaf3fb;
    padding: 9px 15px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.h4r-map-filter:hover {
    border-color: #ffd447;
    transform: translateY(-1px);
}
.h4r-map-filter.is-active,
.h4r-map-filter[aria-pressed="true"] {
    background: #ffd447;
    border-color: #ffd447;
    color: #102b46;
}
.h4r-map-filter:focus-visible,
.h4r-map-fullscreen:focus-visible {
    outline: 3px solid #ffd447;
    outline-offset: 2px;
}
.h4r-project-map {
    width: 100%;
    min-height: 320px;
    background: #061b2b;
    border: 1px solid rgba(167, 199, 224, .18);
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
}
/* Ruhiger, blaugrauer Kartenstil ohne grüne Geländefarben.
   Den Filter auf jedes Tile-Bild anwenden statt auf den gesamten Tile-Pane.
   Dadurch werden keine Kachelzwischenräume/Transform-Artefakte mitgefiltert. */
.h4r-project-map {
    background: #aab7c2;
}
.h4r-project-map .leaflet-tile {
    filter: grayscale(1) sepia(.18) hue-rotate(165deg) saturate(.62) brightness(.78) contrast(.92);
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
}
.h4r-project-map .leaflet-control-attribution {
    background: rgba(4, 20, 34, .75);
    color: #c5d6e4;
    font-size: 10px;
}
.h4r-project-map .leaflet-control-attribution a {
    color: #e7f1f9;
}
.h4r-project-map .leaflet-bar {
    border: 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .22);
}
.h4r-project-map .leaflet-bar a,
.h4r-project-map .leaflet-bar a:hover {
    background: #f8fafc;
    color: #102b46;
    border-bottom-color: #dbe5ed;
}
.h4r-map-fullscreen {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: #102b46;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .22);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}
.h4r-project-marker-wrap {
    background: transparent;
    border: 0;
}
.h4r-project-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
    border-radius: 50%; 
    background: var(--marker-color, #0875d1);
    color: var(--marker-symbol-color, #fff);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .38), 0 0 0 4px rgba(255, 255, 255, .09);
    font-size: 17px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,.18);
    transition: transform .15s ease;
}
.leaflet-marker-icon:hover .h4r-project-marker {
    transform: scale(1.12);
}
.h4r-map-status {
    margin: .55rem 0 0;
    color: #d3e0eb;
    font-size: .78rem;
}
.h4r-project-map .leaflet-popup-content-wrapper {
    border-radius: 13px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .24);
}
.h4r-project-map .leaflet-popup-content {
    margin: 12px;
}
.h4r-project-map .h4r-map-popup {
    min-width: 190px;
    max-width: 260px;
    color: #183047;
    font-size: 13px;
}
.h4r-project-map .h4r-map-popup img {
    display: block;
    width: 100%;
    height: 112px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.h4r-project-map .h4r-map-popup-title {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    margin: 0 0 7px;
    color: #102b46;
}
.h4r-project-map .h4r-map-popup-status {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 750;
}
.h4r-project-map .h4r-map-popup-status.is-active {
    background: #ffd447;
    color: #102b46;
}
.h4r-project-map .h4r-map-popup-status.is-completed {
    background: #e5edf4;
    color: #38536a;
}
.h4r-project-map .h4r-map-popup a {
    display: inline-block;
    color: #0057b8;
    font-weight: 800;
    text-decoration: none;
}
.h4r-project-map .h4r-map-popup a:hover {
    text-decoration: underline;
}
.h4r-map-wrap:fullscreen {
    background: #061b2b;
    padding: 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.h4r-map-wrap:fullscreen .h4r-project-map {
    flex: 1;
    min-height: 0;
    height: auto !important;
}
@media (max-width: 767px) {
    .h4r-map-filter {
        padding: 8px 11px;
        font-size: 12px;
    }
    .h4r-project-map {
        border-radius: 12px;
    }
    .h4r-project-map .h4r-map-popup {
        min-width: 170px;
    }
}


.h4r-project-map .h4r-project-marker { font-family: Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.h4r-project-map .h4r-donation-progress { margin: 10px 0 12px; color: #183047; min-width: 205px; }
.h4r-project-map .h4r-donation-progress-labels { display:flex; justify-content:space-between; align-items:baseline; gap:8px; margin-bottom:6px; font-size:11px; line-height:1.3; }
.h4r-project-map .h4r-donation-progress-labels strong { color:#102b46; font-size:12px; font-weight:800; }
.h4r-project-map .h4r-donation-progress-labels span { color:#506579; text-align:right; white-space:nowrap; }
.h4r-project-map .h4r-donation-progress-track { width:100%; height:9px; overflow:hidden; border-radius:999px; background:#e5edf4; }
.h4r-project-map .h4r-donation-progress-fill { height:100%; border-radius:999px; background:linear-gradient(90deg,#0057b8 0%,#ffd447 100%); transition:width .35s ease; }
.h4r-project-map .h4r-donation-raised { margin:5px 0 0; color:#506579; font-size:11px; line-height:1.3; }
