/* Öffentliche Begegnungskarte: nur die Basiskacheln filtern, niemals Punkte/Tooltips. */
.public.public-encounter-map-page { background: #0c0e10; color: #ede8dd; }
.public-encounter-map-page .site-footer { background: #0c0e10; border-color: #2b2e32; }
.em-hero .page-hero__inner { padding-top: 2rem; padding-bottom: 2rem; }
.em-hero .page-hero__title { font-size: clamp(2rem, 4vw, 4rem); }
.em-section, .em-round-results { padding: 1.8rem clamp(18px, 3vw, 52px); }
.em-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.em-eyebrow { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #d8b374; margin: 0 0 .5rem; font-weight: 700; }
.em-toolbar h2 { color: #f5ebd9; letter-spacing: -.04em; margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.em-toolbar p:last-child { color: #a6acb1; font-size: .86rem; margin: .5rem 0 0; }
.em-back { color: #e3bf7a; font-size: .8rem; white-space: nowrap; }
.em-frame { border: 1px solid #4f4533; border-radius: 1.25rem; overflow: hidden; background: #131619; box-shadow: 0 20px 60px #0003; }
.em-map-head { display: flex; align-items: center; gap: 2rem; justify-content: space-between; padding: 1.3rem 1.5rem; background: radial-gradient(ellipse at 0 0, #d4a74715, transparent 70%), #14171a; }
.em-map-head form { min-width: 0; }
.em-map-head label, .em-search > span { display: block; color: #aeb6bc; font-size: .68rem; margin-bottom: .35rem; }
.em-select-row { display: flex; gap: .5rem; }
.em-select-row select, .em-search input { border: 1px solid #51504b; border-radius: .6rem; background: #1c2024; padding: .7rem .8rem; color: #f8e6be; font: inherit; font-size: .82rem; color-scheme: dark; min-width: 0; }
.em-select-row select { min-width: 230px; max-width: 100%; }
.em-map-head button { border: 1px solid #665535; border-radius: .6rem; padding: .7rem .8rem; background: #cf9e3e10; color: #e8c989; font: inherit; font-size: .75rem; cursor: pointer; }
.em-map-head button:hover { border-color: #d0a55e; background: #cba05220; }
.em-round-meta { display: grid; gap: .35rem; margin-right: auto; }
.em-round-meta strong { color: #f6e3be; font-size: .96rem; }
.em-round-meta span { color: #a2abb3; font-size: .73rem; }
.em-statbar { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; padding: .8rem 1.5rem; border-top: 1px solid #ffffff0a; border-bottom: 1px solid #ffffff0c; color: #b2bac0; font-size: .72rem; }
.em-statbar > span { display: inline-flex; align-items: center; gap: .4rem; }
.em-statbar strong { color: #f2e4c9; }
.em-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #e5b14d; box-shadow: 0 0 8px #daa23560; flex-shrink: 0; }
.em-dot--eliminated { background: #e06a64; box-shadow: 0 0 8px #d34b4630; }
.em-dot--previous { background: #c4c9ce; box-shadow: 0 0 6px #c4c9ce25; }
.em-line { display: inline-block; width: 1.1rem; height: 2px; background: #d5ae61; }
.em-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); }
.em-map-wrap { position: relative; min-width: 0; background: #191e23; }
.em-map { height: clamp(490px, 68vh, 850px); width: 100%; background: #191e23; z-index: 0; }
.em-map .leaflet-tile-pane { filter: grayscale(1) invert(1) contrast(.86) brightness(.8); }
.em-map .leaflet-control-zoom a { background: #191e23; color: #e5c383; border-color: #454745; }
.em-map .leaflet-control-attribution { background: #14181de8; color: #bec6cb; font-size: 9px; }
.em-map .leaflet-control-attribution a { color: #e1c17e; }
.em-map .em-marker { cursor: pointer; filter: drop-shadow(0 0 4px #cda24e80); }
.em-map .em-marker--eliminated { filter: drop-shadow(0 0 3px #bf514960); }
.em-map .em-marker--previous { filter: drop-shadow(0 0 3px #c4c9ce40); }
.em-map .em-marker:focus { outline: none; stroke: #fff3cd; stroke-width: 4px; }
.em-map-popup { position: absolute; z-index: 600; border: 1px solid #786039; border-radius: .7rem; background: #121619fa; color: #ede7d9; padding: .8rem 1rem; box-shadow: 0 8px 30px #0007; width: 260px; max-width: calc(100% - 24px); box-sizing: border-box; overflow-wrap: anywhere; }
.em-map-popup.is-docked { position: relative; left: auto !important; top: auto !important; margin: 12px; width: calc(100% - 24px); }
.em-map-popup strong { display: block; color: #f1ce87; margin-bottom: .25rem; font-size: .8rem; }
.em-map-popup span { display: block; line-height: 1.55; font-size: .72rem; }
.em-map-popup .em-result { color: #e98981; font-weight: 700; margin-top: .3rem; }
.em-map-popup a { display: inline-block; color: #f1ce87; font-size: .75rem; margin-top: .65rem; padding: .2rem 0; }
.em-map-message { position: absolute; left: 1rem; right: 1rem; bottom: 1.5rem; margin: 0; background: #121619ed; border: 1px solid #5b4c36; border-radius: .7rem; color: #e2ceb0; padding: .7rem; font-size: .75rem; z-index: 450; pointer-events: none; }
.em-sidebar { min-width: 0; border-left: 1px solid #ffffff12; padding: 1.3rem; display: flex; flex-direction: column; max-height: clamp(490px, 68vh, 850px); box-sizing: border-box; }
/* Fester Platz verhindert Hover-Schleifen, wenn längere Infos die Liste verschieben. */
.em-detail { border-bottom: 1px solid #ffffff12; padding-bottom: 1rem; margin-bottom: 1rem; height: 18rem; flex: 0 0 18rem; box-sizing: border-box; overflow: auto; overflow-wrap: anywhere; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #584b34 #181c20; }
.em-detail h3 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 .5rem; color: #f6db9f; overflow-wrap: anywhere; }
.em-detail p { margin: .35rem 0; color: #a9b1b9; line-height: 1.6; font-size: .78rem; }
.em-detail .em-result { color: #f1b2a6; font-weight: 700; }
.em-detail a { display: inline-block; margin-top: .5rem; color: #e4c687; font-size: .75rem; }
.em-search input { width: 100%; box-sizing: border-box; color: #e9e2d6; }
.em-search input::placeholder { color: #929ba3; }
.em-team-list { list-style: none; margin: .8rem -.4rem 0; padding: 0; min-height: 0; overflow: auto; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #584b34 #181c20; flex: 1; }
.em-team-list button { display: flex; align-items: center; gap: .65rem; width: 100%; text-align: left; color: #d4d8da; padding: .65rem .4rem; border: 0; background: transparent; font: inherit; font-size: .72rem; cursor: pointer; border-radius: .4rem; }
.em-team-list button:hover, .em-team-list button[aria-pressed="true"] { color: #ffe1a4; background: #c79b3e15; }
.em-team-list button span:last-child { overflow-wrap: anywhere; line-height: 1.4; }
.em-team-list small { display: block; color: #a58c87; font-size: .65rem; margin-top: .2rem; }
.em-note { color: #929da5; font-size: .74rem; line-height: 1.6; margin: 1rem 0 0; }
.em-no-results { color: #aab1b6; font-size: .75rem; }
.em-empty { padding: 3rem 1.5rem; border: 1px solid #504633; border-radius: 1rem; text-align: center; background: #16191c; }
.em-empty h3 { color: #e8cd9b; }
.em-empty p { color: #a1abb2; }
.em-followup { padding: 0 clamp(18px, 3vw, 52px) 2rem; }
.em-round-results .round-section { background: #131619; border-color: #393b3e; }
.em-round-results .round-section__name { color: #f1dfbd; }
.em-round-results .round-section__window, .em-round-results .round-section__count, .em-round-results .round-section__byes { color: #b5bdc5; }
.em-round-results .round-section__byes li { color: #e5cf9f; }
.em-section :is(a, button, input, select, .em-detail):focus-visible { outline: 2px solid #e3b85c; outline-offset: 3px; }
.public-encounter-map-page [hidden] { display: none !important; }
@media (max-width: 900px) {
    .em-map-head { flex-wrap: wrap; gap: 1rem; }
    .em-map-head form { flex: 1 1 100%; }
    .em-select-row select { flex: 1; }
    .em-workspace { grid-template-columns: minmax(0, 1fr); }
    .em-map { height: 58vh; min-height: 380px; }
    .em-sidebar { border-left: 0; border-top: 1px solid #ffffff12; max-height: none; }
    .em-team-list { max-height: 230px; }
    .em-toolbar { flex-direction: column; align-items: flex-start; gap: .8rem; }
}
@media (max-width: 480px) {
    .em-map-head, .em-sidebar { padding: 1rem; }
    .em-statbar { padding: .8rem 1rem; gap: .6rem .9rem; font-size: .66rem; }
    .em-select-row select { min-width: 0; width: 100%; }
    .em-round-meta strong { font-size: .84rem; }
}
