/* Cookie-Banner — Farben und Schrift aus dem Site-Theme, eigene Gestaltung. */
.ex-consent {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  font-family: var(--ex-font-body, system-ui, sans-serif);
  color: var(--ex-color-text, #1f2937);
}
.ex-consent[data-ex-layout="dialog"] {
  pointer-events: auto;
  background: rgb(15 23 42 / 0.45);
  padding: 16px;
  align-items: center;
}
.ex-consent[data-ex-layout="dialog"][data-ex-position="bottom"] { align-items: flex-end; }
.ex-consent[data-ex-layout="bar"] { align-items: flex-end; }
.ex-consent[data-ex-layout="bar"][data-ex-position="top"] { align-items: flex-start; }
.ex-consent__panel {
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--ex-color-surface, #fff);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgb(15 23 42 / 0.25);
  padding: 24px;
}
.ex-consent[data-ex-layout="bar"] .ex-consent__panel {
  max-width: none;
  border-radius: 0;
  max-height: 70vh;
}
.ex-consent__headline { margin: 0 0 8px; font-size: 1.25rem; font-family: var(--ex-font-heading, inherit); }
.ex-consent__text,
.ex-consent__services,
.ex-consent__note { margin: 0 0 10px; font-size: 0.925rem; line-height: 1.5; }
.ex-consent__note,
.ex-consent__services { color: var(--ex-color-text-muted, #4b5563); }
.ex-consent__links { display: flex; gap: 16px; margin: 0 0 14px; font-size: 0.875rem; }
.ex-consent__links a,
.ex-consent__facts a { color: inherit; text-decoration: underline; }
.ex-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Gleichwertig: alle Knöpfe gleiche Form, Farbe und Größe (kein Dark Pattern) */
.ex-consent__button {
  flex: 1 1 160px;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--ex-color-primary, #0f62fe);
  border-radius: 8px;
  background: var(--ex-color-primary, #0f62fe);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
/* Fokusring: der Banner hängt am `body`, die Regel aus `tokens.css` greift hier nicht */
.ex-consent :where(a[href], button, input, summary):focus-visible { outline: 2px solid var(--ex-color-text, #111827); outline-offset: 2px; }
.ex-consent__button:focus-visible,
.ex-consent-reopen:focus-visible { outline: 3px solid var(--ex-color-text, #111827); outline-offset: 2px; }
/* … der schwebende Knopf liegt über jedem Grund: ein Saum in seiner eigenen Fläche trägt, wo der Ring es nicht tut */
.ex-consent-reopen:focus-visible { box-shadow: 0 0 0 8px var(--ex-color-surface, #fff); }
.ex-consent__group { border: 1px solid rgb(0 0 0 / 0.1); border-radius: 10px; padding: 12px; margin: 0 0 10px; }
.ex-consent__group-head,
.ex-consent__service-head { display: flex; align-items: center; gap: 8px; }
.ex-consent__group-head input,
.ex-consent__service-head input { width: 18px; height: 18px; }
.ex-consent__details summary { cursor: pointer; font-size: 0.875rem; margin: 4px 0; }
.ex-consent__service { border-top: 1px solid rgb(0 0 0 / 0.08); padding: 8px 0; }
.ex-consent__facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 6px 0 0 26px; font-size: 0.8rem; }
.ex-consent__facts dt { font-weight: 600; }
.ex-consent__facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .ex-consent__facts { grid-template-columns: 1fr; margin-left: 0; }
  .ex-consent__panel { padding: 18px; }
}
.ex-consent-reopen {
  position: fixed;
  z-index: 2147482999;
  left: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--ex-color-surface, #fff);
  color: var(--ex-color-text, #1f2937);
  box-shadow: 0 4px 14px rgb(15 23 42 / 0.2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .ex-consent__panel { animation: ex-consent-in 0.2s ease-out; }
  @keyframes ex-consent-in { from { opacity: 0; transform: translateY(8px); } }
}
