/* Cookie Banner — DSGVO-konform, mobile-first, eigenes Markenfarbschema (Bambu-Grün) */
.bc-cookie-banner,
.bc-cookie-banner *,
.bc-cookie-modal,
.bc-cookie-modal * {
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --- Banner (Bottom-Slide-In) --- */
.bc-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99000;
  background: #ffffff;
  color: #100f0d;
  padding: 1.25rem 1rem calc(1rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px -10px rgba(16, 15, 13, 0.18);
  border-top: 1px solid #e6e5e1;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: none;
}
.bc-cookie-banner.is-open {
  display: block;
  transform: translateY(0);
}

.bc-cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 1100px;
  margin: 0 auto;
}

.bc-cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #2a2926;
  margin: 0;
}
.bc-cookie-banner__text strong {
  color: #100f0d;
  font-weight: 600;
}
.bc-cookie-banner__text a {
  color: #2f7548;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bc-cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bc-cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
  min-height: 44px;  /* touch target */
}
.bc-cookie-btn:focus-visible {
  outline: 3px solid #429760;
  outline-offset: 2px;
}
.bc-cookie-btn--primary {
  background: #100f0d;
  color: #fff;
}
.bc-cookie-btn--primary:hover { background: #2f7548; }

.bc-cookie-btn--secondary {
  background: #ffffff;
  color: #100f0d;
  border-color: #d6d5d0;
}
.bc-cookie-btn--secondary:hover { border-color: #429760; color: #2f7548; }

.bc-cookie-btn--ghost {
  background: transparent;
  color: #2a2926;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bc-cookie-btn--ghost:hover { color: #2f7548; }

/* Tablet / Desktop layout */
@media (min-width: 640px) {
  .bc-cookie-banner { padding: 1.5rem 2rem; }
  .bc-cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  .bc-cookie-banner__text { flex: 1; }
  .bc-cookie-banner__actions {
    flex-direction: row;
    gap: 0.5rem;
    flex-shrink: 0;
  }
}

/* --- Modal (Detail-Einstellungen) --- */
.bc-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 99100;
  background: rgba(16, 15, 13, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.bc-cookie-modal.is-open {
  display: flex;
  animation: bcFadeIn 0.2s ease;
}
@keyframes bcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.bc-cookie-modal__panel {
  background: #ffffff;
  width: 100%;
  max-width: 560px;
  border-radius: 1rem 1rem 0 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: bcSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes bcSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.bc-cookie-modal__head {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.bc-cookie-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #100f0d;
}
.bc-cookie-modal__close {
  appearance: none;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  color: #6b6a66;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem 0 0;
  min-width: 44px;
  min-height: 44px;
}
.bc-cookie-modal__body {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.bc-cookie-modal__desc {
  font-size: 0.875rem;
  color: #2a2926;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.bc-cookie-cat {
  border: 1px solid #e6e5e1;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}
.bc-cookie-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.bc-cookie-cat__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #100f0d;
  margin: 0;
}
.bc-cookie-cat__desc {
  font-size: 0.8125rem;
  color: #6b6a66;
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

/* Switch toggle */
.bc-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.bc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.bc-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d6d5d0;
  transition: 0.25s;
  border-radius: 999px;
}
.bc-switch__slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: 0.25s;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.bc-switch input:checked + .bc-switch__slider {
  background: #429760;
}
.bc-switch input:checked + .bc-switch__slider::before {
  transform: translateX(20px);
}
.bc-switch input:disabled + .bc-switch__slider {
  background: #429760;
  opacity: 0.55;
  cursor: not-allowed;
}
.bc-switch input:focus-visible + .bc-switch__slider {
  outline: 3px solid #429760;
  outline-offset: 3px;
}

.bc-cookie-modal__foot {
  padding: 1rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid #e6e5e1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #faf9f5;
  border-radius: 0 0 0 0;
}
@media (min-width: 640px) {
  .bc-cookie-modal { align-items: center; padding: 1.5rem; }
  .bc-cookie-modal__panel { border-radius: 1rem; max-height: 85vh; }
  .bc-cookie-modal__foot { flex-direction: row; justify-content: flex-end; }
  .bc-cookie-modal__foot .bc-cookie-btn { flex: 0 0 auto; }
}

/* Floating settings re-open button (Footer-Link uses this class) */
.bc-cookie-reopen {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 90000;
  background: #ffffff;
  color: #100f0d;
  border: 1px solid #d6d5d0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: none;  /* hidden by default - banner shows itself instead */
  font-family: inherit;
}
.bc-cookie-reopen:hover { border-color: #429760; color: #2f7548; }
