/* 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;
  --nd-a11y-active-bg: #000;
  --nd-a11y-active-fg: #fff;
  --nd-a11y-active-border: #000;
}

/* 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 {
  --nd-a11y-btn-fontsize: 1rem;
  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);
}

.nd-a11y-group--font {
  align-items: center;
}

.nd-a11y-font-radios {
  display: flex;
  flex-wrap: inherit;
  gap: var(--nd-a11y-gap);
}

.nd-a11y-toggle--magnifier {
  min-width: auto;
}

/* Button Styles */
.nd-a11y-btn,
.nd-a11y-toggle {
  font-family: inherit;
  font-weight: inherit;
  font-size: var(--nd-a11y-btn-fontsize, 1rem);
  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 .nd-a11y-btn[aria-checked="false"],
.nd-a11y-toolbar .nd-a11y-toggle[aria-pressed="false"] {
  background-color: var(--nd-a11y-bg, #fff);
  border-color: var(--nd-a11y-border);
  box-shadow: none;
  color: var(--nd-a11y-fg);
}

.nd-a11y-toolbar .nd-a11y-btn[aria-checked="true"],
.nd-a11y-toolbar .nd-a11y-toggle[aria-pressed="true"] {
  background-color: var(--nd-a11y-active-bg);
  border-color: var(--nd-a11y-active-border);
  box-shadow: none;
  color: var(--nd-a11y-active-fg);
}

/* 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;
}

html.nd-a11y-contrast .nd-a11y-native__close {
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #000 !important;
}

html.nd-a11y-contrast .nd-a11y-native__close svg rect {
  fill: #000 !important;
}

html.nd-a11y-contrast .nd-a11y-native__panel {
  background-color: #fff !important;
}

html.nd-a11y-contrast .nd-a11y-native__launcher,
html.nd-a11y-contrast .nd-a11y-native__launcher:hover,
html.nd-a11y-contrast .nd-a11y-native__launcher:focus,
html.nd-a11y-contrast .nd-a11y-native__launcher:focus-visible,
html.nd-a11y-contrast .nd-a11y-native__launcher:active {
  background-color: #fff !important;
  border: 1px solid #000 !important;
  color: #000 !important;
}

html.nd-a11y-contrast .nd-a11y-native__launcher:focus-visible {
  outline-color: #000 !important;
}

html.nd-a11y-contrast .nd-a11y-native__launcher svg,
html.nd-a11y-contrast .nd-a11y-native__launcher svg path {
  fill: #000 !important;
}

html.nd-a11y-contrast .nd-a11y-toolbar .nd-a11y-btn[aria-checked="false"],
html.nd-a11y-contrast .nd-a11y-toolbar .nd-a11y-toggle[aria-pressed="false"] {
  background-color: #fff !important;
  border: 1px solid #000 !important;
  color: #000 !important;
}

html.nd-a11y-contrast .nd-a11y-toolbar .nd-a11y-btn[aria-checked="true"],
html.nd-a11y-contrast .nd-a11y-toolbar .nd-a11y-toggle[aria-pressed="true"] {
  background-color: #000 !important;
  border: 1px solid #000 !important;
  color: #fff !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 vom Kontrast-Modus ausschließen */
html.nd-a11y-contrast ul.cf7mls_progress_bar,
html.nd-a11y-contrast ul.cf7mls_progress_bar *,
html.nd-a11y-contrast ul.cf7mls_progress_bar ::before,
html.nd-a11y-contrast ul.cf7mls_progress_bar ::after {
  background-color: revert !important;
  border-color: revert !important;
  border-style: revert !important;
  box-shadow: revert !important;
  color: revert !important;
  fill: revert !important;
  stroke: revert !important;
  text-decoration: revert !important;
}

html.nd-a11y-contrast ul.cf7mls_progress_bar a {
  color: revert !important;
  text-decoration: revert !important;
}

/* Textlupe */
html.nd-a11y-magnifier-active {
  cursor: zoom-in;
}

html.nd-a11y-magnifier-active .nd-a11y-toolbar,
html.nd-a11y-magnifier-active .nd-a11y-native,
html.nd-a11y-magnifier-active .nd-a11y-loupe {
  cursor: auto;
}

.nd-a11y-loupe {
  position: fixed;
  z-index: 100001;
  box-sizing: border-box;
  --nd-a11y-loupe-max-width: min(92vw, 40rem);
  width: max-content;
  min-width: min(12rem, 92vw);
  max-width: var(--nd-a11y-loupe-max-width);
  padding: 0;
  overflow: hidden;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: var(--nd-a11y-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .nd-a11y-loupe {
    --nd-a11y-loupe-max-width: min(88vw, 52rem);
  }
}

@media (min-width: 1200px) {
  .nd-a11y-loupe {
    --nd-a11y-loupe-max-width: min(72vw, 60rem);
  }
}

.nd-a11y-loupe--wide {
  width: var(--nd-a11y-loupe-max-width);
}

.nd-a11y-loupe.is-visible {
  opacity: 1;
}

.nd-a11y-loupe__scroll {
  box-sizing: border-box;
  max-height: 40vh;
  padding: 1rem 1.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.nd-a11y-loupe__scroll::-webkit-scrollbar {
  width: 8px;
}

.nd-a11y-loupe__scroll::-webkit-scrollbar-track {
  margin: 6px 0;
  background: transparent;
}

.nd-a11y-loupe__scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.25);
  border: 2px solid #fff;
  border-radius: 999px;
}

.nd-a11y-loupe__content {
  margin: 0;
  color: #000;
  background: transparent;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.nd-a11y-loupe-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.nd-a11y-contrast .nd-a11y-loupe,
html.nd-a11y-contrast .nd-a11y-loupe * {
  background-color: #fff !important;
  border-color: #000 !important;
  box-shadow: none !important;
  color: #000 !important;
  filter: none !important;
  text-decoration: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .nd-a11y-loupe {
    transition: opacity 0.15s ease;
  }
}

@media print {
  .nd-a11y-loupe {
    display: none !important;
  }
}



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

