/* consent.css — cookie-баннер и кнопка настроек в подвале */

.cc[hidden],
.cc [hidden] { display: none !important; }

.cc {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.cc__panel {
  pointer-events: auto;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px 28px;
  background: #fff;
  color: var(--c-text, #504c6b);
  font-family: var(--ff-sans, "Jost", sans-serif);
  font-size: 17px;
  line-height: 1.5;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(62, 74, 92, .28);
}

.cc__title {
  margin: 0 0 8px;
  font-family: var(--ff-serif, "Noto Serif", serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #3e4a5c;
}

.cc__title:focus { outline: none; }

.cc__text,
.cc__cat-text,
.cc__hint { margin: 0 0 16px; }

.cc__text a { color: var(--c-pink, #ae448f); text-decoration: underline; }

.cc__hint {
  padding: 10px 14px;
  border-left: 4px solid var(--c-pink, #ae448f);
  background: #faf1f7;
  border-radius: 4px;
}

/* Кнопки: «Alle akzeptieren» и «Nur notwendige» равнозначны */
.cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cc__btn {
  flex: 1 1 auto;
  min-height: 46px;
  padding: 10px 20px;
  font: 600 16px/1.2 var(--ff-sans, "Jost", sans-serif);
  text-align: center;
  cursor: pointer;
  border-radius: 999px;
  border: 2px solid var(--c-pink, #ae448f);
  transition: background-color .15s, color .15s;
}

.cc__btn--main {
  background: var(--c-pink, #ae448f);
  color: #fff;
}

.cc__btn--main:hover { background: #963a7b; border-color: #963a7b; }

.cc__btn--ghost {
  background: #fff;
  color: var(--c-pink, #ae448f);
}

.cc__btn--ghost:hover { background: #faf1f7; }

.cc__btn:focus-visible,
.cc__open:focus-visible,
.cc__switch input:focus-visible + .cc__slider {
  outline: 3px solid #3e4a5c;
  outline-offset: 2px;
}

/* Категории */
.cc__cat {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8e4ee;
}

.cc__cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.cc__cat-name { font-weight: 600; color: #3e4a5c; }
.cc__cat-text { margin-bottom: 0; font-size: 15px; }

/* Переключатель */
.cc__switch { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }

.cc__switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.cc__slider {
  position: absolute;
  inset: 0;
  background: #b9b5c6;
  border-radius: 999px;
  transition: background-color .15s;
}

.cc__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s;
}

.cc__switch input:checked + .cc__slider { background: var(--c-pink, #ae448f); }
.cc__switch input:checked + .cc__slider::after { transform: translateX(20px); }
.cc__switch input:disabled { cursor: not-allowed; }
.cc__switch input:disabled + .cc__slider { opacity: .6; }

/* Кнопка в подвале и в тексте Datenschutz */
button.footer__link {
  appearance: none;
  background: none;
  border: 0;
  padding-inline: 0;
  margin: 0;
  cursor: pointer;
}

.footer__container { grid-template-columns: repeat(3, 1fr); }

.cc__open {
  padding: 10px 22px;
  font: 600 16px/1.2 var(--ff-sans, "Jost", sans-serif);
  color: #fff;
  background: var(--c-pink, #ae448f);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.cc__open:hover { background: #963a7b; }

@media (max-width: 600px) {
  .cc { padding: 8px; }
  .cc__panel { padding: 18px 16px; font-size: 16px; max-height: calc(100dvh - 16px); }
  .cc__title { font-size: 19px; }
  .cc__btn { flex: 1 1 100%; }
  .footer__container { grid-template-columns: 1fr 1fr; }
  .footer__container > :nth-child(3) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .cc__btn, .cc__slider, .cc__slider::after { transition: none; }
}
