/* Cookie Banner Styles */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(25, 28, 31, 0.98);
  color: #fff;
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  animation: slideUp 0.5s ease-out;
}

#cookie-banner.show {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

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

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

.cookie-banner-text h4 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #47b2e4;
  font-weight: 600;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner-text a {
  color: #47b2e4;
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: #73c5eb;
}

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

.cookie-btn {
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: #47b2e4;
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #209dd8;
}

.cookie-btn-decline {
  background: #fff;
  color: #37517e;
  border: 2px solid #37517e;
}

.cookie-btn-decline:hover {
  background: #37517e;
  color: #fff;
}

.cookie-btn-settings {
  background: transparent;
  color: #fff;
  border: 2px solid #666;
}

.cookie-btn-settings:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }
}

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

  .cookie-banner-text h4 {
    font-size: 16px;
  }

  .cookie-banner-text p {
    font-size: 13px;
  }

  .cookie-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
}

/* Cookie Settings Modal */
#cookie-settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  overflow-y: auto;
  animation: fadeIn 0.3s ease-out;
}

#cookie-settings-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.cookie-settings-content {
  background: #fff;
  border-radius: 10px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-settings-header {
  padding: 25px 30px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-settings-header h3 {
  margin: 0;
  color: #37517e;
  font-size: 24px;
  font-weight: 600;
}

.cookie-settings-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

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

.cookie-settings-body {
  padding: 30px;
}

.cookie-settings-intro {
  margin-bottom: 25px;
  color: #666;
  line-height: 1.6;
}

.cookie-category {
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cookie-category:hover {
  border-color: #47b2e4;
  box-shadow: 0 2px 8px rgba(71, 178, 228, 0.1);
}

.cookie-category-header {
  padding: 20px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.cookie-category-title {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.cookie-category-title h4 {
  margin: 0;
  color: #37517e;
  font-size: 16px;
  font-weight: 600;
}

.cookie-category-required {
  font-size: 11px;
  color: #666;
  background: #e0e0e0;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

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

.cookie-toggle input[type="checkbox"] {
  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: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #47b2e4;
}

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

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

.cookie-category-description {
  padding: 20px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}

.cookie-category-expand {
  color: #47b2e4;
  font-size: 20px;
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.cookie-category.expanded .cookie-category-expand {
  transform: rotate(180deg);
}

.cookie-category-description {
  display: none;
}

.cookie-category.expanded .cookie-category-description {
  display: block;
}

.cookie-settings-footer {
  padding: 20px 30px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: #f8f9fa;
}

.cookie-settings-footer .cookie-btn {
  min-width: 120px;
}

/* Responsive für Modal */
@media (max-width: 768px) {
  .cookie-settings-content {
    max-height: 95vh;
  }

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

  .cookie-settings-header h3 {
    font-size: 20px;
  }

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

  .cookie-category-header {
    padding: 15px;
  }

  .cookie-settings-footer {
    padding: 15px 20px;
    flex-direction: column;
  }

  .cookie-settings-footer .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #cookie-settings-modal {
    padding: 10px;
  }

  .cookie-settings-header {
    padding: 15px;
  }

  .cookie-settings-body {
    padding: 15px;
  }

  .cookie-category-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
