/* Cookie-Einwilligung – Optik wie der bisherige Borlabs-Dialog */
#hb-consent {
  --hbc-accept: #ad1f5f;
  --hbc-accept-hover: #961553;
  --hbc-secondary: #d07fa4;
  --hbc-secondary-hover: #d15e91;
  --hbc-text: #555;
  --hbc-link: #28a745;
  --hbc-muted: #aaa;
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 999999;
  padding: 0 8px;
  font-size: 14px;
  color: var(--hbc-text);
}
#hb-consent, #hb-consent h2, #hb-consent p, #hb-consent .hbc-btn {
  font-family: var(--body_typography-font-family, "Work Sans"), Arial, Helvetica, sans-serif;
}
#hb-consent.hbc-open { display: block; animation: hbc-in .6s ease-out; }
@keyframes hbc-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

#hb-consent .hbc-box {
  position: relative;
  display: flex;
  gap: 24px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px 24px 12px;
  background: #fff;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25), 0 0 20px rgba(0,0,0,.12);
}
#hb-consent .hbc-main { flex: 1 1 auto; min-width: 0; }
#hb-consent .hbc-buttons {
  flex: 0 0 344px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 89px;
}
#hb-consent .hbc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--hbc-text); }
#hb-consent .hbc-head img { width: 150px; height: auto; }
#hb-consent h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--hbc-text); letter-spacing: 0; }
#hb-consent .hbc-text { padding: 16px 0 4px; border-bottom: 1px solid var(--hbc-text); }
#hb-consent p { margin: 0 0 10px; font-size: 13px; line-height: 1.4; color: var(--hbc-text); }
#hb-consent .hbc-text a { color: var(--hbc-link); font-weight: 700; text-decoration: underline; }
#hb-consent .hbc-usa { padding: 10px 0 10px; margin: 0; border-bottom: 1px solid var(--hbc-link); font-size: 12px; line-height: 1.3; }

#hb-consent .hbc-checks { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 12px 24px; padding: 16px 0; }
#hb-consent .hbc-check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--hbc-text); margin: 0; }
#hb-consent .hbc-check input {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin: 0;
  border: 2px solid #999; border-radius: 4px; background: #fff;
  display: grid; place-content: center; cursor: pointer;
}
#hb-consent .hbc-check input::after { content: ''; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); opacity: 0; }
#hb-consent .hbc-check input:checked { background: #28a745; border-color: #28a745; }
#hb-consent .hbc-check input:checked::after { opacity: 1; }
#hb-consent .hbc-check input:disabled { background: #e6e6e6; border-color: #e6e6e6; cursor: default; }
#hb-consent .hbc-check input:disabled::after { border-color: #999; opacity: 1; }

#hb-consent .hbc-details { padding: 0 0 12px; }
#hb-consent .hbc-group { background: #f7f7f7; padding: 12px 16px; margin-bottom: 8px; }
#hb-consent .hbc-group strong { font-size: 14px; color: var(--hbc-text); }
#hb-consent .hbc-group p { margin: 4px 0 6px; font-size: 12px; }
#hb-consent .hbc-group ul { margin: 0; padding: 0; list-style: none; }
#hb-consent .hbc-group li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-top: 1px solid #e6e6e6; font-size: 12px; }
#hb-consent .hbc-group small { color: #888; text-align: right; }

#hb-consent .hbc-links { display: flex; justify-content: space-around; padding: 8px 0 4px; }
#hb-consent .hbc-links a { color: var(--hbc-muted); font-size: 12px; text-decoration: none; }
#hb-consent .hbc-links a:hover { text-decoration: underline; }

#hb-consent .hbc-btn {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 14px 16px;
  border-radius: 4px;
  background: var(--hbc-secondary);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s;
}
#hb-consent .hbc-btn:hover { background: var(--hbc-secondary-hover); }
#hb-consent .hbc-btn.hbc-primary { background: var(--hbc-accept); }
#hb-consent .hbc-btn.hbc-primary:hover { background: var(--hbc-accept-hover); }
#hb-consent .hbc-btn:focus-visible { outline: 2px solid var(--hbc-accept); outline-offset: 2px; }

#hb-consent .hbc-close {
  all: unset;
  position: absolute; top: 12px; right: 16px;
  width: 24px; height: 24px; line-height: 24px; text-align: center;
  color: #0063e3; font-size: 14px; cursor: pointer;
}

@media (max-width: 900px) {
  #hb-consent .hbc-box { flex-direction: column; gap: 8px; padding: 20px 16px 8px; }
  #hb-consent .hbc-buttons { flex: none; padding: 8px 0; order: 2; position: sticky; bottom: -8px; background: #fff; }
  #hb-consent .hbc-main { display: contents; }
  #hb-consent .hbc-head, #hb-consent .hbc-text, #hb-consent .hbc-usa, #hb-consent .hbc-checks, #hb-consent .hbc-details { order: 1; }
  #hb-consent .hbc-links { order: 3; }
  #hb-consent .hbc-head img { width: 110px; }
  #hb-consent h2 { font-size: 17px; }
  #hb-consent .hbc-checks { justify-content: flex-start; }
}

/* Button unten links zum erneuten Öffnen */
#hb-consent-widget {
  all: unset;
  position: fixed; left: 19px; bottom: 20px; z-index: 999998;
  width: 34px; height: 34px;
  background: #ad1f5f; cursor: pointer;
  -webkit-mask: url(cookie-widget.svg) center / contain no-repeat;
  mask: url(cookie-widget.svg) center / contain no-repeat;
  transition: transform .2s;
}
#hb-consent-widget:hover { transform: rotate(45deg); }
#hb-consent-widget:focus-visible { outline: 2px solid #ad1f5f; outline-offset: 4px; }

/* "Mehr Informationen" in Platzhaltern: Anbieterinfos gibt es im Dialog unter "Cookie-Details" */
.brlbs-cmpnt-cb-provider-toggle { display: none !important; }
