/* ============================================
   Innovity Accessibility Plugin – Toolbar
   ============================================ */

/* Skip Link */
.inno-a11y-skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 99999;
    padding: 0.75rem 1.25rem;
    background: #000;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s ease;
}
.inno-a11y-skip-link:focus {
    top: 0;
    outline: 3px solid #ffbf00;
    outline-offset: 2px;
}

/* Toolbar Toggle Button */
#inno-a11y-toggle {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    z-index: 2147483647 !important;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #2e9fd8;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.2s;
    pointer-events: all !important;
    visibility: visible !important;
    opacity: 1 !important;
}
#inno-a11y-toggle:hover,
#inno-a11y-toggle:focus {
    background: #1a7fab;
    outline: 3px solid #ffbf00;
    outline-offset: 2px;
}

/* Toolbar Panel */
#inno-a11y-panel {
    position: fixed !important;
    bottom: 6rem !important;
    right: 2rem !important;
    z-index: 2147483646 !important;
    width: 380px;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 2px solid #2e9fd8;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 1rem;
    display: none;
    font-family: sans-serif;
    font-size: 0.95rem;
    color: #111;
    box-sizing: border-box;
}
#inno-a11y-panel.is-open {
    display: block;
}

/* Panel Header */
.inno-a11y-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}
.inno-a11y-panel-header h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #0d1b5e;
}
.inno-a11y-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #555;
    padding: 0.25rem;
    line-height: 1;
}
.inno-a11y-close:hover,
.inno-a11y-close:focus {
    color: #0d1b5e;
    outline: 2px solid #0d1b5e;
}

/* Sections */
.inno-a11y-section {
    margin-bottom: 1rem;
}
.inno-a11y-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0d1b5e;
    margin: 0 0 0.5rem 0;
}

/* Buttons Grid */
.inno-a11y-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    width: 100%;
    box-sizing: border-box;
}
.inno-a11y-btn {
    padding: 0.5rem 0.4rem;
    font-size: 0.8rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
    color: #111;
    line-height: 1.3;
    box-sizing: border-box;
    width: 100%;
    word-break: normal;
    hyphens: none;
    white-space: normal;
    overflow: hidden;
    min-height: 44px;
    max-height: 56px;
    text-transform: none;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.inno-a11y-btn:hover,
.inno-a11y-btn:focus {
    background: #e8e8e8;
    border-color: #2e9fd8;
    outline: 2px solid #2e9fd8;
    outline-offset: 1px;
}
.inno-a11y-btn.is-active {
    background: #0d1b5e;
    color: #fff;
    border-color: #0d1b5e;
}
.inno-a11y-btn.is-active:focus {
    outline-color: #ffbf00;
}

/* Font size controls – 3 Buttons nebeneinander */
.inno-a11y-font-controls {
    display: flex;
    gap: 0.4rem;
}
.inno-a11y-font-controls .inno-a11y-btn {
    flex: 1;
}

/* Reset Button */
.inno-a11y-reset {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
}
.inno-a11y-reset:hover,
.inno-a11y-reset:focus {
    background: #e0e0e0;
    outline: 2px solid #0d1b5e;
}

/* Mobile */
@media (max-width: 600px) {
    #inno-a11y-panel {
        right: 0;
        left: 0;
        width: 100%;
        bottom: 4.5rem;
        border-radius: 8px 8px 0 0;
        max-height: 70vh;
    }
    #inno-a11y-toggle {
        right: 1rem;
        bottom: 1rem;
    }
}

/* Branding-Link (Free-Version) */
.inno-a11y-branding-wrap {
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}
.inno-a11y-branding {
    font-size: 0.7rem;
    color: #888;
    text-decoration: none;
    letter-spacing: 0.03em;
}
.inno-a11y-branding:hover,
.inno-a11y-branding:focus {
    color: #2e9fd8;
    text-decoration: underline;
}

/* Sponsored-Banner (Free-Version, erscheint wenn Modus aktiv) */
#inno-a11y-banner {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2147483645 !important;
    background: #0d1b5e;
    color: #fff;
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-family: sans-serif;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}
#inno-a11y-banner.is-visible {
    transform: translateY(0);
}
#inno-a11y-banner a {
    color: #2e9fd8;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 0.3rem;
}
#inno-a11y-banner a:hover,
#inno-a11y-banner a:focus {
    color: #fff;
    outline: 2px solid #2e9fd8;
    outline-offset: 2px;
}
.inno-a11y-banner-text {
    display: inline-block;
}
