/* =========================================================
   CoPost – Cookie-Fenster (ADR 0151, gemeinsam/web/cookies.js)
   Handy: unten als Blatt; Computer: Karte in der Mitte. „Ablehnen“ und „Akzeptieren“ gleich groß und gleich farbig.
   ========================================================= */
.ck { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0;
  border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg, 0 24px 60px -20px
  rgba(15, 27, 61, .45)); overflow: auto; overscroll-behavior: contain; }
.ck::backdrop { background: rgba(15, 20, 35, .35); backdrop-filter: blur(2px); }
.ck-karte { display: grid; gap: 14px; padding: 22px 22px 18px; }
.ck-kopf { display: flex; align-items: center; gap: 12px; }
.ck-kopf h2 { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.ck-kopf h2:focus, .ck-kopf h2:focus-visible { outline: none; box-shadow: none; }   /* nur Startpunkt für Screenreader */
.ck-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px;
  background: var(--warn-soft, rgba(230, 150, 30, .14)); color: var(--warn, #b26a00); }
.ck-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
  stroke-linejoin: round; }
.ck-text { display: grid; gap: 8px; color: var(--ink-2, var(--ink)); line-height: 1.5; font-size: .92rem; }
.ck-text p { margin: 0; }

.ck-knoepfe { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.ck-knoepfe .btn { min-height: 46px; justify-content: center; font-weight: 650; }
.ck-fuss { margin: 0; text-align: center; font-size: .86rem; color: var(--muted); line-height: 2.2; }
.ck-link { padding: 4px 2px; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.ck-kats { display: grid; gap: 10px; }
.ck-kat { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.ck-kat-kopf { display: flex; align-items: center; gap: 12px; }
.ck-kat-kopf label { flex: 1; display: grid; gap: 2px; min-width: 0; cursor: pointer; }
.ck-kat-kopf label span { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.ck-immer { font-size: .76rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
/* Schalter: großes Tippziel, Zustand auch ohne Farbe erkennbar (Knopf links/rechts) */
.ck-schalter { appearance: none; flex: none; position: relative; width: 48px; height: 28px; margin: 0;
  border-radius: 99px; background: var(--line-strong, #c7c9d1); cursor: pointer; transition: background .15s; }
.ck-schalter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.ck-schalter:checked { background: var(--accent); }
.ck-schalter:checked::after { transform: translateX(20px); }
.ck-schalter:disabled { opacity: .55; cursor: not-allowed; }
.ck-schalter:focus-visible { outline: none; box-shadow: var(--focus); }
.ck-details summary { cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--accent); width: max-content; }
.ck-liste { list-style: none; margin: 8px 0 2px; padding: 0; display: grid; gap: 8px; }
.ck-liste li { display: grid; gap: 1px; font-size: .84rem; line-height: 1.4; }
.ck-liste code { font-size: .78rem; justify-self: start; overflow-wrap: anywhere; }
.ck-liste small { color: var(--muted); font-size: .78rem; }
.ck-nachweis { margin: -4px 0 0; font-size: .78rem; color: var(--muted); }

@media (max-width: 560px) {
  .ck { width: 100vw; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom); }
  .ck-karte { padding: 20px 16px 16px; }
  .ck-knoepfe { grid-auto-flow: row; }
}
@media (prefers-reduced-motion: no-preference) {
  .ck[open] { animation: ck-rein .2s ease-out; }
  @keyframes ck-rein { from { opacity: 0; transform: translateY(12px); } }
}
