/* Cookie-Einwilligung. Stabile BEM-Klassen (ep-consent__...); Farben und Masse ueber Eigenschaften, damit das Theme sie gestalten kann. */
.ep-consent {
  --ep-consent-bg: #fff;
  --ep-consent-fg: #1b1b1b;
  --ep-consent-muted: #4a4a4a;
  --ep-consent-line: #c9c9c9;
  --ep-consent-btn-bg: #fff;
  --ep-consent-btn-fg: #1b1b1b;
  --ep-consent-btn-line: #1b1b1b;
  --ep-consent-focus: #0b5fff;
  --ep-consent-radius: 10px;
  position: fixed;
  z-index: 99999;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 960px;
  margin: 0 auto;
  color: var(--ep-consent-fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ep-consent[hidden], .ep-consent [hidden], .ep-consent__fab[hidden] { display: none !important; }
.ep-consent__panel {
  background: var(--ep-consent-bg);
  border: 1px solid var(--ep-consent-line);
  border-radius: var(--ep-consent-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
  padding: 20px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.ep-consent__title { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; }
.ep-consent__text { margin: 0 0 8px; color: var(--ep-consent-muted); }
.ep-consent__links { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ep-consent__link { color: inherit; text-decoration: underline; }
.ep-consent__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
/* Alle Schaltflaechen: eine Klasse, ein Aussehen, gleiche Breite. */
.ep-consent__btn {
  flex: 1 1 0;
  min-width: 9rem;
  min-height: 44px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--ep-consent-btn-fg);
  background: var(--ep-consent-btn-bg);
  border: 2px solid var(--ep-consent-btn-line);
  border-radius: 8px;
  cursor: pointer;
}
.ep-consent__btn:hover { background: var(--ep-consent-btn-fg); color: var(--ep-consent-btn-bg); }
.ep-consent__btn:focus-visible, .ep-consent__fab:focus-visible, .ep-consent__reopen:focus-visible,
.ep-consent__link:focus-visible, .ep-consent__checkbox:focus-visible, .ep-consent__title:focus-visible, .ep-consent__panel:focus-visible {
  outline: 3px solid var(--ep-consent-focus);
  outline-offset: 2px;
}
.ep-consent__details { margin-top: 16px; border-top: 1px solid var(--ep-consent-line); padding-top: 12px; }
.ep-consent__category { margin: 0 0 14px; padding: 0; border: 0; }
.ep-consent__category-title { padding: 0; font-weight: 700; font-size: 1.05rem; }
.ep-consent__toggle { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0; font-weight: 600; }
.ep-consent__checkbox { width: 22px; height: 22px; accent-color: var(--ep-consent-btn-line); }
.ep-consent__category-text, .ep-consent__category-empty { margin: 4px 0; color: var(--ep-consent-muted); }
.ep-consent__service { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--ep-consent-line); border-radius: 8px; }
.ep-consent__service-name { margin: 0 0 4px; font-weight: 600; }
.ep-consent__service-facts { margin: 0; display: grid; gap: 2px; font-size: .9rem; }
.ep-consent__service-fact { display: grid; grid-template-columns: 8rem 1fr; gap: 8px; }
.ep-consent__service-fact dt { font-weight: 600; }
.ep-consent__service-fact dd { margin: 0; color: var(--ep-consent-muted); }
.ep-consent__id { margin: 8px 0 0; font-size: .85rem; color: var(--ep-consent-muted); word-break: break-all; }
.ep-consent__fab {
  position: fixed; z-index: 99998; left: 16px; bottom: 16px;
  min-height: 44px; padding: 8px 14px; font: 600 14px/1.2 system-ui, sans-serif;
  color: #1b1b1b; background: #fff; border: 2px solid #1b1b1b; border-radius: 22px; cursor: pointer;
}
.ep-consent__reopen { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.ep-consent__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) {
  .ep-consent { left: 8px; right: 8px; bottom: 8px; }
  .ep-consent__panel { padding: 16px; }
  .ep-consent__btn { flex-basis: 100%; }
  .ep-consent__service-fact { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) { .ep-consent__btn { transition: background .15s, color .15s; } }
/* 1.1.7: Dienst-Schalter in der Kategorie. Das Theme ep-premium setzt jeden .ep-consent__toggle in Zeile 1, Spalte 2 des Kategorie-Rasters (body.ep-premium .ep-consent__toggle, Spezifitaet 0,2,1); ohne diese Regel liegen Kategorie- und Dienst-Schalter uebereinander. Hoehere Spezifitaet (0,3,0), unabhaengig von der Ladereihenfolge: jeder Dienst-Schalter steht in einer eigenen Zeile unter dem Kategorie-Schalter, eingerueckt. */
.ep-consent .ep-consent__category .ep-consent__toggle--service { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin: 4px 0 0 22px; }
/* 1.1.8: Wort "teilweise" neben dem Kategorie-Schalter (nur sichtbar, wenn nur ein Teil der Dienste erlaubt ist). */
.ep-consent__partial { font-weight: 600; font-size: .85em; }
.ep-consent__partial[hidden] { display: none; }
