.cecd-root, .cecd-root * { box-sizing: border-box; }
.cecd-modal-open { overflow: hidden; }
.cecd-backdrop { position: fixed; inset: 0; z-index: 999998; background: rgba(0,0,0,.68); backdrop-filter: blur(3px); }
.cecd-banner { position: fixed; z-index: 999999; left: 0; right: 0; bottom: 0; padding: 16px; pointer-events: none; }
.cecd-settings { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cecd-banner[hidden], .cecd-settings[hidden], .cecd-backdrop[hidden], .cecd-reopen[hidden] { display: none !important; }
.cecd-panel { pointer-events: auto; width: min(780px, 100%); max-height: calc(100vh - 32px); overflow: auto; margin: 0 auto; background: #071220; color: #f7fbff; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.48); font: 16px/1.55 Inter,"Segoe UI",Arial,sans-serif; }
.cecd-panel-wide { width: min(900px, 100%); }
.cecd-kicker { color: #55b8ff; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.cecd-panel h2, .cecd-panel h3 { color: #f7fbff; }
.cecd-panel h2 { font-size: 26px; line-height: 1.2; margin: 0 0 14px; }
.cecd-panel h3 { font-size: 18px; margin: 0 0 4px; }
.cecd-panel p { color: #dce7f5; margin: 0 0 14px; }
.cecd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cecd-actions-primary .cecd-btn-equal { flex: 1 1 210px; }
.cecd-btn { appearance: none; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; padding: 11px 16px; min-height: 46px; font: inherit; font-weight: 800; cursor: pointer; background: #0d1c30; color: #fff; }
.cecd-btn:hover, .cecd-btn:focus-visible { outline: 3px solid rgba(85,184,255,.35); outline-offset: 2px; }
.cecd-btn-primary, .cecd-btn-equal { background: #0b82ff; border-color: #0b82ff; color: #fff; }
.cecd-btn-secondary { background: #0d1c30; color: #fff; }
.cecd-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; }
.cecd-links a { color: #74c8ff; text-decoration: underline; text-underline-offset: 2px; }
.cecd-header-row { display: flex; align-items: flex-start; gap: 15px; justify-content: space-between; }
.cecd-icon-btn { border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; color: #fff; padding: 3px 9px 6px; }
.cecd-category { border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 15px; margin: 12px 0; background: #0a1728; }
.cecd-category-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cecd-category-head p { font-size: 14px; margin-bottom: 0; color: #b9c9dc; }
.cecd-service-list { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #c9d7e8; }
ul.cecd-service-list { padding-left: 20px; }
.cecd-switch { flex: 0 0 auto; position: relative; display: inline-flex; align-items: center; }
.cecd-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cecd-switch span[aria-hidden="true"] { width: 48px; height: 26px; border-radius: 999px; background: #58677a; position: relative; display: inline-block; transition: .18s; }
.cecd-switch span[aria-hidden="true"]:after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #fff; position: absolute; left: 3px; top: 3px; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.cecd-switch input:checked + span[aria-hidden="true"] { background: #0b82ff; }
.cecd-switch input:checked + span[aria-hidden="true"]:after { transform: translateX(22px); }
.cecd-switch input:focus-visible + span[aria-hidden="true"] { outline: 3px solid rgba(85,184,255,.4); outline-offset: 2px; }
.cecd-small { font-size: 12px; color: #aebcd0 !important; margin-top: 16px !important; }
.cecd-reopen { position: fixed; z-index: 999990; left: 16px; right: auto; bottom: -18px; width: 36px; height: 32px; border: 1px solid rgba(85,184,255,.42); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 0; background: #0b82ff; color: transparent; font-size: 0; line-height: 0; box-shadow: 0 -3px 10px rgba(0,0,0,.16); cursor: pointer; opacity: .36; transition: bottom .16s ease, opacity .16s ease, box-shadow .16s ease; }
.cecd-reopen:hover, .cecd-reopen:focus-visible { bottom: -13px; opacity: .72; box-shadow: 0 -4px 14px rgba(0,0,0,.22); outline: none; }
.cecd-reopen:focus-visible { box-shadow: 0 0 0 3px rgba(85,184,255,.28), 0 -4px 14px rgba(0,0,0,.22); }
iframe[data-ce-blocked="1"] { background: #071220; min-height: 180px; border: 1px dashed rgba(85,184,255,.55); }
.cecd-privacy-text h2 { margin-top: 2em; }
.cecd-privacy-text p, .cecd-privacy-text li { line-height: 1.75; }
.screen-reader-text { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
@media (min-width: 641px) {
  .cecd-banner { left: auto; right: 0; bottom: 0; width: min(520px, calc(100vw - 18px)); padding: 0; }
  .cecd-banner .cecd-panel { width: 100%; margin: 0; padding: 18px 18px 16px; border-radius: 14px 0 0 0; font-size: 14px; line-height: 1.45; max-height: calc(100vh - 18px); }
  .cecd-banner .cecd-kicker { font-size: 10px; margin-bottom: 5px; }
  .cecd-banner .cecd-panel h2 { font-size: 22px; margin-bottom: 10px; }
  .cecd-banner .cecd-panel p { margin-bottom: 10px; }
  .cecd-banner .cecd-actions { gap: 8px; margin-top: 14px; }
  .cecd-banner .cecd-btn { min-height: 40px; padding: 8px 11px; font-size: 13px; }
  .cecd-banner .cecd-actions-primary .cecd-btn-equal { flex: 1 1 150px; }
  .cecd-banner .cecd-links { gap: 14px; margin-top: 12px; font-size: 12px; }
}
@media (max-width: 640px) {
  .cecd-banner { padding: 10px; }
  .cecd-settings { padding: 10px; align-items: flex-end; }
  .cecd-panel { width: 100%; max-height: 88vh; border-radius: 14px; padding: 18px; }
  .cecd-settings .cecd-panel { border-radius: 14px 14px 0 0; max-height: 94vh; }
  .cecd-panel h2 { font-size: 22px; }
  .cecd-actions { flex-direction: column; }
  .cecd-btn { width: 100%; }
  .cecd-actions-primary .cecd-btn-equal { flex-basis: auto; }
  .cecd-category-head { align-items: flex-start; }
  .cecd-reopen { left: 10px; right: auto; bottom: -16px; width: 34px; height: 30px; border-radius: 8px 8px 0 0; border-bottom: 0; opacity: .34; }
  .cecd-reopen:hover, .cecd-reopen:focus-visible { bottom: -12px; opacity: .68; }
}
@media (prefers-reduced-motion: reduce) {
  .cecd-switch span, .cecd-switch span:after { transition: none !important; }
}

/* v1.2.5 – Desktop: wirklich kompakt und fest unten rechts. */
@media (min-width: 641px) {
  .cecd-root #cecd-banner {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 380px !important;
    max-width: calc(100vw - 8px) !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    pointer-events: none !important;
  }

  .cecd-root #cecd-banner .cecd-panel {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 13px 14px 12px !important;
    border-radius: 12px 0 0 0 !important;
    font-size: 12.5px !important;
    line-height: 1.36 !important;
    max-height: calc(100vh - 8px) !important;
    box-shadow: 0 14px 44px rgba(0,0,0,.42) !important;
  }

  .cecd-root #cecd-banner .cecd-kicker {
    font-size: 9px !important;
    margin-bottom: 3px !important;
    letter-spacing: .10em !important;
  }

  .cecd-root #cecd-banner h2 {
    font-size: 18px !important;
    line-height: 1.15 !important;
    margin: 0 0 7px !important;
  }

  .cecd-root #cecd-banner p {
    margin: 0 0 7px !important;
  }

  .cecd-root #cecd-banner .cecd-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin-top: 10px !important;
  }

  .cecd-root #cecd-banner .cecd-actions .cecd-btn {
    width: 100% !important;
    min-height: 34px !important;
    padding: 6px 8px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  .cecd-root #cecd-banner .cecd-actions .cecd-btn-secondary:last-child {
    grid-column: 1 / -1 !important;
  }

  .cecd-root #cecd-banner .cecd-links {
    gap: 11px !important;
    margin-top: 8px !important;
    font-size: 10.5px !important;
  }

  /* Auch das Detailfenster bleibt rechts statt mittig. */
  .cecd-root #cecd-settings {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    padding: 0 !important;
  }

  .cecd-root #cecd-settings[hidden] {
    display: none !important;
  }

  .cecd-root #cecd-settings .cecd-panel-wide {
    width: 420px !important;
    max-width: calc(100vw - 8px) !important;
    max-height: calc(100vh - 8px) !important;
    margin: 0 !important;
    padding: 14px !important;
    border-radius: 12px 0 0 0 !important;
    font-size: 12.5px !important;
    line-height: 1.38 !important;
  }

  .cecd-root #cecd-settings .cecd-panel-wide h2 {
    font-size: 19px !important;
    margin-bottom: 7px !important;
  }

  .cecd-root #cecd-settings .cecd-panel-wide h3 {
    font-size: 14px !important;
  }

  .cecd-root #cecd-settings .cecd-category {
    padding: 9px !important;
    margin: 7px 0 !important;
  }

  .cecd-root #cecd-settings .cecd-category-head p,
  .cecd-root #cecd-settings .cecd-service-list {
    font-size: 11px !important;
  }

  .cecd-root #cecd-settings .cecd-actions {
    gap: 6px !important;
    margin-top: 10px !important;
  }

  .cecd-root #cecd-settings .cecd-btn {
    min-height: 34px !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
  }

  .cecd-root #cecd-settings .cecd-small {
    font-size: 10px !important;
    margin-top: 9px !important;
  }

  .cecd-root #cecd-settings .cecd-links {
    margin-top: 8px !important;
    font-size: 10.5px !important;
  }
}
