/* Eventsimple: Einbett-Widget (/embed). Eigenstaendig, ohne Bootstrap; helles und dunkles Farbschema. */
:root {
    --es-bg: #ffffff;
    --es-fg: #212529;
    --es-muted: #6c757d;
    --es-link: #0d6efd;
    --es-border: #e9ecef;
    --es-head: #f8f9fa;
}
[data-theme="dark"] {
    --es-bg: #1e1f22;
    --es-fg: #e9ecef;
    --es-muted: #adb5bd;
    --es-link: #6ea8fe;
    --es-border: #343a40;
    --es-head: #2b2f33;
}
html, body { margin: 0; padding: 0; background: var(--es-bg); color: var(--es-fg); }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}
.es-widget { padding: 0.75rem 1rem 0.5rem; }
.es-widget a { color: var(--es-link); text-decoration: none; }
.es-widget a:hover { text-decoration: underline; }
.es-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.es-title { font-size: 1.1rem; font-weight: 600; margin: 0; }
.es-count { color: var(--es-muted); font-size: 0.85rem; white-space: nowrap; }
.es-map { height: 240px; margin: 0 0 0.75rem; border-radius: 6px; background: var(--es-head); }
.es-day { margin: 0 0 0.75rem; }
.es-day-title { font-size: 0.85rem; font-weight: 600; color: var(--es-muted); text-transform: uppercase; letter-spacing: 0.02em; margin: 0.25rem 0; padding-bottom: 0.2rem; border-bottom: 1px solid var(--es-border); }
.es-list { list-style: none; margin: 0; padding: 0; }
.es-item { display: flex; gap: 0.6rem; padding: 0.4rem 0; border-bottom: 1px solid var(--es-border); }
.es-item:last-child { border-bottom: 0; }
.es-dot { flex: 0 0 auto; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-top: 0.4rem; }
.es-body { min-width: 0; }
.es-item-title { font-weight: 600; }
.es-meta { font-size: 0.85rem; color: var(--es-muted); }
.es-empty { color: var(--es-muted); margin: 0.5rem 0 1rem; }
.es-foot { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--es-border); font-size: 0.8rem; color: var(--es-muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.es-foot .es-brand { font-weight: 600; }
.leaflet-container { font: inherit; }
[data-theme="dark"] .leaflet-tile { filter: brightness(0.75) contrast(1.05); }
[data-theme="dark"] .leaflet-popup-content-wrapper, [data-theme="dark"] .leaflet-popup-tip { background: #2b2f33; color: var(--es-fg); }
