/* ND Accessibility Plugin Styles */
:root {
  --nd-a11y-gap: 0.75rem;
  --nd-a11y-btn-minw: 4em;
  --nd-a11y-btn-fontsize: 1rem;
  --nd-a11y-radius: .5rem;
  --nd-a11y-ring: currentColor;
  --nd-a11y-fg: currentColor;
  --nd-a11y-border: currentColor;
  --nd-a11y-bg: transparent;
}

/* Skiplink für bessere Tastaturnutzung */
.nd-a11y-skiplink {
  position: absolute;
  top: -40px;
  left: 0;
  background: transparent;
  color: inherit;
  padding: .5rem .75rem;
  z-index: 1000;
  transition: top 0.2s ease-in-out;
}

.nd-a11y-skiplink:focus {
  top: 0;
  background: #000;
  color: #fff;
}

/* Toolbar Layout */
.nd-a11y-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--nd-a11y-gap);
  margin: 1rem 0;
}

.nd-a11y-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nd-a11y-gap);
}

/* Button Styles */
.nd-a11y-btn,
.nd-a11y-toggle {
  font: inherit;
  font-size: var(--nd-a11y-btn-fontsize);
  color: var(--nd-a11y-fg);
  background: var(--nd-a11y-bg);
  border: 1px solid var(--nd-a11y-border);
  padding: .35rem .6rem;
  border-radius: var(--nd-a11y-radius);
  white-space: nowrap;
  min-width: var(--nd-a11y-btn-minw);
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}


/* Active States */
.nd-a11y-toolbar [role="radio"][aria-checked="true"],
.nd-a11y-toggle[aria-pressed="true"] {
  box-shadow: 0 0 0 1px var(--nd-a11y-ring) inset;
  background: transparent;
}

/* Focus Styles */
.nd-a11y-btn:focus-visible,
.nd-a11y-toggle:focus-visible {
  outline: 2px solid var(--nd-a11y-ring);
  outline-offset: 2px;
}

/* Font Size Indicators */
.nd-a11y-plus {
  font-size: .85em;
  margin-left: .1em;
}

.nd-a11y-plusplus {
  font-size: .85em;
  margin-left: .1em;
}

/* Font Size Classes */
html.nd-a11y-font-100 { font-size: 100%; }
html.nd-a11y-font-120 { font-size: 120%; }
html.nd-a11y-font-140 { font-size: 140%; }

/* Grayscale Mode */
html.nd-a11y-grayscale {
  filter: grayscale(100%);
}

/* Underline Mode */
html.nd-a11y-underline a {
  text-decoration: underline !important;
}

html.nd-a11y-underline a:hover,
html.nd-a11y-underline a:focus {
  text-decoration-thickness: from-font;
}

/* High Contrast Mode */
html.nd-a11y-contrast {
  filter: contrast(150%) brightness(1.2);
}

html.nd-a11y-contrast * {
  background-color: transparent !important;
  color: #000 !important;
  border-color: #000 !important;
}

html.nd-a11y-contrast a {
  color: #0000ff !important;
  text-decoration: underline !important;
}

html.nd-a11y-contrast button,
html.nd-a11y-contrast input,
html.nd-a11y-contrast select,
html.nd-a11y-contrast textarea {
  background-color: #fff !important;
  color: #000 !important;
  border: 1px dashed #000 !important;
}

/* GenerateBlocks Divider Shapes ausschließen vom Kontrast-Modus */
html.nd-a11y-contrast .gb-shape--divider,
html.nd-a11y-contrast .gb-shape--divider svg,
html.nd-a11y-contrast .gb-shape--divider path {
  color: #fff !important;
  background-color: transparent !important;
  fill: #fff !important;
  stroke: #fff !important;
}

/* CF7 Multi-Step Progress Bar aktive Schritte ausschließen vom Kontrast-Modus */
html.nd-a11y-contrast .cf7mls_progress_bar li.active .cf7_mls_count_step {
  color: #fff !important;
}



/* Mobile Responsive */
@media (max-width: 768px) {
  .nd-a11y-toolbar {
    margin: 0.5rem 0;
  }
}

