/* Cookie-Banner – Dialog, Widget, Platzhalter. Farben kommen als --fzc-* aus der Verwaltung. */

.fzc, .fzc *, .fzc *::before, .fzc *::after,
.fzc-cb, .fzc-cb *, .fzc-cb *::before, .fzc-cb *::after { box-sizing: border-box; }

.fzc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fzc [hidden], .fzc-cb [hidden], .fzc[hidden], [data-fzc-hidden] { display: none !important; }

/* ── Dialog ────────────────────────────────────────────────────────── */

.fzc-root {
  position: fixed; inset: 0; z-index: 2147483600;
  display: flex; padding: 16px; pointer-events: none;
  font-family: var(--fzc-font, inherit); font-size: var(--fzc-size, 14px); line-height: 1.5;
  color: var(--fzc-text, #555); text-align: left; letter-spacing: normal; text-transform: none;
}
.fzc-backdrop { position: fixed; inset: 0; background: var(--fzc-backdrop, rgba(0,0,0,.8)); pointer-events: auto; }

.fzc-dialog {
  position: relative; pointer-events: auto; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--fzc-bg, #fff); color: var(--fzc-text, #555);
  border-radius: var(--fzc-radius, 4px); box-shadow: 0 12px 48px rgba(0,0,0,.32);
  padding: 24px; outline: none;
}
.fzc-is-details .fzc-dialog { max-width: 760px; }
/* Der Dialog selbst bekommt beim Oeffnen den Fokus, damit Vorleseprogramme ihn ansagen; einen Rahmen braucht er dafuer nicht. */

/* Lage: fzc-pos-<oben|mitte|unten>-<links|mitte|rechts> */
.fzc-pos-top-left, .fzc-pos-top-center, .fzc-pos-top-right { align-items: flex-start; }
.fzc-pos-middle-left, .fzc-pos-middle-center, .fzc-pos-middle-right { align-items: center; }
.fzc-pos-bottom-left, .fzc-pos-bottom-center, .fzc-pos-bottom-right { align-items: flex-end; }
.fzc-pos-top-left, .fzc-pos-middle-left, .fzc-pos-bottom-left { justify-content: flex-start; }
.fzc-pos-top-center, .fzc-pos-middle-center, .fzc-pos-bottom-center { justify-content: center; }
.fzc-pos-top-right, .fzc-pos-middle-right, .fzc-pos-bottom-right { justify-content: flex-end; }

/* Leiste ueber die ganze Breite */
.fzc-layout-bar:not(.fzc-is-details), .fzc-layout-bar-advanced:not(.fzc-is-details) { padding: 0; }
.fzc-layout-bar:not(.fzc-is-details) .fzc-dialog, .fzc-layout-bar-advanced:not(.fzc-is-details) .fzc-dialog { max-width: none; border-radius: 0; }
.fzc-layout-bar:not(.fzc-is-details) .fzc-view--entrance, .fzc-layout-bar-advanced:not(.fzc-is-details) .fzc-view--entrance { max-width: 1100px; margin: 0 auto; }

.fzc-anim .fzc-dialog { animation: fzc-in .28s ease-out both; }
.fzc-anim .fzc-backdrop { animation: fzc-fade .28s ease-out both; }
@keyframes fzc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fzc-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fzc-anim .fzc-dialog, .fzc-anim .fzc-backdrop { animation: none; } }

.fzc-close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 50%; color: var(--fzc-text, #555); cursor: pointer;
}
.fzc-close:hover { background: var(--fzc-card, #f7f7f7); }

/* Themes setzen fuer Ueberschriften oft eigene Schrift, Grossschreibung und Mittigkeit mit hoher Rangfolge
   (html body h2 …). Im Dialog gilt die Schrift des Dialogs; die ID-Regel gewinnt gegen solche Vorgaben. */
#fzc-root .fzc-title, #fzc-root h3, #fzc-root p, #fzc-root li, #fzc-root label, #fzc-root button, #fzc-root table, #fzc-root caption {
  font-family: inherit; text-transform: none; letter-spacing: normal; text-align: left; text-shadow: none; font-style: normal;
}
#fzc-root .fzc-title, #fzc-root h3 { color: inherit; }
#fzc-root .fzc-btn, #fzc-root .fzc-footer, #fzc-root .fzc-footer * { text-align: center; }
#fzc-root p, #fzc-root li { font-size: 1em; line-height: 1.5; font-weight: 400; max-width: none; }
#fzc-root .fzc-title::before, #fzc-root .fzc-title::after, #fzc-root h3::before, #fzc-root h3::after { content: none; }
.fzc-cb .fzc-cb__text, .fzc-cb button { font-family: inherit; text-transform: none; letter-spacing: normal; text-shadow: none; }

.fzc-logo { display: block; max-width: 160px; max-height: 56px; margin: 0 0 14px; }
.fzc-root .fzc-title { margin: 0 44px 12px 0; padding: 0; font: inherit; font-size: 1.45em; font-weight: 700; line-height: 1.25; color: inherit; }
.fzc-text p { margin: 0 0 10px; padding: 0; font: inherit; color: inherit; }
.fzc-root a { color: var(--fzc-link, #0063e3); text-decoration: underline; }
.fzc-root a:hover { color: var(--fzc-link-hover, #1a66ff); }

.fzc-groups-inline { list-style: none; margin: 14px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fzc-groups-inline li { margin: 0; padding: 0; }
.fzc-check { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; font-weight: 600; }
.fzc-check input {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: none; cursor: pointer;
  border: 2px solid var(--fzc-switch-off, #bdc1c8); border-radius: 4px; background: #fff; display: inline-grid; place-content: center;
}
.fzc-check input::after { content: ""; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.fzc-check input:checked, .fzc-check input:indeterminate { background: var(--fzc-switch-on, #0063e3); border-color: var(--fzc-switch-on, #0063e3); }
.fzc-check input:checked::after { opacity: 1; }
.fzc-check input:indeterminate::after { opacity: 1; height: 0; border-width: 0 0 2.5px 0; transform: none; }
.fzc-check input:disabled { background: #c9ccd1; border-color: #c9ccd1; cursor: default; }
.fzc-check input:focus-visible, .fzc-switch input:focus-visible + .fzc-switch__ui { outline: 3px solid var(--fzc-accent, #0063e3); outline-offset: 2px; }

/* Knoepfe: "Alle" und "Nur essenzielle" sind bewusst gleich gross und gleich auffaellig. */
/* Die Knopfreihe bleibt am unteren Rand des Dialogs stehen, auch wenn der Text laenger ist als der Bildschirm:
   Zustimmen und Ablehnen sind immer gleichzeitig zu sehen. */
.fzc-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 10px 0 12px;
  position: sticky; bottom: -24px; z-index: 1; background: var(--fzc-bg, #fff);
  box-shadow: 0 -12px 12px -8px var(--fzc-bg, #fff);
}
.fzc-root .fzc-btn {
  flex: 1 1 200px; min-height: 46px; margin: 0; padding: 10px 16px; border: 0; cursor: pointer;
  border-radius: var(--fzc-btn-radius, 4px); font: inherit; font-weight: 600; line-height: 1.25; text-align: center; text-transform: none; letter-spacing: normal;
  box-shadow: none; width: auto;
}
.fzc-btn--all { background: var(--fzc-all-bg, #000); color: var(--fzc-all-text, #fff); }
.fzc-btn--all:hover { background: var(--fzc-all-bg-h, #262626); color: var(--fzc-all-text, #fff); }
.fzc-btn--ess { background: var(--fzc-ess-bg, #000); color: var(--fzc-ess-text, #fff); }
.fzc-btn--ess:hover { background: var(--fzc-ess-bg-h, #262626); color: var(--fzc-ess-text, #fff); }
.fzc-btn--save { background: var(--fzc-save-bg, #000); color: var(--fzc-save-text, #fff); }
.fzc-btn--save:hover { background: var(--fzc-save-bg-h, #262626); color: var(--fzc-save-text, #fff); }
.fzc-btn--pref { background: var(--fzc-pref-bg, #000); color: var(--fzc-pref-text, #fff); }
.fzc-btn--pref:hover { background: var(--fzc-pref-bg-h, #262626); color: var(--fzc-pref-text, #fff); }
.fzc-root .fzc-btn--ghost { flex: 0 0 auto; background: transparent; color: var(--fzc-text, #555); box-shadow: inset 0 0 0 1.5px currentColor; }
.fzc-btn:focus-visible, .fzc-close:focus-visible, .fzc-tab:focus-visible, .fzc-more:focus-visible, .fzc-widget:focus-visible { outline: 3px solid var(--fzc-accent, #0063e3); outline-offset: 2px; }

.fzc-footer { margin: 6px 0 0; font-size: .93em; text-align: center; }

/* ── Einzelheiten ──────────────────────────────────────────────────── */

.fzc-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 0; border-bottom: 2px solid var(--fzc-sep, #e5e5e5); }
.fzc-root .fzc-tab {
  margin: 0 0 -2px; padding: 10px 14px; min-height: 44px; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  font: inherit; font-weight: 600; color: var(--fzc-text, #555); cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; width: auto;
}
.fzc-root .fzc-tab[aria-selected="true"] { color: var(--fzc-accent, #0063e3); border-bottom-color: var(--fzc-accent, #0063e3); }
.fzc-panel { padding: 14px 0 0; }
.fzc-panel > p { margin: 0 0 10px; }

.fzc-card { margin: 0 0 10px; padding: 14px 16px; background: var(--fzc-card, #f7f7f7); color: var(--fzc-card-text, #555); border-radius: var(--fzc-radius, 4px); }
.fzc-card--mark { box-shadow: 0 0 0 2px var(--fzc-accent, #0063e3); }
.fzc-card__head, .fzc-svc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.fzc-root .fzc-card h3 { margin: 0 0 4px; padding: 0; font: inherit; font-size: 1.12em; font-weight: 700; color: inherit; }
.fzc-card__desc, .fzc-svc__desc { margin: 0; }
.fzc-card__desc p, .fzc-svc__desc p, .fzc-card p { margin: 0 0 6px; }
.fzc-card__sub { margin: 10px 0 0; }
.fzc-svc { padding: 12px 0; border-top: 1px solid var(--fzc-sep, #e5e5e5); }
.fzc-panel > .fzc-svc:first-child { border-top: 0; }
.fzc-svc__detail { margin: 8px 0 0; font-size: .95em; }
.fzc-svc__detail p { margin: 0 0 6px; }
.fzc-k { font-weight: 700; }
.fzc-always { flex: none; font-size: .9em; font-weight: 600; white-space: nowrap; opacity: .8; }

.fzc-root .fzc-more {
  margin: 8px 0 0; padding: 6px 0; min-height: 32px; background: transparent; border: 0; font: inherit; font-weight: 600;
  color: var(--fzc-link, #0063e3); cursor: pointer; text-decoration: underline; text-transform: none; letter-spacing: normal; box-shadow: none; width: auto;
}
.fzc-more::after { content: " ▾"; text-decoration: none; display: inline-block; }
.fzc-more[aria-expanded="true"]::after { content: " ▴"; }

.fzc-switch { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 32px; cursor: pointer; }
.fzc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fzc-switch__ui { display: block; width: 48px; height: 26px; border-radius: 13px; background: var(--fzc-switch-off, #bdc1c8); transition: background .15s; position: relative; }
.fzc-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.fzc-switch input:checked + .fzc-switch__ui { background: var(--fzc-switch-on, #0063e3); }
.fzc-switch input:checked + .fzc-switch__ui::after { transform: translateX(22px); }

.fzc-tablewrap { overflow-x: auto; margin: 8px 0 0; }
.fzc-root .fzc-table, .fzc-cookie-table { width: 100%; border-collapse: collapse; font-size: .93em; margin: 0; background: transparent; }
.fzc-table caption { text-align: left; font-weight: 700; padding: 0 0 4px; }
.fzc-root .fzc-table th, .fzc-root .fzc-table td, .fzc-cookie-table th, .fzc-cookie-table td {
  padding: 6px 8px; border: 0; border-bottom: 1px solid var(--fzc-sep, #e5e5e5); text-align: left; vertical-align: top; background: transparent; color: inherit;
}
.fzc-root code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; word-break: break-all; background: transparent; color: inherit; padding: 0; }

/* ── Widget ────────────────────────────────────────────────────────── */

.fzc-widget {
  position: fixed; z-index: 2147483500; width: 48px; height: 48px; margin: 0; padding: 0; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fzc-widget-bg, rgba(250,250,250,.85)); color: var(--fzc-widget-color, #555);
  border-radius: var(--fzc-widget-radius, 28px); box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.fzc-widget:hover { color: var(--fzc-accent, #0063e3); }
.fzc-widget--bottom-left { left: 14px; bottom: 14px; }
.fzc-widget--bottom-right { right: 14px; bottom: 14px; }
.fzc-widget--top-left { left: 14px; top: 14px; }
.fzc-widget--top-right { right: 14px; top: 14px; }
@media print { .fzc-root, .fzc-widget { display: none !important; } }

.fzc-btn-inline { cursor: pointer; }

/* ── Platzhalter fuer gesperrte Inhalte ────────────────────────────── */

.fzc-cb {
  display: block; width: 100%; max-width: 100%; margin: 0 auto; container-type: inline-size;
  font-family: var(--fzc-font, inherit); font-size: var(--fzc-cb-size, 14px); line-height: 1.45; text-align: center;
  letter-spacing: normal; text-transform: none;
}
.fzc-cb__box {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 210px; overflow: hidden;
  background: var(--fzc-cb-bg-solid, #000) center / cover no-repeat; color: var(--fzc-cb-text, #fff); border-radius: var(--fzc-cb-radius, 4px);
}
.fzc-cb__box--bild { aspect-ratio: 16 / 9; }
.fzc-cb__box--bild::before { content: ""; position: absolute; inset: 0; background: var(--fzc-cb-bg, rgba(0,0,0,.8)); }
.fzc-cb__inner { position: relative; width: 100%; max-width: 560px; padding: 18px 16px; }
.fzc-cb .fzc-cb__text { margin: 0 0 12px; padding: 0; font: inherit; color: inherit; }
.fzc-cb__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fzc-cb .fzc-cb__btn {
  min-height: 44px; margin: 0; padding: 9px 16px; border: 0; cursor: pointer; width: auto;
  background: var(--fzc-cb-btn-bg, #0063e3); color: var(--fzc-cb-btn-text, #fff); border-radius: var(--fzc-btn-radius, 4px);
  font: inherit; font-weight: 600; line-height: 1.25; text-transform: none; letter-spacing: normal; box-shadow: none;
}
.fzc-cb .fzc-cb__btn:hover { background: var(--fzc-cb-btn-bg-h, #1a66ff); color: var(--fzc-cb-btn-text, #fff); }
.fzc-cb .fzc-cb__btn--alt { background: transparent; color: var(--fzc-cb-text, #fff); box-shadow: inset 0 0 0 1.5px currentColor; }
.fzc-cb .fzc-cb__btn--alt:hover { background: rgba(128,128,128,.22); color: var(--fzc-cb-text, #fff); }
.fzc-cb .fzc-cb__more {
  margin: 10px 0 0; padding: 4px; min-height: 28px; background: transparent; border: 0; cursor: pointer; width: auto;
  font: inherit; color: var(--fzc-cb-link, #8ab8ff); text-decoration: underline; text-transform: none; letter-spacing: normal; box-shadow: none;
}
.fzc-cb__btn:focus-visible, .fzc-cb__more:focus-visible { outline: 3px solid var(--fzc-cb-text, #fff); outline-offset: 2px; }
@container (max-width: 300px) { .fzc-cb__inner { padding: 12px 10px; } .fzc-cb__box { min-height: 180px; } }

/* ── Kleine Bildschirme ────────────────────────────────────────────── */

@media (max-width: 600px) {
  .fzc-root { padding: 8px; }
  .fzc-dialog { padding: 18px 16px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .fzc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; bottom: -18px; }
  .fzc-root .fzc-btn { padding: 8px 8px; font-size: .95em; overflow-wrap: anywhere; }
  .fzc-root .fzc-btn--ghost { box-shadow: inset 0 0 0 1.5px currentColor; }
  .fzc-root .fzc-title { font-size: 1.25em; }
  .fzc-root .fzc-tab { padding: 10px 9px; }
}
