/* ==========================================================================
   Sawton hell · Cookie-Karte (zustimmung.js).
   Unten links, weil rechts auf manchen Seiten Goodie sitzt. Am Handy unten
   über die volle Breite. Nicht blockierend. Tasten aus start.css (.taste);
   alle drei gleich: Ablehnen darf nicht kleiner oder blasser sein
   (OLG Köln 6 U 80/23, DSK-Orientierungshilfe).
   ========================================================================== */

.zs {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 16px 14px;
  border: 1px solid var(--linie, #e4e5e2);
  border-radius: 16px;
  background: #fff;
  color: var(--tinte, #0b0b0c);
  box-shadow: 0 18px 48px -14px rgba(11, 11, 12, 0.24), 0 2px 6px rgba(11, 11, 12, 0.06);
  font: 400 13.5px/1.5 var(--grotesk, 'Space Grotesk', ui-sans-serif, system-ui, sans-serif);
  animation: zs-auf 0.42s var(--raus, cubic-bezier(0.16, 1, 0.3, 1)) both;
}
.zs[hidden] { display: none; }
.zs:focus { outline: none; }
@keyframes zs-auf { from { opacity: 0; transform: translateY(14px); } }

.zs__titel { margin: 0 0 4px; font: 600 15px/1.3 var(--grotesk, sans-serif); letter-spacing: -0.01em; }
.zs[data-modus='einstellungen'] .zs__titel { padding-right: 36px; }
.zs__text { margin: 0; }
.zs a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.zs a:hover { color: var(--blau, #1668c8); }

.zs__zu {
  appearance: none; position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--tinte, #0b0b0c); cursor: pointer;
}
.zs__zu[hidden] { display: none; }
.zs__zu:hover { background: var(--nebel, #f5f5f3); }
.zs__zu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Kategorien: Name und Schalter in einer Zeile, darunter ein Satz. */
.zs__liste { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--linie, #e4e5e2); }
.zs__liste[hidden] { display: none; }
.zs__punkt {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 2px;
  padding: 10px 0; border-bottom: 1px solid var(--linie, #e4e5e2);
}
.zs__name { font: 600 14px/1.3 var(--grotesk, sans-serif); }
.zs__satz { grid-column: 1 / -1; margin: 0; color: var(--tinte-2, #474947); font-size: 13px; line-height: 1.45; }

.zs__schalter { position: relative; display: inline-flex; flex: none; width: 38px; height: 22px; cursor: pointer; }
.zs__schalter input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.zs__schalter input:disabled { cursor: not-allowed; }
.zs__bahn {
  position: relative; width: 100%; height: 100%; border-radius: 999px;
  background: var(--linie-fest, #c8cac6); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.14);
  transition: background-color 0.16s;
}
.zs__bahn::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s var(--raus, cubic-bezier(0.16, 1, 0.3, 1));
}
.zs__schalter input:checked + .zs__bahn { background: var(--blau, #1668c8); }
.zs__schalter input:checked + .zs__bahn::after { transform: translateX(16px); }
.zs__schalter input:disabled + .zs__bahn { background: var(--grau-hell, #8b8e8b); }
.zs__schalter input:focus-visible + .zs__bahn { outline: 2px solid var(--tinte, #0b0b0c); outline-offset: 2px; }

/* Tasten: gleiche Form, gleiche Farbe, teilen sich die Breite. */
.zs__tasten { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.zs__taste { flex: 1 1 auto; }
.zs__taste[hidden] { display: none; }
.zs__taste .taste__kappe { padding: 0 10px; }

@media (max-width: 560px) {
  .zs {
    left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: calc(100svh - 20px);
    padding: 14px 14px 12px;
    border-radius: 14px;
  }
}

/* Weniger Bewegung: nur einblenden, nichts gleitet. */
@media (prefers-reduced-motion: reduce) {
  .zs { animation-name: zs-blende; animation-duration: 0.2s; }
  .zs__bahn, .zs__bahn::after { transition: none; }
}
@keyframes zs-blende { from { opacity: 0; } }
