#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid rgba(47,60,77,0.12);
  box-shadow: 0 -12px 32px -16px rgba(47,60,77,0.25);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
  padding: max(16px, env(safe-area-inset-bottom)) 16px 16px;
}
#cookie-consent-banner.in { transform: translateY(0); }
#cookie-consent-banner .cc-inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
}
#cookie-consent-banner .cc-text {
  flex: 1 1 320px;
  color: #606062; font-size: 13.5px; line-height: 1.6;
}
#cookie-consent-banner .cc-text a { color: #405167; text-decoration: underline; }
#cookie-consent-banner .cc-actions {
  display: flex; gap: 10px; flex-shrink: 0; margin-left: auto;
}
#cookie-consent-banner .cc-btn {
  font-size: 13.5px; font-weight: 600; padding: 11px 20px; border-radius: 999px;
  cursor: pointer; white-space: nowrap; transition: transform .2s ease, background .2s ease;
}
#cookie-consent-banner .cc-btn:hover { transform: translateY(-1px); }
#cookie-consent-banner .cc-btn-primary { background: #405167; color: #fff; border: none; }
#cookie-consent-banner .cc-btn-primary:hover { background: #2f3c4d; }
#cookie-consent-banner .cc-btn-ghost { background: transparent; color: #2f3c4d; border: 1px solid rgba(47,60,77,0.2); }
#cookie-consent-banner .cc-btn-ghost:hover { background: #f4f5f6; }

@media (max-width: 640px) {
  #cookie-consent-banner .cc-actions { width: 100%; margin-left: 0; }
  #cookie-consent-banner .cc-btn { flex: 1; text-align: center; }
}

/* Solange der Banner offen ist, blockieren die fest positionierten
   Mobile-Elemente (Sticky-CTA-Leiste, Termin-Widget, Nach-oben-Pfeil,
   Kontakt-Tab) sonst unsichtbar den Klickbereich des Banners. */
@media (max-width: 1023px) {
  body.cc-banner-visible .lg\:hidden.fixed.bottom-0,
  body.cc-banner-visible .fly-widget,
  body.cc-banner-visible #totop-btn,
  body.cc-banner-visible #announce-widget {
    display: none !important;
  }
}
