/*
  Consent-UI. Teil des Systems, nutzt nur Theme-Tokens -- passt sich damit
  automatisch an die Grafik des jeweiligen Kundenprojekts an.
*/

.consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, 0.8);
  max-height: 85vh;
  overflow-y: auto;
}

.consent-banner__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px;
}

.consent-banner__title {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 10px;
}

.consent-banner__text {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 70ch;
  margin-bottom: 18px;
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

/* Zustimmen und Ablehnen muessen gleich aussehen. Wer hier eine der beiden
   Varianten hervorhebt, macht aus der Einwilligung eine Lenkung -- und damit
   angreifbar. */
.consent-btn-choice {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong, var(--border));
  min-width: 170px;
  justify-content: center;
}
.consent-btn-choice:hover {
  background: var(--surface-hover);
  border-color: var(--accent-1-text);
}

.consent-banner__links {
  font-size: 13px;
  color: var(--text-muted);
}
.consent-banner__links a {
  text-decoration: underline;
}

.consent-banner__categories {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-bottom: 18px;
  display: grid;
  gap: 18px;
}

.consent-cat__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}
.consent-cat__label input[disabled] {
  cursor: default;
}
.consent-cat__desc,
.consent-cat__services {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 6px;
  padding-left: 26px;
  max-width: 70ch;
}
.consent-cat__services {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* --- Platzhalter fuer gesperrte Embeds --- */

.consent-embed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 220px;
}
.consent-embed--loaded {
  display: block;
  min-height: 0;
  background: none;
  border: none;
}

.consent-embed__notice {
  padding: 28px;
  text-align: center;
  max-width: 52ch;
}
.consent-embed__title {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 8px;
}
.consent-embed__text {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.consent-embed__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}
.consent-embed__legal {
  font-size: 12px;
  color: var(--text-muted);
}
.consent-embed__legal a {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .consent-btn-choice {
    min-width: 0;
    flex: 1 1 100%;
  }
}
