/* Ascend — Einwilligungsbanner.
 *
 * Unten angeheftet, beide Schaltflächen gleich groß und gleich erreichbar: Ein
 * "Ablehnen", das kleiner oder blasser ist als das "Akzeptieren", macht die
 * Einwilligung angreifbar. Deshalb unterscheiden sich die beiden nur in der Farbe,
 * nicht in Größe, Position oder Gewicht.
 */

.acend-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 0 1rem 1rem;
  transform: translateY(120%);
  transition: transform .28s ease;
}

.acend-consent.is-open {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .acend-consent { transition: none; }
}

.acend-consent__inner {
  max-width: 62rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.1rem 1.35rem;
  border-radius: 16px;
  background: #14141c;
  border: 1px solid rgba(139, 92, 246, .28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
  color: #e6e6ef;
}

.acend-consent__text {
  flex: 1 1 22rem;
  min-width: 0;
}

.acend-consent__title {
  display: block;
  font-size: .95rem;
  margin-bottom: .25rem;
  color: #fff;
}

.acend-consent__lead {
  margin: 0;
  font-size: .85rem;
  line-height: 1.5;
  color: #a8a8bd;
}

.acend-consent__link {
  color: #a78bfa;
  text-decoration: underline;
}

.acend-consent__link:hover,
.acend-consent__link:focus-visible {
  color: #c4b5fd;
}

.acend-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: .6rem;
}

/* Gleiche Grundmaße für beide — der Unterschied ist die Farbe, sonst nichts. */
.acend-consent__actions .acend-btn {
  min-width: 11rem;
  padding: .7rem 1.1rem;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
}

.acend-consent__actions .acend-btn--primary {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

.acend-consent__actions .acend-btn--primary:hover,
.acend-consent__actions .acend-btn--primary:focus-visible {
  background: #8b5cf6;
  border-color: #8b5cf6;
}

.acend-consent__actions .acend-btn--ghost {
  background: transparent;
  border-color: rgba(230, 230, 239, .32);
  color: #e6e6ef;
}

.acend-consent__actions .acend-btn--ghost:hover,
.acend-consent__actions .acend-btn--ghost:focus-visible {
  border-color: rgba(230, 230, 239, .6);
  background: rgba(230, 230, 239, .07);
}

.acend-consent__actions .acend-btn:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.acend-consent-revoke {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Auf schmalen Geräten untereinander, weiterhin gleich breit. */
@media (max-width: 640px) {
  .acend-consent { padding: 0 .6rem .6rem; }

  .acend-consent__inner {
    padding: 1rem;
    gap: .85rem;
  }

  .acend-consent__actions {
    width: 100%;
    flex-direction: column-reverse;
  }

  .acend-consent__actions .acend-btn {
    width: 100%;
    min-width: 0;
  }
}
