/* Cookie Consent Banner Styles für Aumento Value */
/* DSGVO-konform - Version 1.0 */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
  display: none;
  border-top: 3px solid #FF5472;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.cookie-title {
  color: #16394D;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.cookie-description {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.cookie-settings-toggle {
  color: #16394D;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
}

.cookie-settings-toggle:hover {
  color: #FF5472;
}

.cookie-settings {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E5E7EB;
}

.cookie-settings.show {
  display: block;
}

.cookie-category {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #F9FAFB;
  border-radius: 0.5rem;
  border: 1px solid #E5E7EB;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-category-info {
  flex: 1;
  margin-right: 1rem;
}

.cookie-category-title {
  font-weight: 500;
  color: #16394D;
  margin-bottom: 0.25rem;
}

.cookie-category-description {
  font-size: 0.75rem;
  color: #6B7280;
  line-height: 1.4;
}

/* Toggle Switch Styles */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .cookie-slider {
  background-color: #FF5472;
}

input:disabled + .cookie-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

/* Button Styles */
.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.cookie-btn-secondary {
  background: #E5E7EB;
  color: #16394D;
}

.cookie-btn-secondary:hover {
  background: #D1D5DB;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #16394D, #FF5472);
  color: white;
}

.cookie-btn-primary:hover {
  box-shadow: 0 4px 12px rgba(255,84,114,0.3);
  transform: translateY(-1px);
}

/* Privacy Link */
.cookie-privacy-link {
  color: #16394D;
  text-decoration: none;
  font-weight: 500;
}

.cookie-privacy-link:hover {
  color: #FF5472;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .cookie-banner-inner {
    padding: 1rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
    padding: 0.75rem;
  }
  
  .cookie-title {
    font-size: 1.125rem;
  }
  
  .cookie-description {
    font-size: 0.8125rem;
  }
  
  .cookie-category {
    padding: 0.625rem;
  }
}

/* Accessibility */
.cookie-btn:focus,
.cookie-settings-toggle:focus,
.cookie-switch input:focus + .cookie-slider {
  outline: 2px solid #FF5472;
  outline-offset: 2px;
}

/* Smooth scrolling for settings */
.cookie-settings {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 #F9FAFB;
}

.cookie-settings::-webkit-scrollbar {
  width: 8px;
}

.cookie-settings::-webkit-scrollbar-track {
  background: #F9FAFB;
}

.cookie-settings::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.cookie-settings::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* Animation für Banner-Einblendung */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner.show {
  animation: slideUp 0.3s ease-out forwards;
}

/* Overlay für bessere Sichtbarkeit (optional) */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 9998;
  display: none;
}

.cookie-overlay.show {
  display: block;
}