/* ═══════════════════════════════════════════════════════
   NTX Digital — Custom Cookie-Banner (DSGVO-konform)
═══════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  display: none;
  pointer-events: none;
}
.cookie-banner.is-visible {
  display: block;
  pointer-events: auto;
  animation: cookieSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner__card {
  max-width: 560px;
  margin: 0 auto;
  background: #18264e;
  color: #fff;
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: 0 30px 80px rgba(15, 26, 58, 0.45),
              0 0 0 1px rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-banner__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.cookie-banner__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(59, 107, 248, 0.18);
  border: 1px solid rgba(59, 107, 248, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.cookie-banner__title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.cookie-banner__text {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}
.cookie-banner__text a {
  color: #3B6BF8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__text a:hover { color: #6b8ff9; }

/* Options (expandable detail view) */
.cookie-banner__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
.cookie-banner__options[hidden] { display: none; }

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 4px;
  cursor: pointer;
}
.cookie-option + .cookie-option { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.cookie-option > div:first-child { flex: 1; min-width: 0; }
.cookie-option__title {
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 2px;
}
.cookie-option__desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}
.cookie-option__always {
  font-size: 11px;
  font-weight: 700;
  color: rgba(59, 107, 248, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

/* Toggle switch */
.cookie-switch {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}
.cookie-switch__slider {
  position: relative;
  flex-shrink: 0;
  width: 40px; height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  transition: background 0.2s;
}
.cookie-switch__slider::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s, background 0.2s;
}
.cookie-switch:checked + .cookie-switch__slider {
  background: #3B6BF8;
}
.cookie-switch:checked + .cookie-switch__slider::after {
  transform: translateX(18px);
}

/* Actions */
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.cookie-btn {
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  border: 0;
  line-height: 1;
}
.cookie-btn--primary {
  background: #3B6BF8;
  color: #fff;
}
.cookie-btn--primary:hover {
  background: #2a5ae0;
  transform: translateY(-1px);
}
.cookie-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.cookie-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.cookie-btn[hidden] { display: none; }

/* Mobile-specific tweaks */
@media (max-width: 520px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .cookie-banner__card { padding: 22px 20px; border-radius: 20px; }
  .cookie-banner__head { gap: 12px; }
  .cookie-banner__icon { width: 38px; height: 38px; font-size: 18px; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-btn { flex: 1 1 auto; padding: 12px 16px; text-align: center; }
}

/* Footer re-open link */
.cookie-reopen {
  background: none;
  border: 0;
  padding: 6px 0;
  font: inherit;
  cursor: pointer;
  color: rgba(27, 45, 92, 0.55);
  font-size: 14.5px;
  text-align: left;
}
.cookie-reopen:hover { color: #3B6BF8; }
