/* ── COOKIE CONSENT BANNER ── */
.cookie-consent-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cookie-consent-overlay.show {
  display: flex;
}
.cookie-consent-box {
  background: linear-gradient(145deg, #13103a 0%, #0c0924 50%, #0a0818 100%);
  border: 1px solid rgba(123, 95, 255, 0.3);
  border-radius: 20px;
  padding: 44px 48px 40px;
  max-width: 560px;
  width: 92%;
  text-align: center;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.95),
    0 0 80px rgba(123, 95, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: cookieSlideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.cookie-consent-box::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(123, 95, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.cookie-consent-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(123, 95, 255, 0.5), rgba(160, 132, 255, 0.6), rgba(123, 95, 255, 0.5), transparent);
  border-radius: 2px;
}
.cookie-consent-box > * {
  position: relative;
  z-index: 1;
}
.cookie-consent-box h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(123, 95, 255, 0.3);
}
.cookie-consent-box p {
  font-size: 14.5px;
  color: rgba(200, 200, 230, 0.65);
  line-height: 1.75;
  margin-bottom: 28px;
  font-family: 'Barlow', sans-serif;
}
.cookie-consent-box a {
  color: #a084ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(160, 132, 255, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
}
.cookie-consent-box a:hover {
  color: #c4b0ff;
  border-bottom-color: rgba(196, 176, 255, 0.6);
}
.cookie-consent-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cookie-consent-btn {
  background: linear-gradient(135deg, #7B5FFF 0%, #6244e0 50%, #5a3fcf 100%);
  color: #fff;
  border: none;
  padding: 15px 44px;
  border-radius: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  margin: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(123, 95, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3);
}
.cookie-consent-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.cookie-consent-btn:hover {
  background: linear-gradient(135deg, #9a7fff 0%, #7B5FFF 50%, #6a4fe8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 95, 255, 0.45), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.cookie-consent-btn:hover::before {
  opacity: 1;
}
.cookie-consent-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(123, 95, 255, 0.25);
}
.cookie-consent-btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  padding: 15px 32px;
  box-shadow: none;
}
.cookie-consent-btn.secondary::before {
  display: none;
}
.cookie-consent-btn.secondary:hover {
  background: rgba(123, 95, 255, 0.08);
  border-color: rgba(123, 95, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(123, 95, 255, 0.15);
}
.cookie-consent-btn.secondary:active {
  transform: translateY(0);
}

@keyframes cookieSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── DATENSCHUTZ CHECKBOX (Registration) ── */
.privacy-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 4px;
  cursor: pointer;
}
.privacy-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: #7B5FFF;
  margin-top: 2px;
  cursor: pointer;
}
.privacy-checkbox-wrap label {
  font-size: 12px !important;
  color: rgba(200, 200, 230, 0.55) !important;
  line-height: 1.5;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  cursor: pointer;
  user-select: none;
}
.privacy-checkbox-wrap label a {
  color: #a084ff;
  text-decoration: underline;
}
.privacy-checkbox-wrap label a:hover {
  color: #c4b0ff;
}

/* ── IMPRESSUM / DATENSCHUTZ OVERLAY ── */
.legal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 100001;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px;
}
.legal-overlay.show {
  display: flex;
}
.legal-box {
  background: linear-gradient(160deg, #151240 0%, #0f0d2a 30%, #0a0818 100%);
  border: 1px solid rgba(123, 95, 255, 0.25);
  border-radius: 20px;
  padding: 48px 52px 44px;
  max-width: 740px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.95),
    0 0 80px rgba(123, 95, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: legalSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow-x: hidden;
}
.legal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, rgba(123, 95, 255, 0.6) 30%, rgba(160, 132, 255, 0.8) 50%, rgba(123, 95, 255, 0.6) 70%, transparent 95%);
  border-radius: 20px 20px 0 0;
  z-index: 2;
}
.legal-box::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(123, 95, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.legal-box::-webkit-scrollbar {
  width: 7px;
}
.legal-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  margin: 8px 0;
}
.legal-box::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(123, 95, 255, 0.4), rgba(123, 95, 255, 0.2));
  border-radius: 4px;
}
.legal-box::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(123, 95, 255, 0.6), rgba(123, 95, 255, 0.35));
}

.legal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
}
.legal-close:hover {
  color: #fff;
  background: rgba(123, 95, 255, 0.15);
  border-color: rgba(123, 95, 255, 0.3);
  transform: rotate(90deg);
}

.legal-box h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding-right: 40px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 30px rgba(123, 95, 255, 0.2);
}

.legal-box h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #a084ff;
  margin: 30px 0 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding-left: 16px;
}
.legal-box h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: linear-gradient(180deg, #7B5FFF, #a084ff);
  border-radius: 2px;
}

.legal-box h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin: 22px 0 10px;
  letter-spacing: 0.03em;
}

.legal-box p,
.legal-box li {
  font-size: 13.5px;
  color: rgba(200, 200, 230, 0.65);
  line-height: 1.8;
  font-family: 'Barlow', sans-serif;
  margin-bottom: 10px;
}
.legal-box p strong {
  color: rgba(255, 255, 255, 0.75);
}

.legal-box ul {
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal-box ul li {
  padding-left: 6px;
  margin-bottom: 6px;
  position: relative;
}
.legal-box ul li::marker {
  color: rgba(123, 95, 255, 0.5);
}

.legal-box a {
  color: #a084ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(160, 132, 255, 0.25);
  transition: all 0.25s ease;
}
.legal-box a:hover {
  color: #c4b0ff;
  border-bottom-color: rgba(196, 176, 255, 0.5);
}

.legal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(123, 95, 255, 0.25) 30%, rgba(160, 132, 255, 0.35) 50%, rgba(123, 95, 255, 0.25) 70%, transparent 95%);
  margin: 28px 0;
  border: none;
  position: relative;
}
.legal-divider::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: rgba(123, 95, 255, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(123, 95, 255, 0.3);
}

.legal-box .legal-date-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(123, 95, 255, 0.08);
  border: 1px solid rgba(123, 95, 255, 0.15);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(200, 200, 230, 0.55);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

@keyframes legalSlideIn {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── FOOTER LEGAL ── */
.footer-legal {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-legal a {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
}
.footer-legal a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #a084ff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}
.footer-legal a:hover {
  color: #a084ff;
}
.footer-legal a:hover::after {
  transform: scaleX(1);
}
.footer-legal-sep {
  color: rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

/* ── RESPONSIVE ── */
@media screen and (max-width: 600px) {
  .cookie-consent-box {
    padding: 32px 24px 28px;
    border-radius: 16px;
  }
  .cookie-consent-box h2 {
    font-size: 20px;
  }
  .cookie-consent-box p {
    font-size: 13px;
    margin-bottom: 22px;
  }
  .cookie-consent-btn {
    padding: 13px 28px;
    font-size: 14px;
    border-radius: 10px;
  }
  .cookie-consent-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .legal-box {
    padding: 36px 24px 28px;
    border-radius: 16px;
  }
  .legal-box h1 {
    font-size: 22px;
  }
  .legal-box h2 {
    font-size: 16px;
    margin: 24px 0 10px;
  }
  .legal-box p,
  .legal-box li {
    font-size: 13px;
  }
  .legal-close {
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 30px 20px;
  }
}
