/* 2fox4 Consent – dezente Karte, keine Vollbildsperre */
.fox-consent {
  --fc-accent: #3d4256;
  --fc-bg: #fff;
  --fc-text: #23242a;
  --fc-muted: #5b5d66;
  --fc-line: rgba(0, 0, 0, .1);
  --fc-radius: 16px;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fc-text);
}
.fox-consent[hidden], .fox-consent [hidden] { display: none !important; }
.fox-consent *, .fox-consent *::before, .fox-consent *::after { box-sizing: border-box; }

.fox-consent__card {
  position: fixed;
  z-index: 2147483000;
  bottom: 16px;
  left: 16px;
  width: min(380px, calc(100vw - 32px));
  padding: 20px 20px 16px;
  background: var(--fc-bg);
  border-radius: var(--fc-radius);
  box-shadow: 0 10px 40px rgba(20, 22, 34, .18), 0 2px 6px rgba(20, 22, 34, .08);
  animation: fox-consent-in .35s ease-out both;
}
.fox-consent--bottom-right .fox-consent__card { left: auto; right: 16px; }
.fox-consent--bottom-center .fox-consent__card { left: 50%; transform: translateX(-50%); }


.fox-consent__card:focus { outline: none; }

@keyframes fox-consent-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .fox-consent__card { animation: none; } }

.fox-consent__title { margin: 0 0 6px; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--fc-text); }
.fox-consent__text { margin: 0 0 14px; color: var(--fc-muted); }
.fox-consent__links { margin: 10px 0 0; font-size: 13px; }
.fox-consent__links a { color: var(--fc-muted); margin-right: 12px; }

.fox-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fox-consent__actions .fox-consent__btn--ghost { grid-column: 1 / -1; }

.fox-consent__btn {
  appearance: none;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--fc-accent);
  border-radius: 999px;
  background: var(--fc-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: filter .15s, background .15s;
}
.fox-consent__btn:hover { filter: brightness(1.12); }
.fox-consent__btn--ghost { background: transparent; color: var(--fc-accent); }
.fox-consent__btn:focus-visible, .fox-consent__fab:focus-visible, .fox-consent__close:focus-visible,
.fox-consent input:focus-visible { outline: 3px solid var(--fc-accent); outline-offset: 2px; }

/* Einstellungsdialog */
.fox-consent__dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: min(86vh, 760px);
  padding: 0;
  border: 0;
  border-radius: var(--fc-radius);
  background: var(--fc-bg);
  color: var(--fc-text);
  box-shadow: 0 24px 80px rgba(20, 22, 34, .28);
}
.fox-consent__dialog::backdrop { background: rgba(20, 22, 34, .35); }
.fox-consent__form { display: flex; flex-direction: column; max-height: inherit; margin: 0; }
.fox-consent__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.fox-consent__close { appearance: none; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--fc-muted); cursor: pointer; width: 44px; height: 44px; border-radius: 50%; }
.fox-consent__body { overflow: auto; padding: 0 20px 8px; }
.fox-consent__dialog .fox-consent__actions { padding: 14px 20px 18px; border-top: 1px solid var(--fc-line); grid-template-columns: 1fr 1fr 1fr; }
.fox-consent__dialog .fox-consent__actions .fox-consent__btn--ghost { grid-column: auto; }

.fox-consent__cat { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--fc-line); border-radius: 12px; }
.fox-consent__cat legend { padding: 0; float: left; width: 100%; }
.fox-consent__switch, .fox-consent__switch label, .fox-consent__service { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.fox-consent__switch input, .fox-consent__service input { width: 20px; height: 20px; accent-color: var(--fc-accent); margin: 0; }
.fox-consent__services { clear: both; list-style: none; margin: 8px 0 0; padding: 0 0 0 30px; }
.fox-consent__services li { margin: 6px 0; }
.fox-consent__service { font-weight: 500; }
.fox-consent__desc { margin: 2px 0 0 30px; font-size: 13px; color: var(--fc-muted); }
.fox-consent__services .fox-consent__desc { margin-left: 30px; }

/* Floating-Button zum Widerruf */
.fox-consent__fab {
  position: fixed;
  z-index: 2147482999;
  bottom: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--fc-bg);
  color: var(--fc-accent);
  box-shadow: 0 4px 16px rgba(20, 22, 34, .18);
  cursor: pointer;
  opacity: .85;
}
.fox-consent__fab:hover { opacity: 1; }
.fox-consent--bottom-right .fox-consent__fab { left: auto; right: 16px; }

.fox-consent-link { appearance: none; border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

@media (max-width: 480px) {
  .fox-consent__card { left: 8px; right: 8px; bottom: 8px; width: auto; transform: none; }
  .fox-consent--bottom-center .fox-consent__card { left: 8px; transform: none; }
  .fox-consent__dialog .fox-consent__actions { grid-template-columns: 1fr; }
}

/* Platzhalter für blockierte Inhalte */
.fox-consent-ph {
  --fc-accent: #3d4256;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  padding: 20px;
  margin: 0 auto;
  border-radius: 14px;
  background: repeating-linear-gradient(135deg, #f3f2ef 0 14px, #eeede9 14px 28px);
  color: #23242a;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  box-sizing: border-box;
}
.fox-consent-ph__inner { max-width: 440px; }
.fox-consent-ph__title { margin: 0 0 4px; font-weight: 600; }
.fox-consent-ph__text { margin: 0 0 12px; font-size: 14px; color: #5b5d66; }
.fox-consent-ph__text a { color: inherit; }
.fox-consent-ph__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; }
.fox-consent-ph__btn { appearance: none; min-height: 40px; padding: 8px 16px; border: 1.5px solid var(--fc-accent); border-radius: 999px; background: var(--fc-accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.fox-consent-ph__btn--ghost { background: transparent; color: var(--fc-accent); }
.fox-consent-ph__btn:focus-visible { outline: 3px solid var(--fc-accent); outline-offset: 2px; }
