/* AVENUE V – Cookie-/Einwilligungs-Fenster (Rick 22.11.2026). QUELLE: werkzeuge/einwilligung/einwilligung.css → `node werkzeuge/einwilligung/verteilen.js`.
   Web-Stil 22.11.: dunkel, Glas, Verlauf Pink→Orange, Archivo (Titel) + Saira (Text). Schriften kommen von der jeweiligen Seite, sonst Systemschrift.
   Alles mit Präfix av-ew / av-ext, damit nichts mit den Seiten kollidiert. */
.av-ew {
  --ew-bg: rgba(18, 16, 24, .86); --ew-linie: rgba(255, 255, 255, .1); --ew-text: #f4f2f7; --ew-grau: #b3b0c0; --ew-dim: #807d8f;
  --ew-pink: #e45cae; --ew-orange: #ff8a5c; --ew-verlauf: linear-gradient(100deg, #e45cae, #ff7a6b 55%, #ffb35c);
  --ew-kopf: Archivo, 'Segoe UI', system-ui, sans-serif; --ew-txt: Saira, 'Segoe UI', system-ui, sans-serif;
  position: fixed; right: 20px; bottom: 20px; z-index: 2147483000; box-sizing: border-box;
  width: min(420px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow: auto;
  padding: 22px 22px 18px; border-radius: 18px; border: 1px solid var(--ew-linie);
  background: var(--ew-bg); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: var(--ew-text); font: 500 14px/1.5 var(--ew-txt); text-align: left; letter-spacing: normal; text-transform: none;
  opacity: 0; transform: translateY(14px); transition: opacity .28s ease, transform .32s cubic-bezier(.2, .8, .2, 1);
}
.av-ew *, .av-ew *::before, .av-ew *::after { box-sizing: border-box; }
.av-ew[hidden] { display: none !important; }
.av-ew.av-ew-an { opacity: 1; transform: none; }
.av-ew::before { /* feiner Verlaufsrand oben */
  content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: var(--ew-verlauf); opacity: .9;
}
.av-ew-zu {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; margin: 0;
  border: 1px solid var(--ew-linie); border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--ew-grau); cursor: pointer;
}
.av-ew-zu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.av-ew-zu:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.av-ew-kopf { display: flex; align-items: center; gap: 12px; padding-right: 38px; }
.av-ew-keks { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 6px 16px rgba(255, 110, 120, .35)); }
.av-ew-kopf small { display: block; font: 700 10.5px/1.2 var(--ew-txt); letter-spacing: .16em; text-transform: uppercase; color: var(--ew-orange); }
.av-ew-kopf h2 {
  margin: 3px 0 0; padding: 0; font: 800 21px/1.15 var(--ew-kopf); font-stretch: 112%; letter-spacing: -.01em; color: var(--ew-text); outline: none; border: 0; background: none; text-transform: none;
}
.av-ew-text { margin: 12px 0 14px; color: var(--ew-grau); font-size: 13.5px; }
.av-ew-liste { display: grid; gap: 8px; }
.av-ew-punkt { display: block; margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ew-linie); background: rgba(255, 255, 255, .035); }
.av-ew-wahl { cursor: pointer; }
.av-ew-wahl:hover { border-color: rgba(255, 255, 255, .18); }
.av-ew-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.av-ew-zeile b { font: 700 14.5px/1.3 var(--ew-kopf); color: var(--ew-text); }
.av-ew-punkt .av-ew-p { display: block; margin: 5px 0 0; color: var(--ew-dim); font-size: 12.5px; line-height: 1.5; }
.av-ew-immer { flex: none; padding: 3px 9px; border-radius: 999px; font: 700 10.5px/1.4 var(--ew-txt); letter-spacing: .08em; text-transform: uppercase; color: #7bd84a; background: rgba(123, 216, 74, .12); border: 1px solid rgba(123, 216, 74, .28); }
/* Schalter */
.av-ew-schalter { position: relative; flex: none; width: 44px; height: 26px; }
.av-ew-schalter input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.av-ew-schalter i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .16); transition: background .2s ease; }
.av-ew-schalter i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.av-ew-schalter input:checked + i { background: var(--ew-verlauf); border-color: transparent; }
.av-ew-schalter input:checked + i::after { transform: translateX(18px); }
.av-ew-schalter input:focus-visible + i { outline: 2px solid var(--ew-orange); outline-offset: 2px; }
/* Knöpfe */
.av-ew-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.av-ew-k {
  height: 42px; margin: 0; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05);
  color: var(--ew-text); font: 700 13px/1 var(--ew-txt); letter-spacing: .04em; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.av-ew-k:hover { background: rgba(255, 255, 255, .1); }
.av-ew-k.voll { border: 0; background: var(--ew-verlauf); color: #fff; box-shadow: 0 8px 24px rgba(255, 110, 120, .3); }
.av-ew-k.voll:hover { filter: brightness(1.06); }
.av-ew-k:active { transform: translateY(1px); }
.av-ew-k:focus-visible, .av-ew-zu:focus-visible, .av-ew-fuss a:focus-visible { outline: 2px solid var(--ew-orange); outline-offset: 2px; }
.av-ew-fuss { margin: 12px 0 0; color: var(--ew-dim); font-size: 11.5px; line-height: 1.5; }
.av-ew-fuss a { color: var(--ew-grau); text-decoration: underline; text-underline-offset: 2px; }
.av-ew-fuss a:hover { color: #fff; }
/* Handy: unten über die ganze Breite */
@media (max-width: 640px) {
  .av-ew { left: 0; right: 0; bottom: 0; width: 100%; max-height: 82vh; border-radius: 18px 18px 0 0; border-bottom: 0; padding: 20px 16px calc(14px + env(safe-area-inset-bottom)); }
  .av-ew-kopf h2 { font-size: 19px; }
  .av-ew-knoepfe { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .av-ew, .av-ew-schalter i, .av-ew-schalter i::after { transition: none; } }

/* ---------- Gesperrte externe Inhalte ---------- */
.av-ext-weg { display: none !important; }
.av-ext-platz {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 120px; height: 100%; margin: 0; padding: 16px;
  border: 1px dashed rgba(255, 138, 92, .45); border-radius: 12px; cursor: pointer; text-align: left;
  background: radial-gradient(120% 120% at 0% 0%, rgba(228, 92, 174, .14), transparent 60%), radial-gradient(120% 120% at 100% 100%, rgba(255, 138, 92, .12), transparent 60%), #15131b;
  color: #f4f2f7; font: 500 13px/1.4 Saira, 'Segoe UI', system-ui, sans-serif;
}
.av-ext-platz:hover { border-color: rgba(255, 138, 92, .8); }
/* Seiten-CSS wie „.foto span { position:absolute … }“ darf den Platzhalter nicht zerlegen */
.av-ext-platz span, .av-ext-platz b, .av-ext-platz small {
  position: static !important; inset: auto !important; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: none !important; letter-spacing: normal !important; text-transform: none !important; box-shadow: none !important;
}
.av-ext-platz > span { display: block; min-width: 0; }
.foto .av-ext-platz, .karte.event .av-ext-platz { min-height: 170px; border-radius: 0; border-width: 0 0 1px; }
.av-ext-platz .av-ew-keks { width: 30px; height: 30px; filter: none; }
.av-ext-platz b { display: block; font: 700 13.5px/1.3 Archivo, 'Segoe UI', system-ui, sans-serif; }
.av-ext-platz small { display: block; margin-top: 2px; color: #a9a8b8; font-size: 12px; }
.av-ext-chip { /* kleiner Hinweis statt Bild, z. B. im Event-Aufmacher des UCP */
  display: inline-flex; align-items: center; height: 26px; margin: 0; padding: 0 10px; border-radius: 5px; cursor: pointer;
  border: 1px dashed rgba(255, 138, 92, .6); background: rgba(10, 9, 14, .7); color: #ffb08f; font: 700 12px/1 Saira, 'Segoe UI', system-ui, sans-serif;
}
.av-ext-chip:hover { color: #fff; border-color: #ff8a5c; }
.av-ext-bg { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 8px, transparent 8px 16px) !important; background-color: #1a1720 !important; }
.av-ew-platz { width: 100%; height: 0; }
