/* ============================================================
   AUSZEIT REISEN — Cookie Consent Banner & Modal
   ============================================================ */

/* --- Banner --- */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(15, 20, 24, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  padding: 20px 24px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cc-banner--visible {
  transform: translateY(0);
  opacity: 1;
}

.cc-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cc-banner__text {
  flex: 1 1 400px;
  min-width: 0;
}

.cc-banner__text p {
  margin: 0;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #d0d5dd;
}

.cc-banner__link {
  color: #C9A84C;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-banner__link:hover {
  color: #e0c06a;
}

.cc-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* --- Buttons --- */
.cc-btn {
  font-family: Inter, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.cc-btn:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}

.cc-btn--accept {
  background: #C9A84C;
  color: #0B0F14;
  border: 1px solid #C9A84C;
}

.cc-btn--accept:hover {
  background: #e0c06a;
  border-color: #e0c06a;
}

.cc-btn--reject {
  background: transparent;
  color: #C9A84C;
  border: 1px solid #C9A84C;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
}

.cc-btn--reject:hover {
  background: rgba(201, 168, 76, 0.1);
}

.cc-banner__settings-link {
  background: none;
  border: none;
  color: #B8C4D0;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px 0;
}

.cc-banner__settings-link:hover {
  color: #C9A84C;
}

.cc-banner__settings-link:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}

/* --- Modal Overlay --- */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.cc-modal-overlay--visible {
  opacity: 1;
  visibility: visible;
}

/* --- Modal --- */
.cc-modal {
  background: #0F1418;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 16px;
  max-width: 600px;
  width: calc(100% - 32px);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-modal__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.cc-modal__close {
  background: none;
  border: none;
  color: #B8C4D0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.cc-modal__close:hover {
  color: #fff;
}

.cc-modal__close:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}

.cc-modal__body {
  padding: 20px 28px;
}

.cc-modal__footer {
  padding: 16px 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

/* --- Category rows --- */
.cc-category {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-category:last-child {
  border-bottom: none;
}

.cc-category__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cc-category__info {
  flex: 1;
  min-width: 0;
}

.cc-category__label {
  display: block;
  color: #fff;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cc-category__desc {
  display: block;
  color: #8a94a0;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

/* --- Toggle switch --- */
.cc-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #3a3f47;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  padding: 0;
}

.cc-toggle:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}

.cc-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  pointer-events: none;
}

.cc-toggle--on {
  background: #C9A84C;
}

.cc-toggle--on .cc-toggle__knob {
  transform: translateX(20px);
}

.cc-toggle--locked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .cc-banner {
    padding: 16px 16px;
  }

  .cc-banner__inner {
    flex-direction: column;
    gap: 16px;
  }

  .cc-banner__text {
    flex-basis: auto;
  }

  .cc-banner__actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .cc-btn {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }

  .cc-banner__settings-link {
    align-self: center;
  }

  .cc-modal {
    width: calc(100% - 16px);
    max-height: 90vh;
    border-radius: 12px;
  }

  .cc-modal__header {
    padding: 20px 20px 12px;
  }

  .cc-modal__body {
    padding: 16px 20px;
  }

  .cc-modal__footer {
    padding: 12px 20px 20px;
  }

  .cc-modal__footer .cc-btn {
    width: 100%;
  }
}
