  /* ---------- Barrierefreiheits-Einstellungen ---------- */
  .bf-knopf {
    position: fixed; right: 18px; bottom: 18px; z-index: 190;
    width: 52px; height: 52px; border-radius: 99px; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--accent);
    display: grid; place-items: center;
    box-shadow: 0 12px 34px rgba(0,0,0,0.45);
  }
  .bf-knopf:hover { border-color: var(--accent); }
  .bf-knopf svg { width: 24px; height: 24px; }

  .bf-panel {
    position: fixed; right: 18px; bottom: 82px; z-index: 195; width: min(330px, calc(100vw - 36px));
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
    padding: 22px; box-shadow: 0 26px 70px rgba(0,0,0,0.6);
  }
  .bf-panel[hidden] { display: none; }
  .bf-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
  .bf-kopf h2 { font-size: 1.02rem; }
  .bf-zu { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.3rem; line-height: 1; padding: 2px 4px; }
  .bf-zu:hover { color: var(--text); }
  .bf-panel > p.bf-intro { color: var(--muted); font-size: 0.78rem; margin-bottom: 18px; }

  .bf-gruppe { margin-bottom: 16px; }
  .bf-gruppe > legend, .bf-gruppe > .bf-label {
    font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 8px; display: block; padding: 0;
  }
  .bf-wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .bf-wahl button {
    background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
    border-radius: 7px; padding: 9px 4px; cursor: pointer; font-family: inherit; font-size: 0.84rem;
  }
  .bf-wahl button:hover { border-color: var(--line-strong); color: var(--text); }
  .bf-wahl button[aria-pressed="true"] {
    background: var(--accent-soft); border-color: rgba(42,196,184,0.55); color: var(--accent); font-weight: 600;
  }
  .bf-schalter { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 0; border-top: 1px solid var(--line); }
  .bf-schalter span { font-size: 0.88rem; }
  .bf-schalter button {
    flex-shrink: 0; width: 46px; height: 26px; border-radius: 99px; cursor: pointer;
    background: var(--bg-2); border: 1px solid var(--line-strong); position: relative;
  }
  .bf-schalter button::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
    border-radius: 99px; background: var(--muted); transition: transform .18s ease, background .18s ease;
  }
  .bf-schalter button[aria-pressed="true"] { background: var(--accent-soft); border-color: rgba(42,196,184,0.6); }
  .bf-schalter button[aria-pressed="true"]::after { transform: translateX(20px); background: var(--accent); }
  .bf-reset { width: 100%; margin-top: 14px; background: none; border: 1px solid var(--line);
    color: var(--muted); border-radius: 8px; padding: 10px; cursor: pointer; font-family: inherit; font-size: 0.85rem; }
  .bf-reset:hover { border-color: var(--line-strong); color: var(--text); }
  .bf-fuss { color: var(--muted); font-size: 0.72rem; margin-top: 14px; line-height: 1.5; }

  /* --- Wirkung der Einstellungen --- */
  html[data-schrift="gross"]      { font-size: 112.5%; }
  html[data-schrift="sehr-gross"] { font-size: 125%; }

  /* Hoher Kontrast - je Thema getrennt, sonst waere im hellen
     Modus weisser Text auf weissem Grund. */
  html[data-kontrast="hoch"] {
    --muted: #C8D6E6;
    --line: rgba(255,255,255,0.26);
    --line-strong: rgba(255,255,255,0.44);
    --text: #FFFFFF;
  }
  html[data-thema="hell"][data-kontrast="hoch"] {
    --muted: #2A3B4E;
    --line: rgba(16,32,52,0.30);
    --line-strong: rgba(16,32,52,0.50);
    --text: #000000;
    --accent: #05615A;
    --gold: #7A5100;
  }
  html[data-kontrast="hoch"] .panel-text,
  html[data-kontrast="hoch"] .lead,
  html[data-kontrast="hoch"] p { color: var(--muted); }
  html[data-kontrast="hoch"] #bgSchleier { opacity: 0.55; }

  /* .knopf und .sprung kamen fuer die Unterseiten dazu - Schaltflaechen
     und die Sprungmarke sollen keine Unterstreichung bekommen. */
  html[data-links="unterstrichen"] main a:not(.btn):not(.panel-cta):not(.reiter):not(.knopf):not(.sprung),
  html[data-links="unterstrichen"] footer a { text-decoration: underline; text-underline-offset: 3px; }

  /* ---------- Schriftfarbe ----------
     Setzt nur die Textvariablen um, nicht die Flaechen. Dadurch bleiben
     Abstaende und Layout unveraendert, es aendert sich wirklich nur die Schrift. */
  html[data-farbe="warm"]  { --text: #F6E9D8; --muted: #C8B49A; }
  html[data-farbe="gelb"]  { --text: #FFD84D; --muted: #D9B43C; --accent: #7FE3D8; }
  html[data-farbe="hoch"]  { --text: #FFFFFF; --muted: #E4ECF5; }

  html[data-thema="hell"][data-farbe="warm"] { --text: #3A2B18; --muted: #6B5740; }
  html[data-thema="hell"][data-farbe="gelb"] { --text: #4A3200; --muted: #7A5A16; --accent: #0A6B63; }
  html[data-thema="hell"][data-farbe="hoch"] { --text: #000000; --muted: #23303F; }

  /* Farbmuster im Panel */
  .bf-farben { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .bf-farben button {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px;
    padding: 8px 4px; cursor: pointer; color: var(--muted); font: inherit; font-size: 0.68rem;
  }
  .bf-farben button:hover { border-color: var(--line-strong); color: var(--text); }
  .bf-farben button[aria-pressed="true"] {
    border-color: var(--accent); color: var(--text); background: var(--accent-soft);
  }
  .fp { width: 20px; height: 20px; border-radius: 50%; display: block; border: 1px solid var(--line-strong); }
  .fp-standard { background: linear-gradient(135deg, #EAF0F7 50%, #8CA0BA 50%); }
  .fp-warm     { background: linear-gradient(135deg, #F6E9D8 50%, #C8B49A 50%); }
  .fp-gelb     { background: linear-gradient(135deg, #FFD84D 50%, #D9B43C 50%); }
  .fp-hoch     { background: linear-gradient(135deg, #FFFFFF 50%, #E4ECF5 50%); }

  /* ---------- Farbumkehr ----------
     Bilder, Videos und der Globus werden zurueckgedreht, sonst waeren sie
     als Negativ unbrauchbar. */
  html[data-invert="an"] { filter: invert(1) hue-rotate(180deg); background: #fff; }
  html[data-invert="an"] img,
  html[data-invert="an"] video,
  html[data-invert="an"] iframe,
  html[data-invert="an"] #bgCanvas,
  html[data-invert="an"] .geraet-schirm,
  html[data-invert="an"] svg image { filter: invert(1) hue-rotate(180deg); }

  html[data-bewegung="aus"] *,
  html[data-bewegung="aus"] *::before,
  html[data-bewegung="aus"] *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
