/**
 * Cookie-Banner Stylesheet
 * Mit Adblocker-Umgehung
 */

/* Cookie-Banner Hauptcontainer */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  color: #fff;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Aktiver Status - wichtig für das Anzeigen des Banners */
.cookie-banner.active {
  transform: translateY(0) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Cookie-Banner Inhalt */
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Cookie-Banner Header */
.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cookie-header h3 {
  margin: 0;
  color: #e60000;
}

.cookie-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
}

.cookie-close:hover {
  color: #e60000;
}

/* Cookie-Banner Nachricht */
.cookie-message {
  margin-bottom: 20px;
  line-height: 1.5;
}

.cookie-message a {
  color: #e60000;
  text-decoration: none;
}

.cookie-message a:hover {
  text-decoration: underline;
}

/* Cookie-Einstellungen Bereich */
.cookie-settings {
  margin-bottom: 20px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 15px 0;
}

.cookie-option {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #333;
}

.cookie-option:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.cookie-option label {
  font-weight: bold;
  margin-left: 10px;
  cursor: pointer;
}

.cookie-description {
  margin: 5px 0 0 30px;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Ursprüngliche Cookie-Banner Footer mit Buttons */
.cookie-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.cookie-footer .btn-primary,
.cookie-footer .btn-secondary,
.cookie-footer .btn-tertiary {
  min-width: 180px;
  text-align: center;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.cookie-footer .btn-primary {
  background-color: #e60000;
  color: white;
}

.cookie-footer .btn-primary:hover {
  background-color: #ff0000;
}

.cookie-footer .btn-secondary {
  background-color: #333;
  color: white;
}

.cookie-footer .btn-secondary:hover {
  background-color: #444;
}

.cookie-footer .btn-tertiary {
  background-color: transparent;
  color: #ccc;
  text-decoration: underline;
  border: none;
}

.cookie-footer .btn-tertiary:hover {
  color: #fff;
}

/* Alternative Klassen für Cookie-Aktionen (Anti-Adblocker) */
.cookie-actions, 
.settings-area, 
.preference-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.action-wrapper, 
.settings-buttons, 
.choice-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.action-button, 
.preference-button, 
.choice-option {
  min-width: 180px;
  text-align: center;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.primary-action, 
.accept-all, 
.option-accept {
  background-color: #e60000;
  color: white;
}

.primary-action:hover, 
.accept-all:hover, 
.option-accept:hover {
  background-color: #ff0000;
}

.secondary-action, 
.save-selection, 
.option-save {
  background-color: #333;
  color: white;
}

.secondary-action:hover, 
.save-selection:hover, 
.option-save:hover {
  background-color: #444;
}

.tertiary-action, 
.reject-all, 
.option-reject {
  background-color: transparent;
  color: #ccc;
  text-decoration: underline;
  border: none;
}

.tertiary-action:hover, 
.reject-all:hover, 
.option-reject:hover {
  color: #fff;
}

/* JS-generated backup buttons */
.js-generated-button,
.dynamic-control,
.fallback-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  text-align: center;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
}

/* Toast-Benachrichtigungen */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  width: 300px;
}

.toast {
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  border-left: 4px solid var(--gold);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  transform: translateX(120%);
  opacity: 0;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  margin-right: 10px;
  color: var(--gold);
  font-size: 20px;
}

.toast-content {
  flex: 1;
}

.toast-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  transition: color 0.2s;
}

.toast-close:hover {
  color: white;
}

.toast.success {
  border-left-color: #28a745;
}

.toast.success .toast-icon {
  color: #28a745;
}

.toast.error {
  border-left-color: #dc3545;
}

.toast.error .toast-icon {
  color: #dc3545;
}

.toast.warning {
  border-left-color: #ffc107;
}

.toast.warning .toast-icon {
  color: #ffc107;
}

.toast.info {
  border-left-color: #17a2b8;
}

.toast.info .toast-icon {
  color: #17a2b8;
}

/* Fallback simple toast */
.simple-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #28a745;
  color: white;
  padding: 15px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 10000;
  max-width: 300px;
  animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .cookie-footer,
  .cookie-actions,
  .settings-area,
  .preference-controls,
  .action-wrapper,
  .settings-buttons,
  .choice-group {
    flex-direction: column;
    align-items: center;
  }
  
  .cookie-footer .btn-primary,
  .cookie-footer .btn-secondary,
  .cookie-footer .btn-tertiary,
  .action-button,
  .preference-button,
  .choice-option,
  .js-generated-button,
  .dynamic-control,
  .fallback-control {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .toast-container {
    width: calc(100% - 40px);
    right: 20px;
  }
}