/* Cookie consent banner (scripts/consent.js). Plain CSS without nesting so it works in older browsers too. */
.cc-banner {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: none;
  max-width: 44rem;
  margin: 0 auto;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border: 1px solid var(--primary-100);
  border-radius: 1rem;
  background: var(--dr-white);
  color: var(--gray-800);
  box-shadow: 0 1.25rem 3rem rgba(16, 36, 76, 0.25);
  font-family: "Manrope", sans-serif;
}

.cc-banner.cc-visible {
  display: block;
}

.cc-inner {
  padding: 1.5rem;
}

.cc-title {
  margin: 0 0 0.5rem;
  color: var(--dr-blue);
  font-size: 1.125rem;
  font-weight: 800;
}

.cc-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cc-text a {
  color: var(--dr-blue);
  font-weight: 700;
  text-decoration: underline;
}

.cc-settings {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cc-settings[hidden] {
  display: none;
}

.cc-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--primary-25);
  font-size: 0.8125rem;
  line-height: 1.45;
  cursor: pointer;
}

.cc-option input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
  accent-color: var(--dr-blue);
}

.cc-option input:disabled {
  cursor: not-allowed;
}

.cc-option b {
  display: block;
  color: var(--gray-900);
  font-size: 0.875rem;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* Reject and Accept get the same size and weight, as German regulators expect. */
.cc-btn {
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  border: 2px solid var(--dr-blue);
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cc-btn[hidden] {
  display: none;
}

.cc-btn-primary {
  background: var(--dr-blue);
  color: var(--dr-white);
}

.cc-btn-primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

.cc-btn-secondary {
  background: var(--dr-white);
  color: var(--dr-blue);
}

.cc-btn-secondary:hover {
  background: var(--primary-25);
}

.cc-btn:focus-visible,
.cc-text a:focus-visible,
.cc-option input:focus-visible {
  outline: 3px solid var(--dr-goldenrod);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .cc-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .cc-inner {
    padding: 1.25rem 1rem 1rem;
  }

  .cc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  /* Reject and Accept side by side, Settings / Save underneath. */
  .cc-btn[data-cc="settings"],
  .cc-btn[data-cc="save"] {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Footer "Cookie settings" link is a button styled like the other footer links. */
.footer-link-button {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
