/* ============ COOKIE CONSENT BANNER ============ */
#cookieConsent {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 24px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
#cookieConsent.visible {
  opacity: 1; transform: translateY(0);
  pointer-events: all;
}
#cookieConsent.hiding {
  opacity: 0; transform: translateY(40px);
}
.consent-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 20, 32, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.consent-box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 36px 40px 32px;
  max-width: 640px; width: 100%;
  box-shadow: 0 25px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(115,46,173,0.08);
  animation: consentSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes consentSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.consent-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.consent-icon {
  font-size: 24px;
}
.consent-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: #141420;
  margin: 0;
}
.consent-box > p {
  font-size: 14px; line-height: 1.7;
  color: #66666E;
  margin: 0 0 24px;
}

/* Details / Einstellungen */
.consent-details {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 20px; margin-bottom: 24px;
}
.consent-detail-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.consent-detail-item:last-child { border-bottom: none; }
.consent-detail-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.consent-detail-header strong {
  font-size: 14px; color: #141420;
}
.consent-detail-item > p {
  font-size: 13px; color: #66666E; line-height: 1.6; margin: 0;
}
.consent-always {
  font-size: 11px; font-weight: 600;
  color: #009EB8; text-transform: uppercase;
  letter-spacing: 1px;
}

/* Toggle Switch */
.consent-toggle {
  position: relative; display: inline-block;
  width: 44px; height: 24px;
}
.consent-toggle input { opacity: 0; width: 0; height: 0; }
.consent-toggle-slider {
  position: absolute; inset: 0;
  background: #ccc; border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.consent-toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.consent-toggle input:checked + .consent-toggle-slider {
  background: #732EAD;
}
.consent-toggle input:checked + .consent-toggle-slider::before {
  transform: translateX(20px);
}

/* Buttons */
.consent-actions {
  display: flex; gap: 10px;
  flex-wrap: wrap;
}
.consent-btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Inter', sans-serif;
}
.consent-btn-accept {
  background: #732EAD; color: #fff;
  flex: 1;
}
.consent-btn-accept:hover {
  background: #5e2494;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(115,46,173,0.3);
}
.consent-btn-reject {
  background: #f0f0f2; color: #141420;
  flex: 1;
}
.consent-btn-reject:hover {
  background: #e4e4e8;
}
.consent-btn-settings {
  background: transparent; color: #66666E;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 12px 18px;
}
.consent-btn-settings:hover {
  border-color: #732EAD; color: #732EAD;
}

/* Widerruf-Link (fuer Datenschutzseite) */
.consent-revoke-link {
  display: inline-block;
  margin-top: 8px;
  color: #732EAD; cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-revoke-link:hover { color: #C72E7A; }

/* Responsive */
@media (max-width: 640px) {
  #cookieConsent { padding: 12px; }
  .consent-box { padding: 28px 24px 24px; border-radius: 16px; }
  .consent-header h3 { font-size: 18px; }
  .consent-actions { flex-direction: column; }
  .consent-btn { width: 100%; text-align: center; }
}
