.ew {
  position: fixed; z-index: 60;
  left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom));
  width: min(340px, 100% - 32px); max-height: calc(100% - 32px); overflow: auto;
  padding: 14px 16px 12px; border-radius: 16px;                
  background: var(--flaeche); color: var(--text);
  box-shadow: 0 0 0 1px var(--linie), 0 24px 60px -20px rgba(0, 0, 0, 0.9);
}
.ew.ew--auf { width: min(460px, 100% - 32px); padding: var(--a-3); border-radius: 20px; }   
.ew[hidden] { display: none; }
.ew::before {                       
  content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px;
  background: linear-gradient(90deg, rgba(213, 187, 130, 0), rgba(213, 187, 130, 0.8) 28%, rgba(213, 187, 130, 0.8) 72%, rgba(213, 187, 130, 0));
}
@media (min-width: 700px) { .ew { left: 24px; bottom: 24px; } .ew.ew--auf { padding: var(--a-4); } }
@media (prefers-reduced-motion: no-preference) {
  html:not(.ruhe) .ew { animation: ew-auf 420ms var(--ruhig) both; }
}
@keyframes ew-auf { from { opacity: 0; transform: translateY(12px); } }

.ew__kurz { margin-top: 4px; font-size: 0.875rem; line-height: 1.45; color: var(--text-2); }
.ew__mehr[hidden], .ew__wege[hidden] { display: none; }
.ew__text { margin-top: var(--a-1); font-size: 0.9375rem; line-height: 1.6; color: var(--text-2); }
.ew__text a, .ew__wege a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(243, 243, 238, 0.4); text-underline-offset: 3px; }
.ew__text a:hover, .ew__wege a:hover { color: var(--gold); text-decoration-color: currentColor; }

.ew__auswahl { margin-top: var(--a-2); border-bottom: 1px solid var(--linie); }
.ew__zeile { display: flex; align-items: center; justify-content: space-between; gap: var(--a-2); padding: var(--a-1) 0; border-top: 1px solid var(--linie); cursor: pointer; }
.ew__zeile b { display: block; font-size: 0.9375rem; font-weight: 500; }
.ew__zeile span span { display: block; font-size: 0.8125rem; line-height: 1.5; color: var(--text-2); }
.ew__schalter {
  flex: none; appearance: none; -webkit-appearance: none; margin: 0; position: relative;
  width: 44px; height: 26px; border-radius: 13px; background: rgba(243, 243, 238, 0.16); cursor: pointer;
  transition: background-color 200ms ease;
}
.ew__schalter::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--text); transition: transform 200ms var(--ruhig);
}
.ew__schalter:checked { background: var(--gold); }
.ew__schalter:checked::after { transform: translateX(18px); background: #10120e; }
.ew__schalter:disabled { opacity: 0.55; cursor: default; }
.ew__zeile:has(.ew__schalter:disabled) { cursor: default; }

.ew__knoepfe { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 8px; margin-top: 12px; }
.ew--auf .ew__knoepfe { gap: var(--a-1); margin-top: var(--a-3); }
.ew__knopf {
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 24px; cursor: pointer;
  background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(243, 243, 238, 0.32);
  font: inherit; font-size: 0.9375rem; font-weight: 500; line-height: 1.2;
  transition: box-shadow 200ms ease, color 200ms ease;
}
.ew__knopf:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
.ew--auf .ew__knopf { min-height: 48px; padding: 0 16px; }
.ew__knopf--breit { grid-column: 1 / -1; }

.ew__weiter { min-height: 44px; padding: 0 2px 0 8px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 0.8125rem; color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(243, 243, 238, 0.4); text-underline-offset: 3px; }
.ew__weiter:hover { color: var(--gold); text-decoration-color: currentColor; }
.ew__knopf[hidden] { display: none; }
@media (max-width: 359px) { .ew__knoepfe { grid-template-columns: 1fr 1fr; } .ew__weiter { grid-column: 1 / -1; justify-self: start; padding-left: 0; } }
.ew__wege { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--a-3); margin-top: var(--a-1); font-size: 0.8125rem; color: var(--text-2); }
.ew__wege a { display: inline-flex; align-items: center; min-height: 44px; }
@media (forced-colors: active) { .ew { border: 1px solid CanvasText; } .ew__schalter { border: 1px solid CanvasText; } }
