/* Elektro Mai – Einsatzgebiete. Basis: Baukasten/components/service-area-map. */
html { color-scheme: light; }
body { margin: 0; background: #fafafa; }
.egm-areas {
  --egm-width: 1280px;
  --egm-gutter: 24px;
  --egm-ink: #18181b;
  --egm-muted: #62676b;
  --egm-accent: #b46900;
  --egm-pin: #f6a800;
  box-sizing: border-box;
  padding: clamp(64px, 7vw, 104px) var(--egm-gutter) 64px;
  background: #fafafa;
  color: var(--egm-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.egm-areas *, .egm-areas *::before, .egm-areas *::after { box-sizing: border-box; }
.egm-areas [hidden] { display: none !important; }
.egm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.egm-container { max-width: var(--egm-width); margin-inline: auto; }
.egm-intro { margin-bottom: 44px; text-align: center; }
.egm-eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 16px; color: var(--egm-muted); font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.egm-eyebrow::before { content: ""; width: 32px; height: 2px; flex: 0 0 32px; background: var(--egm-pin); }
.egm-heading { margin: 0; font-size: clamp(30px, 3.8vw, 48px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.egm-description { max-width: 760px; margin: 18px auto 0; color: var(--egm-muted); font-size: 18px; line-height: 1.6; }
.egm-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.egm-map-panel { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; border: 1px solid #e5e9e5; border-radius: 18px; background: #eaf2f1; overflow: hidden; box-shadow: 0 8px 24px #18181b08; }
.egm-map-stage { position: relative; height: 390px; }
.egm-map-svg { display: block; width: 100%; height: 100%; }
.egm-map-water { fill: #dcecee; }
.egm-map-context { fill: #e8ece7; stroke: #c8d2ca; stroke-width: .65; }
.egm-region { stroke: #ffffff; stroke-width: .7; stroke-linejoin: round; cursor: pointer; }
.egm-map-svg :is(.egm-radius-fill, .egm-radius-line, .egm-map-label, .egm-map-dot, .egm-selection-dot, .egm-site-halo, .egm-site-pin, .egm-site-bolt, .egm-site-label) { pointer-events: none; }
.egm-amt-border { fill: none; stroke: #a6b5a5; stroke-width: 1; stroke-opacity: .6; pointer-events: none; }
.egm-radius-fill { fill: #f6b934; fill-opacity: .065; }
.egm-radius-line { fill: none; stroke: #b37608; stroke-width: 1.6; stroke-dasharray: 5 4; opacity: .85; }
.egm-map-label { fill: #53635c; font-size: 12px; font-weight: 600; text-anchor: middle; paint-order: stroke; stroke: #f4f8f4; stroke-width: 3px; stroke-linejoin: round; }
.egm-map-city { font-size: 15px; fill: #394b41; }
.egm-map-dot { fill: #6e8277; stroke: #f8fcf8; stroke-width: 1; }
.egm-highlight { fill: #fac969; fill-opacity: .85; stroke: #ad6b0b; stroke-width: 2; stroke-linejoin: round; pointer-events: none; }
.egm-highlight.egm-animate { animation: egm-highlight-in 800ms ease-out both; }
.egm-selection-dot { fill: #a25e00; stroke: #fff; stroke-width: 3; }
.egm-site-halo { fill: #18181b; fill-opacity: .08; }
.egm-site-pin { fill: #18181b; stroke: #fff; stroke-width: 2; }
.egm-site-bolt { fill: #fbbf24; }
.egm-site-label { fill: #18181b; font-size: 12px; font-weight: 750; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3; }
.egm-map-card { position: absolute; top: 14px; left: 14px; max-width: calc(100% - 76px); padding: 12px 16px; border: 1px solid #e8ece8; border-radius: 10px; background: #fffffff2; box-shadow: 0 3px 12px #18181b0a; }
.egm-map-card strong { display: block; font-size: 15px; line-height: 1.3; }
.egm-map-card span { display: block; margin-top: 3px; color: var(--egm-muted); font-size: 12px; }
.egm-reset { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #e1e7e2; border-radius: 50%; background: #fff; color: #46544a; cursor: pointer; }
.egm-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.egm-map-compass { position: absolute; right: 20px; bottom: 18px; display: grid; justify-items: center; gap: 2px; color: #53635c; font-size: 10px; font-weight: 700; }
.egm-map-compass::after { content: ""; border-inline: 5px solid transparent; border-bottom: 13px solid currentColor; }
.egm-map-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 54px; padding: 14px 16px; background: #fff; border-top: 1px solid #e5e9e5; font-size: 11px; color: var(--egm-muted); }
.egm-legend { display: flex; align-items: center; gap: 6px; }
.egm-legend::before { content: ""; width: 13px; height: 13px; border: 1px dashed #b37608; border-radius: 50%; background: #fdf3dc; }
.egm-places-panel { display: flex; flex-direction: column; min-width: 0; border: 1px solid #ededed; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px #18181b05; overflow: hidden; }
.egm-search-row { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; }
.egm-search { position: relative; flex: 1; min-width: 0; }
.egm-search > .egm-icon { position: absolute; left: 13px; top: 14px; color: #7b827d; pointer-events: none; }
.egm-search input { width: 100%; height: 46px; padding: 10px 40px; border: 1px solid #e6e8e5; border-radius: 8px; background: #fafbfa; color: var(--egm-ink); font: inherit; font-size: 14px; }
.egm-search input::placeholder { color: #737975; opacity: 1; }
.egm-search input::-webkit-search-cancel-button { display: none; }
.egm-search-clear { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 5px; background: transparent; color: #737975; cursor: pointer; }
.egm-result-count { flex: 0 0 auto; margin: 0; color: var(--egm-muted); font-size: 12px; white-space: nowrap; }
.egm-places-scroll { min-height: 0; max-height: 390px; padding: 8px 20px 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #242724 #fafafa; }
.egm-group + .egm-group { margin-top: 24px; }
.egm-group-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; line-height: 1.4; }
.egm-group-heading > span { padding: 5px 12px; border-radius: 999px; background: #f4f4f4; font-weight: 700; }
.egm-group-count { color: var(--egm-muted); font-size: 12px; font-weight: 400; }
.egm-place-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.egm-place-list li { min-width: 0; }
.egm-place-button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; height: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: 8px; background: #f8f8f8; color: var(--egm-ink); font: inherit; font-size: 14px; line-height: 1.35; text-align: left; overflow-wrap: anywhere; cursor: pointer; transition: background-color 150ms, border-color 150ms; }
.egm-place-button > .egm-icon { width: 16px; height: 16px; flex-basis: 16px; color: #d48700; }
.egm-place-button[aria-pressed="true"] { border-color: #e7bb6b; background: #fff3d9; font-weight: 650; }
.egm-place-button[aria-pressed="true"]::after { content: ""; width: 5px; height: 9px; flex: 0 0 5px; margin-left: auto; border-right: 2px solid #8b5700; border-bottom: 2px solid #8b5700; transform: rotate(45deg); }
.egm-place-button:disabled { cursor: default; }
.egm-selection { padding: 16px 20px; border-top: 1px solid #eee; background: #fff; }
.egm-selection-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14px; }
.egm-selection-heading .egm-icon { color: #c98300; }
.egm-distance { margin-left: auto; color: #62676b; font-size: 12px; font-weight: 400; }
.egm-selection-note { margin: 0; color: var(--egm-muted); font-size: 12px; }
.egm-empty { margin: 8px 0 12px; color: var(--egm-muted); font-size: 14px; }
.egm-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 24px; }
.egm-source { max-width: 720px; margin: 0; color: #62676b; font-size: 11px; line-height: 1.7; }
.egm-source a { color: #566059; text-underline-offset: 3px; }
.egm-contact { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; max-width: 100%; padding: 14px 22px; border-radius: 999px; background: #18181b; color: #fff; font-size: 14px; font-weight: 650; text-align: center; text-decoration: none; }
.egm-contact .egm-icon { width: 16px; height: 16px; }
.egm-areas :is(button, input, a, .egm-places-scroll):focus-visible { outline: 3px solid #aa6a00; outline-offset: 3px; }
.egm-map-stage .egm-scale path { fill: none; stroke: #53635c; stroke-width: 1.2; }
.egm-map-stage .egm-scale text { fill: #53635c; font: 9px "Segoe UI", Arial, sans-serif; text-anchor: middle; }
.egm-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 36px; border: 1px solid #e4e7e3; border-radius: 18px; background: #fff; color: #18181b; font: inherit; overflow-y: auto; }
.egm-dialog::backdrop { background: #18181b88; }
.egm-dialog h2 { margin: 0 0 16px; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; padding-right: 14px; overflow-wrap: anywhere; }
.egm-dialog p { color: var(--egm-muted); font-size: 15px; }
.egm-dialog .egm-dialog-close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f4f4f4; color: #18181b; cursor: pointer; }
.egm-dialog .egm-dialog-eyebrow { margin: 8px 36px 18px 0; font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: 1.1px; }
.egm-dialog-phone, .egm-dialog-email { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 13px 18px; border-radius: 9px; font-size: 15px; font-weight: 650; text-decoration: none; }
.egm-dialog-phone { margin-top: 24px; background: #18181b; color: #fff; }
.egm-dialog-email { margin-top: 10px; border: 1px solid #e1e4e1; color: #18181b; }
.egm-dialog .egm-dialog-address { margin-bottom: 0; font-size: 12px; text-align: center; }
.egm-noscript { padding: 12px 20px; margin: 0; color: var(--egm-muted); font-size: 13px; }
@keyframes egm-highlight-in { 0% { fill-opacity: .35; stroke-opacity: .4; } 45% { fill-opacity: 1; stroke-opacity: 1; } 100% { fill-opacity: .85; stroke-opacity: 1; } }
@media (min-width: 900px) {
  .egm-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .egm-map-stage { height: 484px; }
  .egm-places-panel { height: 540px; }
  .egm-places-scroll { flex: 1; max-height: none; }
}
@media (min-width: 1180px) { .egm-place-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .egm-areas { --egm-gutter: 16px; padding-block: 56px 40px; }
  .egm-eyebrow { font-size: 10px; letter-spacing: 1.1px; gap: 8px; }
  .egm-eyebrow::before { width: 24px; flex-basis: 24px; }
  .egm-description { font-size: 16px; }
  .egm-intro { margin-bottom: 28px; }
  .egm-layout { gap: 16px; }
  .egm-map-stage { height: 340px; }
  .egm-map-label:not(.egm-map-city) { display: none; }
  .egm-areas .egm-map-city { font-size: 21px; }
  .egm-areas .egm-site-label { font-size: 19px; }
  .egm-search-row { flex-wrap: wrap; gap: 8px; padding: 16px 14px 12px; }
  .egm-search { flex-basis: 100%; }
  .egm-places-scroll { max-height: 340px; padding-inline: 14px; }
  .egm-selection { padding: 14px; }
  .egm-place-button { padding: 12px 10px; font-size: 13px; }
  .egm-contact { width: 100%; }
  .egm-dialog { padding: 28px 24px; }
}
@media (hover: hover) { .egm-place-button:hover { background: #fff2d8; border-color: #e8cf9f; } .egm-contact:hover { background: #303034; } .egm-reset:hover { background: #f5f7f4; } }
@media (prefers-reduced-motion: reduce) { .egm-areas *, .egm-areas *::before, .egm-areas *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
