/* Einwilligung (einwilligung.js): nur eigene .ew-Klassen, style.css des Funnels bleibt unberührt.
   Farben aus den Funnel-Variablen mit Rückfall; Ablehnen und Annehmen teilen sich eine Klasse. */
.ew-banner {
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: var(--card, #ffffff);
  color: var(--text, #0f172a);
  border-top: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 -12px 32px -16px rgba(0, 0, 0, 0.35);
  font-family: var(--font, system-ui, -apple-system, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.ew-banner-innen {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}
.ew-text { flex: 1 1 320px; min-width: 0; }
.ew-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ew-titel { margin: 0; font-weight: 700; }
.ew-absatz { margin: 2px 0 0; }
.ew-banner a,
.ew-dialog a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.ew-textknopf {
  min-height: 44px;
  margin: 0 -8px 0 0;
  padding: 0 8px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ew-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ew-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 120px;
  margin: 0;
  padding: 8px 18px;
  border: 2px solid var(--text, #0f172a);
  border-radius: 999px;
  background: var(--card, #ffffff);
  color: var(--text, #0f172a);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.ew-knopf:hover { background: var(--text, #0f172a); color: var(--card, #ffffff); }

.ew-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.ew-link:hover { text-decoration: underline; }

.ew-knopf:focus-visible,
.ew-textknopf:focus-visible,
.ew-link:focus-visible,
.ew-dialog .ew-schalter:focus-visible {
  outline: 2px solid var(--text, #0f172a);
  outline-offset: 2px;
}

.ew-dialog {
  box-sizing: border-box;
  width: min(36rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow-y: auto;
  background: var(--card, #ffffff);
  color: var(--text, #0f172a);
  font-family: var(--font, system-ui, -apple-system, sans-serif);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}
.ew-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.ew-form { margin: 0; padding: 24px; }
.ew-dialog-titel { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; }
.ew-liste { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--border, #e2e8f0); }
.ew-eintrag {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.ew-eintrag-text { min-width: 0; cursor: pointer; }
.ew-name { display: block; font-weight: 600; }
.ew-detail { display: block; margin-top: 2px; font-size: 13px; color: var(--muted, #64748b); }
.ew-dialog .ew-schalter {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--primary, #0f172a);
  cursor: pointer;
}
.ew-dialog .ew-wahl { margin-top: 24px; }
.ew-klein { margin: 16px 0 0; font-size: 13px; }

@media (max-width: 520px) {
  .ew-banner { font-size: 13px; }
  .ew-banner-innen { padding: 12px 16px; }
  .ew-form { padding: 20px 16px; }
}
