/* =====================================================================
   cookie-consent.css — VFN Consent-Banner & Settings
   Nutzt die Tokens aus styles.css (--fight-black, --skin, --rule …).
   Keine eigenen Farben hardcoden. Harte Kanten, Hairlines, Corner-Ticks.
   ===================================================================== */

/* ----------------------------- Banner ------------------------------ */
.cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9000;
  background: var(--footer-black);
  border-top: 1px solid var(--skin);
  box-shadow: 0 -1px 0 0 var(--rule);
  animation: cc-rise .40s cubic-bezier(0.7, 0, 0.3, 1) both;
}
@keyframes cc-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }

.cc-banner__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) var(--pad-x);
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}
.cc-banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
  margin: 8px 0 10px;
  color: var(--arena-white);
}
.cc-banner__lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55;
  color: var(--stone);
  max-width: 64ch;
  margin: 0;
}
.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* ----------------------------- Overlay ----------------------------- */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(6, 6, 6, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-x);
  animation: cc-fade .25s ease both;
}
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }

.cc-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--charcoal-2);
  border: 1px solid var(--rule-strong);
  padding: clamp(24px, 4vw, 40px);
  animation: cc-rise .25s cubic-bezier(0.7, 0, 0.3, 1) both;
}
/* Signatur: Corner-Ticks oben-links / unten-rechts */
.cc-panel::before, .cc-panel::after {
  content: ""; position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--arena-white);
}
.cc-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.cc-panel::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.cc-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  margin: 8px 0 12px;
  color: var(--arena-white);
}
.cc-panel__lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55;
  color: var(--stone);
  margin: 0 0 22px;
}
.cc-panel__cats { display: flex; flex-direction: column; }

/* ---------------------------- Kategorie ---------------------------- */
.cc-cat {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.cc-cat:last-child { border-bottom: 1px solid var(--rule); }
.cc-cat__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 6px;
}
.cc-cat__name {
  font-family: var(--font-sub);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  color: var(--arena-white);
}
.cc-cat__always {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone-dim);
}
.cc-cat__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  color: var(--stone);
  margin: 0;
  max-width: 60ch;
}

/* ------------------------------ Toggle ----------------------------- */
.cc-tgl {
  --w: 46px; --h: 24px;
  position: relative;
  width: var(--w); height: var(--h);
  flex: 0 0 auto;
  background: var(--charcoal);
  border: 1px solid var(--rule-strong);
  cursor: pointer;
  padding: 0;
  transition: border-color .18s ease, background .18s ease;
}
.cc-tgl__knob {
  position: absolute;
  top: 2px; left: 2px;
  width: calc(var(--h) - 6px); height: calc(var(--h) - 6px);
  background: var(--stone);
  transition: transform .18s cubic-bezier(0.7, 0, 0.3, 1), background .18s ease;
}
.cc-tgl.is-on {
  background: var(--skin);
  border-color: var(--skin);
}
.cc-tgl.is-on .cc-tgl__knob {
  background: var(--arena-white);
  transform: translateX(calc(var(--w) - var(--h)));
}
.cc-tgl:focus-visible { outline: 2px solid var(--skin); outline-offset: 2px; }

/* ------------------------------ Footer ----------------------------- */
.cc-panel__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 24px;
}
.cc-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ----------------------------- Eyebrow ----------------------------- */
.cc-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sub);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 11px;
  color: var(--skin);
}
.cc-eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--skin);
}

/* ------------------------------ Link ------------------------------- */
.cc-link {
  font-family: var(--font-sub);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  color: var(--arena-white);
  text-decoration: none;
  border-bottom: 1px solid var(--skin);
  padding-bottom: 1px;
  transition: color .18s ease;
}
.cc-link:hover { color: var(--skin); }

/* ----------------------------- Buttons ----------------------------- */
.cc-btn {
  font-family: var(--font-sub);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.cc-btn:focus-visible { outline: 2px solid var(--arena-white); outline-offset: 2px; }
.cc-btn--solid {
  background: var(--skin);
  color: var(--arena-white);
}
.cc-btn--solid:hover { background: var(--fight-red-deep); transform: translateY(-2px); }
.cc-btn--ghost {
  background: transparent;
  color: var(--arena-white);
  border-color: var(--rule-strong);
}
.cc-btn--ghost:hover { border-color: var(--skin); transform: translateY(-2px); }

/* --------------------------- Responsive ---------------------------- */
@media (max-width: 860px) {
  .cc-banner__inner { grid-template-columns: 1fr; gap: 18px; }
  .cc-banner__actions { justify-content: stretch; }
  .cc-banner__actions .cc-btn { flex: 1 1 auto; text-align: center; }
  .cc-panel__foot { flex-direction: column; align-items: stretch; }
  .cc-panel__actions { justify-content: stretch; }
  .cc-panel__actions .cc-btn { flex: 1 1 auto; }
}

/* Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-overlay, .cc-panel { animation: none; }
  .cc-btn:hover, .cc-tgl__knob { transition: none; }
}
