#cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 10, 20, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#cookie-overlay.cp-visible { opacity: 1; }
#cookie-overlay.cp-hiding  { opacity: 0; }

#cookie-popup {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 40px 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  transform: translateY(16px);
  transition: transform 0.35s ease;
}
#cookie-overlay.cp-visible #cookie-popup { transform: translateY(0); }

.cp-icon {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1;
}
.cp-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}
.cp-text {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 28px;
}
.cp-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.cp-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.15s;
}
.cp-btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.cp-btn:active { transform: translateY(0); }
.cp-accept {
  background: #F5A800;
  color: #0B1220;
}
.cp-decline {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
}
.cp-link {
  display: inline-block;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.cp-link:hover { color: #F5A800; }

/* Kategorien */
.cp-categories {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}
.cp-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.cp-category:last-child { border-bottom: none; }
.cp-category:hover { background: rgba(255,255,255,0.03); }
.cp-category--required { cursor: default; opacity: 0.7; }
.cp-cat-info { flex: 1; }
.cp-cat-name {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.cp-cat-desc {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  line-height: 1.4;
}
/* Toggle Switch */
.cp-checkbox { display: none; }
.cp-toggle {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255,255,255,0.15);
  position: relative;
  flex-shrink: 0;
  transition: background 0.25s;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2px;
}
.cp-toggle::after {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s;
  display: block;
}
.cp-checkbox:checked + .cp-toggle { background: #F5A800; }
.cp-checkbox:checked + .cp-toggle::after { transform: translateX(18px); }
.cp-toggle--on {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 700;
  width: auto;
  padding: 4px 8px;
  border-radius: 4px;
}
.cp-toggle--on::after { display: none; }

/* Buttons */
.cp-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.cp-accept-all { background: #F5A800; color: #0B1220; }
.cp-save {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
}
.cp-decline {
  background: transparent;
  color: rgba(255,255,255,0.35);
  border: none;
  font-size: 13px;
  padding: 8px 20px;
}

/* Status-Badges auf Cookie-Seite */
.cp-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 8px;
}
.cp-status-on  { background: rgba(34,197,94,0.15); color: #4ade80; }
.cp-status-off { background: rgba(239,68,68,0.12); color: #f87171; }

@media (max-width: 480px) {
  #cookie-popup { padding: 28px 20px 24px; }
}
