/* Einwilligungsbanner. Bauart wie das WhatsApp-Fenster (seiten.css), damit sich nichts
   Fremdes in die Seite setzt: dunkle Fläche, feine Linie, eckige Knöpfe, keine Karten. */

.consent { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.consent-hinter { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.consent-fenster {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 2rem); overflow-y: auto;
  padding: 2.2rem 2.4rem 2rem; background: var(--bg-2); border: 1px solid var(--hair-2);
  border-radius: var(--r-pill); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.consent-fenster:focus { outline: none; }
.consent-fenster h2 { margin-top: 0.4rem; }
.consent-fenster .grau { margin-top: 0.9rem; }
.consent-fenster .knopfreihe { margin-top: 1.6rem; flex-wrap: wrap; }
.consent-fenster .knopf { flex: 1 1 auto; justify-content: center; }
.consent-fenster .textlink { margin-top: 1rem; display: inline-block; }
.consent-fenster .klein { margin-top: 1.4rem; color: var(--ink-3); }

.consent-wahl[hidden] { display: none; }   /* sonst gewinnt display:grid gegen das hidden-Attribut */
.consent-wahl { margin-top: 1.5rem; display: grid; gap: 0.9rem; padding-top: 1.4rem; border-top: 1px solid var(--hair); }
.consent-wahl label { display: flex; gap: 0.8rem; align-items: flex-start; cursor: pointer; font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }
.consent-wahl label:has(input:disabled) { cursor: default; color: var(--ink-3); }
.consent-wahl input { flex: none; margin-top: 0.22rem; width: 17px; height: 17px; accent-color: var(--ink); }
.consent-wahl b { color: var(--ink); font-weight: 700; }

/* Seite dahinter festhalten, solange die Frage offen ist */
:root[data-consent="offen"] body { overflow: hidden; }

@media (max-width: 560px) {
  .consent-fenster { padding: 1.8rem 1.4rem 1.6rem; }
  .consent-fenster .knopf { flex: 1 1 100%; }
}
