/* Einwilligung (Cookie-Banner): Karte unten links, mobil über die volle Breite.
   „Alle akzeptieren“ und „Nur notwendige“ sind gleich gewichtet. */
.ew {
  position: fixed; left: 24px; bottom: 24px; z-index: 90;
  width: min(440px, calc(100vw - 48px)); box-sizing: border-box; padding: 24px 24px 20px;
  background: var(--papier, #F5F2ED); color: var(--schwarz, #121212);
  border: 2px solid var(--schwarz, #121212); border-radius: 16px;
  box-shadow: 0 24px 48px -24px rgba(18,18,18,.55);
  font-family: "Inter", sans-serif;
  opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity .3s, transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s;
}
.ew.ew-sichtbar { opacity: 1; transform: none; visibility: visible; transition: opacity .3s, transform .3s cubic-bezier(.2,.8,.2,1); }
.ew-titel { margin: 0 0 8px; font-size: 18px; font-weight: 750; line-height: 1.25; }
.ew-text { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(18,18,18,.78); }
.ew-text a { color: var(--schwarz, #121212); text-decoration-color: var(--rot, #E5322D); text-underline-offset: 3px; }

.ew-auswahl { display: grid; gap: 10px; margin-top: 18px; }
.ew-auswahl[hidden] { display: none; }
.ew-kategorie {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border-radius: 12px; background: rgba(18,18,18,.05); cursor: pointer;
}
.ew-kategorie span { display: grid; gap: 4px; }
.ew-kategorie b { font-size: 15px; font-weight: 700; }
.ew-kategorie small { font-size: 14px; line-height: 1.45; color: rgba(18,18,18,.68); }

/* Schalter */
.ew-kategorie input {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 2px 0 0;
  width: 44px; height: 26px; border-radius: 13px; background: rgba(18,18,18,.25); cursor: pointer; transition: background-color .2s;
}
.ew-kategorie input::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .2s cubic-bezier(.2,.8,.2,1);
}
.ew-kategorie input:checked { background: var(--schwarz, #121212); }
.ew-kategorie input:checked::after { transform: translateX(18px); }
.ew-kategorie input:disabled { opacity: .45; cursor: default; }
.ew-kategorie input:focus-visible { outline: 2px solid var(--rot, #E5322D); outline-offset: 3px; }

.ew-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.ew-knopf {
  min-height: 48px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  font: 600 15px/1.2 "Inter", sans-serif; transition: background-color .2s, color .2s;
  border: 2px solid var(--schwarz, #121212); background: var(--schwarz, #121212); color: var(--papier, #F5F2ED);
}
.ew-knopf:hover { background: #000; }
.ew-knopf[hidden] { display: none; }
.ew-speichern { grid-column: 1 / -1; }
.ew-link {
  grid-column: 1 / -1; justify-self: center; padding: 6px 4px; border: 0; background: none; cursor: pointer;
  font: 600 15px/1.2 "Inter", sans-serif; color: var(--schwarz, #121212);
  text-decoration: underline; text-decoration-color: rgba(18,18,18,.35); text-underline-offset: 4px;
}
.ew-link:hover { text-decoration-color: var(--rot, #E5322D); }
.ew-knopf:focus-visible, .ew-link:focus-visible { outline: 2px solid var(--rot, #E5322D); outline-offset: 3px; }

/* Solange der Banner offen ist, weicht der schwebende Kontaktknopf nicht aus: er sitzt rechts, der Banner links */
@media (max-width: 767px) {
  .ew { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 20px 18px 16px; }
  .ew-text { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ew, .ew.ew-sichtbar { transition: none; transform: none; }
}
