/* =====================================================
   samoLabs Cookie-Consent (Modal mit Backdrop + Card)
   Match zum JS in /js/cookie-consent.js (sl-cb-*-Klassen).
   Vorherige sr-cb-*-Klassen waren veraltet (Rebrand).
   ===================================================== */

#sl-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 12px;
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: hsl(214, 20%, 18%);
  pointer-events: none; /* Container blockt nicht; Card aktiviert eigene Events */
}

.sl-cb-backdrop {
  display: none; /* nicht-blockierende Bottom-Variante */
}

.sl-cb-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15), 0 -1px 4px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 22px 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-top: 3px solid hsl(152, 60%, 38%);
  animation: sl-cb-rise 0.22s ease-out;
  pointer-events: auto;
}

@keyframes sl-cb-rise {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.sl-cb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sl-cb-icon {
  color: hsl(152, 60%, 38%);
  display: flex;
  align-items: center;
}

.sl-cb-head h2 {
  font-size: 17px;
  font-weight: 700;
  color: hsl(214, 35%, 12%);
  margin: 0;
  letter-spacing: -0.01em;
}

.sl-cb-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: hsl(214, 14%, 38%);
}

/* Aktions-Buttons */
.sl-cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.sl-cb-btn {
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
}

.sl-cb-btn-ico {
  display: inline-flex;
  align-items: center;
}

.sl-cb-primary {
  background: hsl(152, 60%, 38%);
  color: #ffffff;
  border-color: hsl(152, 60%, 38%);
}
.sl-cb-primary:hover {
  background: hsl(152, 60%, 30%);
  border-color: hsl(152, 60%, 30%);
}

.sl-cb-outline {
  color: hsl(152, 60%, 38%);
  border-color: hsl(152, 60%, 38%);
}
.sl-cb-outline:hover {
  background: hsl(152, 50%, 96%);
}

.sl-cb-ghost {
  color: hsl(214, 12%, 50%);
  border-color: hsl(214, 20%, 82%);
}
.sl-cb-ghost:hover {
  background: hsl(214, 20%, 96%);
  color: hsl(214, 20%, 30%);
  border-color: hsl(214, 20%, 65%);
}

/* Detail-Panel (Einstellungen, ausklappbar) */
.sl-cb-panel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid hsl(214, 20%, 90%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sl-cb-panel[hidden] { display: none; }

.sl-cb-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 8px 10px;
  border-radius: 8px;
  background: hsl(214, 20%, 98%);
  border: 1px solid hsl(214, 20%, 92%);
}

.sl-cb-toggle.is-required {
  background: hsl(152, 30%, 97%);
  border-color: hsl(152, 30%, 90%);
  cursor: default;
}

.sl-cb-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: hsl(152, 60%, 38%);
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.sl-cb-toggle input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sl-cb-toggle-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sl-cb-toggle-title {
  font-size: 14px;
  font-weight: 600;
  color: hsl(214, 25%, 22%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sl-cb-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(152, 60%, 30%);
  background: hsl(152, 50%, 92%);
  padding: 2px 6px;
  border-radius: 4px;
}

.sl-cb-toggle-hint {
  font-size: 12px;
  color: hsl(214, 12%, 50%);
  line-height: 1.4;
}

.sl-cb-panel-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.sl-cb-save {
  /* Erbt sl-cb-btn + sl-cb-primary, kleiner Override fuer Spacing */
  padding: 9px 20px;
}

/* Footer-Links */
.sl-cb-foot {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid hsl(214, 20%, 94%);
  font-size: 12px;
  color: hsl(214, 12%, 55%);
  text-align: center;
}

.sl-cb-foot a {
  color: hsl(152, 60%, 38%);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sl-cb-foot a:hover {
  color: hsl(152, 60%, 28%);
}

/* Mobile */
@media (max-width: 600px) {
  #sl-cookie-banner {
    padding: 0;
    align-items: flex-end;
  }
  .sl-cb-card {
    border-radius: 12px 12px 0 0;
    max-width: 100%;
    padding: 18px 18px 16px;
    max-height: 90vh;
  }
  .sl-cb-actions {
    flex-direction: column;
  }
  .sl-cb-btn {
    width: 100%;
    justify-content: center;
  }
}
