/* ═══════════════════════════════════
   Cookie Consent Banner – DSGVO/GDPR
   ═══════════════════════════════════ */

#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

#cookie-consent-banner.cc-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.cc-inner {
  max-width: 680px;
  margin: 0 auto 16px;
  padding: 20px 24px;
  background: rgba(15, 15, 35, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 92, 255, 0.08);
  /* Safe area for notched phones */
  margin-bottom: max(16px, env(safe-area-inset-bottom, 16px));
}

@media (max-width: 700px) {
  .cc-inner {
    margin: 0;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
  }
}

.cc-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.cc-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 36px;
  height: 36px;
  line-height: 0;
  filter: drop-shadow(0 0 6px rgba(124, 92, 255, 0.3));
}
.cc-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.cc-text strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cc-text p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.cc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cc-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.cc-btn-accept {
  background: linear-gradient(135deg, #7C5CFF, #6B4CE6);
  color: #fff;
}

.cc-btn-accept:hover {
  background: linear-gradient(135deg, #8B6CFF, #7C5CFF);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.3);
}

.cc-btn-necessary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cc-btn-necessary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cc-btn-settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  padding: 10px 14px;
  font-size: 12px;
}

.cc-btn-settings:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ═══ Detail Settings ═══ */
.cc-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
}

.cc-toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #7C5CFF;
  flex-shrink: 0;
}

.cc-toggle-row strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.cc-toggle-row small {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  margin-top: 2px;
}

.cc-details-actions {
  margin-top: 12px;
  text-align: right;
}

.cc-privacy-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  text-decoration: none;
}

.cc-privacy-link:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ═══ Desktop: max 1025px display ═══ */
@media (min-width: 1025px) {
  .cc-inner {
    margin-bottom: 24px;
  }
}

/* ═══ Small phones ═══ */
@media (max-width: 400px) {
  .cc-inner {
    padding: 16px;
  }
  .cc-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  .cc-text strong {
    font-size: 14px;
  }
  .cc-text p {
    font-size: 12px;
  }
}
