/* ================================================================
   Cookie Consent Banner – hiddenaustria.travel
   DSGVO-compliant, brand-matched
   ================================================================ */

/* ---- Custom Properties (scoped) -------------------------------- */
.cc-banner,
.cc-backdrop {
  --cc-dark: #085041;
  --cc-accent: #1D9E75;
  --cc-light: #E1F5EE;
  --cc-white: #ffffff;
  --cc-text: #222222;
  --cc-border: #c4ddd5;
  --cc-radius: 6px;
}

/* ---- Backdrop -------------------------------------------------- */
.cc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cc-backdrop--visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Banner Container ------------------------------------------ */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: var(--cc-white);
  border-top: 3px solid var(--cc-accent);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cc-text);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cc-banner--visible {
  transform: translateY(0);
}

/* Prevent body scroll while banner open */
body.cc-no-scroll {
  overflow: hidden;
}

/* ---- Inner wrapper --------------------------------------------- */
.cc-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 20px;
}

/* ---- Text block ------------------------------------------------ */
.cc-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--cc-dark);
  margin: 0 0 8px;
}

.cc-info {
  margin: 0 0 16px;
  font-size: 14px;
  color: #444;
}

.cc-link {
  color: var(--cc-accent);
  text-decoration: underline;
}
.cc-link:hover {
  color: var(--cc-dark);
}

/* ---- Category toggles ------------------------------------------ */
.cc-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.cc-category {
  flex: 1 1 200px;
  background: var(--cc-light);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s;
}
.cc-category:hover {
  border-color: var(--cc-accent);
}

.cc-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-cat-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--cc-dark);
}

.cc-cat-desc {
  font-size: 13px;
  color: #555;
  padding-left: 26px;
}

/* ---- Checkbox styling ------------------------------------------ */
.cc-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--cc-accent);
  border-radius: 3px;
  background: var(--cc-white);
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.cc-checkbox:checked {
  background: var(--cc-accent);
  border-color: var(--cc-accent);
}
.cc-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid var(--cc-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cc-checkbox:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---- Buttons --------------------------------------------------- */
.cc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cc-btn {
  padding: 10px 22px;
  border: none;
  border-radius: var(--cc-radius);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.cc-btn--accept-all {
  background: var(--cc-accent);
  color: var(--cc-white);
}
.cc-btn--accept-all:hover {
  background: var(--cc-dark);
}

.cc-btn--confirm {
  background: var(--cc-light);
  color: var(--cc-dark);
  border: 2px solid var(--cc-accent);
}
.cc-btn--confirm:hover {
  background: var(--cc-accent);
  color: var(--cc-white);
}

.cc-btn--necessary {
  background: transparent;
  color: var(--cc-dark);
  border: 2px solid var(--cc-border);
}
.cc-btn--necessary:hover {
  border-color: var(--cc-dark);
  background: var(--cc-light);
}

/* ---- Focus visible (accessibility) ----------------------------- */
.cc-btn:focus-visible,
.cc-checkbox:focus-visible {
  outline: 2px solid var(--cc-dark);
  outline-offset: 2px;
}

/* ---- Responsive ------------------------------------------------ */
@media (max-width: 600px) {
  .cc-inner {
    padding: 18px 14px 16px;
  }
  .cc-heading {
    font-size: 19px;
  }
  .cc-info {
    font-size: 13px;
  }
  .cc-categories {
    flex-direction: column;
    gap: 8px;
  }
  .cc-category {
    flex: 1 1 auto;
  }
  .cc-buttons {
    flex-direction: column;
  }
  .cc-btn {
    width: 100%;
    text-align: center;
  }
}
