/* Choice about the reach measurement (consent.js): a small sheet at the bottom that never blocks the page,
   and the "Datenschutz-Einstellungen / Privacy settings" control in every footer. Same on homepages and legal pages. */
.cs {
  position: fixed;
  left: var(--space-6);
  bottom: var(--space-6);
  z-index: 60;                      /* above the fixed nav (50) */
  width: min(26rem, calc(100% - 2 * var(--space-6)));
  max-height: calc(100dvh - 2 * var(--space-6));
  overflow-y: auto;
  padding: var(--space-5);
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 20px;
}
.cs[hidden] { display: none; }
.cs-title {
  margin: 0 var(--space-8) var(--space-2) 0;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  line-height: 1.3;
  letter-spacing: var(--tracking-heading);
}
.cs-title:focus { outline: none; }
.cs-title:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }
.cs-body, .cs-status { margin: 0 0 var(--space-3); color: var(--ink-secondary); }
.cs-status { color: var(--ink); font-weight: var(--weight-medium); }
.cs-status[hidden] { display: none; }
/* Two choices of equal size, weight and colour: neither is the "right" one */
.cs-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-4); }
.cs-more { display: inline-block; margin-top: var(--space-3); padding-block: var(--space-1); font-size: var(--text-sm); color: var(--accent); }
.cs-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-md);
  height: var(--control-md);
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
}
.cs-close[hidden] { display: none; }
.cs-close:hover { background: var(--surface-2); color: var(--ink); }
.cs-close svg { width: var(--icon-md); height: var(--icon-md); }

/* The footer control looks like its neighbouring links */
.cs-open {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink-secondary);
  text-align: left;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard);
}
.cs-open:hover { color: var(--ink); }
.cs-open[hidden] { display: none; }
/* Inline variant in the privacy text */
.cs-inline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.cs-inline .pp-btn[hidden] { display: none; }

@media (max-width: 599px) {
  .cs {
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
    width: auto;
    max-height: calc(100dvh - 2 * var(--space-3));
    padding: var(--space-4);
  }
  .cs-actions .pp-btn { height: var(--control-lg); }   /* thumb-sized targets */
  .foot-links .cs-open { padding-block: var(--space-2); }
}

/* After the first choice focus moves to the content start without a ring around the whole page */
main[tabindex="-1"]:focus { outline: none; }
