/* ==========================================================
   stylingbymona.de – Cookie-Hinweis (Layout wie albertorosario.de,
   Farben schwarz / weiß / beige)
   ========================================================== */

.cc { font-family: var(--sans); color: var(--auf-schwarz); }
.cc [hidden] { display: none !important; }

/* ---------- Erste Ebene: Karte unten links ---------- */
.cc-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 400px;
  max-width: calc(100vw - 32px);
  background: var(--schwarz);
  border: 1px solid #3a3836;
  border-radius: var(--rund);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: cc-rein .35s ease both;
}
@keyframes cc-rein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.cc-titel {
  font-family: var(--titel);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  color: var(--weiss);
  margin: 0 0 10px;
}
.cc-text { font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.cc-text a { color: var(--weiss); text-decoration-color: var(--sand); text-underline-offset: 3px; }
.cc-text a:hover { color: var(--creme); }

.cc-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-knopf {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--rund);
  cursor: pointer;
  line-height: 1.2;
}
.cc-knopf--ja { background: var(--creme); color: var(--tinte); border: 1px solid var(--creme); }
.cc-knopf--ja:hover { background: var(--sand); border-color: var(--sand); }
/* bewusst zurückhaltend, aber lesbar */
.cc-knopf--nein {
  background: transparent;
  color: var(--auf-schwarz);
  border: 1px solid #5a5652;
  font-weight: 400;
}
.cc-knopf--nein:hover { color: var(--weiss); border-color: #8a847c; }
.cc-knopf:focus-visible, .cc-link:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }

.cc-link {
  display: block;
  margin: 14px auto 0;
  padding: 2px 4px;
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 13px;
  color: #a9a29a;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cc-link:hover { color: var(--weiss); }

/* ---------- Zweite Ebene: Einstellungen ---------- */
.cc-dialog {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(20, 20, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cc-dialog-box {
  width: 520px;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--schwarz);
  border: 1px solid #3a3836;
  border-radius: var(--rund);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.cc-kategorie { border-top: 1px solid #3a3836; padding: 16px 0; }
.cc-kategorie:last-of-type { margin-bottom: 8px; }
.cc-kat-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.cc-kat-name { font-weight: 600; font-size: 15px; color: var(--weiss); }
.cc-immer { font-size: 12px; font-weight: 600; color: var(--sand); }
.cc-kat-text { font-size: 13.5px; line-height: 1.55; margin: 6px 0 0; color: #a9a29a; }

/* Schalter */
.cc-schalter { position: relative; flex: none; width: 44px; height: 24px; }
.cc-schalter input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cc-schalter span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #2a2826;
  border: 1px solid #5a5652;
  transition: background .2s, border-color .2s;
  pointer-events: none;
}
.cc-schalter span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8a847c;
  transition: transform .2s, background .2s;
}
.cc-schalter input:checked + span { background: var(--sand); border-color: var(--sand); }
.cc-schalter input:checked + span::after { transform: translateX(20px); background: var(--tinte); }
.cc-schalter input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }

/* ---------- Mobil: Blatt am unteren Rand ---------- */
@media (max-width: 760px) {
  .cc-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    border-radius: var(--rund) var(--rund) 0 0;
    border-bottom: 0;
    padding: 22px 20px calc(18px + env(safe-area-inset-bottom));
  }
  .cc-titel { font-size: 20px; }
  .cc-text { font-size: 13.5px; margin-bottom: 16px; }
  .cc-dialog { align-items: flex-end; padding: 0; }
  .cc-dialog-box { border-radius: var(--rund) var(--rund) 0 0; max-height: 88vh; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner { animation: none; }
  .cc-schalter span, .cc-schalter span::after { transition: none; }
}
