/* ============================================================
   RECIN – Cookie-Consent (nachgebaut nach Oxington/Complianz-Muster)
   4 Kategorien: Funktional (immer aktiv), Präferenzen, Statistiken,
   Marketing. Akzeptieren / Ablehnen / Einstellungen.
   ============================================================ */

.rcc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 34, 0.45);
  backdrop-filter: blur(2px);
  z-index: 99998;
  display: none;
}
.rcc-overlay.rcc-open { display: block; }

.rcc-banner {
  position: fixed;
  z-index: 99999;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  color: #1b2033;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 18, 34, 0.28);
  padding: 24px 24px 20px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}
.rcc-banner.rcc-open { display: block; }

.rcc-logo { height: 34px; width: auto; margin-bottom: 12px; display: block; }
.rcc-title { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.rcc-intro { color: #444a63; margin: 0 0 16px; }

.rcc-cats { margin: 0 0 18px; border-top: 1px solid #eceef5; }
.rcc-cat { border-bottom: 1px solid #eceef5; }
.rcc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
}
.rcc-cat-name { font-weight: 600; }
.rcc-cat-always { font-size: 12px; color: #6a7ba0; font-weight: 500; }
.rcc-cat-desc {
  display: none;
  color: #555b74;
  padding: 0 0 12px;
  font-size: 13px;
}
.rcc-cat.rcc-expanded .rcc-cat-desc { display: block; }

/* Toggle-Switch */
.rcc-switch { position: relative; width: 40px; height: 22px; flex: 0 0 auto; }
.rcc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.rcc-slider {
  position: absolute; inset: 0;
  background: #c7ccdd; border-radius: 22px; transition: .2s;
}
.rcc-slider::before {
  content: ""; position: absolute; height: 16px; width: 16px;
  left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s;
}
.rcc-switch input:checked + .rcc-slider { background: #5B4DFF; }
.rcc-switch input:checked + .rcc-slider::before { transform: translateX(18px); }
.rcc-switch input:disabled + .rcc-slider { background: #5B4DFF; opacity: .55; }

.rcc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rcc-btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.rcc-btn-accept { background: #5B4DFF; color: #fff; }
.rcc-btn-accept:hover { background: #4a3ee0; }
.rcc-btn-deny { background: #eef0f7; color: #1b2033; }
.rcc-btn-deny:hover { background: #e2e5f1; }
.rcc-btn-save { background: #fff; color: #5B4DFF; border-color: #5B4DFF; }
.rcc-btn-save:hover { background: #f3f2ff; }

.rcc-toggle-settings {
  display: inline-block;
  margin-top: 12px;
  background: none; border: none;
  color: #5B4DFF; font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 0; text-decoration: underline;
}
.rcc-banner.rcc-settings .rcc-btn-save { display: inline-block; }
.rcc-banner:not(.rcc-settings) .rcc-btn-save { display: none; }
.rcc-banner:not(.rcc-settings) .rcc-cat-desc { }

/* Kleiner Wieder-Öffnen-Button (unten links), wenn Einwilligung erteilt */
.rcc-reopen {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 99997;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d9dcea;
  box-shadow: 0 6px 18px rgba(15,18,34,0.14);
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
}
.rcc-reopen.rcc-show { display: flex; }

@media (max-width: 480px) {
  .rcc-banner { bottom: 0; border-radius: 16px 16px 0 0; width: 100vw; padding: 20px 16px 16px; }
  .rcc-btn { min-width: 100%; }
}

/* Dark-Mode-freundlich (falls Seite dunkel) – optional neutral gehalten */
