/* ==========================================================================
   Barrierefreiheit Toolbar – STYLING (Grundlayout)
   ========================================================================== */
:root{
  --bftb-fab-bg:#0F2646;
  --bftb-fab-fg:#FFFFFF;
  --bftb-panel-bg:#FFFFFF;
  --bftb-panel-fg:#0F2646;
  --bftb-accent:#E74901;
  --bftb-focus-color:#FFD700;
  --bftb-ruler-bg:rgba(255,215,0,.20);
  --bftb-ruler-border:#FFD700;
  --bftb-ruler-height:2.4em;
  --bftb-shadow:0 10px 25px rgba(0,0,0,.15);
  --bftb-radius:16px;
  --bftb-gap:10px;
  --bftb-font-scale:1;
}

/* Fokus-Rahmen ist separater Toggle */
html.bftb-focus-outline :focus-visible{
  outline:3px solid var(--bftb-focus-color) !important;
  outline-offset:2px !important;
}

.bftb-toolbar{
  position:fixed !important; right:16px; bottom:16px;
  z-index:2147483647 !important;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial,sans-serif;
}
.bftb-toolbar, .bftb-toolbar *{ pointer-events:auto !important; }

.bftb-fab{
  background:var(--bftb-fab-bg); color:var(--bftb-fab-fg);
  border: 2px solid #ffffff; border-radius:999px; width:56px; height:56px;
  box-shadow:var(--bftb-shadow); cursor:pointer; font-size:22px; line-height:56px;
  display:inline-flex; align-items:center; justify-content:center;
}
.bftb-fab:focus{ outline:3px solid var(--bftb-accent); outline-offset:2px; }

.bftb-panel{
  margin-top:10px; background:var(--bftb-panel-bg); color:var(--bftb-panel-fg);
  border-radius:var(--bftb-radius); padding:12px; box-shadow:var(--bftb-shadow);
  min-width:300px; position:relative; z-index:2147483647 !important;
}
.bftb-group{ display:flex; flex-wrap:wrap; gap:var(--bftb-gap); margin-bottom:10px; }
.bftb-btn{
  appearance:none; background:#f3f5f8; color:#0F2646;
  border:1px solid #d8dde6; border-radius:10px; padding:8px 10px; cursor:pointer; font-size:14px;
}
.bftb-btn[aria-pressed="true"]{ background:var(--bftb-accent); color:#fff; border-color:var(--bftb-accent); }
.bftb-btn:focus{ outline:3px solid var(--bftb-accent); outline-offset:2px; }
.bftb-reset{ background:#fff3f0; border-color:#ffd5c7; color:#b84000; }

.bftb-skip{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.bftb-skip:focus{
  position:fixed; left:16px; top:16px; width:auto; height:auto; z-index:2147483647;
  background:#fff; color:#000; padding:.4rem .6rem; border:2px solid var(--bftb-focus-color);
}
.bftb-skip-anchor{ position:absolute; top:0; left:0; }

/* Global modifiers */
html{ font-size:calc(16px * var(--bftb-font-scale)); }
html.bftb-grayscale{ filter:grayscale(1); }
html.bftb-high-contrast, html.bftb-high-contrast body{ background:#000 !important; color:#fff !important; }
html.bftb-high-contrast a{ color:#00ffff !important; text-decoration:underline; }
html.bftb-high-contrast *{ border-color:#fff !important; }
html.bftb-negative, html.bftb-negative body{ background:#000 !important; color:#ffeb3b !important; }
html.bftb-negative a{ color:#fff176 !important; text-decoration:underline; }
html.bftb-light-bg, html.bftb-light-bg body{ background:#f7f7f7 !important; color:#111 !important; }
html.bftb-light-bg a{ color:#0b5fff !important; text-decoration:underline; }
html.bftb-underline-links a{ text-decoration:underline !important; }
html.bftb-readable-font,
html.bftb-readable-font body,
html.bftb-readable-font body *:not(.bftb-toolbar, .bftb-toolbar *){
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial,sans-serif !important;
  letter-spacing:.01em;
}
html.bftb-reduce-motion *, html.bftb-reduce-motion *::before, html.bftb-reduce-motion *::after{
  animation:none !important; transition:none !important; scroll-behavior:auto !important;
}

/* Bilder aus – IMG & CSS-Hintergründe (auch Elementor) */
html.bftb-hide-images img{ display:none !important; }
html.bftb-hide-images *,
html.bftb-hide-images *::before,
html.bftb-hide-images *::after{
  background-image:none !important;
}

/* Platzhalter für <img> */
.bftb-image-placeholder{
  display:inline-block; padding:.2em .4em; background:#fff7cc; color:#3a2a00;
  border:1px solid #e6d37a; border-radius:6px; font-size:.9em;
}

/* Reading Ruler */
.bftb-ruler{
  position:fixed; left:0; right:0; height:var(--bftb-ruler-height);
  background:var(--bftb-ruler-bg);
  border-top:2px solid var(--bftb-ruler-border);
  border-bottom:2px solid var(--bftb-ruler-border);
  pointer-events:none; z-index:2147483646; display:none;
}
html.bftb-ruler-on .bftb-ruler{ display:block; }
