/* cookie-style.css */
:root {
  --cc-bg: #111827;         /* grau-schwarz */
  --cc-fg: #ffffff;
  --cc-accent: #f97316;     /* orange */
  --cc-muted: #6b7280;      /* grau */
  --cc-card: #1f2937;       /* dunkles grau */
  --cc-border: #374151;
  --cc-focus: #60a5fa;
  --radius: 14px;
  --gap: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --z-top: 2147483000;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: #111;
  line-height: 1.5;
}

/* Banner */
.cc-banner[hidden] { display: none !important; }
.cc-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-top);
  display: grid;
  place-items: center;
  padding: 20px;
}

.cc-content {
  width: min(960px, 100%);
  background: var(--cc-bg);
  color: var(--cc-fg);
  border: 1px solid var(--cc-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
}

.cc-content h2 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
}

.cc-content p {
  margin: 0 0 14px 0;
  color: var(--cc-fg);
  opacity: 0.9;
}

.cc-actions {
  display: flex;
  gap: var(--gap);
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cc-btn {
  appearance: none;
  border: 1px solid var(--cc-border);
  background: var(--cc-card);
  color: var(--cc-fg);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .04s ease, background .2s ease, border-color .2s ease;
}
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn:focus-visible { outline: 2px solid var(--cc-focus); outline-offset: 2px; }

.cc-accept { background: var(--cc-accent); border-color: transparent; color: #111; font-weight: 600; }
.cc-reject { background: transparent; }
.cc-settings { background: #0b1220; }

/* Modal */
.cc-modal[hidden] { display: none !important; }
.cc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: var(--z-top);
  display: grid;
  place-items: center;
  padding: 24px;
}

.cc-modal-card {
  width: min(720px, 100%);
  background: var(--cc-card);
  color: var(--cc-fg);
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cc-modal-header, .cc-modal-footer {
  padding: 14px 16px;
  background: #0b1220;
  border-bottom: 1px solid var(--cc-border);
}
.cc-modal-footer { border-top: 1px solid var(--cc-border); border-bottom: 0; display: flex; justify-content: flex-end; gap: var(--gap); background: #0f172a; }

.cc-modal-body {
  padding: 12px 16px 18px;
}

.cc-icon-btn {
  margin-left: auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cc-fg);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.cc-icon-btn:focus-visible { outline: 2px solid var(--cc-focus); outline-offset: 2px; }

.cc-cat { border: 1px solid var(--cc-border); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #111827; }
.cc-cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cc-chip { margin-left: auto; font-size: .8rem; color: #111; background: #9ca3af; border-radius: 999px; padding: 2px 8px; }

/* Switch */
.cc-switch { position: relative; display: inline-block; width: 48px; height: 28px; margin-left: auto; }
.cc-switch input { display: none; }
.cc-slider {
  position: absolute; inset: 0; background: #374151; border-radius: 999px; transition: background .2s ease;
}
.cc-slider::before {
  content: ""; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s ease;
}
.cc-switch input:checked + .cc-slider { background: var(--cc-accent); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .cc-btn, .cc-slider::before { transition: none; }
}