/* FRONZE Accessibility: bewusst isolierte UI-Klassen */
.fronze-a11y, .fronze-a11y * { box-sizing: border-box; }
.fronze-a11y { --fa-blue:#1677ff; --fa-black:#191919; --fa-radius:13px; font-family:Arial,Helvetica,sans-serif; }
.fronze-a11y__launcher {
 position:fixed; z-index:1000001; right:22px; bottom:22px; width:54px; height:54px;
 display:grid; place-items:center; border:1px solid #191919; border-radius:50%;
 background:#191919; color:#fff; cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,.2);
 transition:background .22s ease,border-color .22s ease,box-shadow .22s ease,transform .22s ease;
}
.fronze-a11y__launcher:hover { background:#1677ff; border-color:#1677ff; box-shadow:0 3px 12px #0003; transform:none; outline:none; }
.fronze-a11y__launcher:focus-visible { background:#1677ff; border-color:#1677ff; box-shadow:0 3px 12px #0003; outline:2px solid #1677ff; outline-offset:3px; }
.fronze-a11y__launcher svg { width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.fronze-a11y__panel {
 position:fixed; z-index:1000002; right:22px; bottom:88px; width:min(370px,calc(100vw - 28px));
 max-height:min(78vh,720px); overflow:hidden; display:flex; flex-direction:column;
 color:#202020; background:#fff; border:1px solid #e5e5e5; border-radius:15px;
 box-shadow:0 12px 40px rgba(0,0,0,.2); font-family:Arial,Helvetica,sans-serif;
}
.fronze-a11y__panel[hidden] { display:none !important; }
.fronze-a11y__header { display:flex; justify-content:space-between; align-items:flex-start; padding:20px 20px 15px; border-bottom:1px solid #ededed; }
.fronze-a11y__eyebrow { color:#1677ff; font-size:10px; font-weight:700; letter-spacing:2px; }
.fronze-a11y__header h2 { margin:5px 0 2px; color:#191919; font-size:21px; line-height:1.2; font-weight:600; }
.fronze-a11y__header p { margin:0; color:#777; font-size:12px; }
.fronze-a11y__close { border:0; background:transparent; color:#555; font-size:27px; line-height:1; cursor:pointer; padding:0 2px; }
.fronze-a11y__content { overflow:auto; padding:5px 20px 12px; }
.fronze-a11y__group { padding:13px 0 10px; border-bottom:1px solid #ededed; }
.fronze-a11y__group:last-child { border-bottom:0; }
.fronze-a11y__group h3 { margin:0 0 9px; color:#1677ff; font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; }
.fronze-a11y__switch { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:37px; color:#292929; font-size:13px; cursor:pointer; }
.fronze-a11y__switch input { position:absolute; opacity:0; width:1px; height:1px; }
.fronze-a11y__switch i { position:relative; flex:0 0 38px; width:38px; height:21px; border-radius:20px; background:#d8d8d8; transition:background .2s ease; }
.fronze-a11y__switch i:after { content:""; position:absolute; left:3px; top:3px; width:15px; height:15px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #0002; transition:transform .2s ease; }
.fronze-a11y__switch input:checked + i { background:#1677ff; }
.fronze-a11y__switch input:checked + i:after { transform:translateX(17px); }
.fronze-a11y__switch input:focus-visible + i { outline:2px solid #1677ff; outline-offset:3px; }
.fronze-a11y__font-row { display:flex; justify-content:space-between; align-items:center; gap:8px; min-height:40px; color:#292929; font-size:13px; }
.fronze-a11y__font-controls { display:flex; gap:5px; }
.fronze-a11y__font-controls button { min-width:35px; padding:7px 8px; border:1px solid #dedede; border-radius:7px; color:#222; background:#f7f7f7; font-size:12px; cursor:pointer; transition:all .2s ease; }
.fronze-a11y__font-controls button:hover,.fronze-a11y__font-controls button[aria-pressed="true"] { color:#fff; background:#1677ff; border-color:#1677ff; }
.fronze-a11y__footer { padding:12px 20px 16px; border-top:1px solid #ededed; }
.fronze-a11y__reset { width:100%; padding:11px 14px; border:1px solid #191919; border-radius:8px; color:#fff; background:#191919; font-size:12px; letter-spacing:.3px; cursor:pointer; transition:background .2s,border-color .2s,box-shadow .2s; }
.fronze-a11y__reset:hover { background:#1677ff; border-color:#1677ff; box-shadow:0 3px 9px rgba(0,0,0,.16); }
@media(max-width:480px) { .fronze-a11y__launcher{right:14px;bottom:14px;width:50px;height:50px}.fronze-a11y__panel{right:10px;bottom:74px;width:calc(100vw - 20px);max-height:80vh} }

/* Nutzeroptionen: nur bei aktivierter Einstellung */
html.fa-dark body { background:#17191d !important; color:#e8eaf0 !important; color-scheme:dark; }
html.fa-dark body :where(main,section,article,aside,header,footer,nav,div,li,td,th,figure,blockquote,form):not(.fronze-a11y):not(.fronze-a11y *) { border-color:#343840; }
html.fa-dark body :where(p,li,dd,dt,label,figcaption,small,strong,em,h1,h2,h3,h4,h5,h6):not(.fronze-a11y):not(.fronze-a11y *) { color:inherit; }
html.fa-dark body :where(.panel,.card,.box,.wp-block-group,.wp-block-cover,.wp-block-columns,.wp-block-column,table,pre,code,input,textarea,select):not(.fronze-a11y):not(.fronze-a11y *) { background-color:#22262d !important; color:#e8eaf0 !important; border-color:#3a404a !important; }
html.fa-dark body a:not(.fronze-a11y a) { color:#78adff; }
html.fa-contrast body > #wrapper { filter:contrast(1.22); }
html.fa-contrast-strong body > #wrapper { filter:contrast(1.65); }
html.fa-gray body > #wrapper { filter:grayscale(1); }
html.fa-font-1 body { font-size:calc(1em + 1px) !important; }
html.fa-font-2 body { font-size:calc(1em + 2px) !important; }
html.fa-font-3 body { font-size:calc(1em + 4px) !important; }
html.fa-readable body { font-family:Arial,Helvetica,sans-serif !important; }
html.fa-line-spacing body :where(p,li,dd,dt) { line-height:1.9 !important; }
html.fa-text-spacing body :where(p,li,dd,dt) { letter-spacing:.06em !important; word-spacing:.16em !important; }
html.fa-links body a:not(.fronze-a11y a) { text-decoration:underline !important; text-decoration-thickness:2px !important; text-underline-offset:3px !important; outline-offset:2px; }
html.fa-motion body *,html.fa-motion body *:before,html.fa-motion body *:after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.01ms !important; }
html.fa-images body img,html.fa-images body picture,html.fa-images body video,html.fa-images body svg:not(.fronze-a11y svg) { visibility:hidden !important; }


/* V1.2.1 base update: Darkmode is handled only by the separate FRONZE Darkmode plugin.
   Never apply CSS filters to body: filters on body can create a containing block
   and trap fixed-position footer/widgets. Restrict visual filters to page content. */
html.fa-contrast body > #wrapper { filter: contrast(1.22) !important; }
html.fa-contrast-strong body > #wrapper { filter: contrast(1.65) !important; }
html.fa-gray body > #wrapper { filter: grayscale(1) !important; }


/* V1.2.1 menu/button correction: isolate the launcher from Kadence button rules. */
#fronze-a11y {
  position: relative;
  z-index: 2147483000 !important;
}
#fronze-a11y .fronze-a11y__launcher,
#fronze-a11y .fronze-a11y__launcher:hover,
#fronze-a11y .fronze-a11y__launcher:focus,
#fronze-a11y .fronze-a11y__launcher:focus-visible,
#fronze-a11y .fronze-a11y__launcher:active {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  position: fixed !important;
  display: grid !important;
  place-items: center !important;
  inline-size: 54px !important;
  min-inline-size: 54px !important;
  max-inline-size: 54px !important;
  block-size: 54px !important;
  min-block-size: 54px !important;
  max-block-size: 54px !important;
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid #191919 !important;
  background: #191919 !important;
  color: #fff !important;
  line-height: 1 !important;
  flex: none !important;
  transform: none !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.2) !important;
  outline: none !important;
}
#fronze-a11y .fronze-a11y__launcher:hover,
#fronze-a11y .fronze-a11y__launcher:focus-visible {
  background: #1677ff !important;
  border-color: #1677ff !important;
}
#fronze-a11y .fronze-a11y__launcher svg {
  display: block !important;
  width: 27px !important;
  height: 27px !important;
  margin: 0 !important;
}
#fronze-a11y .fronze-a11y__panel {
  z-index: 2147483001 !important;
}
@media (max-width:480px) {
  #fronze-a11y .fronze-a11y__launcher,
  #fronze-a11y .fronze-a11y__launcher:hover,
  #fronze-a11y .fronze-a11y__launcher:focus,
  #fronze-a11y .fronze-a11y__launcher:focus-visible,
  #fronze-a11y .fronze-a11y__launcher:active {
    inline-size: 50px !important;
    min-inline-size: 50px !important;
    max-inline-size: 50px !important;
    block-size: 50px !important;
    min-block-size: 50px !important;
    max-block-size: 50px !important;
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
  }
}


/* V1.2.1 typography fix: readable font applies to actual page text.
   Font-size scaling is calculated from each element's original computed size by JS. */
html.fa-readable body > #wrapper,
html.fa-readable body > #wrapper *:not(svg):not(svg *) {
  font-family: Arial, Helvetica, sans-serif !important;
}
#fronze-a11y .fronze-a11y__font-controls button[aria-pressed="true"] {
  color: #fff !important;
  background: #1677ff !important;
  border-color: #1677ff !important;
}


/* Link to the dedicated FRONZE accessibility information page */
#fronze-a11y .fronze-a11y__more-link {
  display: inline-block !important;
  margin-top: 7px !important;
  color: #1677ff !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}
#fronze-a11y .fronze-a11y__more-link:hover {
  color: #0b5fd1 !important;
}
