/* Layout */
#bk-wrapper{
  display:grid;
  grid-template-columns: minmax(300px, 2fr) minmax(260px, 1fr);
  gap:16px;
  align-items:start;
}
#beratungskarte{ width:100%; height:70vh; min-height:420px; border-radius:14px; overflow:hidden; border:1px solid #e5e7eb; }

#beratungssidebar{ background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:14px; }
#beratungssidebar .bk-hinweis{ font-size:12px; color:#6b7280; margin:4px 0 8px; }

/* Buttons */
#beratungssidebar button{
  background-color:#98c935;
  color:#000;
  font-size:14px;
  margin-bottom:8px;
  padding:12px 12px;
  width:100%;
  text-transform:uppercase;
  font-weight:600;
  border:none;
  border-radius:0px;
  transition: transform .06s ease, filter .12s ease, box-shadow .12s ease;
  box-shadow:0 1px 0 rgba(0,0,0,.02), 0 1px 2px rgba(0,0,0,.02);
}
#beratungssidebar button:hover{
  filter: brightness(1.05);
	color: #fff;
  transform: translateY(-1px);
  box-shadow:0 4px 10px rgba(0,0,0,.04);
}
#beratungssidebar button:active{
  transform: translateY(0);
}
/* Widerruf-Button */
#beratungssidebar .bk-consent-tools { margin-top: 8px; }
#beratungssidebar .bk-revoke{
  background:#98c935;
  color:#111;
  text-transform:none !important;
  font-weight:600;
  border:1px solid #e5e7eb;
  border-radius:0px;
  padding:10px 12px;
}
#beratungssidebar .bk-revoke:hover{
  filter:brightness(1.03);
}
/* Single-Map: Widerrufen-Button */
.bk-single-revoke-wrap{
  margin-top: 8px;
  text-align: right;
}

.bk-single-revoke{
  appearance: none;
  background: #98c935;
  color: #111;
  border: 1px solid #e5e7eb;
  border-radius: 0px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .06s ease, filter .12s ease, box-shadow .12s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 1px 2px rgba(0,0,0,.02);
}

/* Hover/Active/Fokus wie bei den anderen Buttons */
.bk-single-revoke:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
}
.bk-single-revoke:active{
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.bk-single-revoke:focus-visible{
  outline: 2px solid #1f2937;
  outline-offset: 2px;
}


/* Ergebnisliste */
.bk-results{ margin-top:10px; }
.bk-results h4{ margin:0 0 8px; }
#bk-list{ list-style:none; margin:0; padding:0; }
#bk-list .bk-item{
  display:grid;
  grid-template-columns: 56px 1fr;
  gap:10px;
  padding:10px;
  border-radius:10px;
  border:1px solid #f3f4f6;
  margin-bottom:8px;
  transition: background .12s ease, transform .06s ease, box-shadow .12s ease;
  cursor:pointer;
}
#bk-list .bk-item:hover{
  background:#f9fafb;
  transform: translateX(1px);
  box-shadow:0 1px 4px rgba(0,0,0,.05);
}
.bk-logo{ width:56px; height:56px; object-fit:contain; border-radius:8px; background:#f3f4f6; }
.bk-col{ display:flex; flex-direction:column; }
.bk-title{ font-weight:700; margin-bottom:2px; }
.bk-meta a{ color:#2563eb; text-decoration:none; }
.bk-meta a:hover{ text-decoration:underline; }

/* Infofeld */
.bk-info{
  font-size:13px;
  background:#f1f5f9;
  color:#334155;
  border:1px solid #e2e8f0;
  padding:8px 10px;
  border-radius:8px;
  margin:8px 0 10px;
}
#beratungssidebar input[type="text"] {
  width: 93%;
	font-size: 14px;
	font-weight: 600;
  margin-bottom: 8px;
  padding: 10px 10px;
}

#beratungssidebar .bk-input-row { display:flex; gap:6px; align-items:stretch; }
#beratungssidebar .bk-input-row input { flex:1; }

/* User-Marker (blauer Punkt) */
.bk-user-marker{
  width:12px;height:12px;border-radius:50%;
  background:#0a74ff;
  box-shadow:0 0 0 3px rgba(10,116,255,.25), 0 2px 6px rgba(0,0,0,.35);
  pointer-events:auto;
  cursor:grab;
}
.bk-user-marker:active{ cursor:grabbing; }
/* ===== Geolocation Modal ===== */
#bk-geo-overlay{
  position: fixed;
  inset: 0;
  display: none;            /* per JS auf block */
  align-items: center;
  justify-content: center;
  background: rgba(17,24,39,.48); /* dunkler Overlay */
  z-index: 9999;
}

#bk-geo-overlay .bk-geo-modal{
  width: min(520px, calc(100vw - 32px));
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(0,0,0,.22), 0 8px 16px rgba(0,0,0,.12);
  padding: 16px 18px;
}

.bk-geo-title{
  font-weight: 700;
  font-size: 18px;
  margin: 2px 0 8px;
  color: #111827;
}

.bk-geo-text{
  font-size: 14px;
  color: #374151;
  line-height: 1.45;
}

.bk-geo-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.bk-geo-spinner{
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  border-top-color: #98c935;      /* grün passend zu Buttons */
  animation: bkspin .7s linear infinite;
}

@keyframes bkspin { to { transform: rotate(360deg); } }

.bk-geo-actions{
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

.bk-btn{
  appearance: none;
  border: none;
  border-radius: 0px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}
.bk-btn-primary{
  background: #98c935;
  color: #000;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 1px 2px rgba(0,0,0,.02);
}
.bk-btn-primary:hover{ filter: brightness(1.06); }
.bk-btn-ghost{
  background: #f3f4f6;
  color: #111827;
}
.bk-btn-ghost:hover{ filter: brightness(1.02); }

/* Responsive */
@media (max-width: 900px){
  #bk-wrapper{ grid-template-columns: 1fr; }
  #beratungssidebar{ order: -1; }
}
/* ===== Consent-Gate im Kartenbereich ===== */
#beratungskarte { position: relative; }

#beratungskarte .bk-consent-wrap{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(17,24,39,.45); /* dunkler Overlay */
  z-index: 10;
}

#beratungskarte .bk-consent-box{
  width:min(560px, calc(100% - 32px));
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:16px 18px;
  box-shadow:0 20px 50px rgba(0,0,0,.22), 0 8px 16px rgba(0,0,0,.12);
  text-align:left;
}

#beratungskarte .bk-consent-title{
  font-weight:700; font-size:18px; margin:2px 0 8px; color:#111827;
}
#beratungskarte .bk-consent-text{
  font-size:14px; color:#374151; line-height:1.45;
}
#beratungskarte .bk-consent-actions{
  display:flex; gap:8px; justify-content:flex-end; margin-top:14px;
}

#beratungskarte .bk-btn{
  appearance:none; border:none; border-radius:0px; padding:10px 14px;
  font-weight:600; cursor:pointer;
}
#beratungskarte .bk-btn-primary{
  background:#98c935; color:#000;
  box-shadow:0 1px 0 rgba(0,0,0,.02), 0 1px 2px rgba(0,0,0,.02);
}
#beratungskarte .bk-btn-primary:hover{ filter:brightness(1.06); }
#beratungskarte .bk-btn-ghost{
  background:#f3f4f6; color:#111827;
}
#beratungskarte .bk-btn-ghost:hover{ filter:brightness(1.02); }
/* Logo-Marker (MapLibre) */
.bk-marker-logo{
  --bk-marker-ring: #98c935;                /* Fallback-Ringfarbe */
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #fff;
  border: 3px solid var(--bk-marker-ring);
  box-shadow: 0 2px 6px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.08);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .08s ease, box-shadow .12s ease;
}

/* kleiner „Pointer“ unten */
.bk-marker-logo::after{
  content:"";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--bk-marker-ring);
}

.bk-marker-logo img{
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bk-marker-initial{
  font: 700 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #111;
}

.bk-marker-logo:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.18), 0 3px 8px rgba(0,0,0,.10);
}
