/* ==========================================================================
   wandlogo.com – Consent-Banner (Plugin wandlogo-consent)
   Eigenständige Styles (keine Theme-Abhängigkeit): zentriertes Dialogfeld mit
   Overlay, gleichwertige „Alle akzeptieren"/„Nur Notwendige"-Buttons,
   granulare Kategorien/Dienste, schwebender Widerruf-Button unten links.
   ========================================================================== */

.wlc { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.wlc[hidden] { display: none; }
.wlc-backdrop { position: absolute; inset: 0; background: rgba(20, 18, 14, .45); backdrop-filter: blur(2px); }
body.wlc-open { overflow: hidden; }

.wlc-box { position: relative; width: min(680px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  padding: 24px 26px; font-family: inherit; color: #26282d; }
.wlc-box h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.wlc-intro { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #4b5058; }
.wlc-intro a { color: #e65300; text-decoration: underline; }

/* Gleichwertige Buttons: Akzeptieren und Ablehnen identisch gewichtet (DSGVO/DSK) */
.wlc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wlc-btn { flex: 1 1 160px; min-height: 46px; padding: 0 16px; border-radius: 8px; font-size: 15px;
  font-weight: 700; cursor: pointer; transition: transform .12s, opacity .12s; }
.wlc-btn:hover { transform: translateY(-1px); }
.wlc-accept, .wlc-reject { border: 0; color: #fff;
  background: linear-gradient(72.47deg, rgb(230, 83, 0) 22.16%, rgba(230, 83, 0, .75) 76.47%); }
.wlc-ghost { background: #fff; border: 1px solid #c6c8cc; color: #4b5058; }

/* Kategorien & Dienste */
.wlc-details { margin: 0 0 16px; border-top: 1px solid #e6e7ea; }
.wlc-cat { padding: 14px 0; border-bottom: 1px solid #e6e7ea; }
.wlc-cat-head { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.wlc-cat > p { margin: 6px 0 0 46px; font-size: 13px; line-height: 1.55; color: #6a707a; }
.wlc-services { list-style: none; margin: 10px 0 0 46px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wlc-services label { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; cursor: pointer; }
.wlc-services small { color: #8a8f98; }
.wlc-services input { accent-color: #e65300; }

/* Schalter (Kategorie) */
.wlc-switch { position: relative; display: inline-block; width: 36px; height: 20px; flex: none; }
.wlc-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wlc-switch i { position: absolute; inset: 0; border-radius: 999px; background: #c6c8cc; transition: background .15s; }
.wlc-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .15s; }
.wlc-switch input:checked + i { background: #e65300; }
.wlc-switch input:checked + i::after { transform: translateX(16px); }
.wlc-switch input:disabled + i { background: #8fb996; cursor: not-allowed; }

/* Widerruf-Button (unten links, nach der ersten Auswahl sichtbar) */
.wlc-reopen { position: fixed; left: 14px; bottom: 14px; z-index: 999998; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid #d5d7db; background: #fff; color: #6a707a; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
  transition: color .15s, border-color .15s, transform .15s; }
.wlc-reopen[hidden] { display: none; }
.wlc-reopen:hover { color: #e65300; border-color: #e65300; transform: translateY(-2px); }
.wlc-reopen svg { width: 22px; height: 22px; }

@media (max-width: 560px) {
  .wlc { padding: 0; align-items: flex-end; }
  .wlc-box { border-radius: 14px 14px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
  .wlc-btn { flex: 1 1 100%; }
}

/* Externe Medien: Platzhalter über blockierten Embeds */
.wlc-embed { position: relative; min-height: 220px; background: #f0eeea; border-radius: 10px; overflow: hidden; }
.wlc-embed iframe { display: block; width: 100%; }
.wlc-embed-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; text-align: center; padding: 20px;
  background: linear-gradient(160deg, #f6f4f0, #e9e6e0); color: #4b5058; }
.wlc-embed-ph p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.wlc-embed-ph a { font-size: 12px; color: #6a707a; text-decoration: underline; }
.wlc-embed-load { min-height: 42px; padding: 0 18px; border: 0; border-radius: 8px; color: #fff;
  font-weight: 700; font-size: 14px; cursor: pointer;
  background: linear-gradient(72.47deg, rgb(230, 83, 0) 22.16%, rgba(230, 83, 0, .75) 76.47%); }
.wlc-embed-loaded .wlc-embed-ph { display: none; }

/* Zweck-Beschreibung je Dienst (informierte Einwilligung) */
.wlc-services label span { display: inline-flex; flex-direction: column; gap: 1px; }
.wlc-svc-desc { display: block; font-style: normal; font-size: 12px; line-height: 1.45; color: #8a8f98; }
