/* Barrierefreiheits-Widget Styles */
.accessibility-widget {
    position: fixed !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.accessibility-toggle {
    width: 45px !important;
    height: 45px !important;
    border-radius: 0 8px 8px 0 !important;
    background: linear-gradient(135deg, rgba(201, 163, 103, 0.9) 0%, rgba(139, 111, 62, 0.9) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-left: none !important;
    color: white !important;
    font-size: 22px !important;
    cursor: pointer !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 5px !important;
}

.accessibility-toggle:hover {
    width: 50px !important;
    background: linear-gradient(135deg, rgba(201, 163, 103, 1) 0%, rgba(139, 111, 62, 1) 100%) !important;
    box-shadow: 2px 0 15px rgba(201, 163, 103, 0.5) !important;
}

.accessibility-toggle:focus {
    outline: 2px solid #c9a367 !important;
    outline-offset: 2px !important;
}

.accessibility-panel {
    position: absolute !important;
    left: 55px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 300px !important;
    background: linear-gradient(135deg, #0a1e3d 0%, #1a2f4d 100%) !important;
    border: 2px solid #c9a367 !important;
    border-radius: 12px !important;
    padding: 18px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
    display: none !important;
    opacity: 0 !important;
    transform: translateY(-50%) translateX(-10px) !important;
    transition: all 0.3s ease !important;
}

.accessibility-panel.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(-50%) translateX(0) !important;
}

.accessibility-panel h3 {
    color: #c9a367;
    font-size: 1.2rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(201, 163, 103, 0.3);
    font-family: 'Cinzel Decorative', serif;
}

.accessibility-option {
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.accessibility-option:hover {
    background: rgba(201, 163, 103, 0.1);
}

.accessibility-option label {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    gap: 10px;
    user-select: none;
}

.accessibility-option input[type="checkbox"],
.accessibility-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #c9a367;
}

.accessibility-option button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #c9a367 0%, #8b6f3e 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.accessibility-option button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 163, 103, 0.4);
}

.accessibility-option button:focus {
    outline: 2px solid #c9a367;
    outline-offset: 2px;
}

/* Font Size Controls */
.font-size-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.font-size-controls button {
    flex: 1;
    padding: 8px;
    background: rgba(201, 163, 103, 0.2);
    border: 1px solid #c9a367;
    border-radius: 6px;
    color: #c9a367;
    font-size: 1.1rem;
    font-weight: bold;
}

.font-size-controls button:hover {
    background: rgba(201, 163, 103, 0.3);
}

/* Accessibility States */
body.font-size-small {
    font-size: 14px !important;
}

body.font-size-large {
    font-size: 18px !important;
}

body.font-size-xlarge {
    font-size: 22px !important;
}

/* High Contrast - nur auf Content-Elemente anwenden, nicht auf fixe UI-Elemente */
main.high-contrast,
header.high-contrast,
footer.high-contrast,
section.high-contrast,
article.high-contrast,
.content.high-contrast {
    filter: contrast(150%) !important;
}

body.readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}

body.highlight-links a {
    background: rgba(255, 255, 0, 0.3) !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}

/* Dark Mode - nur auf Content-Elemente anwenden, nicht auf fixe UI-Elemente */
main.dark-mode,
header.dark-mode,
footer.dark-mode,
section.dark-mode,
article.dark-mode,
.content.dark-mode {
    filter: invert(1) hue-rotate(180deg) !important;
}

/* Bilder und Videos in Dark Mode zurückdrehen */
main.dark-mode img,
header.dark-mode img,
footer.dark-mode img,
section.dark-mode img,
article.dark-mode img,
.content.dark-mode img,
main.dark-mode video,
header.dark-mode video,
footer.dark-mode video,
section.dark-mode video,
article.dark-mode video,
.content.dark-mode video {
    filter: invert(1) hue-rotate(180deg) !important;
}

/* Skip to Main Content Link - REMOVED */
.skip-to-main {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .accessibility-widget {
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .accessibility-toggle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .accessibility-panel {
        width: 260px;
        left: 50px;
        padding: 15px;
    }

    .accessibility-panel h3 {
        font-size: 1.05rem;
    }

    .accessibility-option label {
        font-size: 0.85rem;
    }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 3px solid #c9a367 !important;
    outline-offset: 2px !important;
}

/* Animations Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
