/* Mobile-first Fullscreen-Layout, keine Raender */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Karte fuellt den kompletten Viewport (inkl. Safe-Area auf Notch-Geraeten) */
#map {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #e8e8e8;
}

/* Graustufen-Look wie reitti: nur die Kachel-Ebene entsaettigen,
   Marker/Popups/Overlays bleiben farbig */
.leaflet-tile-pane {
    filter: grayscale(1);
}

/* Kategorie-Filter (links unter dem Zoom): kleine Kategorie-Pins zum Ein-/Ausblenden */
.category-filter {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.cat-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.cat-btn:hover {
    background: #f0f0f0;
}

.cat-btn:active {
    transform: scale(0.92);
}

.cat-btn-icon {
    display: block;
    pointer-events: none;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

/* Ausgeblendete Kategorie: Icon entsaettigt und gedimmt */
.cat-btn.off .cat-btn-icon {
    filter: grayscale(1);
    opacity: 0.3;
}

/* Popup-Inhalte kompakt und lesbar */
.event-popup h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

/* Kategorie-Chip oberhalb des Titels */
.event-cat {
    display: inline-block;
    margin: 0 0 6px;
    padding: 2px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.event-popup p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.35;
}

.event-popup a {
    display: inline-block;
    color: #2b6cb0;
    font-weight: 600;
    text-decoration: none;
}

.event-popup a:hover {
    text-decoration: underline;
}
