/* ==========================================================
   albertorosario.de – Cookie-Hinweis
   ========================================================== */

.cc { font-family: 'Public Sans', sans-serif; color: var(--text); }
.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(--anthrazit);
  border: 1px solid var(--linie);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: cc-rein .35s ease both;
}
@keyframes cc-rein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.cc-titel {
  font-family: 'Young Serif', serif;
  font-weight: 400;
  font-size: 21px;
  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(--text); text-decoration-color: var(--mint-dunkel); text-underline-offset: 3px; }
.cc-text a:hover { color: var(--mint); }

.cc-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-knopf {
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.2;
}
.cc-knopf--ja { background: var(--mint); color: var(--schwarz); border: 1px solid var(--mint); }
.cc-knopf--ja:hover { background: var(--mint-dunkel); border-color: var(--mint-dunkel); }
/* bewusst zurückhaltend, aber lesbar */
.cc-knopf--nein {
  background: transparent;
  color: var(--text);
  border: 1px solid #5A5751;
  font-weight: 500;
}
.cc-knopf--nein:hover { color: var(--weiss); border-color: #75716A; }
.cc-knopf:focus-visible, .cc-link:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

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

/* ---------- Zweite Ebene: Einstellungen ---------- */
.cc-dialog {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(11, 11, 10, 0.72);
  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(--anthrazit);
  border: 1px solid var(--linie);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.cc-kategorie { border-top: 1px solid var(--linie); 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: 700; font-size: 15px; color: var(--weiss); }
.cc-immer { font-size: 12px; font-weight: 600; color: var(--mint-dunkel); }
.cc-kat-text { font-size: 13.5px; line-height: 1.55; margin: 6px 0 0; color: #A19E97; }

/* 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: var(--schwarz);
  border: 1px solid var(--linie);
  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: var(--text-leise);
  transition: transform .2s, background .2s;
}
.cc-schalter input:checked + span { background: var(--mint-dunkel); border-color: var(--mint-dunkel); }
.cc-schalter input:checked + span::after { transform: translateX(20px); background: var(--weiss); }
.cc-schalter input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }

/* Fußzeilen-Link */
.fuss-knopf {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text);
  cursor: pointer;
}
.fuss-knopf:hover { color: var(--mint); }

/* ---------- Mobil: Blatt am unteren Rand ---------- */
@media (max-width: 760px) {
  .cc-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    padding: 22px 20px calc(18px + env(safe-area-inset-bottom));
  }
  .cc-titel { font-size: 19px; }
  .cc-text { font-size: 13.5px; margin-bottom: 16px; }
  .cc-dialog { align-items: flex-end; padding: 0; }
  .cc-dialog-box { border-radius: 16px 16px 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; }
}
