/* ═══════════════════════════════════════════
   CONSENT — Design folgt der Website-CI
   (nutzt die vorhandenen CSS-Variablen)
═══════════════════════════════════════════ */

#ekb-consent{
  position:fixed; inset:auto 0 0 0; z-index:2000;
  display:none;
  padding:1.25rem;
  background:var(--bg-card);
  border-top:2px solid var(--gold);
  box-shadow:0 -8px 40px var(--shadow-h);
  font-family:'Jost',sans-serif;
  color:var(--text);
  animation:ekbConsentUp .35s cubic-bezier(.22,1,.36,1) both;
}
#ekb-consent.is-open{display:block}
@keyframes ekbConsentUp{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){#ekb-consent{animation:none}}

.ekb-c-inner{max-width:1000px;margin:0 auto}

.ekb-c-title{
  font-family:'Cormorant Garamond',serif;
  font-size:1.5rem;font-weight:600;
  margin-bottom:.4rem;color:var(--text);
}
.ekb-c-text{
  font-size:.9rem;line-height:1.6;
  color:var(--text-mid);margin-bottom:1rem;
}
.ekb-c-text a{color:var(--purple-main);text-decoration:underline}
[data-theme="dark"] .ekb-c-text a{color:var(--gold-light)}

.ekb-c-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}

.ekb-c-btn{
  font-family:'Jost',sans-serif;font-size:.85rem;font-weight:500;
  letter-spacing:.02em;
  padding:.7rem 1.4rem;border-radius:30px;
  border:1px solid var(--border);
  background:transparent;color:var(--text-mid);
  cursor:pointer;transition:all .2s;
}
.ekb-c-btn:hover{border-color:var(--border-gold);color:var(--text)}
.ekb-c-btn:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}

.ekb-c-btn--accept{
  background:var(--purple-main);color:#fff;border-color:transparent;
  box-shadow:0 2px 12px var(--shadow);
}
.ekb-c-btn--accept:hover{background:var(--purple-mid);color:#fff;transform:translateY(-1px)}
[data-theme="dark"] .ekb-c-btn--accept{background:var(--gold);color:var(--purple-dark)}
[data-theme="dark"] .ekb-c-btn--accept:hover{background:var(--gold-light)}

.ekb-c-btn--link{
  border:none;background:none;text-decoration:underline;
  padding:.7rem .4rem;color:var(--text-muted);
}
.ekb-c-btn--link:hover{color:var(--text)}

/* ── Detail-Ansicht ── */
.ekb-c-details{display:none;margin:1rem 0 0;border-top:1px solid var(--border);padding-top:1rem}
#ekb-consent.show-details .ekb-c-details{display:block}

.ekb-c-cat{
  display:flex;gap:.9rem;align-items:flex-start;
  padding:.9rem 0;border-bottom:1px solid var(--border);
}
.ekb-c-cat:last-child{border-bottom:none}
.ekb-c-cat-body{flex:1}
.ekb-c-cat-label{
  font-family:'Cormorant Garamond',serif;
  font-size:1.12rem;color:var(--text);margin-bottom:.15rem;
}
.ekb-c-cat-text{font-size:.82rem;line-height:1.55;color:var(--text-muted)}

/* Schalter */
.ekb-c-switch{position:relative;flex-shrink:0;width:44px;height:24px;margin-top:.2rem}
.ekb-c-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.ekb-c-slider{
  position:absolute;inset:0;border-radius:24px;
  background:var(--border);transition:background .2s;pointer-events:none;
}
.ekb-c-slider::before{
  content:'';position:absolute;top:3px;left:3px;
  width:18px;height:18px;border-radius:50%;
  background:#fff;transition:transform .2s;
  box-shadow:0 1px 3px rgba(0,0,0,.3);
}
.ekb-c-switch input:checked + .ekb-c-slider{background:var(--purple-main)}
[data-theme="dark"] .ekb-c-switch input:checked + .ekb-c-slider{background:var(--gold)}
.ekb-c-switch input:checked + .ekb-c-slider::before{transform:translateX(20px)}
.ekb-c-switch input:disabled + .ekb-c-slider{opacity:.55}
.ekb-c-switch input:focus-visible + .ekb-c-slider{outline:2px solid var(--focus-ring);outline-offset:2px}

@media(max-width:560px){
  .ekb-c-actions{flex-direction:column;align-items:stretch}
  .ekb-c-btn{width:100%;text-align:center}
}
