/* Cookie-Consent-Banner: eigenständig, damit sowohl die Vite-App (index.html)
   als auch die statischen Seiten (impressum/datenschutz/so-funktionierts)
   es per <link> einbinden können, ohne den jeweiligen Build-Pfad zu kreuzen. */

#cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-elevated, #15151f);
  border: 1px solid var(--border, rgb(255 255 255 / 0.09));
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.5);
  font-family: "Sora", system-ui, sans-serif;
  color: var(--text, #f4f3fa);
}

#cookie-consent[hidden] { display: none; }

#cookie-consent p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text, #f4f3fa);
}

#cookie-consent a {
  color: var(--accent, #22d3ee);
  text-decoration: none;
}

#cookie-consent a:hover { text-decoration: underline; }

#cookie-consent .cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
}

#cookie-consent button {
  flex: 1 1 auto;
  min-width: 7rem;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border, rgb(255 255 255 / 0.09));
}

#cookie-consent .cc-reject,
#cookie-consent .cc-settings {
  background: transparent;
  color: var(--text-dim, #9b98ad);
}

#cookie-consent .cc-reject:hover,
#cookie-consent .cc-settings:hover { color: var(--text, #f4f3fa); }

#cookie-consent .cc-settings {
  border-color: transparent;
  flex: 0 1 auto;
  min-width: auto;
  padding: 0.65rem 0.25rem;
}

#cookie-consent .cc-accept,
#cookie-consent .cc-save {
  background: var(--accent, #22d3ee);
  color: #06131a;
  border-color: transparent;
}

#cookie-consent .cc-accept:hover,
#cookie-consent .cc-save:hover { filter: brightness(1.08); }

#cookie-consent .cc-save { flex: 1 1 100%; }

/* ---- Einstellungen-Panel ---- */

#cookie-consent .cc-detail[hidden] { display: none; }

#cookie-consent .cc-category { margin-bottom: 1rem; }

#cookie-consent .cc-category-head label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

#cookie-consent .cc-category-head input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent, #22d3ee);
  cursor: pointer;
}

#cookie-consent .cc-category-head input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

#cookie-consent .cc-category-desc {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: var(--text-dim, #9b98ad);
}

@media (prefers-reduced-motion: no-preference) {
  #cookie-consent:not([hidden]) {
    animation: cc-in 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes cc-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* "Cookie-Einstellungen ändern"-Link in den Footer-/Legal-Navigationen */
.cc-manage-link { cursor: pointer; }
