/* ============================================================================
 * n8buy.de — Cookie-Banner Styles
 * ============================================================================
 * Doktrin: dunkler Brand-Stil (analog landing.css), gold-akzentuiert.
 * BGH I ZR 26/22: drei Buttons gleich-prominent, kein vorausgewähltes
 * "Akzeptieren". Mobile-First, Tastatur-erreichbar, Reduced-Motion-fähig.
 * ============================================================================ */

.n8b-consent-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.n8b-consent-wrap--visible {
  opacity: 1;
  pointer-events: auto;
}

.n8b-consent-card {
  width: 100%;
  max-width: 560px;
  background: #16161A;
  color: #FAFAFA;
  border: 1px solid #353539;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.5);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.n8b-consent-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #FAFAFA;
}

.n8b-consent-card p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #C8C8CC;
}

.n8b-consent-link {
  color: #E5B547;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.n8b-consent-link:hover { color: #FAFAFA; }

.n8b-consent-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.n8b-consent-actions--settings {
  margin-top: 16px;
}

@media (min-width: 520px) {
  .n8b-consent-actions {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .n8b-consent-actions--settings {
    grid-template-columns: 1fr;
  }
}

.n8b-consent-btn {
  appearance: none;
  border: 1px solid #353539;
  background: transparent;
  color: #FAFAFA;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  touch-action: manipulation;
}
.n8b-consent-btn:hover { background: rgba(255, 255, 255, 0.06); border-color: #5A5A5F; }
.n8b-consent-btn:focus-visible {
  outline: 2px solid #E5B547;
  outline-offset: 2px;
}

.n8b-consent-btn--accept {
  background: #E5B547;
  color: #0B0B0D;
  border-color: #E5B547;
}
.n8b-consent-btn--accept:hover {
  background: #B8902F;
  border-color: #B8902F;
  color: #0B0B0D;
}

.n8b-consent-btn--save {
  background: #E5B547;
  color: #0B0B0D;
  border-color: #E5B547;
}
.n8b-consent-btn--save:hover {
  background: #B8902F;
  border-color: #B8902F;
}

.n8b-consent-settings {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #26262B;
}

.n8b-consent-toggle {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #26262B;
  cursor: pointer;
}
.n8b-consent-toggle:last-of-type { border-bottom: none; }
.n8b-consent-toggle input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #E5B547;
  flex-shrink: 0;
}
.n8b-consent-toggle input[disabled] { cursor: not-allowed; opacity: 0.65; }

.n8b-consent-toggle-text {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}
.n8b-consent-toggle-text strong {
  display: block;
  font-weight: 700;
  color: #FAFAFA;
  margin-bottom: 2px;
}
.n8b-consent-toggle-text small {
  display: block;
  color: #8A8A8F;
  font-size: 12px;
  line-height: 1.5;
}

.n8b-consent-meta {
  margin: 18px 0 0;
  font-size: 12px;
  color: #5A5A5F;
  line-height: 1.4;
}
.n8b-consent-meta .n8b-consent-link {
  color: #8A8A8F;
  text-decoration: none;
}
.n8b-consent-meta .n8b-consent-link:hover {
  color: #E5B547;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .n8b-consent-wrap { transition: none; }
}
