/* Cookie Banner Styles - DSGVO konform */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 100%);
  border-top: 2px solid var(--primary-cyan, #00d9ff);
  padding: 20px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 -4px 20px rgba(0, 217, 255, 0.1);
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

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

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner-text h3 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  color: var(--primary-cyan, #00d9ff);
  font-weight: 600;
}

.cookie-banner-text p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: var(--primary-cyan, #00d9ff);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary-cyan, #00d9ff);
  transition: all 0.2s;
}

.cookie-banner-text a:hover {
  color: #fff;
  border-bottom: 1px solid #fff;
}

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

.cookie-banner-buttons button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-accept {
  background: var(--primary-cyan, #00d9ff);
  color: #000;
}

.btn-accept:hover {
  background: #00b8cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

.btn-necessary {
  background: transparent;
  color: var(--primary-cyan, #00d9ff);
  border: 1px solid var(--primary-cyan, #00d9ff);
}

.btn-necessary:hover {
  background: rgba(0, 217, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-settings {
  background: transparent;
  color: #999;
  border: 1px solid #666;
}

.btn-settings:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #999;
  color: #fff;
}

/* Cookie Settings Panel */

#cookie-settings-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

#cookie-settings-panel.cookie-settings-hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookie-settings-content {
  background: #0f0f23;
  border: 1px solid var(--primary-cyan, #00d9ff);
  border-radius: 8px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-settings-content h3 {
  margin: 0 0 20px 0;
  color: var(--primary-cyan, #00d9ff);
  font-size: 1.3rem;
}

.cookie-category {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.cookie-category:last-of-type {
  border-bottom: none;
}

.cookie-category label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 600;
}

.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: var(--primary-cyan, #00d9ff);
}

.cookie-category input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-category p {
  margin: 8px 0 0 28px;
  font-size: 0.85rem;
  color: #999;
  line-height: 1.4;
}

.cookie-settings-buttons {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.btn-save {
  flex: 1;
  padding: 12px 20px;
  background: var(--primary-cyan, #00d9ff);
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-save:hover {
  background: #00b8cc;
  transform: translateY(-2px);
}

.btn-close {
  padding: 12px 20px;
  background: transparent;
  color: #999;
  border: 1px solid #666;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-close:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #999;
  color: #fff;
}

/* Mobile Responsive */

@media (max-width: 768px) {
  #cookie-banner {
    padding: 15px;
  }

  .cookie-banner-content {
    flex-direction: column;
    gap: 15px;
  }

  .cookie-banner-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-banner-buttons button {
    width: 100%;
  }

  .cookie-settings-content {
    padding: 20px;
  }
}
