/* Cookie consent – helles Neumorphismus-Theme, Rot/Gold */
.cookie-consent-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 18px;
  background: rgba(250,247,242,.97);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(61,61,61,.10);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(61,61,61,.16);
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  z-index: 1200;
  max-width: 1100px;
  margin: 0 auto;
  font-family: 'Poppins', system-ui, sans-serif;
}

.cookie-consent-banner .cc-text {
  flex: 1;
  color: rgba(61,61,61,.78);
  font-size: .875rem;
  line-height: 1.55;
}

.cookie-consent-banner .cc-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.cookie-consent-banner .cc-btn {
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid rgba(61,61,61,.14);
  background: rgba(61,61,61,.05);
  font-weight: 600;
  font-size: .85rem;
  color: rgba(61,61,61,.8);
  font-family: inherit;
  transition: background .18s, border-color .18s;
  white-space: nowrap;
}

.cookie-consent-banner .cc-btn:hover {
  background: rgba(61,61,61,.09);
  border-color: rgba(61,61,61,.2);
}

.cookie-consent-banner .cc-btn.primary {
  background: #a10f0f;
  color: #f7ead0;
  border-color: #a10f0f;
}

.cookie-consent-banner .cc-btn.primary:hover {
  background: #7c0d0d;
  border-color: #7c0d0d;
}

.cookie-consent-banner .cc-btn.ghost {
  background: transparent;
  color: rgba(61,61,61,.55);
  border-color: transparent;
}

.cookie-consent-banner .cc-btn.ghost:hover {
  color: rgba(61,61,61,.85);
  background: rgba(61,61,61,.05);
}

.cookie-consent-banner .cc-btn:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .cookie-consent-banner {
    left: 8px;
    right: 8px;
    bottom: 12px;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-consent-banner .cc-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .cookie-consent-banner .cc-btn {
    width: 100%;
    min-height: 42px;
  }
}

/* Preferences modal overlay */
.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,38,34,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 1250;
  font-family: 'Poppins', system-ui, sans-serif;
}

.cc-panel {
  background: #f2f2f2;
  border: 1px solid rgba(61,61,61,.08);
  border-radius: 16px;
  padding: 24px;
  width: min(560px, calc(100% - 32px));
  box-shadow: 0 24px 56px rgba(61,61,61,.22);
}

.cc-panel h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #3d3d3d;
}

.cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(61,61,61,.08);
}

.cc-row:first-of-type {
  border-top: 0;
}

.cc-row strong {
  color: #3d3d3d;
  font-size: .9rem;
}

/* Toggle switch */
.cc-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cc-toggle input[type="checkbox"] {
  width: 44px;
  height: 24px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(61,61,61,.16);
  border-radius: 999px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .18s;
}

.cc-toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(61,61,61,.3);
  transition: transform .18s, background .18s;
}

.cc-toggle input[type="checkbox"]:checked {
  background: #a10f0f;
}

.cc-toggle input[type="checkbox"]:checked::after {
  transform: translateX(20px);
  background: #fff;
}

.cc-toggle input[type="checkbox"]:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.cc-toggle input[type="checkbox"]:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Small floating settings button (unused – handled via footer link) */
.cookie-settings-btn {
  position: fixed;
  right: 12px;
  bottom: 86px;
  z-index: 1300;
  background: rgba(161,15,15,.94);
  backdrop-filter: blur(8px);
  color: #f7ead0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(61,61,61,.22);
  border: 1px solid rgba(212,175,55,.3);
  font-family: 'Poppins', system-ui, sans-serif;
  cursor: pointer;
}
