/* ─────────────────────────────────────────
   COOKIE CONSENT (DSGVO / TTDSG)
───────────────────────────────────────── */
.cc-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 24px);
  width: min(720px, calc(100% - 32px));
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  z-index: 10000;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 3px solid var(--red, #C8102E);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  padding: 28px 30px 24px;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.cc-banner.cc-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .35s ease, transform .35s ease;
}
.cc-title {
  font-family: var(--font-display, 'Barlow Condensed', system-ui, sans-serif);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.cc-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin: 0 0 18px;
}
.cc-text a,
.cc-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cc-text a:hover,
.cc-links a:hover { color: var(--red, #C8102E); }

/* Categories */
.cc-categories { display: none; margin: 0 0 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.cc-banner.cc-details .cc-categories { display: block; }
.cc-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cc-cat-name { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.cc-cat-desc { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.65); margin: 0; }

/* Toggle switch */
.cc-switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; margin-top: 2px; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cc-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 26px;
  transition: background .2s;
}
.cc-slider::before {
  content: ""; position: absolute;
  width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.cc-switch input:checked + .cc-slider { background: var(--red, #C8102E); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + .cc-slider { opacity: 0.55; }
.cc-switch input:focus-visible + .cc-slider { outline: 2px solid #fff; outline-offset: 2px; }

/* Buttons — "Akzeptieren" und "Ablehnen" gleichwertig gestaltet */
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-btn {
  flex: 1 1 160px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-radius: var(--radius, 3px);
  border: 1px solid var(--red, #C8102E);
  background: var(--red, #C8102E);
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.cc-btn:hover { background: #a00d25; border-color: #a00d25; }
.cc-btn-ghost { background: transparent; border-color: rgba(255,255,255,0.4); }
.cc-btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.cc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cc-save { display: none; }
.cc-banner.cc-details .cc-save { display: block; }
.cc-banner.cc-details .cc-toggle-details { display: none; }

.cc-links { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,0.55); }
.cc-links a { color: rgba(255,255,255,0.7); margin-right: 14px; }

@media (max-width: 640px) {
  .cc-banner { bottom: 12px; padding: 22px 20px 18px; width: calc(100% - 24px); }
  .cc-title { font-size: 22px; }
  .cc-btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-banner.cc-open { transition: none; }
}
