/* Custom Klaro Cookie Banner Styling for LUFTEX */
/* DSGVO-compliant: Subtle, non-intrusive, equal button prominence */
/* Full width but low height for better page usability */
/* Matches website design: primary #0F2D52, accent #2F80ED */

/* Position banner at bottom - FULL WIDTH but COMPACT HEIGHT */
.klaro .cookie-notice {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15) !important;
  z-index: 9999 !important;
}

/* Very compact layout - horizontal arrangement */
.klaro .cookie-notice .cn-body {
  padding: 0.625rem 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  min-height: 50px !important;
}

/* Text and buttons side by side */
.klaro .cookie-notice .cn-body .cn-text {
  flex: 1 !important;
  margin: 0 !important;
}

.klaro .cookie-notice .cn-buttons {
  display: flex !important;
  gap: 0.5rem !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

/* Subtle background - less intrusive, more transparent */
.klaro .cookie-notice {
  background: rgba(15, 45, 82, 0.85) !important;
  color: white !important;
  border-top: 1px solid rgba(47, 128, 237, 0.4) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.klaro .cookie-notice .cn-body p,
.klaro .cookie-notice .cn-body .cn-text {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 0.8125rem !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}

/* DSGVO-compliant: ALL buttons equally prominent (no dark patterns) */

.klaro .cookie-notice .cn-buttons button,
.klaro .cm-btn {
  border-radius: 0.25rem !important;
  padding: 0.375rem 0.875rem !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
  border: 1.5px solid transparent !important;
  cursor: pointer !important;
  font-size: 0.8125rem !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

/* Accept All button - primary action */
.klaro .cookie-notice .cn-buttons .cm-btn.cm-btn-success,
.klaro .cm-btn.cm-btn-accept-all {
  background: #2F80ED !important;
  color: white !important;
  border-color: #2F80ED !important;
}

.klaro .cookie-notice .cn-buttons .cm-btn.cm-btn-success:hover,
.klaro .cm-btn.cm-btn-accept-all:hover {
  background: #1d6fd9 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(47, 128, 237, 0.4) !important;
}

/* Decline button - EQUALLY PROMINENT (DSGVO requirement) */
.klaro .cookie-notice .cn-buttons .cm-btn.cm-btn-decline,
.klaro .cm-btn.cm-btn-decline-all {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0F2D52 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
  font-weight: 500 !important;
}

.klaro .cookie-notice .cn-buttons .cm-btn.cm-btn-decline:hover,
.klaro .cm-btn.cm-btn-decline-all:hover {
  background: white !important;
  border-color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.4) !important;
}

/* Settings button - secondary but still visible */
.klaro .cookie-notice .cn-buttons .cm-btn.cm-btn-info,
.klaro .cm-btn.cm-btn-customize {
  background: transparent !important;
  color: white !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
}

.klaro .cookie-notice .cn-buttons .cm-btn.cm-btn-info:hover,
.klaro .cm-btn.cm-btn-customize:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  transform: translateY(-1px) !important;
}

/* Privacy policy link */
.klaro .cookie-notice a {
  color: #5a9cef !important;
  text-decoration: underline !important;
  font-size: 0.8125rem !important;
}

.klaro .cookie-notice a:hover {
  color: #80b3f2 !important;
}

/* Modal styling when user clicks "Settings" */
.klaro .cookie-modal {
  background: white !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  max-width: 600px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

.klaro .cookie-modal .cm-header {
  background: #0F2D52 !important;
  color: white !important;
  padding: 1.25rem 1.5rem !important;
  border-radius: 0.5rem 0.5rem 0 0 !important;
}

.klaro .cookie-modal .cm-header h1 {
  color: white !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

.klaro .cookie-modal .cm-body {
  padding: 1.5rem !important;
  color: #334155 !important;
}

.klaro .cookie-modal .cm-body p {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #475569 !important;
}

/* Service descriptions */
.klaro .cookie-modal .cm-app-description {
  font-size: 0.875rem !important;
  color: #64748b !important;
  margin-top: 0.25rem !important;
}

/* Service toggle switches - LUFTEX accent color */
.klaro .cookie-modal .cm-list-input:checked + .cm-list-label .slider {
  background: #2F80ED !important;
}

.klaro .cookie-modal .cm-list-label .slider {
  background: #cbd5e1 !important;
}

.klaro .cookie-modal .cm-list-label:hover .slider {
  background: #94a3b8 !important;
}

/* Hide "Powered by" branding completely */
.klaro .cookie-notice .cm-powered-by,
.klaro .cookie-modal .cm-powered-by,
.klaro .cm-powered-by {
  display: none !important;
}

/* Mobile responsiveness - stack on small screens */
@media (max-width: 768px) {
  .klaro .cookie-notice .cn-body {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1rem !important;
    gap: 0.75rem !important;
  }
  
  .klaro .cookie-notice .cn-buttons {
    width: 100% !important;
    flex-wrap: wrap !important;
  }
  
  .klaro .cookie-notice .cn-buttons button {
    flex: 1 1 auto !important;
    min-width: 120px !important;
  }
}

/* Smooth slide-in animation */
.klaro .cookie-notice {
  animation: slideUpFade 0.3s ease-out !important;
}

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

/* Focus states for accessibility */
.klaro .cookie-notice button:focus,
.klaro .cookie-modal button:focus {
  outline: 3px solid #2F80ED !important;
  outline-offset: 2px !important;
}

/* Close button styling */
.klaro .cookie-modal .cm-close {
  color: white !important;
  opacity: 0.8 !important;
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.25rem !important;
}

.klaro .cookie-modal .cm-close:hover {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Backdrop - subtle overlay */
.klaro .cookie-modal-backdrop {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px) !important;
}

