/* =====================================================================
   100and10 — Consent-Banner & Einstellungen. Nutzt site.css-Tokens.
   Barrierefrei, mobil, „Akzeptieren"/„Ablehnen" gleichwertig, keine Dark Patterns.
   ===================================================================== */
.cmp { position: fixed; z-index: 1000; }
#cmp-banner { left: 0; right: 0; bottom: 0; display: flex; justify-content: center;
  padding: 16px clamp(12px, 3vw, 24px); pointer-events: none; }
.cmp__box { pointer-events: auto; width: 100%; max-width: 720px; background: var(--paper);
  border: 1px solid var(--grey-300); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(14px, 2.4vw, 22px); }
.cmp__h { font-size: 1.02rem; margin: 0 0 6px; color: var(--ink); }
.cmp__t { font-size: .88rem; line-height: 1.5; color: var(--grey-700); margin: 0 0 12px; }
.cmp__t a { color: var(--cyan-700); }
/* Desktop: kompakte Karte unten links statt zentriertem 720px-Sheet,
   damit Hero-/Haupt-CTAs nie verdeckt werden. Mobil bleibt das Bottom-Sheet
   (dort kompakter), Auswahloptionen unverändert gleichwertig. */
@media (min-width: 760px) {
  #cmp-banner { justify-content: flex-start; }
  .cmp__box { max-width: 420px; }
  .cmp__actions .cmp__btn--solid, .cmp__actions .cmp__btn--alt { flex: 1 1 140px; }
}

.cmp__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cmp__btn { font-family: var(--sans); font-size: .95rem; font-weight: 600; line-height: 1;
  padding: 12px 18px; border-radius: var(--radius-sm); border: 1.5px solid transparent; cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease); }
/* „Akzeptieren" und „Ablehnen" sind bewusst GLEICH prominent (gleiche Größe, gleicher Kontrast). */
.cmp__btn--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.cmp__btn--solid:hover { background: #000; border-color: #000; }
.cmp__btn--alt { background: #fff; color: var(--ink); border-color: var(--ink); }
.cmp__btn--alt:hover { background: var(--offwhite-2); }
.cmp__btn--ghost { background: transparent; color: var(--grey-700); border-color: var(--grey-300); }
.cmp__btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.cmp__actions .cmp__btn--solid, .cmp__actions .cmp__btn--alt { flex: 1 1 200px; }
.cmp__actions .cmp__btn--ghost { flex: 0 1 auto; }

/* ---- Einstellungen (Modal) ---- */
.cmp--modal { inset: 0; display: grid; place-items: center; padding: 16px; }
.cmp__backdrop { position: fixed; inset: 0; background: rgba(6,39,43,.55); }
.cmp__panel { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.cmp__phead { position: sticky; top: 0; background: var(--paper); display: flex; align-items: center;
  justify-content: space-between; padding: 20px 22px 12px; border-bottom: 1px solid var(--grey-200); }
.cmp__x { background: none; border: 0; font-size: 1.2rem; color: var(--grey-500); cursor: pointer; line-height: 1; padding: 6px; }
.cmp__x:hover { color: var(--ink); }
.cmp__body { padding: 8px 22px; }
.cmp__cat { padding: 16px 0; border-bottom: 1px solid var(--grey-200); }
.cmp__cat:last-child { border-bottom: 0; }
.cmp__cathead { display: flex; align-items: center; }
.cmp__catname { font-weight: 600; color: var(--ink); }
.cmp__catname em { font-weight: 400; color: var(--grey-500); font-style: normal; font-size: .86em; }
.cmp__catdesc { font-size: .9rem; line-height: 1.5; color: var(--grey-700); margin: 8px 0 6px; }
.cmp__svc { margin: 0; padding-left: 18px; color: var(--grey-500); font-size: .84rem; }
.cmp__svc li { margin: 2px 0; }

/* Toggle-Switch */
.cmp__sw { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.cmp__sw.is-locked { cursor: default; }
.cmp__sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.cmp__track { position: relative; width: 42px; height: 24px; background: var(--grey-300); border-radius: 999px;
  transition: background .18s var(--ease); flex: none; }
.cmp__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; transition: transform .18s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.cmp__sw input:checked + .cmp__track { background: var(--cyan-700); }
.cmp__sw input:checked + .cmp__track::after { transform: translateX(18px); }
.cmp__sw input:disabled + .cmp__track { background: var(--cyan-900); opacity: .55; }
.cmp__sw input:focus-visible + .cmp__track { outline: 3px solid var(--cyan-700); outline-offset: 2px; }

.cmp__foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--grey-200);
  position: sticky; bottom: 0; background: var(--paper); }
.cmp__foot .cmp__btn { flex: 1 1 auto; }
.cmp__ver { font-size: .78rem; color: var(--grey-500); padding: 0 22px 18px; margin: 0; }

@media (max-width: 560px) {
  .cmp__actions .cmp__btn { flex: 1 1 100%; }
  .cmp__foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .cmp__btn, .cmp__track, .cmp__track::after { transition: none; }
}
@media (prefers-color-scheme: dark) {
  /* Banner bleibt hell für Lesbarkeit auf allen Seiten. */
}
