/* Cookie-Hinweis – Optik. Mit optik "automatisch" (Standard) setzt hinweis.js diese Werte passend zur Seite.
   Diese Werte gelten nur als Rückfall bzw. bei optik "fest". */
:root {
  --ch-hintergrund: #16181d;
  --ch-flaeche: #22252c;
  --ch-text: #f2f3f5;
  --ch-text-leise: #a9adb7;
  --ch-akzent: #d1db65;
  --ch-akzent-text: #16181d;
  --ch-linie: #3a3e48;
  --ch-radius: 16px;
  --ch-radius-knopf: 999px;
  --ch-schrift: inherit;
  --ch-titel-schrift: var(--ch-schrift);
  --ch-platz-hg: #e9eaee;
  --ch-platz-text: #1c1e23;
  --ch-breite: 440px;
}

.ch-box {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 2147483000;
  width: min(var(--ch-breite), calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  background: var(--ch-hintergrund);
  color: var(--ch-text);
  border: 1px solid var(--ch-linie);
  border-radius: var(--ch-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-family: var(--ch-schrift);
  font-size: 15px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  box-sizing: border-box;
}
.ch-box *, .ch-box *::before, .ch-box *::after { box-sizing: border-box; }
/* position: "mitte" in einstellungen.js: am Desktop unten mittig */
.ch-box--mitte { left: 0; right: 0; margin-inline: auto; }
.ch-box--sichtbar { opacity: 1; transform: none; }
.ch-box[hidden], .ch-ansicht[hidden] { display: none; }

.ch-box p { margin: 0; }

.ch-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ch-text-leise);
  margin-bottom: 8px !important;
}
.ch-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--ch-punkt-farbe, var(--ch-akzent)); }
.ch-titel { font-family: var(--ch-titel-schrift); font-size: 20px; font-weight: 700; line-height: 1.25; margin-bottom: 8px !important; }
.ch-text { color: var(--ch-text-leise); }

/* Buttons: alle gleich hoch; „Nur notwendige“ und „Alle akzeptieren“ gleich gewichtet */
.ch-knoepfe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}
.ch-knopf--breit { grid-column: 1 / -1; }
.ch-knopf {
  height: 46px;
  padding: 0 18px;
  border-radius: var(--ch-radius-knopf);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.ch-knopf:active { transform: scale(0.97); }
.ch-knopf:focus-visible, .ch-schalter input:focus-visible + .ch-schalter__bahn, .ch-dienste summary:focus-visible {
  outline: 2px solid var(--ch-akzent);
  outline-offset: 2px;
}
.ch-knopf--voll { background: var(--ch-akzent); color: var(--ch-akzent-text); border: 1px solid var(--ch-akzent); }
.ch-knopf--linie { background: transparent; color: var(--ch-text); border: 1px solid var(--ch-linie); }
.ch-knopf--linie:hover { border-color: var(--ch-text-leise); }
.ch-knopf--voll:hover { filter: brightness(0.93); }

.ch-links {
  display: flex;
  gap: 16px;
  margin-top: 16px !important;
  font-size: 12px;
}
.ch-links a { color: var(--ch-text-leise); text-decoration: none; }
.ch-links a:hover { color: var(--ch-text); text-decoration: underline; }

/* Einstellungen */
.ch-gruppen { display: grid; gap: 8px; margin-top: 12px; }
.ch-gruppe { background: var(--ch-flaeche); border-radius: 12px; padding: 14px 16px; }
.ch-gruppe__kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ch-gruppe__name { font-weight: 700; }
.ch-gruppe__text { color: var(--ch-text-leise); font-size: 13px; margin-top: 2px !important; }
.ch-immer { font-size: 12px; color: var(--ch-text-leise); white-space: nowrap; padding-top: 3px; }

.ch-dienste { margin-top: 8px; font-size: 13px; }
.ch-dienste summary { cursor: pointer; color: var(--ch-text-leise); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.ch-dienste summary::-webkit-details-marker { display: none; }
.ch-dienste summary::before { content: "+"; font-weight: 700; width: 10px; }
.ch-dienste[open] summary::before { content: "–"; }
.ch-dienste ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ch-dienste li { display: flex; flex-direction: column; }
.ch-dienste li span { color: var(--ch-text-leise); font-size: 12px; }

.ch-schalter { position: relative; display: inline-block; flex: none; cursor: pointer; }
.ch-schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ch-schalter__bahn {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--ch-linie);
  position: relative;
  transition: background-color 0.2s ease;
}
.ch-schalter__bahn::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.ch-schalter input:checked + .ch-schalter__bahn { background: var(--ch-akzent); }
.ch-schalter input:checked + .ch-schalter__bahn::after { transform: translateX(18px); }
.ch-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Platzhalter für YouTube, Vimeo, Maps */
.ch-einbettung { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--ch-platz-hg); border-radius: 12px; overflow: hidden; }
.ch-einbettung iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Ohne Inhalt: Höhe = Seitenverhältnis (--ch-hoehe), wächst aber mit, wenn der Text mehr Platz braucht */
.ch-einbettung:not(.ch-einbettung--geladen) { display: grid; aspect-ratio: auto !important; }
.ch-einbettung:not(.ch-einbettung--geladen)::before { content: ""; grid-area: 1 / 1; padding-top: var(--ch-hoehe, 56.25%); }
.ch-platzhalter {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: var(--ch-platz-text);
  font-family: var(--ch-schrift);
  font-size: 14px;
}
.ch-platzhalter p { margin: 0; }
.ch-platzhalter__titel { font-family: var(--ch-titel-schrift); font-weight: 700; font-size: 17px; }
.ch-platzhalter__text { color: color-mix(in srgb, var(--ch-platz-text) 65%, var(--ch-platz-hg)); }
.ch-platzhalter__knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.ch-platzhalter .ch-knopf--linie { color: var(--ch-platz-text); border-color: color-mix(in srgb, var(--ch-platz-text) 25%, var(--ch-platz-hg)); }

/* Kurzer Stups, wenn jemand vor der Wahl auf die Seite klickt */
.ch-box--stups { animation: ch-stups 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes ch-stups {
  0%, 100% { transform: none; }
  25% { transform: translateX(-6px); }
  60% { transform: translateX(4px); }
}

/* Handy: kompakter, die zwei Hauptbuttons nebeneinander */
@media (max-width: 560px) {
  .ch-box { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 16px; font-size: 13px; line-height: 1.45; }
  .ch-label { font-size: 11px; margin-bottom: 4px !important; }
  .ch-titel { font-size: 17px; margin-bottom: 4px !important; }
  .ch-knoepfe { gap: 6px; margin-top: 12px; }
  .ch-knopf { height: 40px; padding: 0 12px; font-size: 13px; }
  .ch-links { margin-top: 10px !important; font-size: 11px; }
  .ch-gruppe { padding: 12px; }
  .ch-gruppe__text, .ch-dienste { font-size: 12px; }
  .ch-platzhalter { padding: 20px 16px; }
  .ch-platzhalter .ch-knopf { height: 42px; padding: 0 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .ch-box, .ch-schalter__bahn, .ch-schalter__bahn::after { transition: none; }
  .ch-box--stups { animation: none; outline: 2px solid var(--ch-akzent); }
}
