/* Toggle-Button */
#sb-bfsg-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: #c9a84c;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: transform 0.2s, background 0.2s;
}
#sb-bfsg-toggle-btn:hover  { transform: scale(1.1); background: #dbb95a; }
#sb-bfsg-toggle-btn:focus  { outline: 3px solid #fff; outline-offset: 2px; }
#sb-bfsg-toggle-btn svg    { width: 26px; height: 26px; fill: #111; }

/* Toolbar Panel */
#sb-bfsg-toolbar {
    position: fixed;
    bottom: 86px;
    right: 24px;
    width: 280px;
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    z-index: 99989;
    overflow: hidden;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
#sb-bfsg-toolbar.sb-open { display: block; animation: sb-slide-up 0.25s ease; }
@keyframes sb-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.sb-bfsg-toolbar-header {
    background: #c9a84c;
    color: #111;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sb-bfsg-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #111;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.sb-bfsg-close:focus { outline: 2px solid #111; border-radius: 2px; }

/* Sections */
.sb-bfsg-section { padding: 12px 16px; border-bottom: 1px solid #333; }
.sb-bfsg-section-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }

/* Font Controls */
.sb-bfsg-font-row { display: flex; align-items: center; gap: 8px; }
.sb-bfsg-btn {
    background: #2e2e2e;
    border: 1px solid #555;
    color: #fff;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.sb-bfsg-btn:hover  { background: #3e3e3e; border-color: #c9a84c; }
.sb-bfsg-btn:focus  { outline: 2px solid #c9a84c; }
.sb-bfsg-font-label { flex: 1; text-align: center; font-size: 13px; color: #ccc; }

/* Contrast Buttons */
.sb-bfsg-contrast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sb-bfsg-contrast {
    padding: 10px 6px;
    border-radius: 8px;
    border: 2px solid #444;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: border-color 0.15s;
}
.sb-bfsg-contrast:focus  { outline: 2px solid #c9a84c; }
.sb-bfsg-contrast.active,
.sb-bfsg-contrast[aria-pressed="true"] { border-color: #c9a84c; }
.sb-bfsg-contrast[data-contrast="normal"] { background: #1a1a1a; color: #fff; }
.sb-bfsg-contrast[data-contrast="high"]   { background: #000;    color: #ff0; }
.sb-bfsg-contrast[data-contrast="dark"]   { background: #121212; color: #e0e0e0; }
.sb-bfsg-contrast[data-contrast="light"]  { background: #fff;    color: #000; }

/* Toggle Buttons */
.sb-bfsg-toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sb-bfsg-toggle {
    background: #2e2e2e;
    border: 1px solid #444;
    color: #ccc;
    border-radius: 8px;
    padding: 10px 6px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}
.sb-bfsg-toggle:hover            { border-color: #c9a84c; }
.sb-bfsg-toggle:focus            { outline: 2px solid #c9a84c; }
.sb-bfsg-toggle[aria-pressed="true"] { background: rgba(201,168,76,0.15); border-color: #c9a84c; color: #c9a84c; }

/* Erklärung Link */
.sb-bfsg-erklaerung-link { text-align: center; padding: 10px; }
.sb-bfsg-erklaerung-link a { color: #888; font-size: 11px; text-decoration: underline; }
.sb-bfsg-erklaerung-link a:hover { color: #c9a84c; }

/* Body-Klassen für Feature-Toggles */
body.sb-contrast-high  { filter: contrast(2) grayscale(0.3); background: #000 !important; color: #ff0 !important; }
body.sb-contrast-dark  { filter: brightness(0.85); }
body.sb-contrast-light { filter: invert(1) hue-rotate(180deg); }
body.sb-no-anim *      { animation: none !important; transition: none !important; }
body.sb-highlight-links a { text-decoration: underline !important; outline: 2px solid #c9a84c !important; outline-offset: 1px !important; }
body.sb-big-cursor, body.sb-big-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23c9a84c' d='M8 2l16 16-7-1-4 9-2-1 4-9-7-1z'/%3E%3C/svg%3E") 0 0, auto !important; }
body.sb-reading-mode img:not([aria-hidden]) { opacity: 0.1 !important; }
