/* ==========================================================================
   Standorte – Karte + Adressliste (Über-Seite)
   Figma "BaBeL DEF – Über": nummerierte Leaflet-Karte + Adressliste
   ========================================================================== */

/* Block-Wrapper
   -------------------------------------------------------------------------- */
.view-standorte {
    background-color: var(--babel-yellow);
    padding: 0;
}

/* Karten-Wrapper mit Gelbgrün-Farbfilter
   -------------------------------------------------------------------------- */
.standorte-map-wrap {
    position: relative;
    width: 100%;
}

/* Farbfilter auf den OSM-Tiles: leichter Gelbgrün-Ton (Figma-Overlay) */
.standorte-map-wrap .leaflet-tile-pane {
    filter: grayscale(1) brightness(0.7) sepia(0.8) hue-rotate(15deg);
}

/* Leaflet-Karte Höhe */
.standorte-map-wrap .leaflet-container {
    height: 480px;
    width: 100%;
    z-index: 0;
    border-radius: 16px;
}

/* Nummerierter Marker
   -------------------------------------------------------------------------- */
.standort-marker-wrap {
    background: none !important;
    border: none !important;
}

.standort-marker {
    width: 37px;
    height: 37px;
    background-color: var(--babel-red);
    color: var(--babel-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'League Spartan', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
    padding-top: 0.15em;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.standort-marker.is-active {
    background-color: var(--babel-darkred);
    transform: scale(1.2);
}

/* Adressliste
   -------------------------------------------------------------------------- */
.standorte-list {
    list-style: none;
    margin: 0;
    padding: 1.5rem 0 2rem;
    column-count: 3;
    column-gap: 1rem;
}

.standorte-list__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.standorte-list__item {
    cursor: default;
    padding: 0.75rem;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid var(--babel-red);
    break-inside: avoid;
    transition: background-color 0.2s ease;
}

.standorte-list__item--has-link {
    cursor: pointer;
}

.standorte-list__arrow {
    flex-shrink: 0;
    margin-left: auto;
    align-self: flex-start;
    margin-top: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.standorte-list__item:hover .standorte-list__arrow,
.standorte-list__item.is-active .standorte-list__arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

.standorte-list__item.is-active {
    background-color: rgba(0, 0, 0, 0.08);
}

.standorte-list__num {
    flex-shrink: 0;
    width: 37px;
    height: 37px;
    background-color: var(--babel-yellow);
    color: var(--babel-red);
    border: 1.5px solid var(--babel-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'League Spartan', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
    padding-top: 0.15em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.standorte-list__item.is-active .standorte-list__num {
    background-color: var(--babel-red);
    color: var(--babel-yellow);
}

.standorte-list__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.standorte-list__name {
    font-family: 'Bitter', serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--babel-red);
}

.standorte-list__adresse {
    font-family: 'Bitter', serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--babel-red);
}


/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .standorte-list {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .standorte-list {
        column-count: 1;
    }

    .standorte-map-wrap .leaflet-container {
        height: 320px;
    }
}

/* Leaflet-Steuerelemente: Theme-Styles zurücksetzen
   -------------------------------------------------------------------------- */
.leaflet-bar {
    display: block !important;
}

.leaflet-bar a,
.leaflet-control-zoom a {
    display: block !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    font-size: 18px !important;
    text-align: center !important;
    color: #444 !important;
    background-color: #fff !important;
    text-decoration: none !important;
    border-bottom: 1px solid #ccc !important;
}

.leaflet-bar a span,
.leaflet-control-zoom a span {
    display: block !important;
    line-height: 30px !important;
    text-align: center !important;
}

.leaflet-bar a:hover,
.leaflet-control-zoom a:hover {
    color: #000 !important;
    background-color: #f4f4f4 !important;
}

#block-babel-standorte-block {
    padding-top: 5rem;
    padding-bottom: 5rem;
    border-bottom: 0.5rem solid var(--babel-white);
    color: var(--babel-red);
    border-top: 0.5rem solid var(--babel-white);
}


#block-babel-standorte-block h2 {
    font-size: 2.5rem;
    color: var(--babel-red);
}