/* Cookie-Zustimmungsdialog Styles */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1C1C1E;
  color: #FFFFFF;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  border-top: 1px solid #333333;
  display: none; /* Standard versteckt */
}

.cookie-consent.show {
  display: block; /* Wird angezeigt, wenn .show Klasse hinzugefügt wird */
}

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-text {
  flex: 1;
}

.cookie-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.cookie-description {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  margin-top: 12px;
}

.cookie-buttons button {
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
  min-width: 120px;
}

.cookie-buttons button:hover {
  transform: translateY(-1px);
}

.cookie-buttons button:active {
  transform: translateY(1px);
}

/* Akzeptieren Button */
.accept-all-button {
  background-color: var(--primary-color);
  color: white;
}

.accept-all-button:hover {
  background-color: var(--primary-dark);
}

/* Notwendige Button */
.essential-only-button {
  background-color: transparent;
  color: white;
  border: 1px solid #555;
}

.essential-only-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Improved Cookie Banner for Better Accessibility */
.cookie-consent {
  border-top: 3px solid #4A148C;
  font-size: 16px;
}

.cookie-title {
  font-size: 20px;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.cookie-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.cookie-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* High contrast for better accessibility */
.cookie-btn-accept {
  background-color: #00BFA5;
  color: #000000;
}

.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background-color: #33CCBB;
  outline: 2px solid white;
  outline-offset: 2px;
}

.cookie-btn-reject {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background-color: rgba(255, 255, 255, 0.2);
  outline: 2px solid white;
  outline-offset: 2px;
}

.cookie-btn-settings {
  color: #00BFA5;
  text-decoration: underline;
  font-weight: 600;
  padding: 12px 24px;
}

.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  color: #33CCBB;
  text-decoration: underline;
  outline: 2px solid #00BFA5;
  outline-offset: 2px;
}

/* Focus styles for keyboard navigation */
.cookie-btn:focus-visible {
  outline: 3px solid #00BFA5;
  outline-offset: 2px;
}

/* Responsive improvements */
@media (min-width: 768px) {
  .cookie-consent-container {
    flex-direction: row;
    align-items: center;
  }

  .cookie-text {
    padding-right: 24px;
  }
}

@media (max-width: 767px) {
  .cookie-consent-container {
    padding: 20px 16px;
  }
  
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-btn {
    width: 100%;
  }
}

/* Cookie-Einstellungen im Footer */
.cookie-settings {
  background-color: transparent;
  padding: 0;
  margin: 0;
  border: none;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.cookie-settings:hover, .cookie-settings:focus {
  color: #FFFFFF;
  text-decoration: underline;
}
