/* Cookie-Einwilligungsbanner – Opt-in, Consent Mode v2.
   Gestaltung folgt dem vorhandenen Design-System (siehe css/styles.css :root). */

.cc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: #fff;
  border-top: 1px solid var(--line, #E7E1D8);
  box-shadow: 0 -12px 40px rgba(14, 35, 64, .14);
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(105%);
  transition: transform .3s ease;
}

.cc.is-open { transform: none; }
.cc[hidden] { display: none; }

.cc__inner { padding: 22px 0 26px; }

.cc__panel { max-width: 1000px; }

.cc__title {
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--ink, #1A1513);
}

.cc__intro {
  font-size: 14px;
  line-height: 1.62;
  margin: 0 0 14px;
  color: var(--ink, #1A1513);
  max-width: 860px;
}

.cc__facts-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink, #1A1513);
}

.cc__facts {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink, #1A1513);
  max-width: 900px;
}

.cc__facts li { margin: 0 0 3px; }
.cc__facts span { font-weight: 700; color: var(--brand-deep, #0E2340); }

.cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 12px;
}

.cc-btn {
  flex: 1 1 0;
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* Beide Haupt-Schaltflächen sind bewusst gleich groß und gleich auffällig. */
.cc-btn--accept { background: var(--brand, #143D97); color: #fff; }
.cc-btn--accept:hover { background: var(--brand-deep, #0E2340); }

.cc-btn--reject { background: var(--ink, #1A1513); color: #fff; }
.cc-btn--reject:hover { background: #000; }

.cc-btn--save { background: #fff; color: var(--brand, #143D97); border-color: var(--brand, #143D97); }
.cc-btn--save:hover { background: var(--brand, #143D97); color: #fff; }

.cc__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--stone, #6E655D);
}

.cc__links a {
  color: var(--brand, #143D97);
  font-weight: 600;
  text-decoration: underline;
}

.cc__link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand, #143D97);
  text-decoration: underline;
  cursor: pointer;
}

.cc__link-btn:hover { color: var(--brand-deep, #0E2340); }

/* Ebene 2 – Kategorien */
.cc__cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line, #E7E1D8);
}

.cc__cat-main { min-width: 0; }

.cc__cat-name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink, #1A1513);
}

.cc__cat-desc {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: var(--stone, #6E655D);
  max-width: 720px;
}

.cc__cat-lock {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--stone, #6E655D);
  white-space: nowrap;
  padding-top: 2px;
}

/* Schalter (nicht vorausgewählt) */
.cc-switch {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
  display: inline-block;
}

.cc-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cc-switch__track {
  position: absolute;
  inset: 0;
  background: #C9C2B9;
  border-radius: 999px;
  transition: background-color .2s ease;
}

.cc-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}

.cc-switch input:checked + .cc-switch__track { background: var(--brand, #143D97); }
.cc-switch input:checked + .cc-switch__track::after { transform: translateX(22px); }
.cc-switch input:focus-visible + .cc-switch__track { outline: 2px solid var(--brand, #143D97); outline-offset: 2px; }

@media (max-width: 560px) {
  .cc__inner { padding: 18px 0 22px; }
  .cc-btn { min-width: 100%; }
}
