/* STARTPLATZ Consent-Banner (B-1276) — framework-agnostisch (WP + Symfony) */

.sp-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 2147483000;
  display: none;
  padding: 16px;
  background: rgba(20, 20, 28, 0.55);
  backdrop-filter: saturate(140%) blur(2px);
}
.sp-consent--open { display: block; }

.sp-consent__box {
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  padding: 22px 24px;
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #232430;
}

.sp-consent__title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}
.sp-consent__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4a4c58;
}
.sp-consent__text a { color: #9535ff; text-decoration: underline; }

/* Kategorien: erst im Einstellungen-Modus sichtbar */
.sp-consent__options { display: none; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.sp-consent--settings .sp-consent__options { display: flex; }
.sp-consent__opt {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #232430; cursor: pointer;
}
.sp-consent__opt input { width: 16px; height: 16px; accent-color: #9535ff; }
.sp-consent__opt--locked { color: #8a8c98; cursor: default; }
.sp-consent__opt--locked span { font-weight: 400; font-size: 12px; }

.sp-consent__actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
  justify-content: flex-end; align-items: center;
}
.sp-consent__btn {
  appearance: none; border: 0; border-radius: 10px; cursor: pointer;
  padding: 11px 18px; font-size: 14px; font-weight: 700; line-height: 1;
  font-family: inherit; transition: background .15s, color .15s, border-color .15s;
}
/* Ablehnen und Akzeptieren gleich prominent (DSGVO) */
.sp-consent__btn--ghost { background: #f1f1f5; color: #232430; }
.sp-consent__btn--ghost:hover { background: #e5e5ec; }
.sp-consent__btn--primary { background: #9535ff; color: #fff; }
.sp-consent__btn--primary:hover { background: #7c2ccc; }
.sp-consent__btn--save { display: none; }
.sp-consent--settings .sp-consent__btn--save { display: inline-block; }
.sp-consent--settings .sp-consent__btn--settings { display: none; }

/* Widerruf-Wiederaufruf, dezent */
.sp-consent-reopen {
  position: fixed; left: 14px; bottom: 14px; z-index: 2147482000;
  appearance: none; border: 1px solid rgba(0,0,0,.12); border-radius: 999px;
  background: rgba(255,255,255,.92); color: #4a4c58; cursor: pointer;
  padding: 7px 13px; font-size: 12.5px; font-weight: 600;
  font-family: "Source Sans Pro", sans-serif; box-shadow: 0 3px 12px rgba(0,0,0,.12);
  opacity: .72; transition: opacity .15s;
}
.sp-consent-reopen:hover { opacity: 1; }

@media (max-width: 600px) {
  .sp-consent { padding: 0; }
  .sp-consent__box { border-radius: 14px 14px 0 0; padding: 18px 16px; }
  .sp-consent__actions { justify-content: stretch; }
  .sp-consent__btn { flex: 1 1 auto; text-align: center; }
}
