/**
 * AESTHETIX Cookie Consent Styles
 * Zentrale CSS-Datei für Cookie Banner, Settings Modal, Floating Button & Footer Social Icons
 */

/* ============================================
   CSS VARIABLES (Fallbacks für alle Seiten)
   ============================================ */
:root {
  --cookie-primary: #D4A843;
  --cookie-primary-dark: #B8922A;
  --cookie-gold: #D4A843;
  --cookie-bg-dark: #0F1D32;
  --cookie-bg-darker: #0A1628;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-banner--visible {
  opacity: 1;
  visibility: visible;
}

.cookie-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-banner__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  background: var(--cookie-bg-dark);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner__title {
  font-family: var(--ff-display, 'Playfair Display', Georgia, serif);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.cookie-banner__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cookie-banner__text--small {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.cookie-banner__text a {
  color: var(--gold, var(--cookie-gold));
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.cookie-banner__btn {
  flex: 1;
  min-width: 140px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.cookie-banner__btn--accept-all {
  background: linear-gradient(135deg, var(--primary, var(--cookie-primary)) 0%, var(--primary-dark, var(--cookie-primary-dark)) 100%);
  color: #0A1628;
}

.cookie-banner__btn--accept-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.4);
}

.cookie-banner__btn--necessary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner__btn--necessary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cookie-banner__btn--settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner__btn--settings:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   COOKIE SETTINGS MODAL
   ============================================ */
.cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-settings--visible {
  opacity: 1;
  visibility: visible;
}

.cookie-settings__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-settings__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  background: var(--cookie-bg-dark);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings__title {
  font-family: var(--ff-display, 'Playfair Display', Georgia, serif);
  font-size: 1.3rem;
  color: #fff;
  margin: 0;
}

.cookie-settings__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-settings__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.cookie-settings__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
}

.cookie-settings__intro {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cookie-settings__category {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.cookie-settings__category-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-settings__category-info {
  flex: 1;
}

.cookie-settings__category-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px 0;
}

.cookie-settings__category-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
}

/* Toggle Switch */
.cookie-settings__toggle {
  flex-shrink: 0;
}

.cookie-settings__toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-settings__toggle-label {
  display: block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.cookie-settings__toggle-switch {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  position: relative;
  transition: background 0.2s ease;
}

.cookie-settings__toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-settings__toggle input:checked + .cookie-settings__toggle-label .cookie-settings__toggle-switch {
  background: var(--primary, var(--cookie-primary));
}

.cookie-settings__toggle input:checked + .cookie-settings__toggle-label .cookie-settings__toggle-switch::after {
  transform: translateX(24px);
}

.cookie-settings__toggle--disabled {
  opacity: 0.6;
}

.cookie-settings__toggle--disabled .cookie-settings__toggle-label {
  cursor: not-allowed;
}

.cookie-settings__footer {
  display: flex;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings__footer .cookie-banner__btn {
  flex: 1;
}

/* ============================================
   FLOATING COOKIE BUTTON
   ============================================ */
.cookie-floating-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary, var(--cookie-primary)) 0%, var(--primary-dark, var(--cookie-primary-dark)) 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.4);
  z-index: 9998;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-floating-btn--visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.cookie-floating-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.5);
}

.cookie-floating-btn:active {
  transform: scale(0.95);
}

/* ============================================
   FOOTER SOCIAL ICONS
   ============================================ */
.footer__social,
.lp-footer__social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.footer__social-link,
.lp-footer__social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__social-link:hover,
.lp-footer__social-link:hover {
  background: var(--gold, var(--cookie-gold));
  color: var(--bg-darker, var(--cookie-bg-darker));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(209, 173, 111, 0.3);
}

.footer__social-link svg,
.lp-footer__social-link svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   RESPONSIVE / MOBILE
   ============================================ */
@media (max-width: 480px) {
  .cookie-banner__container {
    padding: 1.5rem;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__btn {
    width: 100%;
  }

  .cookie-settings__header,
  .cookie-settings__body,
  .cookie-settings__footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .cookie-settings__footer {
    flex-direction: column;
  }

  .cookie-floating-btn {
    bottom: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
  }

  .footer__social,
  .lp-footer__social {
    gap: 8px;
  }

  .footer__social-link,
  .lp-footer__social-link {
    width: 40px;
    height: 40px;
  }

  .footer__social-link svg,
  .lp-footer__social-link svg {
    width: 18px;
    height: 18px;
  }
}
