
/* Accessibility Widget Styles */
.accessibility-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: Arial, sans-serif;
}

.accessibility-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #26a69a;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-toggle:hover {
    background: #00897b;
    transform: scale(1.1);
}

.accessibility-toggle:focus {
    outline: 3px solid #ffff00;
    outline-offset: 2px;
}

.accessibility-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: white;
    border: 2px solid #26a69a;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(38, 166, 154, 0.3);
    padding: 20px;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.accessibility-panel.active {
    display: block;
}

.accessibility-panel h3 {
    margin: 0 0 15px 0;
    color: #26a69a;
    font-size: 18px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.accessibility-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.accessibility-option:last-child {
    border-bottom: none;
}

.accessibility-option label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    flex: 1;
}

.accessibility-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.accessibility-switch.active {
    background: #26a69a;
}

.accessibility-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.accessibility-switch.active::after {
    transform: translateX(20px);
}

/* Hoher Kontrast - Basierend auf Darkmode mit stärkeren Farben */
.high-contrast {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.high-contrast body {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.high-contrast .page-content-wrapper,
.high-contrast .container,
.high-contrast .card,
.high-contrast .card-body,
.high-contrast .single-hero-slide,
.high-contrast .tiny-slider-one,
.high-contrast .feature-card,
.high-contrast .list-group-item,
.high-contrast p,
.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast h5,
.high-contrast h6,
.high-contrast span,
.high-contrast div:not(.accessibility-widget):not(.footer-nav-area):not(.header-area):not(.offcanvas):not(.navbar--toggler):not(.modal):not(.toast):not(.alert) {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #ffff00 !important;
}

.high-contrast .card {
    background-color: #000000 !important;
    border-color: #ffff00 !important;
    color: #ffffff !important;
}

.high-contrast .btn {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #ffff00 !important;
}

.high-contrast .btn:hover,
.high-contrast .btn:focus {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border-color: #ffff00 !important;
}

.high-contrast .header-area {
    background-color: #000000 !important;
    border-bottom: 2px solid #ffff00 !important;
}

.high-contrast .offcanvas,
.high-contrast .sidenav-wrapper {
    background-color: #000000 !important;
    border-right: 2px solid #ffff00 !important;
}

.high-contrast .footer-nav-area,
.high-contrast .footer-nav {
    background-color: #000000 !important;
    border-top: 2px solid #ffff00 !important;
}

.high-contrast .form-control,
.high-contrast .form-select {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #ffff00 !important;
}

.high-contrast .form-control:focus,
.high-contrast .form-select:focus {
    border-color: #ffff00 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 0, 0.25) !important;
}

.high-contrast .navbar--toggler {
    background-color: #000000 !important;
    border-color: #ffff00 !important;
}

.high-contrast .navbar--toggler span {
    background-color: #ffff00 !important;
}

/* Große Schrift - wird auf body angewendet und vererbt */
body.large-text,
body.large-text * {
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
}

/* Extra große Schrift - wird auf body angewendet und vererbt */
body.extra-large-text,
body.extra-large-text * {
    font-size: 1.5rem !important;
    line-height: 1.8 !important;
}

/* Ausnahmen für bestimmte Elemente, damit sie nicht zu groß werden */
body.large-text .accessibility-widget,
body.large-text .accessibility-widget *,
body.large-text .accessibility-toggle,
body.large-text .accessibility-panel,
body.extra-large-text .accessibility-widget,
body.extra-large-text .accessibility-widget *,
body.extra-large-text .accessibility-toggle,
body.extra-large-text .accessibility-panel {
    font-size: inherit !important;
    line-height: inherit !important;
}

.highlight-links a {
    background: #ffff00 !important;
    color: #000 !important;
    text-decoration: underline !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
}

.highlight-headings h1,
.highlight-headings h2,
.highlight-headings h3,
.highlight-headings h4,
.highlight-headings h5,
.highlight-headings h6 {
    background: #e6f7f7 !important;
    padding: 8px !important;
    border-left: 4px solid #26a69a !important;
}

.reading-guide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff6b35;
    z-index: 9999;
    display: none;
}

.reading-guide.active {
    display: block;
}

/* Screen Reader Styles */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 8px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* Skip Links */
.skip-links {
    position: fixed;
    top: -100px;
    left: 20px;
    background: #000;
    color: #fff !important;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    z-index: 999999;
    font-weight: 600;
    font-size: 14px;
    transition: top 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.skip-links:focus {
    top: 0;
    outline: 3px solid #ffff00;
    outline-offset: 2px;
}

/* Skip-Link für Navigation - öffnet die Navigation beim Fokus */
.skip-link-nav:focus {
    /* Scrollt zur Navigation und öffnet sie bei Bedarf */
    outline: 3px solid #ffff00;
}

/* FAQ Styles für hohen Kontrast - nur Textfarbe erzwingen */
.high-contrast .faq-header h1,
.high-contrast .faq-header p {
    color: #ffffff !important;
}

.high-contrast .faq-question,
.high-contrast .faq-question:hover,
.high-contrast .faq-question:focus,
.high-contrast .faq-question:active,
.high-contrast .faq-question.active {
    color: #ffffff !important;
}

.high-contrast .faq-answer-content,
.high-contrast .faq-answer-content p,
.high-contrast .faq-answer-content li,
.high-contrast .faq-answer-content ul,
.high-contrast .faq-answer-content strong,
.high-contrast .faq-answer-content span {
    color: #ffffff !important;
}

.high-contrast .highlight-box,
.high-contrast .highlight-box p,
.high-contrast .highlight-box strong {
    color: #ffffff !important;
}

.high-contrast .warning-box,
.high-contrast .warning-box p,
.high-contrast .warning-box strong {
    color: #ffffff !important;
}

/* Alert Styles für hohen Kontrast */
.high-contrast .alert,
.high-contrast .alert p,
.high-contrast .alert li,
.high-contrast .alert strong,
.high-contrast .alert h5 {
    color: #ffffff !important;
    background-color: #000000 !important;
    border-color: #ffff00 !important;
}

.high-contrast .alert.alert-info {
    background-color: #000000 !important;
    border-color: #ffff00 !important;
    color: #ffffff !important;
}

/* Focus Indicators */
*:focus {
    outline: 3px solid #ffff00 !important;
    outline-offset: 2px !important;
}

/* Motion Reduction */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Ergänzungen zur wcag.css */
.accessibility-info {
    border-radius: 4px;
    margin-bottom: 15px;
}

.accessibility-info p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.accessibility-info i {
    margin-right: 4px;
}

.accessibility-panel {
    max-height: 500px; /* Erhöht für mehr Inhalt */
}

.accessibility-option:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Bessere Touch-Targets für mobile Geräte */
@media (max-width: 768px) {
    .accessibility-widget {
        bottom: 80px;
        left: 20px;
        right: auto;
    }
    
    .accessibility-toggle {
        width: 50px;
        height: 50px;
        bottom: 0;
    }
    
    .accessibility-panel {
        width: calc(100vw - 40px);
        left: 0;
        right: auto;
        bottom: 60px;
    }
}

/* Ergänzungen zur WCAG.css für Formulare */

.requirement-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0;
  font-size: 0.875rem;
}

.requirement-item i {
  flex-shrink: 0;
}

.form-group.error .form-control {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group.success .form-control {
  border-color: #28a745;
}

.product-card:focus {
  outline: 3px solid #ffff00;
  outline-offset: 2px;
}

.price-option:focus {
  outline: 3px solid #ffff00;
  outline-offset: 2px;
}

/* Error Summary Styles */
#error-summary {
  position: sticky;
  top: 70px;
  z-index: 100;
}

#error-summary a.alert-link {
  color: #721c24;
  text-decoration: underline;
}

#error-summary a.alert-link:hover,
#error-summary a.alert-link:focus {
  color: #491217;
}

/* Loading States */
.btn-spinner i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Better focus indicators for dark mode */
[data-theme=dark] .form-control:focus,
[data-theme=dark] .form-select:focus {
  border-color: #ffc107;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

[data-theme=dark] .product-card:focus,
[data-theme=dark] .price-option:focus {
  outline-color: #ffc107;
}

/* High contrast mode enhancements */
.high-contrast .product-card {
  border-width: 3px;
}

.high-contrast .product-card.selected {
  background-color: #000;
  color: #fff;
}

.high-contrast .price-option.selected {
  background-color: #000;
  color: #fff;
}

/* Screen reader only content */
.sr-only:not(:focus):not(:active) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}