/**
 * LayerPulse CookieBanner – Styles.
 * Akzentfarbe über --lp-cookie-accent (vom Plugin gesetzt, fällt auf Theme-Var zurück).
 */
.lp-cookie {
  --acc: var(--lp-cookie-accent, var(--accent-mid, #B45309));
  position: fixed;
  z-index: 99999;
  box-sizing: border-box;
  color: var(--primary, #1C1917);
  font-family: inherit;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease;
}
.lp-cookie * { box-sizing: border-box; }
.lp-cookie.is-visible { opacity: 1; transform: translateY(0); }
.lp-cookie[hidden] { display: none; }

/* Kasten unten links */
.lp-cookie--box {
  left: 20px;
  bottom: 20px;
  width: min(420px, calc(100vw - 40px));
}
.lp-cookie--box .lp-cookie__inner {
  background: #fff;
  border: 1px solid rgba(28, 25, 23, .12);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
  padding: 22px;
}

/* Leiste über die volle Breite */
.lp-cookie--bar {
  left: 0; right: 0; bottom: 0;
  width: 100%;
}
.lp-cookie--bar .lp-cookie__inner {
  background: #fff;
  border-top: 1px solid rgba(28, 25, 23, .12);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .10);
  padding: 20px clamp(16px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  max-width: 1400px;
  margin: 0 auto;
}
.lp-cookie--bar .lp-cookie__main { flex: 1 1 420px; }
.lp-cookie--bar .lp-cookie__prefs { flex: 1 1 100%; }
.lp-cookie--bar .lp-cookie__actions { flex: 0 0 auto; }

.lp-cookie__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}
.lp-cookie__text {
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: rgba(28, 25, 23, .8);
}
.lp-cookie__links {
  margin: 10px 0 0;
  display: flex;
  gap: 16px;
  font-size: .82rem;
}
.lp-cookie__links a {
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Einstellungen */
.lp-cookie__prefs {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(28, 25, 23, .1);
}
.lp-cookie__prefs[hidden] { display: none; }
.lp-cookie__prefs-title {
  margin: 0 0 12px;
  font-size: .9rem;
  font-weight: 700;
}
.lp-cookie__cat {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(28, 25, 23, .07);
  cursor: pointer;
}
.lp-cookie__cat:last-child { border-bottom: 0; }
.lp-cookie__cat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: .9rem;
}
.lp-cookie__cat-input {
  width: 16px; height: 16px;
  accent-color: var(--acc);
  cursor: pointer;
}
.lp-cookie__cat-input:disabled { cursor: not-allowed; }
.lp-cookie__cat-badge {
  margin-left: auto;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--acc);
  background: var(--accent-bg, #FFFBEB);
  padding: 2px 8px;
  border-radius: 999px;
}
.lp-cookie__cat-desc {
  display: block;
  margin: 5px 0 0 25px;
  font-size: .8rem;
  line-height: 1.45;
  color: rgba(28, 25, 23, .65);
}

/* Buttons */
.lp-cookie__actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lp-cookie--box .lp-cookie__actions > .lp-cookie__btn--accept { flex: 1 1 100%; order: -1; }
.lp-cookie__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 18px;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.lp-cookie__btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.lp-cookie__btn--accept {
  background: var(--acc);
  color: #fff;
}
.lp-cookie__btn--accept:hover { background: var(--primary, #1C1917); transform: translateY(-1px); }
.lp-cookie__btn--ghost {
  background: transparent;
  border-color: rgba(28, 25, 23, .2);
  color: var(--primary, #1C1917);
}
.lp-cookie__btn--ghost:hover { background: var(--bg-2, #F5F4F2); }
.lp-cookie__btn--save {
  background: var(--primary, #1C1917);
  color: #fff;
}
.lp-cookie__btn--save:hover { transform: translateY(-1px); }
.lp-cookie__btn[hidden] { display: none; }

/* Schwebender Reopen-Button */
.lp-cookie-reopen {
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 99998;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(28, 25, 23, .14);
  border-radius: 50%;
  background: #fff;
  color: var(--lp-cookie-accent, var(--accent-mid, #B45309));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  cursor: pointer;
  transition: transform .15s ease;
}
.lp-cookie-reopen:hover { transform: translateY(-2px); }
.lp-cookie-reopen[hidden] { display: none; }

@media (max-width: 540px) {
  .lp-cookie--box { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .lp-cookie--bar .lp-cookie__actions { flex: 1 1 100%; }
  .lp-cookie__btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-cookie { transition: opacity .15s ease; transform: none; }
  .lp-cookie.is-visible { transform: none; }
}
