body { font-family: sans-serif; margin: 0; padding: 0; }
.compound-label div {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: sans-serif;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}
.news-widget {
    background: #0f0f0f;
    border-radius: 14px;
    padding: 20px;
    max-width: 320px;
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
}

.widget-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 1em;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    margin-bottom: 0.6em;
    line-height: 1.4;
}

.news-list a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.news-list a:hover {
    color: #ffcc66;
}
.filter-toggle {
    position: absolute;
    top: 100px; /* etwas unter dem Zahnrad */
    right: 10px;
    z-index: 1001;
    background: #000000aa;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
}

.filter-box {
    position: absolute;
    top: 140px;
    right: 10px;
    z-index: 1000;
    background: #1c1c1c;
    color: white;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    width: 160px;
}
.leaflet-image-layer.overlay-img.is-contrasty {
  filter: contrast(180%) brightness(1.2) !important;
}
/* Compound-Label-Highlight */
.compound-label div.highlight,
.compound-label.highlight div {
  outline: 2px solid #fff;
  box-shadow: 0 0 10px rgba(255,255,255,.8);
  border-radius: 6px;
}

/* Eingabefeld Suche */
.map-search { margin-top:8px; z-index:99;}
.map-search-input {
  width: 100px; padding:6px 8px; border-radius:6px; border:1px solid #333;
  background:#111; color:#fff; font-size:14px;
}
/* Supply-Icons mit Kreis und Abstand */
img.leaflet-marker-icon[src$="/assets/icons/supply.webp"] {
  background: rgba(0,0,0,0.4);  /* dunkler Hintergrund */
  border: 2px solid #b01818;    /* roter Kreis */
  border-radius: 50%;           /* rund */
  padding: 4px;                 /* Abstand zwischen Icon und Kreis */
  box-sizing: content-box;      /* verhindert Verkleinerung des Icons */
}
img.leaflet-marker-icon[src$="/assets/icons/cash.webp"] {
  background: rgba(0,0,0,0.4);  /* dunkler Hintergrund */
  border: 2px solid rgb(218, 165, 32);    /* roter Kreis */
  border-radius: 50%;           /* rund */
  padding: 4px;                 /* Abstand zwischen Icon und Kreis */
  box-sizing: content-box;      /* verhindert Verkleinerung des Icons */
}
.leaflet-marker-icon[src*="supply.webp"] {
  opacity: 0.3;
  transition: opacity 0.2s ease;

}
.leaflet-marker-icon[src*="cash.webp"] {
  opacity: 0.3;
  transition: opacity 0.2s ease;

}
.leaflet-marker-icon[src*="supply.webp"]:hover {
  opacity: 1;
}
.leaflet-marker-icon[src*="cash.webp"]:hover {
  opacity: 1;
}
.leaflet-image-layer.blood-overlay {
  object-fit: cover;
  width: 100% !important;
  height: 100% !important;
}
#map { position: relative; } /* wichtig */
.blood-overlay {
  position: absolute;
  inset: 0;                 /* top/right/bottom/left = 0 */
  width: 100%;
  height: 100%;
  object-fit: cover;        /* „cover“-Effekt */
  opacity: 0.2;
  pointer-events: none;     /* Klicks gehen an die Karte */
  z-index: 550;             /* über overlayPane (400), unter markerPane (600) */
}
.screenshot-tooltip {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #333;
    padding: 4px;
    border-radius: 6px;
}
.screenshot-tooltip .cash-shot img {
    display: block;
    width: 220px; /* gewünschte Breite */
    max-height: 160px;
    object-fit: cover;
    border-radius: 4px;
}
/* „Popup“-Look für Tooltip */
.leaflet-tooltip.cash-tooltip {
  background: #111;           /* dunkler Rahmenhintergrund */
  border: 0;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

/* Innerer Container mit weißem Panel */
.cash-tooltip .cash-tooltip-inner {
  background: #fff;
  border-radius: 10px;
  padding: 6px;
}

/* Bild responsiv begrenzen */
.cash-tooltip .cash-tooltip-inner img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(360px, 80vw);
  max-height: min(240px, 60vh);
  border-radius: 8px;
}

/* Pfeil des Tooltips unauffällig halten */
.leaflet-tooltip.cash-tooltip:before {
  border-top-color: #111;   /* wird vom Leaflet-Theme genutzt; farblich angepasst */
}
/* Rahmen des "Popups" (Tooltip) */
.leaflet-tooltip.cash-tooltip {
  background: transparent;
  border: 0;
  padding: 6px;
}
.cash-tooltip .cash-tooltip-inner {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.cash-tooltip .cash-tooltip-inner img {
  display: block;
  max-width: min(360px, 80vw);
  max-height: min(240px, 60vh);
  border-radius: 8px;
}

/* Pfeil einfärben (Leaflet zeichnet den abhängig von direction) */
.leaflet-tooltip.cash-tooltip:before { 
  border-top-color: #111; /* für top/bottom passt Leaflet automatisch die Seite an */
}
/* Modal muss oberste Ebene sein */
.hm-modal { position: fixed; inset: 0; z-index: 999999; }

/* Backdrop und Panel jeweils fixed + volle Fläche */
.hm-modal__backdrop { position: fixed; inset: 0; }
.hm-modal__panel    { position: fixed; inset: 0; width:100vw; height:100vh; overflow: hidden; }

/* Body-Scroll sperren wenn offen */
body.hm-scrolllock { overflow: hidden !important; }
.privacy-nav {
  z-index: 2147483647 !important;
}
.terms-nav {
  z-index: 2147483647 !important;
}
.mapsidebar {
	  background-color: #232627;
  color: #fefefe;
  border: none;
  border-radius: 99px;
  box-shadow: none;
  font-style: normal;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 150%; /* 21px */
  white-space: nowrap;
}
#lang-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  cursor: pointer;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
#lang-fab svg { width: 100%; height: 100%; display: block; border-radius: 50%; }

#lang-fab:active {
  transform: translateY(1px);
}
