/* ==============================
   RANMO COOKIE CONSENT — DSGVO konform
   ============================== */

/* ----- Banner unten ----- */
.cc-banner {
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  z-index: 9998;
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(47, 46, 46, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border, #403B3B);
  border-radius: 16px;
  padding: 24px 28px;
  display: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  font-family: 'Barlow', sans-serif;
  animation: cc-slide-up 0.4s ease-out;
}
.cc-banner.cc-visible { display: block; }

@keyframes cc-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cc-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.cc-banner-text h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent, #00D1C2);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.cc-banner-text p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text, #F2F4F7);
  line-height: 1.6;
  margin: 0;
}
.cc-banner-text p a {
  color: var(--accent, #00D1C2);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 209, 194, 0.4);
}

.cc-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  background: transparent;
}
.cc-btn-primary {
  background: var(--accent, #00D1C2);
  color: var(--bg, #2F2E2E);
  border-color: var(--accent, #00D1C2);
}
.cc-btn-primary:hover {
  background: var(--accent-2, #00AFA3);
  border-color: var(--accent-2, #00AFA3);
}
.cc-btn-outline {
  color: var(--text, #F2F4F7);
  border-color: rgba(255, 255, 255, 0.3);
}
.cc-btn-outline:hover {
  border-color: var(--accent, #00D1C2);
  color: var(--accent, #00D1C2);
}
.cc-btn-ghost {
  color: var(--text-2, #BFC5CE);
  border-color: transparent;
  padding: 11px 14px;
}
.cc-btn-ghost:hover {
  color: var(--accent, #00D1C2);
}

/* ----- Settings Modal ----- */
.cc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cc-modal-overlay.cc-visible {
  display: flex;
  animation: cc-fade-in 0.3s ease-out;
}

@keyframes cc-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cc-modal {
  background: var(--bg, #2F2E2E);
  border: 1px solid var(--border, #403B3B);
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Barlow', sans-serif;
  animation: cc-scale-in 0.3s ease-out;
}
@keyframes cc-scale-in {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cc-modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border, #403B3B);
}
.cc-modal-header h2 {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent, #00D1C2);
  margin: 0 0 8px;
}
.cc-modal-header p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-2, #BFC5CE);
  line-height: 1.6;
  margin: 0;
}

.cc-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}

.cc-category {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border, #403B3B);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.cc-category:hover {
  border-color: rgba(0, 209, 194, 0.4);
}

.cc-category-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}
.cc-category-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text, #F2F4F7);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Barlow', sans-serif;
}
.cc-category-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-2, #BFC5CE);
  line-height: 1.6;
}

/* Toggle Switch */
.cc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-switch .cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: 0.25s;
}
.cc-switch .cc-slider::before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 3px; top: 3px;
  background: var(--text, #F2F4F7);
  border-radius: 50%;
  transition: 0.25s;
}
.cc-switch input:checked + .cc-slider {
  background: var(--accent, #00D1C2);
  border-color: var(--accent, #00D1C2);
}
.cc-switch input:checked + .cc-slider::before {
  transform: translateX(20px);
  background: var(--bg, #2F2E2E);
}
.cc-switch input:disabled + .cc-slider {
  background: var(--accent, #00D1C2);
  opacity: 0.5;
  cursor: not-allowed;
}
.cc-switch input:disabled + .cc-slider::before {
  transform: translateX(20px);
  background: var(--bg, #2F2E2E);
}

.cc-category-lock {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent, #00D1C2);
  margin-left: 4px;
}

.cc-modal-footer {
  padding: 18px 32px 24px;
  border-top: 1px solid var(--border, #403B3B);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cc-modal-footer .cc-footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Floating Re-Open Button (z.B. nach Annahme) */
.cc-reopen {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9990;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-2, #3A3939);
  border: 1px solid var(--border, #403B3B);
  color: var(--accent, #00D1C2);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.cc-reopen.cc-visible { display: flex; }
.cc-reopen:hover {
  background: var(--accent, #00D1C2);
  color: var(--bg, #2F2E2E);
}

/* ----- Responsive ----- */
@media (max-width: 760px) {
  .cc-banner {
    left: 12px; right: 12px; bottom: 12px;
    padding: 20px 22px;
  }
  .cc-banner-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cc-banner-actions {
    width: 100%;
  }
  .cc-banner-actions .cc-btn {
    flex: 1;
    min-width: calc(50% - 5px);
  }
  .cc-modal-header,
  .cc-modal-body,
  .cc-modal-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
  .cc-modal-footer {
    flex-direction: column;
  }
  .cc-modal-footer .cc-btn,
  .cc-modal-footer .cc-footer-actions {
    width: 100%;
  }
  .cc-modal-footer .cc-footer-actions .cc-btn {
    flex: 1;
  }
}
