.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 9999;
  
  /* Dunklere Glas-Optik */
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  padding: 25px;
  display: none;
  font-family: 'Mukta', Arial, sans-serif;
  color: #ffffff;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.5s forwards;
}

.cookie-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cookie-banner-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}

.cookie-banner-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
  transition: color 0.3s ease;
}

.cookie-banner-close:hover {
  color: rgba(255, 255, 255, 0.7);
}

.cookie-banner-content {
  margin-bottom: 20px;
  line-height: 1.6;
}

.cookie-banner-content a {
  color: var(--vegaenergy-dark);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-banner-settings {
  margin-bottom: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.cookie-banner-settings.show {
  max-height: 500px;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(60, 60, 60, 0.5);
  border-radius: 5px;
  gap: 15px;
}

.cookie-option-required {
  opacity: 0.8;
  border-color: rgba(39, 150, 60, 0.3);
}

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

.cookie-option-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: #ffffff;
}

.cookie-option-description {
  font-size: 0.9rem;
  color: #e0e0e0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #666;
  transition: .4s;
  border-radius: 15px;
}

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

input:checked + .slider {
  background-color: var(--vegaenergy-dark);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

input:disabled + .slider {
  background-color: var(--vegaenergy-dark);
  cursor: not-allowed;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  padding: 12px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.cookie-btn-settings {
  background: rgba(80, 80, 80, 0.6);
  color: #ffffff;
}

.cookie-btn-settings:hover {
  background: rgba(100, 100, 100, 0.8);
  border-color: var(--vegaenergy-dark);
}

.cookie-btn-accept-necessary {
  background: rgba(120, 120, 120, 0.6);
  color: #ffffff;
}

.cookie-btn-accept-necessary:hover {
  background: rgba(140, 140, 140, 0.8);
  border-color: var(--vegaenergy-dark);
}

.cookie-btn-accept-all {
  background: var(--vegaenergy-dark);
  color: white;
}

.cookie-btn-accept-all:hover {
  background: #1d6f2c;
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content {
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 25px;
  color: #ffffff;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 50px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 768px) {
  .cookie-banner {
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    border-radius: 0;
    padding: 20px 15px;
    margin: 0;
    border: none;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .cookie-banner-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }

  .cookie-modal-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    overflow-y: auto;
    margin: 0;
    padding: 20px 15px;
    border: none;
    box-shadow: none;
  }

  .cookie-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cookie-toggle {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 15px 10px;
  }

  .cookie-banner-header h3 {
    font-size: 1.3rem;
  }

  .cookie-option {
    padding: 10px;
  }

  .cookie-btn {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
}
