/* =============================================================
   Pixelmate Cookie-Banner — DigElite-Brand-Modal (WCAG AAA)
   ----------------------------------------------------------
   Override für DSGVO-Pixelmate-Plugin. Site-weit geladen.
   !important nötig gegen Plugin-eigenes Inline-CSS.
   Inline-Styles werden parallel per JS gestrippt (siehe
   cookie-banner.js).

   Übergabe aus pages-plugin-digelite v2.5.2 (2026-05-25).
   Farb-Korrekturen: Coral #ED7456 → #8E3411 (WCAG AAA 7.93:1),
   Footer-Links #6B7280 → #374151 (WCAG AAA 10.31:1).
   ============================================================= */

.pixelmate-wrapper-bottom {
  position: fixed !important;
  bottom: 1.5rem !important;
  left: 1.5rem !important;
  right: auto !important;
  top: auto !important;
  max-width: 520px !important;
  width: calc(100% - 3rem) !important;
  z-index: 99999 !important;
  animation: pixelmateSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pixelmateSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pixelmate-banner-bottom {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18),
              0 2px 8px rgba(0, 0, 0, 0.06) !important;
  padding: 1.5rem !important;
  border: none !important;
  font-family: inherit !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}

.pixelmate-banner-notice-bottom {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pixelmate-banner-notice-bottom > h3,
.pixelmate-banner-notice-bottom h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #02050E !important;
  margin: 0 0 0.6rem 0 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
}

.pixelmate-banner-content-bottom {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.6rem 0.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: inherit !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.pixelmate-general-notice-bottom {
  flex: 1 1 100% !important;
  order: 2 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #4A5568 !important;
  background: #F9FAFB !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 10px !important;
  padding: 0.85rem 1rem !important;
  margin: 0 !important;
  max-height: 6.5em !important;
  overflow-y: auto !important;
}
.pixelmate-general-notice-bottom::-webkit-scrollbar { width: 6px; }
.pixelmate-general-notice-bottom::-webkit-scrollbar-thumb {
  background: #D1D5DB; border-radius: 999px;
}

.pixelmate-banner-content-bottom > button {
  order: 1 !important;
  flex: 0 0 auto !important;
}

.pixelmate-banner-bottom .pixelmate-general-footer {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.85rem 0 0 0 !important;
  border-top: 1px solid #E5E7EB !important;
  background: transparent !important;
}

.pixelmate-banner-bottom button {
  border: none !important;
  border-radius: 999px !important;
  padding: 0.65rem 1.2rem !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
  min-height: 42px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

/* Primary CTA: ALLE ZULASSEN — DigElite Coral DUNKEL (WCAG AAA 7.93:1) */
.pixelmate-banner-bottom button.pixelmate-general-allow-bottom {
  background: #8E3411 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(142, 52, 17, 0.3) !important;
  order: 3 !important;
}
.pixelmate-banner-bottom button.pixelmate-general-allow-bottom:hover {
  background: #7A2C0D !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(142, 52, 17, 0.4) !important;
}
.pixelmate-banner-bottom button.pixelmate-general-allow-bottom:focus-visible {
  outline: 3px solid #8E3411 !important;
  outline-offset: 3px !important;
}

/* Secondary: ALLE ABLEHNEN — Outline neutral (WCAG AAA 20.4:1) */
.pixelmate-banner-bottom button.pixelmate-general-deny-bottom {
  background: transparent !important;
  color: #02050E !important;
  border: 1.5px solid #D1D5DB !important;
  order: 2 !important;
}
.pixelmate-banner-bottom button.pixelmate-general-deny-bottom:hover {
  background: #F3F4F6 !important;
  border-color: #9CA3AF !important;
}
.pixelmate-banner-bottom button.pixelmate-general-deny-bottom:focus-visible {
  outline: 3px solid #02050E !important;
  outline-offset: 3px !important;
}

/* Tertiary: EINSTELLUNGEN — Ghost Text-Link (WCAG AAA 7.53:1) */
.pixelmate-banner-bottom button.pixelmate-general-single-bottom {
  background: transparent !important;
  color: #4A5568 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  padding: 0.7rem 0.8rem !important;
  box-shadow: none !important;
  order: 1 !important;
}
.pixelmate-banner-bottom button.pixelmate-general-single-bottom:hover {
  color: #02050E !important;
  background: transparent !important;
}
.pixelmate-banner-bottom button.pixelmate-general-single-bottom:focus-visible {
  outline: 3px solid #8E3411 !important;
  outline-offset: 3px !important;
  border-radius: 4px !important;
}

/* Footer-Links: Datenschutz | Impressum (WCAG AAA 10.31:1) */
.pixelmate-banner-bottom a.pixelmate-general-dse-btn,
.pixelmate-banner-bottom a.pixelmate-general-imp-btn {
  font-size: 0.82rem !important;
  color: #374151 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  margin-right: 0.8rem !important;
  line-height: 1.4 !important;
}
.pixelmate-banner-bottom a.pixelmate-general-dse-btn:hover,
.pixelmate-banner-bottom a.pixelmate-general-imp-btn:hover {
  color: #8E3411 !important;
}

/* Mobile: voller Breite am Boden, kompakt */
@media (max-width: 640px) {
  .pixelmate-wrapper-bottom {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .pixelmate-banner-bottom {
    border-radius: 16px 16px 0 0 !important;
    padding: 1.4rem !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
  }
  .pixelmate-banner-bottom .pixelmate-general-footer {
    flex-flow: row wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
  }
  .pixelmate-banner-bottom button {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
  .pixelmate-banner-bottom button.pixelmate-general-single-bottom {
    order: 4 !important;
    padding: 0.5rem 0 !important;
    min-height: auto !important;
  }
  .pixelmate-banner-bottom a.pixelmate-general-dse-btn,
  .pixelmate-banner-bottom a.pixelmate-general-imp-btn {
    flex: 0 0 auto !important;
    order: 5 !important;
    margin: 0 !important;
    display: inline-block !important;
  }
  .pixelmate-banner-bottom a.pixelmate-general-dse-btn { margin-right: 0.8rem !important; }
}

/* Reduced Motion: keine Slide-Animation */
@media (prefers-reduced-motion: reduce) {
  .pixelmate-wrapper-bottom { animation: none !important; }
  .pixelmate-banner-bottom button { transition: none !important; }
  .pixelmate-banner-bottom button.pixelmate-general-allow-bottom:hover {
    transform: none !important;
  }
}
