.em-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12000;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface-elevated, #fff);
  border-top: 1px solid var(--border, #d0d7de);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.12);
}

.em-consent-banner[hidden] {
  display: none !important;
}

.em-consent-banner__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .em-consent-banner__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem 1.25rem;
  }
}

.em-consent-banner__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-secondary, #475569);
}

.em-consent-banner__text a {
  color: inherit;
}

.em-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.em-consent-banner__btn {
  flex: 1 1 8rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border, #cbd5e1);
  background: var(--surface, #fff);
  color: var(--text, #0f172a);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.em-consent-settings {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
}

@media (max-width: 640px) {
  .em-consent-banner__actions {
    flex-direction: column;
  }

  .em-consent-banner__btn {
    width: 100%;
  }
}

html.has-consent-banner body {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

/* Sticky bottom CTA (home/trust) covers the footer bar. Keep Cookie-Einstellungen above it. */
.site-footer.em-footer {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}
