/* ─────────────────────────────────────────────
   Cookie Consent — Editorial Style
   Zentriertes Popup im Pro Shine Look
   ───────────────────────────────────────────── */

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(6, 6, 6, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner {
  position: relative;
  z-index: 9999;
  background: #0A0A0A;
  border: 1px solid rgba(201, 169, 97, 0.2);
  max-width: 580px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 48px;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #F4F2EE;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}
.cookie-overlay.visible .cookie-banner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Subtile goldene Eckmarken — wie im Editorial-Stil der Seite */
.cookie-banner::before,
.cookie-banner::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid #C9A961;
  opacity: 0.6;
  pointer-events: none;
}
.cookie-banner::before {
  top: 16px;
  left: 16px;
  border-right: none;
  border-bottom: none;
}
.cookie-banner::after {
  bottom: 16px;
  right: 16px;
  border-left: none;
  border-top: none;
}

.cookie-eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #C9A961;
  margin-bottom: 20px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: #C9A961;
}

.cookie-title {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: #F4F2EE;
}
.cookie-title em {
  font-style: italic;
  color: #C9A961;
}

.cookie-text {
  font-size: 14px;
  line-height: 1.7;
  color: #8A8580;
  margin-bottom: 28px;
}
.cookie-text a {
  color: #C9A961;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 97, 0.4);
  transition: border-color 0.3s;
}
.cookie-text a:hover {
  border-bottom-color: #C9A961;
}

/* Aktions-Buttons: alle gleichwertig (DSGVO-Anforderung) */
.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.cookie-actions-row-2 {
  display: block;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  color: #F4F2EE;
  border-color: rgba(255, 255, 255, 0.15);
  text-align: center;
  width: 100%;
}
.cookie-btn:hover {
  border-color: #F4F2EE;
}
.cookie-btn--primary {
  background: #C9A961;
  color: #0A0A0A;
  border-color: #C9A961;
}
.cookie-btn--primary:hover {
  background: transparent;
  color: #C9A961;
  border-color: #C9A961;
}
.cookie-btn--text {
  background: transparent;
  border: none;
  color: #8A8580;
  padding: 12px 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(138, 133, 128, 0.3);
  width: 100%;
  display: block;
  text-align: center;
}
.cookie-btn--text:hover {
  color: #C9A961;
}

/* Einstellungen-Panel (zunächst versteckt) */
.cookie-settings {
  display: none;
  margin: 28px 0 28px;
  border-top: 1px solid #1F1F1F;
  padding-top: 28px;
}
.cookie-settings.visible {
  display: block;
}

.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #1F1F1F;
}
.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category-info {
  flex: 1;
}
.cookie-category-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: #F4F2EE;
  margin-bottom: 4px;
}
.cookie-category-desc {
  font-size: 12px;
  color: #8A8580;
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #1F1F1F;
  border: 1px solid #4A4744;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #8A8580;
  border-radius: 50%;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: rgba(201, 169, 97, 0.2);
  border-color: #C9A961;
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  background: #C9A961;
  left: 22px;
}
.cookie-toggle input:disabled + .cookie-toggle-slider {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Focus Indicators für Keyboard-Navigation */
.cookie-banner button:focus-visible,
.cookie-banner a:focus-visible,
.cookie-banner input:focus-visible + .cookie-toggle-slider {
  outline: 2px solid #C9A961;
  outline-offset: 3px;
}

/* Mobile */
@media (max-width: 600px) {
  .cookie-banner {
    padding: 36px 24px;
  }
  .cookie-actions {
    grid-template-columns: 1fr;
  }
  .cookie-title {
    font-size: 26px;
  }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .cookie-overlay,
  .cookie-banner,
  .cookie-toggle-slider,
  .cookie-toggle-slider::before {
    transition: none;
  }
}
