/*
 * Stil für den Cookie-Consent-Banner.
 * Wichtig (DSGVO): "Akzeptieren" und "Ablehnen" sind gleich groß und gleich
 * sichtbar – kein Button wird optisch bevorzugt oder benachteiligt.
 * Farben sind an die Website-Palette angelehnt, aber eigenständig gehalten,
 * damit die Datei unabhängig vom Tailwind-Build funktioniert.
 */

#cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  max-width: 30rem;
  margin-left: auto; /* unten rechts */
  background: #ffffff;
  color: #2b2622;
  border: 1px solid #e6dcd0;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(43, 38, 34, 0.16);
  padding: 1.25rem 1.25rem 1.1rem;
  font-family: "DM Sans Variable", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
}

#cookie-banner p {
  margin: 0 0 1rem;
}

#cookie-banner a {
  color: #8c6443;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#cookie-banner a:hover {
  color: #6f4e30;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

/* Beide Buttons gleich breit und gleich prominent. */
.cookie-buttons button {
  flex: 1 1 0;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid #8c6443;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

/* "Ablehnen": gleichwertig, nur als Outline-Variante – nicht versteckt. */
#cookie-reject {
  background: #ffffff;
  color: #8c6443;
}
#cookie-reject:hover {
  background: #f1eade;
}

/* "Akzeptieren": gefüllt. Gleiche Größe wie "Ablehnen". */
#cookie-accept {
  background: #8c6443;
  color: #ffffff;
}
#cookie-accept:hover {
  background: #6f4e30;
  border-color: #6f4e30;
}

#cookie-banner button:focus-visible {
  outline: 2px solid #2b2622;
  outline-offset: 2px;
}

@media (min-width: 480px) {
  #cookie-banner {
    padding: 1.4rem 1.5rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-buttons button {
    transition: none;
  }
}
