/* Knopf-Regeln mit #myv-darstellung, weil ".elementor-kit-9 button" (Spezifität 0,1,1) sonst weiße Schrift erzwingt (Prüfbericht 10.11., A11Y-01). */
/* myveeam.cloud · Barrierefreiheit (11/2026)
   1) Korrekturen  2) Schaltfläche „Darstellung“ und ihre Wirkungen */

/* -- 1) Korrekturen ----------------------------------------- */

/* Datenschutzerklärung: Abschnittstitel sind jetzt echte Überschriften, Aussehen wie bisher */
.elementor-widget-text-editor h2.dse-abschnitt {
  margin: 1.6em 0 0.6em;
  font-family: inherit;
  font-size: 1em;
  font-weight: 700;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  scroll-margin-top: 120px;
}

/* -- 2) Darstellung anpassen -------------------------------- */

.myv-darstellung {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9990;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.myv-darstellung[hidden],
.myv-darstellung__panel[hidden] { display: none; }

#myv-darstellung .myv-darstellung__knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid #01122E;
  border-radius: 999px;
  background: #21BE4E;
  color: #01122E;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(1, 18, 46, 0.35);
  cursor: pointer;
}
#myv-darstellung .myv-darstellung__knopf:hover,
#myv-darstellung .myv-darstellung__knopf:focus { background: #4DE779; color: #01122E; border-color: #01122E; }
#myv-darstellung .myv-darstellung__knopf svg { width: 20px; height: 20px; flex: none; }

.myv-darstellung :focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #01122E;
}

.myv-darstellung__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: min(300px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #FFFFFF;
  color: #01122E;
  border: 1px solid #5F697B;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(1, 18, 46, 0.4);
  text-align: left;
}
.myv-darstellung__panel :focus-visible { outline-color: #01122E; box-shadow: 0 0 0 5px #21BE4E; }
.myv-darstellung__titel { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #01122E; }
.myv-darstellung__gruppe { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #334155; }

.myv-darstellung__panel button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #5F697B;
  border-radius: 8px;
  background: #FFFFFF;
  color: #01122E;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
/* Hello Elementor färbt fokussierte/überfahrene Buttons pink (#c36): hier überschreiben */
.myv-darstellung__panel button:hover,
.myv-darstellung__panel button:focus { background: #EEF2F7; border-color: #5F697B; color: #01122E; }
.myv-darstellung__panel button[aria-pressed="true"],
.myv-darstellung__panel button[aria-pressed="true"]:hover,
.myv-darstellung__panel button[aria-pressed="true"]:focus { background: #01122E; border-color: #01122E; color: #FFFFFF; }
.myv-darstellung__panel button[aria-pressed="true"]::after { content: " ✓"; content: " ✓" / ""; }

.myv-darstellung__reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.myv-darstellung__reihe button { text-align: center; padding: 8px 4px; }
.myv-darstellung__fuss { display: flex; gap: 8px; margin-top: 4px; }
.myv-darstellung__fuss button { flex: 1; text-align: center; }
.myv-darstellung__hinweis { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: #475569; }
.myv-darstellung__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media print { .myv-darstellung { display: none; } }

/* Wirkungen: Schriftgröße. Elementor rechnet in px, daher Zoom der Seite (wie Browser-Zoom, Layout bricht um) */
html.myv-schrift-1 body { zoom: 1.15; }
html.myv-schrift-2 body { zoom: 1.3; }

/* Wirkungen: hoher Kontrast übernimmt darstellung.js (halbtransparente Textfarben werden deckend) */

/* Für die Kontrast-Umschaltung kurz alle Übergänge aus (darstellung.js) */
html.myv-sofort *,
html.myv-sofort *::before,
html.myv-sofort *::after { transition: none !important; }

/* Wirkungen: Links hervorheben */
html.myv-links a:not(.elementor-button) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px;
}
html.myv-links a.elementor-button { outline: 2px solid currentColor; outline-offset: 3px; }

/* Wirkungen: Animationen aus (auch GSAP-Texteffekte: Inhalte sofort sichtbar) */
html.myv-ruhig *,
html.myv-ruhig *::before,
html.myv-ruhig *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}
html.myv-ruhig .elementor-invisible { visibility: visible !important; }
