/* AUTO-GENERATED aus packages/legal/consent — NICHT hier editieren.
   Quelle ändern und `npm run legal:build` ausführen. */

/*
 * SekaiNET — Consent-Banner Styles. SINGLE SOURCE: packages/legal/consent/consent.css
 * Injiziert in die statischen Rechtsseiten (build.mjs) und als Kopie in die React-Apps.
 * Nutzt die App-Akzentvariable (React: --accent, statisch: --a), respektiert
 * prefers-reduced-motion. Nicht in den generierten Kopien editieren.
 */
.skc-banner,
.skc-modal {
  --skc-accent: var(--accent, var(--a, #4f8cff));
  --skc-bg: #18181c;
  --skc-border: #2a2a30;
  --skc-title: #f0f0f2;
  --skc-text: #a8a8b2;
  font-family: system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}
.skc-banner *,
.skc-modal * {
  box-sizing: border-box;
}

/* --- Erstabfrage-Banner (unten) --- */
.skc-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2147483000;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--skc-bg);
  border: 1px solid var(--skc-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  animation: skc-rise 0.28s ease-out;
}
.skc-banner__body {
  flex: 1 1 320px;
  min-width: 0;
}
.skc-banner__title {
  margin: 0 0 0.25rem;
  font-size: 13px;
  font-weight: 700;
  color: var(--skc-title);
}
.skc-banner__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--skc-text);
}
.skc-banner__text a {
  color: var(--skc-accent);
}
.skc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}

/* --- Einstellungs-Dialog --- */
.skc-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.6);
  animation: skc-fade 0.2s ease-out;
}
.skc-dialog {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--skc-bg);
  border: 1px solid var(--skc-border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: skc-rise 0.24s ease-out;
}
.skc-dialog__title {
  margin: 0 0 0.4rem;
  font-size: 15px;
  font-weight: 700;
  color: var(--skc-title);
}
.skc-dialog__intro {
  margin: 0 0 1.1rem;
  font-size: 12px;
  line-height: 1.6;
  color: var(--skc-text);
}
.skc-cats {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.skc-cat {
  padding: 0.85rem 0;
  border-top: 1px solid var(--skc-border);
}
.skc-cat:last-child {
  border-bottom: 1px solid var(--skc-border);
}
.skc-cat__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}
.skc-cat__row input[disabled] {
  cursor: not-allowed;
}
.skc-cat__row input {
  width: 15px;
  height: 15px;
  accent-color: var(--skc-accent);
  flex: 0 0 auto;
}
.skc-cat__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--skc-title);
}
.skc-cat__desc {
  margin: 0.35rem 0 0 1.75rem;
  font-size: 11px;
  line-height: 1.55;
  color: var(--skc-text);
}
.skc-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* --- Buttons --- */
.skc-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, opacity 0.12s;
}
.skc-btn--primary {
  background: var(--skc-accent);
  color: #fff;
  opacity: 0.92;
}
.skc-btn--primary:hover {
  opacity: 1;
}
.skc-btn--ghost {
  background: transparent;
  color: #c8c8d0;
  border-color: var(--skc-border);
}
.skc-btn--ghost:hover {
  border-color: #454550;
  color: #fff;
}
.skc-btn:focus-visible {
  outline: 2px solid var(--skc-accent);
  outline-offset: 2px;
}

@keyframes skc-rise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes skc-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skc-banner,
  .skc-modal,
  .skc-dialog {
    animation: none;
  }
}
