/* einwilligung.css — Cookie-Banner (assets/js/einwilligung.js) im Saatio Design System.
   Karte auf surface mit Haarlinie, Headline 400, Eyebrow mit Ultramarin-Punkt, Pill-Knöpfe gleich groß,
   Switch (.sa-switch/.sa-track/.sa-knob) aus components/bundle.css des Designsystems.
   Keine abgedunkelte Fläche, keine Sperre: die Seite bleibt dahinter lesbar und bedienbar. */

.ew{
  --ground:#F4F3F0; --surface:#FBFBFA; --surface-raised:#FFFFFF; --ink:#111113; --ink-muted:#4A4A50; --ink-subtle:#6B6B73;
  --hairline:rgba(17,17,19,0.12); --accent:#1E2CE6; --radius-pill:999px;
  --ew-schatten:0 1px 2px rgba(17,17,19,0.06),0 24px 60px -24px rgba(17,17,19,0.35);
  position:fixed; z-index:2147483000; right:clamp(16px,4vw,48px); bottom:clamp(12px,2.5vw,32px);
  width:min(640px,calc(100vw - 2*clamp(16px,4vw,48px)));
  font-family:'Instrument Sans',system-ui,sans-serif; color:var(--ink); -webkit-font-smoothing:antialiased;
}
.ew[data-theme="dark"]{
  --ground:#0F0F11; --surface:#19191D; --surface-raised:#222227; --ink:#F4F3F0; --ink-muted:#A6A6AE; --ink-subtle:#8A8A93;
  --hairline:rgba(244,243,240,0.12); --accent:#4B57FF;
  --ew-schatten:0 1px 2px rgba(0,0,0,0.3),0 24px 60px -24px rgba(0,0,0,0.8);
}
.ew[hidden]{display:none}
.ew *,.ew *::before,.ew *::after{box-sizing:border-box}

.ew-karte{
  background:var(--surface); border-radius:24px; box-shadow:inset 0 0 0 1px var(--hairline),var(--ew-schatten);
  padding:24px 24px 20px; display:flex; flex-direction:column; gap:14px;
  max-height:calc(100vh - 2*clamp(12px,2.5vw,32px)); max-height:calc(100dvh - 2*clamp(12px,2.5vw,32px)); overflow-y:auto; overscroll-behavior:contain;
  animation:ew-ein .6s cubic-bezier(.2,.8,.2,1);
}
.ew-karte:focus{outline:none}
.ew-kopf{display:flex;flex-direction:column;gap:8px}
.ew-eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:14px;line-height:1.4;color:var(--ink-muted)}
.ew-eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent)}
.ew-titel{margin:0;font-size:24px;font-weight:400;line-height:1.15;letter-spacing:-0.025em;color:var(--ink)}
.ew-text{margin:0;font-size:15px;line-height:1.55;color:var(--ink-muted);max-width:60ch}
.ew a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.ew a:hover{text-decoration-thickness:2px}

/* Knöpfe: „Nur notwendige“ und „Alle akzeptieren“ (und „Auswahl speichern“) in gleicher Größe und Gestalt */
.ew-leiste{display:flex;flex-direction:column;gap:12px;margin-top:4px}
.ew-knoepfe{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.ew-btn{
  min-height:48px; padding:10px 20px; border:0; border-radius:var(--radius-pill); cursor:pointer;
  background:var(--ink); color:var(--ground); font:500 15px/1.2 'Instrument Sans',system-ui,sans-serif; letter-spacing:-0.005em;
  transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .25s;
}
.ew-btn:hover{transform:translateY(-1px)}
.ew-btn:focus-visible,.ew-link:focus-visible,.ew a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.ew-links{display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px;font-size:14px;color:var(--ink-muted)}
.ew-link{
  padding:6px 0; min-height:32px; border:0; background:none; cursor:pointer; color:var(--ink);
  font:400 14px/1.4 'Instrument Sans',system-ui,sans-serif; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px;
}
.ew-links a{color:var(--ink-muted)}

/* Einstellungen */
.ew:has(.ew-gross){width:min(720px,calc(100vw - 2*clamp(16px,4vw,48px)))}
.ew-zeilen{display:flex;flex-direction:column}
.ew-zeile{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0;border-top:1px solid var(--hairline)}
.ew-zeile:last-child{border-bottom:1px solid var(--hairline)}
.ew-zeile-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.ew-name{font-size:16px;line-height:1.4;color:var(--ink)}
.ew-immer{margin-left:6px;font-size:13px;color:var(--ink-subtle)}
.ew-beschr{font-size:14px;line-height:1.5;color:var(--ink-muted);max-width:56ch}
.ew-dienst{font-size:13px;line-height:1.45;color:var(--ink-subtle)}

/* Switch — aus dem Saatio Design System (components/bundle.css), unverändert */
.sa-switch{position:relative;display:inline-flex;align-items:center;gap:14px;min-height:44px;cursor:pointer;font:400 16px/1.4 'Instrument Sans',system-ui,sans-serif;color:var(--ink);-webkit-tap-highlight-color:transparent;flex-shrink:0}
.sa-switch input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.sa-track{position:relative;flex-shrink:0;width:52px;height:30px;border-radius:var(--radius-pill);background:var(--hairline);box-shadow:inset 0 0 0 1px var(--hairline);overflow:hidden;isolation:isolate;transition:box-shadow .4s}
.sa-track::before{content:"";position:absolute;inset:0;z-index:0;border-radius:inherit;background:var(--ink);transform:scaleX(0);transform-origin:0 50%;transition:transform .55s cubic-bezier(.65,0,.35,1)}
.sa-track::after{content:"";position:absolute;top:-40%;bottom:-40%;left:-70%;width:45%;z-index:1;pointer-events:none;background:linear-gradient(100deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.35) 50%,rgba(255,255,255,0) 100%);transform:rotate(14deg);opacity:0}
.sa-knob{position:absolute;z-index:2;top:3px;left:3px;width:24px;height:24px;border-radius:var(--radius-pill);background:var(--surface-raised);box-shadow:0 2px 6px rgba(0,0,0,0.20),0 0 0 0.5px rgba(0,0,0,0.06);transition:transform .6s cubic-bezier(.34,1.45,.64,1),width .25s cubic-bezier(.2,.8,.2,1),background .4s}
.sa-knob::after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--accent);transform:scale(0);transition:transform .35s cubic-bezier(.34,1.6,.64,1) 0s}
[data-theme="dark"] .sa-knob{background:var(--ink-muted)}
[data-theme="dark"] .sa-switch input:checked+.sa-track .sa-knob{background:var(--surface-raised)}
.sa-switch input:checked+.sa-track::before{transform:scaleX(1)}
.sa-switch input:checked+.sa-track::after{animation:sa-sheen .9s cubic-bezier(.45,0,.25,1) .15s 1}
.sa-switch input:checked+.sa-track .sa-knob{transform:translateX(22px)}
.sa-switch input:checked+.sa-track .sa-knob::after{transform:scale(1);transition-delay:.25s}
.sa-switch input:active+.sa-track .sa-knob{width:30px}
.sa-switch input:checked:active+.sa-track .sa-knob{transform:translateX(16px)}
.sa-switch input:focus-visible+.sa-track{box-shadow:inset 0 0 0 1px var(--hairline),0 0 0 2px var(--surface),0 0 0 4px var(--accent)}
.sa-switch input:disabled+.sa-track{opacity:.45}
.sa-switch:has(input:disabled){cursor:default;color:var(--ink-subtle)}
@keyframes sa-sheen{0%{left:-70%;opacity:1}100%{left:130%;opacity:1}}

@keyframes ew-ein{from{opacity:.001;transform:translateY(16px)}to{opacity:1;transform:none}}

/* Rechts unten: links unten sitzt auf der Startseite der Hell/Dunkel-Schalter.
   Handy: Karte über die volle Breite, Knöpfe untereinander, gleich breit */
@media (max-width:560px){
  .ew,.ew:has(.ew-gross){left:12px;right:12px;bottom:12px;width:auto}
  .ew-karte{padding:20px 18px 16px;gap:12px;max-height:72vh;max-height:72dvh}
  .ew-titel{font-size:21px}
  .ew-text{font-size:14.5px}
  .ew-knoepfe{grid-template-columns:1fr}
  .ew-zeile{gap:14px}
}

@media (prefers-reduced-motion:reduce){
  .ew-karte{animation:none}
  .ew-btn{transition:none}
  .ew-btn:hover{transform:none}
  .sa-track::before,.sa-knob,.sa-knob::after{transition:none}
  .sa-switch input:checked+.sa-track::after{animation:none}
}

@media print{.ew{display:none}}
