/* Allgemeine Links und Leaflet-Karten im öffentlichen Portal. */
body.path-not-admin {
  --be-link-color: var(--be-petrol, #005967);
  --be-map-background: #f3f5f2;
  --be-map-outside: #eef0ed;
  --be-map-outside-opacity: 0.35;
  --be-marker-background: var(--be-petrol, #005967);
  --be-actor-background: #7e6790;
}

/* Die Linkvariablen gelten auch auf Profilen, in Tabellen und im Forum.
   Eigene Textfarben von Navigation, Schaltflächen und Fußzeile bleiben erhalten. */
body.path-not-admin :is(a, button.link) {
  --gin-color-primary: var(--be-link-color);
  --gin-color-primary-rgb: 0, 89, 103;
  --gin-color-primary-hover: var(--be-link-color);
  --gin-color-primary-active: var(--be-link-color);
  --color-link: var(--be-link-color);
  --color-link-hover: var(--be-link-color);
}

/* Ältere Weiterlesen-Regeln verwenden noch einen festen Grünton. */
body.path-not-admin .views-field-view-node a {
  color: var(--be-link-color);
}

/* Gleiche Kartenfläche wie in .view-karten, bei unveränderter Drupal-Höhe. */
body.path-not-admin .leaflet-container {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid #d5e1e3;
  border-radius: 8px;
  background: var(--be-map-background);
}

/* Die Übersicht besitzt bereits einen Rahmen um die gesamte Kartenfläche. */
body.path-not-admin .view-karten .leaflet-container {
  border: 0;
}

body.path-not-admin .leaflet-container .leaflet-bar {
  border: 1px solid #cbd9dc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgb(0 50 60 / 10%);
}

body.path-not-admin .leaflet-container .leaflet-bar a {
  width: 30px;
  height: 30px;
  background-color: #fff;
  color: var(--be-link-color);
  line-height: 30px;
}

body.path-not-admin .leaflet-container .leaflet-bar a:is(:hover, :focus-visible) {
  background-color: #f3f5f2;
}

body.path-not-admin .leaflet-container .leaflet-bar a.leaflet-disabled {
  color: #767676;
}

body.path-not-admin .leaflet-container .leaflet-control-layers {
  border: 1px solid #cbd9dc;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgb(0 50 60 / 10%);
}

body.path-not-admin .leaflet-container .leaflet-tile-pane {
  filter: none !important;
  opacity: 1 !important;
}

body.path-not-admin .leaflet-container .leaflet-tile {
  filter: none !important;
  mix-blend-mode: normal;
}

/* Nur die vorhandene Sachsen-Maske einfärben, keine Projekt-Geometrien. */
body.path-not-admin .leaflet-container .leaflet-overlay-pane path[stroke="#a2819f"] {
  fill: var(--be-map-outside);
  fill-opacity: var(--be-map-outside-opacity);
  stroke: var(--be-link-color);
  stroke-width: 2;
  stroke-opacity: 1;
}

body.path-not-admin .leaflet-container .leaflet-marker-pane .lmm-icon {
  box-sizing: border-box;
  width: 32px;
  min-width: 32px;
  height: 32px;
  left: -16px;
  top: -29px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--be-marker-background);
  color: #fff;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  box-shadow: 0 1px 5px rgb(0 45 55 / 25%);
}

body.path-not-admin .leaflet-container .leaflet-marker-pane .lmm-icon.purple {
  background: var(--be-actor-background);
}

body.path-not-admin .leaflet-container .leaflet-marker-icon:focus-visible .lmm-icon {
  outline: 3px solid var(--be-gelb, #ffcb31);
  outline-offset: 3px;
}

body.path-not-admin .leaflet-container .marker-cluster {
  border-radius: 50%;
  background: rgb(255 203 49 / 30%);
}

body.path-not-admin .leaflet-container .marker-cluster div {
  border-radius: 50%;
  background: var(--be-gelb, #ffcb31);
  color: var(--be-link-color);
  font-weight: 700;
}

body.path-not-admin .leaflet-container .leaflet-control-attribution {
  background: rgb(255 255 255 / 90%);
  color: #42555a;
  font-size: 10px;
}

body.path-not-admin .leaflet-container .leaflet-control-attribution a {
  color: var(--be-link-color);
}
