/* =============================================================
   AIvora · Consent-Banner Styling
   ============================================================= */

.aivora-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;

  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  box-shadow:
    0 24px 48px -16px rgba(15, 23, 42, 0.32),
    0 2px 6px rgba(15, 23, 42, 0.06);

  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #0f172a;
  z-index: 9999;

  animation: aivora-consent-in .35s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes aivora-consent-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.aivora-consent-banner h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #0f172a;
}

.aivora-consent-banner p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #334155;
}

.aivora-consent-banner a {
  color: #1e5cb6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aivora-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.aivora-consent-btn {
  appearance: none;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.15px;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.aivora-consent-btn:focus-visible {
  outline: 3px solid #1e5cb6;
  outline-offset: 2px;
}

.aivora-consent-btn--primary {
  background: #1e5cb6;
  color: #ffffff;
}
.aivora-consent-btn--primary:hover { background: #14457f; }

.aivora-consent-btn--ghost {
  background: transparent;
  color: #1e5cb6;
  border: 1px solid rgba(30, 92, 182, 0.45);
}
.aivora-consent-btn--ghost:hover {
  background: #eaf1fb;
  border-color: #1e5cb6;
}

.aivora-consent-btn:active { transform: scale(0.98); }

@media (max-width: 720px) {
  .aivora-consent-banner {
    grid-template-columns: 1fr;
    padding: 18px 18px 20px;
  }
  .aivora-consent-actions { justify-content: stretch; }
  .aivora-consent-btn { flex: 1; }
}

/* Re-Open-Button für nachträgliche Änderung der Einstellung */
.aivora-consent-trigger {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #1e5cb6;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 6px 14px -4px rgba(15, 23, 42, 0.18);
  z-index: 9998;
  transition: background 0.2s ease, transform 0.1s ease;
}
.aivora-consent-trigger:hover { background: #eaf1fb; }
.aivora-consent-trigger:active { transform: scale(0.96); }
.aivora-consent-trigger.is-visible { display: inline-flex; }
.aivora-consent-trigger:focus-visible { outline: 3px solid #1e5cb6; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .aivora-consent-banner { animation: none; }
  .aivora-consent-btn,
  .aivora-consent-trigger { transition: none; }
}
