/**
 * Barrierefreiheits-Menü Styles
 */

/* Floating Button */
.accessibility-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--mlm-gradient);
    color: white;
    border: none;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s ease;
}

.accessibility-toggle:hover {
    transform: scale(1.1);
}

.accessibility-toggle:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* Panel */
.accessibility-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    max-height: calc(100vh - 120px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.accessibility-panel[hidden] {
    display: none;
}

/* Header */
.accessibility-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

/* Content */
.accessibility-content {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.accessibility-section {
    margin-bottom: 1rem;
}

.accessibility-label {
    display: block;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Button Groups */
.accessibility-section .btn-group button {
    flex: 1;
}

.accessibility-section .btn-outline-light.active {
    background-color: white;
    color: var(--mlm-primary);
}

/* Form Controls */
.accessibility-section .form-select,
.accessibility-section .form-check-label {
    color: white;
}

.accessibility-section .form-select {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.accessibility-section .form-select:focus {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: white;
    color: white;
}

.accessibility-section .form-select option {
    background-color: var(--mlm-primary);
    color: white;
}

.accessibility-section .form-check-input {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.accessibility-section .form-check-input:checked {
    background-color: white;
    border-color: white;
}

/* Mobile Anpassungen */
@media (max-width: 576px) {
    .accessibility-panel {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 80px;
    }

    .accessibility-toggle {
        right: 10px;
        bottom: 10px;
    }
}

/* ===== BARRIEREFREIHEITS-EINSTELLUNGEN ANWENDEN ===== */

/* Schriftgröße */
.a11y-font-small {
    font-size: 14px;
}

.a11y-font-large {
    font-size: 18px;
}

.a11y-font-large h1 {
    font-size: 2.5rem;
}

.a11y-font-large h2 {
    font-size: 2rem;
}

.a11y-font-large h3 {
    font-size: 1.75rem;
}

/* Hoher Kontrast */
.a11y-contrast-high {
    --bs-body-bg: #ffffff;
    --bs-body-color: #000000;
}

.a11y-contrast-high .navbar,
.a11y-contrast-high .bg-dark {
    background: #000000 !important;
}

.a11y-contrast-high .btn-primary {
    background: #0000ff !important;
    border-color: #0000ff !important;
    color: #ffffff !important;
}

.a11y-contrast-high .card {
    border: 2px solid #000000;
}

/* Invertierte Farben */
.a11y-contrast-inverted {
    filter: invert(1) hue-rotate(180deg);
}

.a11y-contrast-inverted img,
.a11y-contrast-inverted video {
    filter: invert(1) hue-rotate(180deg);
}

/* Farbsehschwäche-Filter */
.a11y-colorblind-protanopia {
    filter: url('#protanopia-filter');
}

.a11y-colorblind-deuteranopia {
    filter: url('#deuteranopia-filter');
}

.a11y-colorblind-tritanopia {
    filter: url('#tritanopia-filter');
}

/* Blaulichtfilter */
.a11y-blue-filter {
    filter: sepia(0.1) saturate(1.2);
}

.a11y-blue-filter::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 200, 150, 0.1);
    pointer-events: none;
    z-index: 9998;
}

/* Animationen deaktivieren */
.a11y-no-animations,
.a11y-no-animations *,
.a11y-no-animations *::before,
.a11y-no-animations *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

/* SVG-Filter für Farbsehschwächen */
.accessibility-filters {
    position: absolute;
    width: 0;
    height: 0;
    visibility: hidden;
}