/* Benjamin – lokale Einwilligungsverwaltung */
#bc-consent-root,
#bc-consent-root * { box-sizing: border-box; }

#bc-consent-root {
  --bc-forest: #062e1d;
  --bc-forest-soft: #0d432c;
  --bc-leaf: #69bc45;
  --bc-leaf-light: #98df68;
  --bc-cream: #f7f3e8;
  --bc-sand: #e9e2d1;
  --bc-ink: #10291f;
  --bc-muted: #53665e;
  --bc-white: #fff;
  position: relative;
  z-index: 2147483000;
  color: var(--bc-ink);
  font-family: inherit;
}

#bc-consent-root [hidden] { display: none !important; }
.bc-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.bc-consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(6, 46, 29, .14);
  border-radius: 22px;
  background: var(--bc-cream);
  box-shadow: 0 22px 70px rgba(4, 29, 18, .28);
  isolation: isolate;
  animation: bc-consent-in .42s cubic-bezier(.2, .8, .2, 1) both;
}

.bc-consent-banner::before {
  position: absolute;
  z-index: -1;
  top: -85px;
  right: -58px;
  width: 250px;
  height: 250px;
  border: 54px solid rgba(105, 188, 69, .12);
  border-radius: 50%;
  content: "";
}

.bc-consent-copy { max-width: 690px; }
.bc-consent-kicker {
  margin: 0 0 8px;
  color: var(--bc-forest-soft);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.bc-consent-title {
  margin: 0;
  color: var(--bc-forest);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.bc-consent-text {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--bc-muted);
  font-size: .98rem;
  line-height: 1.62;
}
.bc-consent-text a {
  color: var(--bc-forest);
  font-weight: 750;
  text-underline-offset: 3px;
}

.bc-consent-actions {
  display: grid;
  min-width: min(100%, 270px);
  gap: 9px;
}
.bc-consent-button,
.bc-settings-link {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .91rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.bc-consent-button:hover,
.bc-settings-link:hover { transform: translateY(-2px); }
.bc-consent-button:focus-visible,
.bc-settings-link:focus-visible,
.bc-switch input:focus-visible + span,
.bc-dialog-close:focus-visible {
  outline: 3px solid rgba(105, 188, 69, .48);
  outline-offset: 3px;
}
.bc-button-primary {
  border-color: var(--bc-forest);
  background: var(--bc-forest);
  color: var(--bc-white);
}
.bc-button-primary:hover { background: var(--bc-forest-soft); }
.bc-button-secondary {
  border-color: rgba(6, 46, 29, .32);
  background: transparent;
  color: var(--bc-forest);
}
.bc-button-secondary:hover { border-color: var(--bc-forest); background: rgba(255,255,255,.46); }
.bc-button-quiet {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--bc-forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bc-consent-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(2, 20, 12, .72);
  backdrop-filter: blur(6px);
  animation: bc-fade-in .24s ease both;
}
.bc-consent-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(820px, calc(100dvh - 40px));
  padding: clamp(24px, 4vw, 40px);
  overflow-y: auto;
  border-radius: 24px;
  background: var(--bc-cream);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .35);
}
.bc-dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(6, 46, 29, .16);
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  color: var(--bc-forest);
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}
.bc-dialog-intro { margin: 12px 48px 24px 0; color: var(--bc-muted); line-height: 1.62; }
.bc-preference-list { display: grid; gap: 12px; }
.bc-preference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(6, 46, 29, .13);
  border-radius: 16px;
  background: rgba(255,255,255,.42);
}
.bc-preference h3 { margin: 0 0 5px; color: var(--bc-forest); font-size: 1rem; }
.bc-preference p { margin: 0; color: var(--bc-muted); font-size: .88rem; line-height: 1.5; }
.bc-essential-label { color: var(--bc-forest-soft); font-size: .79rem; font-weight: 850; white-space: nowrap; }
.bc-switch { position: relative; display: inline-flex; }
.bc-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bc-switch span {
  position: relative;
  display: block;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #b9c0bb;
  cursor: pointer;
  transition: background-color .2s ease;
}
.bc-switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 7px rgba(0,0,0,.18);
  content: "";
  transition: transform .2s ease;
}
.bc-switch input:checked + span { background: var(--bc-leaf); }
.bc-switch input:checked + span::after { transform: translateX(22px); }
.bc-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.bc-dialog-actions .bc-consent-button { flex: 1 1 170px; padding: 0 20px; }
.bc-consent-note { margin: 18px 0 0; color: var(--bc-muted); font-size: .78rem; line-height: 1.5; }
body.bc-consent-locked { overflow: hidden; }

.bc-settings-link {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-weight: inherit;
}
.bc-settings-link:hover { transform: none; }

@keyframes bc-consent-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bc-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 620px) {
  .bc-consent-banner {
    right: 10px;
    bottom: 76px;
    left: 10px;
    grid-template-columns: 1fr;
    gap: 20px;
    width: auto;
    padding: 22px;
    border-radius: 18px;
  }
  .bc-consent-actions { grid-template-columns: 1fr 1fr; min-width: 0; }
  .bc-consent-actions [data-bc-settings] { grid-column: 1 / -1; }
  .bc-consent-text { font-size: .91rem; }
  .bc-consent-dialog { padding: 24px 18px; border-radius: 18px; }
  .bc-dialog-close { top: 12px; right: 12px; }
  .bc-preference { padding: 16px; gap: 12px; }
}

@media (max-width: 430px) {
  .bc-consent-banner { bottom: 72px; }
  .bc-consent-actions { grid-template-columns: 1fr; }
  .bc-consent-actions [data-bc-settings] { grid-column: auto; }
  .bc-preference { grid-template-columns: 1fr; }
  .bc-switch { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-consent-banner,
  .bc-consent-backdrop { animation: none; }
  .bc-consent-button,
  .bc-settings-link,
  .bc-switch span,
  .bc-switch span::after { transition: none; }
}