/* ===========================================================
   Cookie-Consent — Banner & Einstellungen
   Erbt Farben/Typografie von styles.css
   =========================================================== */

.ck { position: fixed; inset: 0; z-index: 200; pointer-events: none; }

/* ---------- Bottom-Bar ---------- */
.ck__bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 40px);
  background: var(--bg-deep);
  color: oklch(0.95 0.012 85);
  box-shadow: 0 -8px 30px -10px rgba(0,0,0,0.35);
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.32,.9,.35,1);
  pointer-events: auto;
}
.ck.is-open .ck__bar { transform: translateY(0); }
.ck__text { flex: 1 1 480px; margin: 0; font-size: 0.92rem; line-height: 1.55; color: oklch(0.92 0.015 100); }
.ck__text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ck__text a:hover { color: var(--clay); }
.ck__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ck__btn {
  font-family: var(--font-body); font-weight: 700; font-size: 0.86rem;
  padding: 0.72em 1.3em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.ck__btn--primary { background: var(--sage); color: var(--bg-deep); }
.ck__btn--primary:hover { transform: translateY(-2px); background: var(--clay); }
.ck__btn--ghost { background: transparent; color: oklch(0.95 0.012 85); border-color: rgba(255,255,255,0.35); }
.ck__btn--ghost:hover { border-color: var(--sage); color: var(--sage); }
.ck__btn--text { background: transparent; color: oklch(0.86 0.015 85); border-color: transparent; padding-inline: 0.4em; text-decoration: underline; text-underline-offset: 3px; }
.ck__btn--text:hover { color: var(--clay); }

/* ---------- Einstellungen (Panel) ---------- */
.ck__panel {
  position: fixed; inset: 0; z-index: 201;
  display: grid; place-items: center;
  padding: 24px;
  background: color-mix(in oklch, var(--ink) 55%, transparent);
  pointer-events: auto;
}
.ck__panel[hidden] { display: none; }
.ck__panel-inner {
  width: 100%; max-width: 460px;
  max-height: 86vh; overflow-y: auto;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px);
  box-shadow: var(--shadow);
}
.ck__panel-inner h3 { font-size: 1.4rem; margin: 0 0 0.5em; }
.ck__panel-lead { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 1.4em; }
.ck__panel-lead a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ck__panel-lead a:hover { color: var(--sage-deep); }

.ck__cat { padding-block: 14px; border-top: 1px solid var(--line-soft); }
.ck__cat:first-of-type { border-top: 0; }
.ck__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck__cat-head span { font-weight: 700; font-size: 0.98rem; }
.ck__cat p { margin: 6px 0 0; font-size: 0.86rem; color: var(--ink-soft); }

.ck__switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.ck__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ck__switch i {
  position: absolute; inset: 0; border-radius: 999px;
  background: color-mix(in oklch, var(--ink) 18%, var(--bg));
  transition: background .2s ease;
}
.ck__switch i::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--card); transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.ck__switch input:checked + i { background: var(--sage-deep); }
.ck__switch input:checked + i::before { transform: translateX(18px); }
.ck__switch--locked i { opacity: 0.55; }
.ck__switch input:disabled { cursor: default; }

.ck__panel-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 22px; }

@media (max-width: 640px) {
  .ck__bar { flex-direction: column; align-items: stretch; }
  .ck__actions { justify-content: stretch; }
  .ck__actions .ck__btn { flex: 1; text-align: center; }
  .ck__actions .ck__btn--text { flex: none; text-align: left; }
}
