/* ============================================================
   FT Sicherheitstechnik — Cookie Consent Banner Styles
   Dark premium look, mobile-first, respects color scheme.
   ============================================================ */

.ft-cookie {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(20px);
  z-index: 10000;
  width: min(720px, calc(100vw - 2rem));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ft-cookie.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.ft-cookie__panel {
  background: rgba(15, 15, 17, 0.96);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(34, 197, 94, 0.05);
  color: #f5f5f7;
}

[data-theme="light"] .ft-cookie__panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1a1a1c;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.ft-cookie__content { margin-bottom: 1.25rem; }

.ft-cookie__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: inherit;
}

.ft-cookie__text {
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="light"] .ft-cookie__text { color: rgba(0, 0, 0, 0.7); }

.ft-cookie__text a {
  color: #22c55e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ft-cookie__text a:hover { color: #16a34a; }

.ft-cookie__options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ft-cookie__options[hidden] { display: none; }

[data-theme="light"] .ft-cookie__options {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.ft-cookie__option {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .ft-cookie__option { color: rgba(0, 0, 0, 0.8); }

.ft-cookie__option input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #22c55e;
  cursor: pointer;
}

.ft-cookie__option input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.ft-cookie__option strong { color: inherit; font-weight: 600; }

.ft-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.ft-cookie__btn {
  padding: 0.625rem 1.125rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}

.ft-cookie__btn:hover { transform: translateY(-1px); }
.ft-cookie__btn:active { transform: translateY(0); }
.ft-cookie__btn:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

.ft-cookie__btn--primary {
  background: #22c55e;
  color: #0a0a0b;
  border-color: #22c55e;
}
.ft-cookie__btn--primary:hover { background: #16a34a; border-color: #16a34a; }

.ft-cookie__btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.12);
}
.ft-cookie__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
[data-theme="light"] .ft-cookie__btn--secondary {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1c;
  border-color: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .ft-cookie__btn--secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}

.ft-cookie__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-color: transparent;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.ft-cookie__btn--ghost:hover {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.04);
}
[data-theme="light"] .ft-cookie__btn--ghost { color: rgba(0, 0, 0, 0.65); }
[data-theme="light"] .ft-cookie__btn--ghost:hover {
  color: #1a1a1c;
  background: rgba(0, 0, 0, 0.04);
}

/* Mobile layout */
@media (max-width: 560px) {
  .ft-cookie { bottom: 0.5rem; }
  .ft-cookie__panel { padding: 1.25rem; border-radius: 14px; }
  .ft-cookie__title { font-size: 1rem; }
  .ft-cookie__text { font-size: 0.8125rem; }
  .ft-cookie__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .ft-cookie__btn { width: 100%; text-align: center; padding: 0.75rem 1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ft-cookie { transition: none; }
}
