/* Cookie Consent Banner - Volle Breite, flach */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #748CAB;
  backdrop-filter: blur(20px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 1.2rem 2rem;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 -15px 40px rgba(116, 140, 171, 0.3),
    0 -4px 20px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 1;
  min-width: 400px;
}

.cookie-emoji {
  font-size: 2.2rem;
  animation: cookieBounce 2.5s infinite;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
  flex-shrink: 0;
}

@keyframes cookieBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  10% {
    transform: translateY(-4px) rotate(-2deg);
  }
  40% {
    transform: translateY(-2px) rotate(2deg);
  }
  60% {
    transform: translateY(-1px) rotate(-1deg);
  }
}

.cookie-text {
  color: white;
  line-height: 1.5;
}

.cookie-text h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
}

.cookie-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
}

.cookie-text a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
  text-underline-offset: 2px;
}

.cookie-text a:hover {
  text-decoration: none;
  opacity: 0.8;
}

.cookie-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cookie-btn-accept {
  background: white;
  color: #748CAB;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cookie-btn-accept:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.cookie-btn-decline {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.cookie-btn-settings {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
}

.cookie-btn-settings:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cookie-settings-modal.active {
  display: flex;
}

.cookie-settings-content {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.cookie-settings-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.cookie-settings-close:hover {
  background: #f0f0f0;
}

.cookie-settings-header {
  margin-bottom: 2rem;
}

.cookie-settings-header h2 {
  color: #748CAB;
  margin: 0 0 1rem 0;
  font-size: 1.8rem;
  font-weight: 800;
}

.cookie-settings-header p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.cookie-category {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  transition: border-color 0.3s ease;
}

.cookie-category:hover {
  border-color: #748CAB;
}

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

.cookie-category-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cookie-category-title h3 {
  margin: 0;
  color: #333;
  font-size: 1.2rem;
  font-weight: 700;
}

.cookie-category-emoji {
  font-size: 1.4rem;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
}

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

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

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #748CAB;
}

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

.cookie-category-description {
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.cookie-settings-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #f0f0f0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-consent {
    padding: 1rem 1.5rem;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
  
  .cookie-consent-content {
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
  }
  
  .cookie-info {
    min-width: auto;
    align-items: center;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: stretch;
    gap: 0.6rem;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 90px;
    font-size: 0.8rem;
    padding: 0.6rem 0.7rem;
  }
  
  .cookie-emoji {
    font-size: 1.8rem;
  }
  
  .cookie-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }
  
  .cookie-text p {
    font-size: 0.85rem;
    line-height: 1.3;
  }
}
  
  .cookie-settings-modal {
    padding: 1rem;
  }
  
  .cookie-settings-content {
    padding: 2rem;
    margin: 0;
  }
  
  .cookie-settings-actions {
    flex-direction: column;
  }
}

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

/* Einfache Animation */
.cookie-consent.accepted {
  animation: slideOut 0.6s ease forwards;
}

@keyframes slideOut {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
  100% {
    transform: translateY(100%) scale(0.9);
  }
}