/* ============================================================
   Dein Konfigurator — Einwilligungsbanner
   ------------------------------------------------------------
   Liegt unten links als Karte, nicht als Vollbild-Sperre: die
   Seite bleibt lesbar, waehrend die Entscheidung aussteht. Der
   Pixel laedt trotzdem erst nach der Zustimmung (js/consent.js).

   Die beiden Schaltflaechen sind bewusst gleich gross und stehen
   nebeneinander. Ablehnen darf nicht schwerer sein als Annehmen.
   ============================================================ */

.consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  width: min(360px, calc(100vw - 40px));
}

.consent-card {
  padding: 16px 18px 15px;
  border: 1px solid var(--line-hard);
  border-radius: 16px;
  background: rgba(14, 18, 45, .93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07);

  opacity: 0;
  transform: translateY(14px);
  transition: opacity .26s ease, transform .26s cubic-bezier(.22, .8, .3, 1);
}
.consent.is-in .consent-card { opacity: 1; transform: none; }

/* Erste Ebene: ein Satz. Mehr braucht es hier nicht. */
.consent-lead {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--bright);
  text-wrap: pretty;
}

/* Sieht aus wie ein Link, ist aber ein Button — er klappt auf, er navigiert
   nicht. Deshalb <button> mit aria-expanded statt <a href="#">. */
.consent-more {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: var(--accent-3);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}
.consent-more:hover { color: var(--text); }

.consent-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.consent-details p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.consent-details p + p { margin-top: 8px; }
.consent-details code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--bright);
}

.consent-actions {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.consent-btn {
  appearance: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  padding: 11px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.consent-deny {
  border: 1px solid var(--line-hard);
  background: transparent;
  color: var(--text);
}
.consent-deny:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); }

.consent-allow {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}
.consent-allow:hover { background: var(--accent-hi); border-color: var(--accent-hi); }

.consent-btn:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 2px;
}

.consent-legal {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted-4);
}
.consent-legal a { color: var(--muted-2); text-decoration: underline; }
.consent-legal a:hover { color: var(--accent-3); }

/* Auf dem Handy ueber die volle Breite, damit die beiden Flaechen
   gross genug zum Antippen bleiben. */
@media (max-width: 620px) {
  .consent { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .consent-card { padding: 15px 16px 14px; }
  /* 15px oben und unten ergeben zusammen mit der Zeilenhoehe 46px —
     ueber der 44px-Marke, unter der Tippziele unzuverlaessig werden. */
  .consent-btn { padding: 15px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .consent-card { transition: none; opacity: 1; transform: none; }
}
