/**
 * GDPR Cookie Consent Banner Styles
 * DSGVO-konformer Cookie-Einwilligungsbanner
 */

/* Cookie-Einwilligungsbanner Basisstile */
#cookieConsentBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(27, 38, 59, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 245, 255, 0.3);
  padding: 20px;
  z-index: 9999;
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Banner ausgeblendet */
#cookieConsentBanner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* Banner-Inhaltscontainer */
.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* Textinhaltsbereich */
.cookie-consent-text {
  flex: 1;
  min-width: 300px;
  color: #e0e1dd;
}

/* Titel-Stil */
.cookie-consent-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #00f5ff;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-consent-title::before {
  content: "🍪";
}

/* Beschreibungstext-Stil */
.cookie-consent-description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 15px 0;
  color: #b0b8c1;
}

/* Link-Stil */
.cookie-consent-link {
  color: #4ecdc4;
  text-decoration: none;
  border-bottom: 1px dotted #4ecdc4;
  transition: all 0.3s ease;
}

.cookie-consent-link:hover {
  color: #00f5ff;
  border-bottom: 1px solid #00f5ff;
}

/* Button-Container */
.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* Button-Basisstil */
.cookie-consent-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 120px;
}

/* Alle akzeptieren Button */
#acceptAllCookies {
  background: linear-gradient(135deg, #00f5ff, #4ecdc4);
  color: #0d1b2a;
  box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

#acceptAllCookies:hover {
  background: linear-gradient(135deg, #4ecdc4, #00f5ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 245, 255, 0.4);
}

/* Ablehnen Button */
#rejectCookies {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e1dd;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#rejectCookies:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Einstellungen verwalten Button */
#managePreferences {
  background: transparent;
  color: #4ecdc4;
  border: 1px solid #4ecdc4;
}

#managePreferences:hover {
  background: rgba(78, 205, 196, 0.1);
  border-color: #00f5ff;
  color: #00f5ff;
  transform: translateY(-2px);
}

/* Schließen Button */
#closeCookieBanner {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #b0b8c1;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#closeCookieBanner:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e1dd;
}

/* Responsives Design */
@media (max-width: 768px) {
  #cookieConsentBanner {
    padding: 15px;
  }
  
  .cookie-consent-container {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-consent-text {
    min-width: 100%;
  }
  
  .cookie-consent-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .cookie-consent-btn {
    flex: 1;
    min-width: auto;
  }
  
  #closeCookieBanner {
    position: relative;
    top: auto;
    right: auto;
    margin: 10px auto 0;
  }
}

@media (max-width: 480px) {
  .cookie-consent-buttons {
    flex-direction: column;
  }
  
  .cookie-consent-btn {
    width: 100%;
  }
}

/* 焦点状态样式（无障碍访问） */
.cookie-consent-btn:focus,
#closeCookieBanner:focus {
  outline: 2px solid #00f5ff;
  outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  #cookieConsentBanner {
    border: 2px solid #fff;
  }
  
  .cookie-consent-btn {
    border-width: 2px;
  }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
  #cookieConsentBanner,
  .cookie-consent-btn,
  #closeCookieBanner {
    transition: none;
  }
  
  #acceptAllCookies:hover,
  #rejectCookies:hover,
  #managePreferences:hover,
  #closeCookieBanner:hover {
    transform: none;
  }
}