/* Smile4U · the cookie banner (js/core/consent.js) and its footer link. One idea: a slip that says exactly what is set,
   as a two-line ledger (the site's hairline device), and two equal answers. makro card language: paper, radius-lg, the
   dock's night shadow; bottom left on D/T so it never covers the header CTA, a sheet above the bottom bar on P.
   Layout on v8 tokens only. */
.cb {
  position: fixed; z-index: 61; left: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100vw - 48px)); box-sizing: border-box; padding: 28px 28px 22px;
  background: var(--paper); color: var(--ink); border-radius: var(--r-lg);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--night) 6%, transparent), 0 24px 56px -20px color-mix(in srgb, var(--night) 38%, transparent);
  opacity: 0; transform: translate3d(0, 16px, 0);
  transition: opacity .45s var(--ease-ui), transform .8s var(--spring-enter);
}
.cb.show { opacity: 1; transform: none; }
.cb.out { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .28s cubic-bezier(.4, 0, 1, 1), transform .32s cubic-bezier(.4, 0, 1, 1); }

.cb-h { font-size: var(--fs-h5); line-height: 1.25; letter-spacing: var(--ls-h5); }
.cb-p { margin-top: 10px; font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink-75); }

/* the ledger: what is stored, and when */
.cb-list { margin-top: 18px; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.cb-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.cb-t { font-size: var(--fs-ui); line-height: var(--lh-ui); font-weight: var(--fw-statement); }
.cb-d { font-size: var(--fs-ui); line-height: var(--lh-ui); color: var(--ink-64); }

/* two answers of equal weight: same size, same ink, the lime fills either on hover */
.cb-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.cb-btn { justify-content: center; padding: 0 16px; background: var(--ink); }
.cb-btn::before { clip-path: inset(0 0 0 100% round 0 12px 12px 0); }
@media (hover: hover) {
  .cb-btn:hover::before { clip-path: inset(0 0 0 0 round 12px); }
  .cb-btn:hover .btn-label { transform: none; }
}
.cb-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--lime); }     /* reopened: the current choice */

.cb-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; font-size: var(--fs-ui); line-height: var(--lh-ui); }
.cb-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-64); text-underline-offset: .2em; }
.cb-links a:hover { color: var(--ink); }

@media (max-width: 809.98px) {
  .cb {
    left: 8px; right: 8px; width: auto; bottom: calc(8px + var(--cb-bar, 0px) + env(safe-area-inset-bottom, 0px));
    padding: 20px 20px 14px; border-radius: 20px;
    max-height: calc(100dvh - var(--cb-bar, 0px) - 24px); overflow: auto; overscroll-behavior: contain;
  }
  .cb-list { margin-top: 14px; }
  .cb-row { padding: 8px 0; }
  .cb-acts { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .cb, .cb.out { transition: none; transform: none; } }

/* footer: „Cookie-Einstellungen" reads as one of the legal links */
.ft-col li .ft-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--ink-75); cursor: pointer; text-align: left; }
.ft-col li .ft-btn:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 809.98px) { .ft-col li .ft-btn { display: inline-block; padding-block: 4px; } }
