/* OpenStreetMap – lokale Glasvorschau, externe Kartenkacheln erst nach Klick. */
#map .sg-map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px;
  overflow: hidden;
  isolation: isolate;
  z-index: 1200;
  text-align: center;
  font-family: 'Open Sans', Arial, sans-serif;
}
#map .sg-map-consent[hidden] { display: none !important; }
#map .sg-map-consent::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../layout/bg/bg_karte1a.jpg') center center / cover no-repeat;
  filter: blur(2px) saturate(1);
  transform: none;
  pointer-events: none;
}
#map .sg-map-consent::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(239, 245, 234, 0.12);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  pointer-events: none;
}
#map .sg-map-consent-card {
  position: relative;
  box-sizing: border-box;
  width: min(490px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: clamp(13px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 15px;
  color: #253223;
  background: rgba(255,255,255,.85);
  box-shadow: 0 9px 30px rgba(25,45,30,.19);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
#map .sg-map-consent-card h3 {
  margin: 0 0 8px;
  padding: 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.22;
  font-weight: 700;
  color: #536e0b;
}
#map .sg-map-consent-card p {
  margin: 0 0 12px;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #283326;
}
#map .sg-map-consent-button {
  display: inline-block;
  padding: 10px 22px;
  border: 0;
  border-radius: 7px;
  background: #6f8d0c;
  color: white;
  font: 600 14px/1.3 'Open Sans', Arial, sans-serif;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}
#map .sg-map-consent-button:hover,
#map .sg-map-consent-button:focus-visible {
  background: #516c07;
  box-shadow: 0 2px 10px rgba(60, 80, 12, .25);
}
#map .sg-map-consent-button:focus-visible,
#map .sg-map-consent-card a:focus-visible {
  outline: 3px solid #253b11;
  outline-offset: 3px;
}
#map .sg-map-consent-card .sg-map-privacy {
  margin: 10px 0 0;
  color: #445344;
  font-size: 12px;
}
#map .sg-map-consent-card a { color: #506d09; text-decoration: underline; }
#map .sg-map-consent-error { color: #8b2d25 !important; }
@media (max-width: 520px) {
  #map .sg-map-consent { padding: 8px; }
  #map .sg-map-consent-card { border-radius: 10px; padding: 12px 13px; }
  #map .sg-map-consent-card p { font-size: 11.5px; line-height: 1.34; margin-bottom: 8px; }
  #map .sg-map-consent-card h3 { margin-bottom: 5px; font-size: 17px; }
  #map .sg-map-consent-button { padding: 9px 17px; font-size: 12px; }
  #map .sg-map-consent-card .sg-map-privacy { margin-top: 6px; font-size: 11px; }
}

/* Freigabe direkt an der Karte wieder zurücknehmen. */
#map .sg-map-consent-reset {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: auto;
  left: auto;
  z-index: 1100;
  padding: 7px 10px;
  border: 1px solid rgba(45, 58, 35, .25);
  border-radius: 6px;
  background: rgba(255,255,255,.94);
  color: #334a12;
  font: 600 11px/1.3 'Open Sans', Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
#map .sg-map-consent-reset[hidden] { display: none !important; }
#map .sg-map-consent-reset:hover { background: #f0f6e7; }
#map .sg-map-consent-reset:focus-visible { outline: 3px solid #253b11; outline-offset: 2px; }
