/* ============================================================
   Cookie-Banner (DSGVO / TDDDG) — geteilte Styles
   Selbstständig nutzbar: alle CSS-Variablen haben Fallbacks,
   damit das Banner auf jeder Seite korrekt rendert.
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  left: clamp(16px, 3vw, 32px);
  max-width: 460px;
  margin-left: auto;
  z-index: 70;
  background: var(--paper, #ffffff);
  border: 1px solid rgba(14, 14, 14, 0.14);
  box-shadow: 0 30px 60px -20px rgba(14, 14, 14, 0.22);
  border-radius: 6px;
  padding: clamp(20px, 3vw, 28px);
  font-family: 'Inter', sans-serif;
  color: var(--ink, #0e0e0e);
}
.cookie-banner.is-visible {
  animation: cookieBannerIn .55s cubic-bezier(.32, .72, 0, 1) both;
}
@keyframes cookieBannerIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h3 {
  font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red, #C81E3E);
  margin-bottom: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.cookie-banner h3::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.cookie-banner .cookie-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink, #0e0e0e);
  margin-bottom: 16px;
}
.cookie-banner .cookie-text a {
  color: var(--ink, #0e0e0e);
  border-bottom: 1px solid rgba(14, 14, 14, 0.25);
  transition: color .18s cubic-bezier(.32, .72, 0, 1), border-color .18s cubic-bezier(.32, .72, 0, 1);
}
.cookie-banner .cookie-text a:hover { color: var(--red, #C81E3E); border-color: var(--red, #C81E3E); }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line, rgba(14, 14, 14, 0.12));
  border-bottom: 1px solid var(--line, rgba(14, 14, 14, 0.12));
}
.cookie-categories[hidden] { display: none; }
.cookie-category {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  grid-row: 1;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red, #C81E3E);
  cursor: pointer;
}
.cookie-category input:disabled { cursor: not-allowed; opacity: 0.6; }
.cookie-cat-name {
  grid-row: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink, #0e0e0e);
  line-height: 1.3;
}
.cookie-cat-desc {
  grid-row: 2;
  grid-column: 2;
  font-size: 12px;
  color: var(--ink-soft, #5a5a58);
  line-height: 1.5;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.cookie-banner-actions [hidden] { display: none; }
.cookie-banner-actions button {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  letter-spacing: 0.04em;
  transition:
    background-color .18s cubic-bezier(.32, .72, 0, 1),
    color .18s cubic-bezier(.32, .72, 0, 1),
    border-color .18s cubic-bezier(.32, .72, 0, 1),
    transform .22s cubic-bezier(.32, .72, 0, 1);
}
.cookie-banner-actions .cb-primary {
  background: var(--ink, #0e0e0e);
  color: var(--bg, #f4f1ec);
  border: 1px solid var(--ink, #0e0e0e);
}
.cookie-banner-actions .cb-primary:hover { background: var(--red, #C81E3E); border-color: var(--red, #C81E3E); }
.cookie-banner-actions .cb-primary:active { transform: scale(.97); transition-duration: .08s; }
.cookie-banner-actions .cb-secondary {
  background: transparent;
  color: var(--ink, #0e0e0e);
  border: 1px solid rgba(14, 14, 14, 0.25);
}
.cookie-banner-actions .cb-secondary:hover { background: var(--ink, #0e0e0e); color: var(--bg, #f4f1ec); border-color: var(--ink, #0e0e0e); }
.cookie-banner-actions .cb-secondary:active { transform: scale(.97); transition-duration: .08s; }
@media (max-width: 600px) {
  .cookie-banner { padding: 18px; }
  .cookie-banner-actions { gap: 6px; }
  .cookie-banner-actions button { flex: 1 1 auto; padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner.is-visible { animation: none; }
}
