/* assets_v2/css/cookie-consent-overlay.css */

/* -------------------------------------------------------
   Backdrop
------------------------------------------------------- */

#cookie-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(17, 15, 16, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 480ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

#cookie-consent-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

/* -------------------------------------------------------
   Modal
------------------------------------------------------- */

#cookie-consent-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;

  transform: translate(-50%, -50%) scale(1);
  opacity: 1;

  background: #ffffff;
  color: #110f10;

  width: 620px;
  max-width: calc(100vw - 2rem);

  padding: 3rem 3.25rem 2.5rem;

  box-shadow:
    0 2px 8px rgba(17, 15, 16, 0.06),
    0 24px 64px rgba(17, 15, 16, 0.18);

  transition: transform 480ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 380ms cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-consent-banner.hidden {
  transform: translate(-50%, -48%) scale(0.97);
  opacity: 0;
  pointer-events: none;
}

/* -------------------------------------------------------
   Label
------------------------------------------------------- */

#cookie-consent-banner .cookie-label {
  color: #8d99a7;
  font-family: 'Azo Sans', sans-serif;
  font-size: 0.87rem;
  font-weight: 400;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* -------------------------------------------------------
   Titel
------------------------------------------------------- */

#cookie-consent-banner .cookie-title {
  font-family: 'Azo Sans', sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: #110f10;
}

/* -------------------------------------------------------
   Fließtext
------------------------------------------------------- */

#cookie-consent-banner .cookie-text {
  font-family: 'Azo Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(17, 15, 16, 0.68);
  margin-bottom: 0;

  word-break: break-word; /* ← neu */
  overflow-wrap: break-word; /* ← neu */
}

#cookie-consent-banner .cookie-text a {
  color: #110f10;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cookie-consent-banner .cookie-text a:hover {
  color: #8d99a7;
}

/* -------------------------------------------------------
   Button-Gruppe – horizontal, Akzeptieren rechts
------------------------------------------------------- */

.cookie-consent-buttons {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Ablehnen – Ghost links */
#cookie-decline-btn {
  display: inline-block;
  appearance: none;
  border: 1px solid rgba(17, 15, 16, 0.22);
  border-radius: 0;

  background: transparent;
  color: rgba(17, 15, 16, 0.55);

  padding: 13px 24px;

  font-family: 'Azo Sans', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;

  cursor: pointer;
  text-align: center;
  white-space: nowrap;

  transition: border-color 300ms ease, color 300ms ease;
}

#cookie-decline-btn:hover {
  border-color: rgba(17, 15, 16, 0.55);
  color: rgba(17, 15, 16, 0.85);
}

/* Akzeptieren – Primary rechts */
#cookie-accept-btn {
  display: inline-block;
  appearance: none;
  border: none;
  border-radius: 0;

  background: #110f10;
  color: #fff;

  padding: 14px 28px;

  font-family: 'Azo Sans', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;

  cursor: pointer;
  text-align: center;
  white-space: nowrap;

  transform: translateZ(0);
  will-change: transform;
  transition: transform 520ms cubic-bezier(.2, .8, .2, 1);
}

#cookie-accept-btn:active {
  transform: translateZ(0) scale(0.98);
}

@media (hover: hover) {
  #cookie-accept-btn:hover {
    transform: translateZ(0) scale(1.02);
  }
}

/* -------------------------------------------------------
   Mobile – Bottom Sheet
------------------------------------------------------- */

@media (max-width: 560px) {
  #cookie-consent-banner {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translate(0, 0) scale(1);

    width: 100%;
    max-width: 100%;
    padding: 1.75rem 1.071rem 2.25rem;

    box-shadow: 0 -4px 24px rgba(17, 15, 16, 0.12);
  }

  #cookie-consent-banner.hidden {
    transform: translate(0, 100%) scale(1);
  }

  /* Mobile: Buttons wieder gestapelt, volle Breite */
  .cookie-consent-buttons {
    flex-direction: column;
    gap: 0;
  }

  #cookie-accept-btn {
    width: 100%;
    padding: 15px 26px;
  }

  #cookie-decline-btn {
    width: 100%;
    padding: 13px 26px;
    border: none;
    border-top: 1px solid rgba(17, 15, 16, 0.1);
    margin-top: 0;
  }
}


/* -------------------------------------------------------
   Isolation gegen page-specific CSS (z.B. body.contact p)
------------------------------------------------------- */

#cookie-consent-banner p,
#cookie-consent-banner .cookie-label,
#cookie-consent-banner .cookie-title,
#cookie-consent-banner .cookie-text {
  /* Reset gegen body.contact p */
  margin-top: 0;
  line-height: inherit;
  font-size: inherit;
}

#cookie-consent-banner .cookie-label {
  font-size: 0.87rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

#cookie-consent-banner .cookie-title {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  margin-top: 0;
}

#cookie-consent-banner .cookie-text {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-top: 0;
  margin-bottom: 0;
}

/* Reset gegen .imprint-wrapper p, h6, ul, li (ungeklammerter Selektor) */
#cookie-consent-banner .cookie-consent-buttons {
  font-size: 1rem; /* neutralisiert clamp-Vererbung */
}

#cookie-consent-banner button {
  font-size: 13px; /* explizit, nicht vererbbar */
}