/* Cookie Consent Banner - DSGVO-konform */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  border-top: 3px solid var(--main-color, #c8a14d);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 25px 30px;
  z-index: 99999;
  display: none;
  animation: slideUp 0.4s ease-out;
}

.cookie-consent-banner.show {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text h3 {
  font-family: var(--main-font, "Playfair", serif);
  font-size: 20px;
  color: #333;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.cookie-consent-text p {
  font-family: var(--secondary-font, "Jost", sans-serif);
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.cookie-consent-text a {
  color: var(--main-color, #c8a14d);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-consent-text a:hover {
  color: #a68533;
}

.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-consent-btn {
  font-family: var(--secondary-font, "Jost", sans-serif);
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-consent-btn.accept {
  background-color: var(--main-color, #c8a14d);
  color: #fff;
}

.cookie-consent-btn.accept:hover {
  background-color: #a68533;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 161, 77, 0.3);
}

.cookie-consent-btn.decline {
  background-color: #f5f5f2;
  color: #333;
  border: 2px solid #ddd;
}

.cookie-consent-btn.decline:hover {
  background-color: #e8e8e5;
  border-color: #bbb;
}

.cookie-consent-btn.settings {
  background-color: transparent;
  color: #666;
  border: 2px solid #ddd;
}

.cookie-consent-btn.settings:hover {
  background-color: #f5f5f2;
  border-color: var(--main-color, #c8a14d);
  color: var(--main-color, #c8a14d);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-settings-modal.show {
  display: flex;
}

.cookie-settings-content {
  background: #fff;
  border-radius: 8px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cookie-settings-header {
  padding: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.cookie-settings-header h2 {
  font-family: var(--main-font, "Playfair", serif);
  font-size: 26px;
  color: #333;
  margin: 0 0 10px 0;
}

.cookie-settings-header p {
  font-family: var(--secondary-font, "Jost", sans-serif);
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.cookie-settings-body {
  padding: 30px;
}

.cookie-category {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e0e0e0;
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cookie-category-header h3 {
  font-family: var(--secondary-font, "Jost", sans-serif);
  font-size: 16px;
  color: #333;
  margin: 0;
  font-weight: 600;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
}

.cookie-toggle input {
  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: var(--main-color, #c8a14d);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-category-description {
  font-family: var(--secondary-font, "Jost", sans-serif);
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.cookie-settings-footer {
  padding: 20px 30px;
  background-color: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .cookie-consent-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-consent-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-consent-btn {
    width: 100%;
    text-align: center;
  }

  .cookie-settings-content {
    margin: 10px;
  }

  .cookie-settings-header,
  .cookie-settings-body {
    padding: 20px;
  }

  .cookie-settings-footer {
    flex-direction: column;
  }

  .cookie-settings-footer .cookie-consent-btn {
    width: 100%;
  }
}

@media screen and (max-width: 564px) {
  .cookie-consent-banner {
    padding: 20px 15px;
  }

  .cookie-consent-text h3 {
    font-size: 18px;
  }

  .cookie-consent-text p {
    font-size: 13px;
  }

  .cookie-settings-header h2 {
    font-size: 22px;
  }
}
