/* Everblog Consent — Banner, Einstellungen, Platzhalter. Farben kommen aus --ec-accent / --ec-on-accent (Portalfarbe). */
.ec-banner, .ec-overlay, .ec-fab, .ec-embed { font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1b1f23; box-sizing: border-box; }
.ec-banner *, .ec-overlay *, .ec-embed * { box-sizing: border-box; }

/* Banner: unten, nicht blockierend */
.ec-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 2147483000; max-width: 780px; margin: 0 auto;
  background: #fff; border: 1px solid rgba(0,0,0,.12); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.28); padding: 18px 20px; }
.ec-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.3; color: #111; }
.ec-text { margin: 0 0 14px; color: #3a4148; }
.ec-text a, .ec-m-links a, .ec-svc-link a, .ec-embed a { color: var(--ec-accent, #1f5f8b); text-decoration: underline; }
.ec-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Schaltflächen: "Alle ablehnen" und "Alle akzeptieren" sind GLEICH gestaltet (gleichwertige Auswahl) */
.ec-btn { appearance: none; cursor: pointer; font: inherit; font-weight: 600; line-height: 1.2; padding: 11px 18px; border-radius: 999px;
  border: 2px solid var(--ec-accent, #1f5f8b); min-height: 44px; }
.ec-btn-main { background: var(--ec-accent, #1f5f8b); color: var(--ec-on-accent, #fff); }
.ec-btn-alt { background: transparent; color: var(--ec-accent, #1f5f8b); }
.ec-btn:hover { filter: brightness(1.08); }
.ec-btn:focus-visible, .ec-close:focus-visible, .ec-fab:focus-visible, .ec-details summary:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.ec-actions .ec-btn { flex: 1 1 150px; }

/* Einstellungen (Dialog) */
.ec-overlay { position: fixed; inset: 0; z-index: 2147483001; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 14px; }
.ec-modal { background: #fff; width: 100%; max-width: 680px; max-height: 92vh; display: flex; flex-direction: column; border-radius: 14px; box-shadow: 0 18px 60px rgba(0,0,0,.4); overflow: hidden; }
.ec-m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e6e8eb; }
.ec-m-head h2 { margin: 0; font-size: 18px; color: #111; }
.ec-close { appearance: none; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: #444; width: 44px; height: 44px; border-radius: 50%; }
.ec-close:hover { background: #f0f2f4; }
.ec-m-body { padding: 16px 20px; overflow-y: auto; flex: 1 1 auto; }
.ec-m-intro { margin: 0 0 14px; color: #3a4148; }
.ec-m-links { margin: 14px 0 0; font-size: 13px; }
.ec-m-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px; border-top: 1px solid #e6e8eb; background: #fafbfc; }
.ec-m-foot .ec-btn { flex: 1 1 150px; }

.ec-cat { border: 1px solid #e6e8eb; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.ec-cat-head { display: flex; gap: 12px; align-items: flex-start; }
.ec-cat-title { flex: 1; min-width: 0; }
.ec-cat-name { font-weight: 700; color: #111; cursor: pointer; }
.ec-cat-title p { margin: 4px 0 0; color: #3a4148; font-size: 13px; }
.ec-details { margin-top: 8px; font-size: 13px; }
.ec-details summary { cursor: pointer; color: var(--ec-accent, #1f5f8b); font-weight: 600; padding: 4px 0; }
.ec-svc { background: #f6f7f8; border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.ec-dl { margin: 6px 0 0; }
.ec-dl dt { font-weight: 600; color: #444; margin-top: 6px; }
.ec-dl dd { margin: 0; color: #3a4148; overflow-wrap: anywhere; }
.ec-svc-link { margin: 8px 0 0; }

/* Schalter */
.ec-switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; margin-top: 2px; }
.ec-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ec-slider { position: absolute; inset: 0; background: #9aa1a9; border-radius: 999px; transition: background .2s; }
.ec-slider::before { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform .2s; }
.ec-switch input:checked + .ec-slider { background: var(--ec-accent, #1f5f8b); }
.ec-switch input:checked + .ec-slider::before { transform: translateX(20px); }
.ec-switch input:disabled { cursor: not-allowed; }
.ec-switch input:disabled + .ec-slider { opacity: .6; }
.ec-switch input:focus-visible + .ec-slider { outline: 3px solid #ffbf47; outline-offset: 2px; }

/* Schaltfläche zum Ändern der Auswahl (Widerruf so einfach wie Einwilligung) */
.ec-fab { position: fixed; left: 14px; bottom: 14px; z-index: 2147482000; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: var(--ec-accent, #1f5f8b); color: var(--ec-on-accent, #fff); box-shadow: 0 4px 16px rgba(0,0,0,.3); padding: 0; }
.ec-fab:hover { filter: brightness(1.1); }

/* Platzhalter für blockierte Einbettungen (Videos, Karten …) */
.ec-embed { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 100%; margin: 18px 0; background: #eef0f2; border: 1px solid #d9dde1; border-radius: 10px; overflow: hidden; min-height: 180px; }
.ec-embed.ec-loaded { background: transparent; border: 0; }
.ec-embed-box { padding: 18px 20px; text-align: center; max-width: 560px; color: #1b1f23; }
.ec-embed-box p { margin: 8px 0; font-size: 13px; color: #3a4148; }
.ec-embed-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 6px; }
.ec-embed-actions .ec-btn { padding: 9px 14px; font-size: 13px; }
.ec-embed-direct { margin: 4px 0 0 !important; }

html.ec-lock { overflow: hidden; }
@media (max-width: 520px) {
  .ec-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px; }
  .ec-actions .ec-btn, .ec-m-foot .ec-btn { flex: 1 1 100%; }
  .ec-overlay { padding: 0; align-items: flex-end; }
  .ec-modal { max-height: 94vh; border-radius: 14px 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .ec-slider, .ec-slider::before { transition: none; } }
@media print { .ec-banner, .ec-overlay, .ec-fab { display: none !important; } }
