/* Excelsior 2 Cookie-Hinweis: nutzt die Farben des Themes, mit eigenen Ersatzwerten */
.exc2cc, .exc2cc * { box-sizing: border-box; }
.exc2cc {
  --c-bg: var(--cream, #f6f2ea); --c-ink: var(--ink, #28394a); --c-soft: var(--ink-soft, #55677a);
  --c-acc: var(--accent, #4a7aa3); --c-accd: var(--accent-dark, #356289); --c-line: var(--line, #d6cdbd); --c-sand: var(--sand, #e6dfd2);
  font-family: var(--font-body, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif); font-size: 15px; line-height: 1.55; color: var(--c-ink);
}
.exc2cc[hidden], .exc2cc [hidden] { display: none !important; }

/* Banner: kompakte Karte unten rechts */
.exc2cc-banner {
  position: fixed; right: 16px; bottom: 16px; z-index: 99990; width: 380px; max-width: calc(100vw - 32px); margin: 0;
  background: var(--c-bg); border: 1px solid var(--c-line); border-top: 3px solid var(--c-acc); border-radius: 4px; padding: 16px 18px 14px;
  box-shadow: 0 8px 28px rgba(34, 57, 75, .18); font-size: 13.5px; line-height: 1.5;
  animation: exc2cc-in .35s ease-out both;
}
@keyframes exc2cc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.exc2cc-banner h2 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 6px; color: var(--c-accd); font-weight: 700; }
.exc2cc-banner p { margin: 0 0 12px; color: var(--c-soft); }
.exc2cc a { color: var(--c-accd); text-decoration: underline; text-underline-offset: 2px; }
.exc2cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.exc2cc-btn {
  flex: 1 1 150px; cursor: pointer; border-radius: 2px; padding: 9px 14px; font: inherit; font-size: .92em; font-weight: 600; letter-spacing: .04em; text-align: center;
  background: var(--c-acc); color: #fff; border: 1.5px solid var(--c-acc); transition: background .2s, border-color .2s, color .2s;
}
.exc2cc-btn:hover { background: var(--c-accd); border-color: var(--c-accd); }
.exc2cc-btn--ghost { background: transparent; color: var(--c-accd); }
.exc2cc-btn--ghost:hover { background: var(--c-sand); color: var(--c-ink); border-color: var(--c-accd); }
/* Im Hinweis: Ablehnen und Akzeptieren gleichwertig nebeneinander, Einstellungen als schlichter Link darunter */
.exc2cc-banner .exc2cc-btn[data-k="reject"] { order: 1; background: transparent; color: var(--c-accd); }
.exc2cc-banner .exc2cc-btn[data-k="reject"]:hover { background: var(--c-sand); color: var(--c-ink); }
.exc2cc-banner .exc2cc-btn[data-k="accept"] { order: 2; }
.exc2cc-banner .exc2cc-btn[data-k="settings"] {
  order: 3; flex: 1 1 100%; background: none; border: 0; padding: 4px 0 0; font-weight: 500; letter-spacing: 0; color: var(--c-soft);
  text-decoration: underline; text-underline-offset: 2px; font-size: .9em;
}
.exc2cc-banner .exc2cc-btn[data-k="settings"]:hover { color: var(--c-accd); background: none; }
.exc2cc :focus-visible { outline: 3px solid var(--c-accd); outline-offset: 2px; }

/* Einstellungsfenster */
.exc2cc-overlay { position: fixed; inset: 0; z-index: 99995; background: rgba(34, 57, 75, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.exc2cc-modal { background: var(--c-bg); border-radius: 4px; width: 100%; max-width: 640px; max-height: 90vh; overflow: auto; padding: 26px 28px; box-shadow: 0 16px 60px rgba(0, 0, 0, .35); }
.exc2cc-modal h2 { font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.exc2cc-modal > p { color: var(--c-soft); margin: 0 0 18px; }
.exc2cc-cat { border-top: 1px solid var(--c-line); padding: 14px 0; }
.exc2cc-cat label { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; cursor: pointer; }
.exc2cc-cat p { margin: 6px 0 0; color: var(--c-soft); font-size: .92rem; }
.exc2cc-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.exc2cc-switch { flex: none; width: 46px; height: 26px; border-radius: 13px; background: #b7bfc7; position: relative; transition: background .2s; }
.exc2cc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.exc2cc-cat input:checked + .exc2cc-switch { background: var(--c-acc); }
.exc2cc-cat input:checked + .exc2cc-switch::after { transform: translateX(20px); }
.exc2cc-cat input:disabled + .exc2cc-switch { opacity: .6; }
.exc2cc-cat input:focus-visible + .exc2cc-switch { outline: 3px solid var(--c-accd); outline-offset: 2px; }
.exc2cc-modal .exc2cc-actions { margin-top: 18px; border-top: 1px solid var(--c-line); padding-top: 18px; }

/* Schwebender Button */
.exc2cc-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 99980; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--c-bg); color: var(--c-accd); border: 1px solid var(--c-line); box-shadow: 0 4px 14px rgba(34, 57, 75, .25); display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.exc2cc-fab:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 18px rgba(34, 57, 75, .3); }
.exc2cc-fab svg { width: 24px; height: 24px; }

/* Platzhalter für blockierte externe Inhalte */
.exc2cc-embed {
  position: relative; width: 100%; margin: 1.5em 0; background: var(--sand, #e6dfd2); border: 1px solid var(--line, #d6cdbd);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--ink, #28394a);
}
.exc2cc-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.exc2cc-embed .exc2cc-ph { max-width: 460px; }
.exc2cc-embed .exc2cc-ph p { margin: 0 0 14px; font-size: .95rem; }
.exc2cc-embed .exc2cc-btn { flex: none; display: inline-block; }
.exc2cc-embed.is-loaded { padding: 0; background: none; border: 0; }

@media (max-width: 560px) {
  .exc2cc-banner { left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; padding: 14px 16px 12px; }
  .exc2cc-modal { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .exc2cc *, .exc2cc-fab { transition: none !important; animation: none !important; } }

/* Handy im Querformat: Hinweis kompakt, nie höher als der Bildschirm */
@media (max-height: 500px) {
  .exc2cc-banner { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); overflow: auto; padding: 10px 14px 8px; font-size: 12.5px; }
  .exc2cc-banner h2 { display: none; }
  .exc2cc-banner p { margin-bottom: 8px; }
  .exc2cc-modal { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
}
