/**
 * Accessibility Widget Pro - Stylesheet v4.6.2
 * 
 * v4.6.2: Standalone Icon-Position Fix
 * - Standard-Position: left: 20px (Desktop), left: 12px (Mobile)
 * - Mit CookieConsent (body.awp-has-cc): left: 84px / 64px
 * - CookieConsent wird automatisch per JS erkannt (#cc-trigger)
 *
 * v3.8.0: Frontend Statement Optimierung
 * - H1-Titel aus der Barrierefreiheitserklärung entfernt
 * - Nutzer gestaltet H1 individuell pro Seite
 * - h2 Styling: margin-top: 30px, margin-bottom: 20px
 * - WCAG 2.2 AA Konformität verbessert
 *
 * v3.6.6: OpenDyslexic Font Mobile Fix - ABSOLUTE URLs
 * - @font-face wird jetzt über PHP mit ABSOLUTEM URL injiziert
 * - Löst das Problem mit relativen Pfaden auf Mobile (iOS/Android)
 * - .htaccess für korrekte MIME-Types hinzugefügt
 * - Font-Dateien werden mit korrektem Content-Type ausgeliefert
 * - CORS-Header für Cross-Origin Font Loading
 *
 * v3.6.5: Legasthenie-Schrift ROBUST FIX
 * - OpenDyslexic-Fonts LOKAL im Plugin (assets/fonts/) statt CDN
 * - EINFACHE CSS-Regeln statt komplexer :not() Ketten (CSS Level 3 kompatibel)
 * - Icon-Fonts werden mit HÖHERER SPEZIFITÄT (html body.awp-dyslexia-font) geschützt
 * - Dashicons, Font Awesome, Genericons, Material Icons, Elementor Icons geschützt
 * - WordPress Admin Bar Icons bleiben intakt
 * - Cross-Browser: Chrome, Firefox, Safari, Edge, IE11
 * - Cross-Platform: Desktop, iOS, Android
 *
 * v3.6.4: Legasthenie-Schrift Bugfix (fehlgeschlagen - zu komplexe :not() Selektoren)
 *
 * v3.6.3: Mobile Breakpoint-Synchronisation
 * - BUGFIX: Mobile Breakpoint von 480px auf 640px geändert
 * - Synchronisiert mit CookieConsent Plugin
 * - Icons jetzt auf allen Bildschirmgrößen korrekt nebeneinander
 * - CC links (12px), AWP rechts (64px) bei max-width: 640px
 * - Explizites right: auto für Cross-Browser-Kompatibilität
 *
 * v3.6.2: Mobile Icon-Positionierung Fix
 * - Mobile: AWP Icon jetzt rechts (64px) neben CookieConsent
 * - Korrekte Reihenfolge: CC links (12px), AWP rechts (64px)
 * - 8px Gap zwischen Icons
 *
 * v3.6.1: Mobile Touch-Scroll-Fix & WCAG 2.2.2 Icon-Größe
 * - BUGFIX: Natives Touch-Scrolling im Widget auf iOS/Android repariert
 * - Icon-Größe auf WCAG 2.2.2 Minimum reduziert (44x44px)
 * - Touch-Events verwenden jetzt passive Listener
 * - Verbesserte overscroll-behavior für Mobile
 *
 * v3.6.0: WCAG 2.2.2 Animationen stoppen (Pause, Stop, Hide)
 * - "Animationen stoppen" Feature komplett neu implementiert
 * - CSS-Animationen und Transitions stoppen
 * - GIF-Animationen pausieren (via JavaScript)
 * - Video/Audio autoplay stoppen
 * - Lottie/GSAP Animationen pausieren
 * - prefers-reduced-motion Integration
 * - Robuste Implementation ohne Theme-Konflikte
 * - WCAG 2.2.2 Level A konform
 *
 * v3.5.2: Frontend-Icon - WordPress Dashicon
 * - Frontend-Icon verwendet jetzt offizielles WordPress Dashicon (dashicons-universal-access-alt)
 * - Icon-Größe: 26x26px (Desktop), 22x22px (Mobile)
 * - Konsistent mit Admin-Bereich
 * - GPL 2.0 lizenziert (wie WordPress Core)
 *
 * v3.5.1: Feature entfernt
 * - "Animationen stoppen" komplett entfernt (verursachte Theme-Konflikte)
 *
 * v3.4.2: Fix - Bilder ausblenden inkl. Hintergrundbilder
 * - Alle CSS background-image Eigenschaften werden entfernt
 * - Pseudo-Elemente ::before/::after werden berücksichtigt
 * - SVG, Picture, Canvas, Object/Embed abgedeckt
 * - Video-Poster werden zurückgesetzt
 * - Cross-Browser kompatibel (Chrome, Firefox, Safari, Edge, IE11)
 *
 * v3.4.1: Critical Fix - Links hervorheben in Navigation
 * - Vollständige Cross-Browser Kompatibilität für Link-Highlighting
 * - Fix für -webkit-text-fill-color (Chrome, Safari, Edge)
 * - Fix für color: inherit und currentColor
 * - Fix für fixed/sticky Navigationen
 * - Fix für Gradient-Text Links
 * - Pseudo-Elemente werden korrekt behandelt
 * - Hover/Focus/Active/Visited States konsistent
 * - Kinder-Elemente in Links (span, strong, em) werden erfasst
 * 
 * v3.2.4: Barrierefreiheits-Optimierung für WCAG 2.1 AA
 * - Einspaltige Button-Struktur für bessere Lesbarkeit
 * - Horizontales Button-Layout (Icon links, Text rechts)
 * - Erhöhte Textgröße (15px statt 11px) für bessere Lesbarkeit
 * - Verbesserte Textkontraste (WCAG 2.1 AA konform, min. 4.5:1)
 * - Section-Titel mit höherem Kontrast (#1e293b statt #64748b)
 * - Cross-Browser Scroll-Kompatibilität (Chrome, Firefox, Safari, Edge)
 * - Explizites Touch-Scrolling für alle Browser
 * - Korrigierte pointer-events Hierarchie
 * - Vendor Prefixes vollständig
 * - Reduced Motion / High Contrast / Forced Colors
 */

/* ==========================================================================
   OPENDYSLEXIC FONT - LOCAL LOADING (v3.6.5)
   ==========================================================================
   OpenDyslexic ist eine freie Schrift für Legasthenie-Betroffene.
   Lizenz: SIL Open Font License (OFL)
   https://opendyslexic.org/
   
   v3.6.5: Fonts lokal im Plugin statt CDN (zuverlässiger)
   ========================================================================== */

@font-face {
    font-family: 'OpenDyslexic';
    src: url('../fonts/OpenDyslexic-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('../fonts/OpenDyslexic-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('../fonts/OpenDyslexic-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ==========================================================================
   CSS CUSTOM PROPERTIES mit Fallbacks
   ========================================================================== */

:root {
    --awp-primary: #1a365d;
    --awp-primary-hover: #2d4a7c;
    --awp-secondary: #f8fafc;
    --awp-text: #1e293b;
    --awp-text-light: #64748b;
    --awp-border: #e2e8f0;
    --awp-white: #ffffff;
    --awp-black: #000000;
    --awp-focus: #f59e0b;
    --awp-success: #22c55e;
    --awp-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --awp-radius: 8px;
    --awp-radius-lg: 12px;
    --awp-transition: 200ms ease;
    --awp-z-toggle: 2147483644;
    --awp-z-widget: 2147483646;
    --awp-z-overlay: 2147483647;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.awp-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================================================
   WIDGET CONTAINER
   ========================================================================== */

.awp-widget-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: visible !important;
    pointer-events: none !important;
    z-index: 2147483644 !important;
    z-index: var(--awp-z-toggle) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    -webkit-filter: none !important;
    filter: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.awp-widget-container .awp-toggle,
.awp-widget-container .awp-widget,
.awp-widget-container .awp-widget * {
    pointer-events: auto;
}

/* ==========================================================================
   TOGGLE BUTTON
   ========================================================================== */

.awp-toggle {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    top: auto !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    /* WCAG 2.2.2: Minimum Touch-Target 44x44px */
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    background: #1a365d !important;
    background: var(--awp-primary) !important;
    color: #ffffff !important;
    color: var(--awp-white) !important;
    border: none !important;
    -webkit-border-radius: 8px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    z-index: 2147483644 !important;
    z-index: var(--awp-z-toggle) !important;
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    -webkit-transition: all 200ms ease !important;
    -o-transition: all 200ms ease !important;
    transition: all 200ms ease !important;
    transition: all var(--awp-transition) !important;
    font-size: 20px !important;
    line-height: 1 !important;
    -webkit-filter: none !important;
    filter: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-tap-highlight-color: transparent;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

.awp-widget-container.awp-right .awp-toggle,
.awp-widget-container.awp-left .awp-toggle {
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    top: auto !important;
}

/* Offset wenn CookieConsent aktiv ist (CC-Icon links, AWP rechts daneben) */
body.awp-has-cc .awp-widget-container.awp-right .awp-toggle,
body.awp-has-cc .awp-widget-container.awp-left .awp-toggle,
body.awp-has-cc .awp-toggle {
    left: 84px !important;
}

.awp-toggle:hover {
    background: #2d4a7c !important;
    background: var(--awp-primary-hover) !important;
    -webkit-transform: scale(1.08) !important;
    -ms-transform: scale(1.08) !important;
    transform: scale(1.08) !important;
    -webkit-box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.awp-toggle:focus {
    outline: 3px solid #f59e0b !important;
    outline: 3px solid var(--awp-focus) !important;
    outline-offset: 2px !important;
}

.awp-toggle:focus:not(:focus-visible) {
    outline: none !important;
}

.awp-toggle:focus-visible {
    outline: 3px solid #f59e0b !important;
    outline: 3px solid var(--awp-focus) !important;
    outline-offset: 2px !important;
}

.awp-toggle-icon {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 22px !important;
    line-height: 22px !important;
    color: currentColor !important;
}

.awp-toggle-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================================================
   WIDGET PANEL - KRITISCHER SCROLL-FIX
   ========================================================================== */

.awp-widget {
    position: fixed !important;
    bottom: 80px !important;
    left: 20px !important;
    right: auto !important;
    top: auto !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
    width: 380px !important;
    max-width: -webkit-calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    max-height: -webkit-calc(100vh - 120px) !important;
    max-height: calc(100vh - 120px) !important;
    background: #ffffff !important;
    background: var(--awp-white) !important;
    -webkit-border-radius: 12px !important;
    border-radius: 12px !important;
    border-radius: var(--awp-radius-lg) !important;
    -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    box-shadow: var(--awp-shadow) !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    z-index: 2147483646 !important;
    z-index: var(--awp-z-widget) !important;
    /* KRITISCH: overflow hidden auf dem Widget-Container für korrektes Child-Scrolling */
    overflow: hidden !important;
    pointer-events: auto !important;
    -webkit-filter: none !important;
    filter: none !important;
}

.awp-widget-container.awp-right .awp-widget,
.awp-widget-container.awp-left .awp-widget {
    bottom: 80px !important;
    left: 20px !important;
    right: auto !important;
    top: auto !important;
}

.awp-widget[hidden] {
    display: none !important;
}

/* Header */
.awp-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 16px 20px;
    background: #1a365d;
    background: var(--awp-primary);
    color: #ffffff;
    color: var(--awp-white);
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-border-radius: 12px 12px 0 0;
    border-radius: 12px 12px 0 0;
    border-radius: var(--awp-radius-lg) var(--awp-radius-lg) 0 0;
}

.awp-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.awp-close {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    color: var(--awp-white);
    border: none;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    -webkit-transition: background 200ms ease;
    -o-transition: background 200ms ease;
    transition: background 200ms ease;
    transition: background var(--awp-transition);
}

.awp-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.awp-close:focus {
    outline: 2px solid #ffffff;
    outline: 2px solid var(--awp-white);
    outline-offset: 2px;
}

/* ==========================================================================
   CONTENT AREA - CROSS-BROWSER SCROLL FIX
   ========================================================================== */

.awp-content {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    /* Explizite Höhe für Flex-Container Scrolling */
    min-height: 0;
    /* KRITISCH: Overflow für alle Browser */
    overflow-x: hidden !important;
    overflow-y: auto !important;
    /* Safari/iOS Touch-Scrolling */
    -webkit-overflow-scrolling: touch !important;
    /* Scroll-Containment */
    -ms-scroll-chaining: none;
    overscroll-behavior: contain;
    overscroll-behavior-y: contain;
    /* Padding */
    padding: 20px;
    /* Scrollbar-Styling */
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
    /* Touch-Action für Touch-Devices */
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    /* Pointer-Events explizit setzen */
    pointer-events: auto !important;
}

/* Webkit Scrollbar */
.awp-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.awp-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    background: var(--awp-secondary);
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

.awp-content::-webkit-scrollbar-thumb {
    background: #94a3b8;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    border: 2px solid #f1f5f9;
}

.awp-content::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Firefox-spezifischer Scrollbar-Fix */
@supports (scrollbar-width: thin) {
    .awp-content {
        scrollbar-width: thin;
        scrollbar-color: #94a3b8 #f1f5f9;
    }
}

/* Section */
.awp-section {
    margin-bottom: 20px;
}

.awp-section:last-child {
    margin-bottom: 0;
}

.awp-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    color: var(--awp-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    border-bottom: 1px solid var(--awp-border);
}

/* ==========================================================================
   BUTTONS GRID - Einspaltig für bessere Lesbarkeit und Barrierefreiheit
   ========================================================================== */

.awp-buttons-grid,
.awp-button-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    margin: -5px;
}

.awp-buttons-grid > *,
.awp-button-grid > * {
    margin: 5px;
}

@supports (gap: 10px) {
    .awp-buttons-grid,
    .awp-button-grid {
        gap: 10px;
        margin: 0;
    }
    
    .awp-buttons-grid > *,
    .awp-button-grid > * {
        margin: 0;
    }
}

/* ==========================================================================
   FEATURE BUTTONS - Horizontal Layout mit verbesserter Lesbarkeit
   ========================================================================== */

.awp-button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    padding: 14px 16px;
    background: #f8fafc;
    background: var(--awp-secondary);
    border: 2px solid transparent;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    border-radius: var(--awp-radius);
    cursor: pointer;
    -webkit-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
    transition: all var(--awp-transition);
    min-height: 52px;
    text-align: left;
}

.awp-button .awp-button-icon {
    margin-bottom: 0;
    margin-right: 12px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.awp-button:hover {
    background: #ffffff;
    background: var(--awp-white);
    border-color: #1a365d;
    border-color: var(--awp-primary);
}

.awp-button:focus {
    outline: none;
    -webkit-box-shadow: 0 0 0 3px #f59e0b;
    box-shadow: 0 0 0 3px #f59e0b;
    box-shadow: 0 0 0 3px var(--awp-focus);
}

.awp-button:focus:not(:focus-visible) {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.awp-button:focus-visible {
    -webkit-box-shadow: 0 0 0 3px #f59e0b;
    box-shadow: 0 0 0 3px #f59e0b;
    box-shadow: 0 0 0 3px var(--awp-focus);
}

.awp-button[aria-checked="true"] {
    background: #1a365d;
    background: var(--awp-primary);
    color: #ffffff;
    color: var(--awp-white);
    border-color: #1a365d;
    border-color: var(--awp-primary);
}

.awp-button[aria-checked="true"] .awp-button-icon {
    color: #ffffff;
    color: var(--awp-white);
}

.awp-button[aria-checked="true"] .awp-button-text,
.awp-button[aria-checked="true"] .awp-button-label {
    color: #ffffff;
    color: var(--awp-white);
}

.awp-button-icon {
    font-size: 22px;
    line-height: 1;
    color: #1a365d;
    color: var(--awp-primary);
}

.awp-button-text,
.awp-button-label {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
}

/* ==========================================================================
   FONT SIZE CONTROL
   ========================================================================== */

.awp-slider-group {
    background: #f8fafc;
    background: var(--awp-secondary);
    -webkit-border-radius: 8px;
    border-radius: 8px;
    border-radius: var(--awp-radius);
    padding: 12px;
}

.awp-slider-labels {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 8px;
}

.awp-slider-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    background: var(--awp-secondary);
    -webkit-border-radius: 8px;
    border-radius: 8px;
    border-radius: var(--awp-radius);
}

.awp-slider-container > * {
    margin-right: 12px;
}

.awp-slider-container > *:last-child {
    margin-right: 0;
}

@supports (gap: 12px) {
    .awp-slider-container {
        gap: 12px;
    }
    
    .awp-slider-container > * {
        margin-right: 0;
    }
}

.awp-slider-label {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    color: var(--awp-text);
    white-space: nowrap;
}

.awp-slider {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #e2e8f0;
    background: var(--awp-border);
    -webkit-border-radius: 3px;
    border-radius: 3px;
    cursor: pointer;
}

.awp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #1a365d;
    background: var(--awp-primary);
    -webkit-border-radius: 50%;
    border-radius: 50%;
    cursor: -webkit-grab;
    cursor: grab;
    border: none;
}

.awp-slider::-webkit-slider-thumb:active {
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

.awp-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #1a365d;
    background: var(--awp-primary);
    border: none;
    border-radius: 50%;
    cursor: grab;
}

.awp-slider::-moz-range-thumb:active {
    cursor: grabbing;
}

.awp-slider::-ms-thumb {
    width: 18px;
    height: 18px;
    background: #1a365d;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.awp-slider::-ms-track {
    height: 6px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.awp-slider::-ms-fill-lower {
    background: #1a365d;
    border-radius: 3px;
}

.awp-slider::-ms-fill-upper {
    background: #e2e8f0;
    border-radius: 3px;
}

.awp-slider-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a365d;
    color: var(--awp-primary);
    min-width: 45px;
    text-align: right;
}

/* ==========================================================================
   RESET CONTAINER
   ========================================================================== */

.awp-reset-container {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    border-top: 1px solid var(--awp-border);
}

.awp-reset-container .awp-reset-button {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    background: #f1f5f9;
    color: #1e293b;
    color: var(--awp-text);
    border: 1px solid #e2e8f0;
    border: 1px solid var(--awp-border);
    -webkit-border-radius: 8px;
    border-radius: 8px;
    border-radius: var(--awp-radius);
    cursor: pointer;
    -webkit-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
    transition: all var(--awp-transition);
}

.awp-reset-container .awp-reset-button:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.awp-reset-container .awp-reset-button:focus {
    outline: none;
    -webkit-box-shadow: 0 0 0 3px #f59e0b;
    box-shadow: 0 0 0 3px #f59e0b;
    box-shadow: 0 0 0 3px var(--awp-focus);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.awp-footer {
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    border-top: 1px solid var(--awp-border);
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    background: #f8fafc;
    background: var(--awp-secondary);
    -webkit-border-radius: 0 0 12px 12px;
    border-radius: 0 0 12px 12px;
    border-radius: 0 0 var(--awp-radius-lg) var(--awp-radius-lg);
}

.awp-footer-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.awp-footer-actions > * {
    margin-right: 8px;
}

.awp-footer-actions > *:last-child {
    margin-right: 0;
}

@supports (gap: 8px) {
    .awp-footer-actions {
        gap: 8px;
    }
    
    .awp-footer-actions > * {
        margin-right: 0;
    }
}

.awp-footer-btn {
    font-size: 12px;
    color: #64748b;
    color: var(--awp-text-light);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
}

.awp-footer-btn:hover {
    color: #1a365d;
    color: var(--awp-primary);
    background: rgba(26, 54, 93, 0.08);
}

.awp-footer-btn:focus {
    outline: 2px solid #f59e0b;
    outline: 2px solid var(--awp-focus);
    outline-offset: 2px;
}

.awp-separator {
    color: #cbd5e1;
    font-size: 12px;
}

.awp-reset-button {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    border-radius: var(--awp-radius);
    cursor: pointer;
    -webkit-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
    transition: all var(--awp-transition);
    text-align: center;
}

.awp-reset-button.primary {
    background: #1a365d;
    background: var(--awp-primary);
    color: #ffffff;
    color: var(--awp-white);
    border: none;
}

.awp-reset-button.primary:hover {
    background: #2d4a7c;
    background: var(--awp-primary-hover);
}

.awp-reset-button.secondary {
    background: transparent;
    color: #1e293b;
    color: var(--awp-text);
    border: 1px solid #e2e8f0;
    border: 1px solid var(--awp-border);
}

.awp-reset-button.secondary:hover {
    background: #f8fafc;
    background: var(--awp-secondary);
}

.awp-reset-button:focus {
    outline: none;
    -webkit-box-shadow: 0 0 0 3px #f59e0b;
    box-shadow: 0 0 0 3px #f59e0b;
    box-shadow: 0 0 0 3px var(--awp-focus);
}

/* Links */
.awp-links {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    border-top: 1px solid var(--awp-border);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.awp-links > * {
    margin-right: 16px;
    margin-bottom: 4px;
}

.awp-links > *:last-child {
    margin-right: 0;
}

@supports (gap: 16px) {
    .awp-links {
        gap: 16px;
    }
    
    .awp-links > * {
        margin-right: 0;
        margin-bottom: 0;
    }
}

.awp-link {
    font-size: 12px;
    color: #64748b;
    color: var(--awp-text-light);
    text-decoration: none;
}

.awp-link:hover {
    color: #1a365d;
    color: var(--awp-primary);
    text-decoration: underline;
}

/* ==========================================================================
   COPYRIGHT - ZENTRIERT
   ========================================================================== */

.awp-copyright {
    margin-top: 12px;
    padding-top: 8px;
    font-size: 11px;
    color: #94a3b8;
    /* ZENTRIERTES COPYRIGHT */
    text-align: center !important;
    display: block;
    width: 100%;
}

.awp-copyright a {
    color: inherit;
    text-decoration: none;
    -webkit-transition: color 200ms ease;
    -o-transition: color 200ms ease;
    transition: color 200ms ease;
}

.awp-copyright a:hover {
    color: #1a365d;
    color: var(--awp-primary);
    text-decoration: underline;
}

/* ==========================================================================
   READING GUIDE
   ========================================================================== */

.awp-reading-guide {
    position: fixed;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(255, 235, 59, 0.3);
    border-top: 2px solid rgba(255, 235, 59, 0.8);
    border-bottom: 2px solid rgba(255, 235, 59, 0.8);
    pointer-events: none;
    z-index: 2147483647;
    z-index: var(--awp-z-overlay);
}

.awp-reading-guide[hidden] {
    display: none;
}

/* ==========================================================================
   STRUCTURE OVERLAY
   ========================================================================== */

.awp-structure-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2147483647;
    z-index: var(--awp-z-overlay);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
}

.awp-structure-overlay[hidden] {
    display: none;
}

.awp-structure-panel {
    background: #ffffff;
    background: var(--awp-white);
    -webkit-border-radius: 12px;
    border-radius: 12px;
    border-radius: var(--awp-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    box-shadow: var(--awp-shadow);
    overflow: hidden;
}

.awp-structure-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    border-bottom: 1px solid var(--awp-border);
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.awp-structure-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    color: var(--awp-text);
}

.awp-structure-close {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    color: #64748b;
    color: var(--awp-text-light);
    border: none;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    -webkit-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
}

.awp-structure-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.awp-structure-close:focus {
    outline: 2px solid #f59e0b;
    outline: 2px solid var(--awp-focus);
    outline-offset: 2px;
}

.awp-structure-content {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px 20px;
}

.awp-structure-content a {
    display: block;
    padding: 10px 12px;
    margin-bottom: 4px;
    color: #1e293b;
    color: var(--awp-text);
    text-decoration: none;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    -webkit-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
    font-size: 14px;
}

.awp-structure-content a:hover {
    background: #f1f5f9;
}

.awp-structure-content a:focus {
    outline: 2px solid #f59e0b;
    outline: 2px solid var(--awp-focus);
    outline-offset: 2px;
}

.awp-structure-content a[data-level="1"] { padding-left: 12px; font-weight: 600; }
.awp-structure-content a[data-level="2"] { padding-left: 24px; }
.awp-structure-content a[data-level="3"] { padding-left: 36px; font-size: 13px; }
.awp-structure-content a[data-level="4"] { padding-left: 48px; font-size: 13px; color: #64748b; }
.awp-structure-content a[data-level="5"] { padding-left: 60px; font-size: 12px; color: #64748b; }
.awp-structure-content a[data-level="6"] { padding-left: 72px; font-size: 12px; color: #94a3b8; }

/* ==========================================================================
   ACCESSIBILITY FEATURES (Body Classes)
   ==========================================================================
   
   v3.3.0 BUGFIX: Filter werden auf html-Element angewendet statt auf alle 
   Kinder-Elemente (*). Dies verhindert das "Filter-Stacking" Problem, bei dem
   verschachtelte Elemente mehrfach gefiltert werden (Eltern invertiert + 
   Kind invertiert = Kind erscheint wieder normal).
   
   Das Widget wird mit einem Counter-Filter ausgeschlossen.
   ========================================================================== */

/* --- FILTER-BASIERTE FEATURES (auf html-Element) --- */

/* Graustufen */
html.awp-filter-grayscale {
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
}

/* Hoher Kontrast */
html.awp-filter-high-contrast {
    -webkit-filter: contrast(1.5);
    filter: contrast(1.5);
}

/* Farben invertieren - BUGFIX v3.3.0 */
html.awp-filter-invert {
    -webkit-filter: invert(1) hue-rotate(180deg);
    filter: invert(1) hue-rotate(180deg);
}

/* Geringe Sättigung */
html.awp-filter-low-saturation {
    -webkit-filter: saturate(0.5);
    filter: saturate(0.5);
}

/* Hohe Sättigung */
html.awp-filter-high-saturation {
    -webkit-filter: saturate(1.5);
    filter: saturate(1.5);
}

/* Widget vom Filter ausschließen (Counter-Filter) */
html.awp-filter-grayscale .awp-widget-container,
html.awp-filter-high-contrast .awp-widget-container,
html.awp-filter-invert .awp-widget-container,
html.awp-filter-low-saturation .awp-widget-container,
html.awp-filter-high-saturation .awp-widget-container {
    -webkit-filter: none;
    filter: none;
}

/* Spezieller Counter-Filter für Invert (damit Widget normal aussieht) */
html.awp-filter-invert .awp-widget-container {
    -webkit-filter: invert(1) hue-rotate(180deg);
    filter: invert(1) hue-rotate(180deg);
}

/* --- NICHT-FILTER FEATURES (auf body mit Kindern) --- */

/* Dunkler Kontrast (kein Filter, Farbänderung) */
body.awp-dark-contrast {
    background-color: #000 !important;
}

body.awp-dark-contrast *:not(.awp-widget-container):not(.awp-widget-container *) {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

/* Heller Kontrast (kein Filter, Farbänderung) */
body.awp-light-contrast {
    background-color: #fff !important;
}

body.awp-light-contrast *:not(.awp-widget-container):not(.awp-widget-container *) {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
}

/* --- ABWÄRTSKOMPATIBILITÄT: Alte body-Klassen (für bestehende Installationen) --- */
body.awp-grayscale { /* Fallback - wird von JS zu html.awp-filter-grayscale migriert */ }
body.awp-high-contrast { /* Fallback */ }
body.awp-invert { /* Fallback */ }
body.awp-low-saturation { /* Fallback */ }
body.awp-high-saturation { /* Fallback */ }

body.awp-readable-font *:not(.awp-widget-container):not(.awp-widget-container *) {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* ==========================================================================
   LEGASTHENIE-SCHRIFT (dyslexia-font) - v3.6.5 ROBUST FIX
   ==========================================================================
   
   PROBLEM v3.6.4: 
   - Komplexe :not() Ketten sind nicht browser-kompatibel (CSS Level 4)
   - CDN-URLs können blockiert sein
   
   LÖSUNG v3.6.5:
   - Fonts lokal im Plugin (assets/fonts/)
   - Einfache Hauptregel auf * anwenden  
   - Icons mit HÖHERER SPEZIFITÄT (html body.awp-dyslexia-font) zurücksetzen
   - Reihenfolge: Erst generell, dann spezifisch (Cascade-Prinzip)
   
   Cross-Browser: Chrome, Firefox, Safari, Edge, IE11
   Cross-Platform: Desktop, iOS, Android
   ========================================================================== */

/* SCHRITT 1: Legasthenie-Schrift auf ALLES anwenden (außer Widget) */
body.awp-dyslexia-font *:not(.awp-widget-container):not(.awp-widget-container *) {
    font-family: "OpenDyslexic", "Comic Sans MS", Arial, sans-serif !important;
    letter-spacing: 0.05em !important;
    word-spacing: 0.1em !important;
}

/* SCHRITT 2: Icon-Fonts mit HÖHERER SPEZIFITÄT zurücksetzen */
/* WordPress Dashicons - KRITISCH für andere Plugins */
html body.awp-dyslexia-font .dashicons,
html body.awp-dyslexia-font .dashicons-before,
html body.awp-dyslexia-font [class*="dashicons-"],
html body.awp-dyslexia-font .dashicons::before,
html body.awp-dyslexia-font .dashicons-before::before,
html body.awp-dyslexia-font [class*="dashicons-"]::before {
    font-family: dashicons !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* Font Awesome 4/5/6 */
html body.awp-dyslexia-font .fa,
html body.awp-dyslexia-font .fab,
html body.awp-dyslexia-font .fas,
html body.awp-dyslexia-font .far,
html body.awp-dyslexia-font .fal,
html body.awp-dyslexia-font .fad,
html body.awp-dyslexia-font .fa-solid,
html body.awp-dyslexia-font .fa-regular,
html body.awp-dyslexia-font .fa-brands,
html body.awp-dyslexia-font [class*="fa-"],
html body.awp-dyslexia-font .fa::before,
html body.awp-dyslexia-font .fab::before,
html body.awp-dyslexia-font .fas::before,
html body.awp-dyslexia-font .far::before,
html body.awp-dyslexia-font .fal::before,
html body.awp-dyslexia-font .fad::before,
html body.awp-dyslexia-font [class*="fa-"]::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro", "Font Awesome 5 Brands", "FontAwesome" !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* WordPress Admin Bar Icons */
html body.awp-dyslexia-font #wpadminbar *,
html body.awp-dyslexia-font #wpadminbar *::before,
html body.awp-dyslexia-font #wpadminbar *::after {
    font-family: dashicons, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* Genericons (WordPress Themes) */
html body.awp-dyslexia-font .genericon,
html body.awp-dyslexia-font .genericon::before,
html body.awp-dyslexia-font [class*="genericon-"],
html body.awp-dyslexia-font [class*="genericon-"]::before {
    font-family: Genericons !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* Material Icons (Google) */
html body.awp-dyslexia-font .material-icons,
html body.awp-dyslexia-font .material-icons-outlined,
html body.awp-dyslexia-font .material-icons-round,
html body.awp-dyslexia-font .material-icons-sharp,
html body.awp-dyslexia-font .material-icons-two-tone,
html body.awp-dyslexia-font [class*="material-icons"] {
    font-family: 'Material Icons', 'Material Icons Outlined', 'Material Icons Round', 'Material Icons Sharp', 'Material Icons Two Tone' !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* Glyphicons (Bootstrap 3) */
html body.awp-dyslexia-font .glyphicon,
html body.awp-dyslexia-font .glyphicon::before,
html body.awp-dyslexia-font [class*="glyphicon-"],
html body.awp-dyslexia-font [class*="glyphicon-"]::before {
    font-family: 'Glyphicons Halflings' !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* IcoMoon und generische Icon-Klassen */
html body.awp-dyslexia-font [class^="icon-"],
html body.awp-dyslexia-font [class*=" icon-"],
html body.awp-dyslexia-font [class^="icon-"]::before,
html body.awp-dyslexia-font [class*=" icon-"]::before {
    font-family: icomoon, 'IcoMoon-Free' !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* Elementor Icons */
html body.awp-dyslexia-font .eicon,
html body.awp-dyslexia-font [class*="eicon-"],
html body.awp-dyslexia-font .eicon::before,
html body.awp-dyslexia-font [class*="eicon-"]::before {
    font-family: eicons !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* WooCommerce Icons */
html body.awp-dyslexia-font .woocommerce-Price-currencySymbol,
html body.awp-dyslexia-font [class*="woocommerce-"]::before {
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* Generischer Icon-Schutz: i und span mit Icon-typischen Klassen */
html body.awp-dyslexia-font i[class*="icon"],
html body.awp-dyslexia-font span[class*="icon"],
html body.awp-dyslexia-font i[class*="Icon"],
html body.awp-dyslexia-font span[class*="Icon"] {
    font-family: inherit !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

body.awp-line-height *:not(.awp-widget-container):not(.awp-widget-container *) {
    line-height: 2 !important;
}

body.awp-letter-spacing *:not(.awp-widget-container):not(.awp-widget-container *) {
    letter-spacing: 0.12em !important;
}

body.awp-word-spacing *:not(.awp-widget-container):not(.awp-widget-container *) {
    word-spacing: 0.25em !important;
}

body.awp-text-align *:not(.awp-widget-container):not(.awp-widget-container *) {
    text-align: left !important;
}

/* ==========================================================================
   HIGHLIGHT LINKS - Cross-Browser Fix v3.4.1
   Behebt: -webkit-text-fill-color, inherit, currentColor, gradient-text,
           fixed/sticky navigation, pseudo-elements
   Browser: Chrome, Firefox, Safari, Edge, IE11
   ========================================================================== */

body.awp-highlight-links a:not(.awp-widget-container a):not(.cc-banner a) {
    /* Hintergrund - gelb für beste Sichtbarkeit */
    background-color: #fef08a !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    
    /* Textfarbe - KRITISCH: alle Methoden überschreiben */
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    -moz-text-fill-color: #000000 !important;
    
    /* Sichtbarkeit sicherstellen */
    opacity: 1 !important;
    visibility: visible !important;
    
    /* Padding für bessere Lesbarkeit */
    padding: 2px 4px !important;
    
    /* Unterstreichung - klar definiert */
    text-decoration: underline !important;
    -webkit-text-decoration: underline !important;
    text-decoration-color: #000000 !important;
    -webkit-text-decoration-color: #000000 !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 2px !important;
    
    /* Outline für zusätzliche Hervorhebung bei problematischen Themes */
    outline: 2px solid #ca8a04 !important;
    outline-offset: 0 !important;
    
    /* Border-Radius für abgerundete Ecken */
    -webkit-border-radius: 2px !important;
    border-radius: 2px !important;
    
    /* Box-Shadow entfernen falls vorhanden */
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    
    /* Text-Shadow entfernen */
    text-shadow: none !important;
    
    /* Filter zurücksetzen */
    -webkit-filter: none !important;
    filter: none !important;
    
    /* Mix-blend-mode zurücksetzen */
    mix-blend-mode: normal !important;
    
    /* Position für z-index */
    position: relative !important;
    z-index: 1 !important;
    
    /* Display sicherstellen - inline-block für padding */
    display: inline !important;
    
    /* Transition deaktivieren für sofortige Anwendung */
    -webkit-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

/* Pseudo-Elemente für Links zurücksetzen */
body.awp-highlight-links a:not(.awp-widget-container a):not(.cc-banner a)::before,
body.awp-highlight-links a:not(.awp-widget-container a):not(.cc-banner a)::after {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hover/Focus-States konsistent halten */
body.awp-highlight-links a:not(.awp-widget-container a):not(.cc-banner a):hover,
body.awp-highlight-links a:not(.awp-widget-container a):not(.cc-banner a):focus,
body.awp-highlight-links a:not(.awp-widget-container a):not(.cc-banner a):active,
body.awp-highlight-links a:not(.awp-widget-container a):not(.cc-banner a):visited {
    background-color: #fef08a !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    outline: 2px solid #ca8a04 !important;
}

/* Kinder-Elemente innerhalb von Links (spans, strong, em, etc.) */
body.awp-highlight-links a:not(.awp-widget-container a):not(.cc-banner a) *,
body.awp-highlight-links a:not(.awp-widget-container a):not(.cc-banner a) span,
body.awp-highlight-links a:not(.awp-widget-container a):not(.cc-banner a) strong,
body.awp-highlight-links a:not(.awp-widget-container a):not(.cc-banner a) em,
body.awp-highlight-links a:not(.awp-widget-container a):not(.cc-banner a) b,
body.awp-highlight-links a:not(.awp-widget-container a):not(.cc-banner a) i {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    background: transparent !important;
}

body.awp-highlight-headings h1:not(.awp-widget-container h1),
body.awp-highlight-headings h2:not(.awp-widget-container h2),
body.awp-highlight-headings h3:not(.awp-widget-container h3),
body.awp-highlight-headings h4:not(.awp-widget-container h4),
body.awp-highlight-headings h5:not(.awp-widget-container h5),
body.awp-highlight-headings h6:not(.awp-widget-container h6) {
    background-color: #dbeafe !important;
    padding: 8px 12px !important;
    border-left: 4px solid #2563eb !important;
}

body.awp-big-cursor *:not(.awp-widget-container):not(.awp-widget-container *) {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1' d='M5 2l14 14-6 1-3 6-2-8-3-13z'/%3E%3C/svg%3E"), auto !important;
}

body.awp-focus-highlight *:not(.awp-widget-container *):focus {
    outline: 4px solid #f59e0b !important;
    outline: 4px solid var(--awp-focus) !important;
    outline-offset: 4px !important;
}

/* Hide Images - Bilder und Hintergrundbilder ausblenden */
body.awp-hide-images img:not(.awp-widget-container img) {
    visibility: hidden !important;
}

/* Hintergrundbilder auf allen Elementen entfernen */
body.awp-hide-images *:not(.awp-widget-container):not(.awp-widget-container *) {
    background-image: none !important;
}

/* Pseudo-Elemente (häufig für Hintergrundbilder genutzt) */
body.awp-hide-images *:not(.awp-widget-container):not(.awp-widget-container *)::before,
body.awp-hide-images *:not(.awp-widget-container):not(.awp-widget-container *)::after {
    background-image: none !important;
}

/* SVG-Bilder ausblenden */
body.awp-hide-images svg:not(.awp-widget-container svg) {
    visibility: hidden !important;
}

/* Picture-Element (responsive Images) */
body.awp-hide-images picture:not(.awp-widget-container picture) {
    visibility: hidden !important;
}

/* ==========================================================================
   VIDEO-ELEMENTE AUSBLENDEN (Hintergrund-Videos, Inline-Videos)
   ========================================================================== */

/* Video-Elemente vollständig ausblenden */
body.awp-hide-images video:not(.awp-widget-container video) {
    visibility: hidden !important;
    background-image: none !important;
}

/* Video-Container (häufig für Hintergrund-Videos) */
body.awp-hide-images [class*="video-background"]:not(.awp-widget-container *),
body.awp-hide-images [class*="video-bg"]:not(.awp-widget-container *),
body.awp-hide-images [class*="bg-video"]:not(.awp-widget-container *),
body.awp-hide-images [class*="background-video"]:not(.awp-widget-container *),
body.awp-hide-images [class*="hero-video"]:not(.awp-widget-container *),
body.awp-hide-images [class*="fullscreen-video"]:not(.awp-widget-container *),
body.awp-hide-images [data-video-background]:not(.awp-widget-container *) {
    visibility: hidden !important;
}

/* WordPress Video-Blöcke */
body.awp-hide-images .wp-block-video:not(.awp-widget-container *) video,
body.awp-hide-images .wp-block-cover__video-background:not(.awp-widget-container *),
body.awp-hide-images .wp-block-media-text video:not(.awp-widget-container video) {
    visibility: hidden !important;
}

/* Elementor Video-Widgets */
body.awp-hide-images .elementor-video:not(.awp-widget-container *),
body.awp-hide-images .elementor-video-iframe:not(.awp-widget-container *),
body.awp-hide-images .elementor-background-video-container:not(.awp-widget-container *),
body.awp-hide-images .elementor-background-video-hosted:not(.awp-widget-container *) {
    visibility: hidden !important;
}

/* WPBakery/Visual Composer Video-Hintergründe */
body.awp-hide-images .vc_video-bg:not(.awp-widget-container *),
body.awp-hide-images .wpb_video_widget:not(.awp-widget-container *) {
    visibility: hidden !important;
}

/* Divi Video-Module */
body.awp-hide-images .et_pb_video:not(.awp-widget-container *),
body.awp-hide-images .et_pb_video_box:not(.awp-widget-container *),
body.awp-hide-images .et_pb_section_video_bg:not(.awp-widget-container *) {
    visibility: hidden !important;
}

/* iFrames (YouTube, Vimeo Embeds) */
body.awp-hide-images iframe[src*="youtube"]:not(.awp-widget-container iframe),
body.awp-hide-images iframe[src*="vimeo"]:not(.awp-widget-container iframe),
body.awp-hide-images iframe[src*="dailymotion"]:not(.awp-widget-container iframe),
body.awp-hide-images iframe[src*="wistia"]:not(.awp-widget-container iframe),
body.awp-hide-images .wp-block-embed-youtube:not(.awp-widget-container *),
body.awp-hide-images .wp-block-embed-vimeo:not(.awp-widget-container *) {
    visibility: hidden !important;
}

/* Figure-Elemente mit Bildern */
body.awp-hide-images figure:not(.awp-widget-container figure) img,
body.awp-hide-images figure:not(.awp-widget-container figure) picture,
body.awp-hide-images figure:not(.awp-widget-container figure) svg {
    visibility: hidden !important;
}

/* Canvas-Elemente (können Bilder enthalten) */
body.awp-hide-images canvas:not(.awp-widget-container canvas) {
    visibility: hidden !important;
}

/* Object/Embed für eingebettete Bilder */
body.awp-hide-images object[type*="image"]:not(.awp-widget-container object),
body.awp-hide-images embed[type*="image"]:not(.awp-widget-container embed) {
    visibility: hidden !important;
}

/* ==========================================================================
   FONT SIZE SCALING
   ========================================================================== */

:root {
    --awp-font-scale: 1;
}

body[class*="awp-font-"] p:not(.awp-widget-container p),
body[class*="awp-font-"] h1:not(.awp-widget-container h1),
body[class*="awp-font-"] h2:not(.awp-widget-container h2),
body[class*="awp-font-"] h3:not(.awp-widget-container h3),
body[class*="awp-font-"] h4:not(.awp-widget-container h4),
body[class*="awp-font-"] h5:not(.awp-widget-container h5),
body[class*="awp-font-"] h6:not(.awp-widget-container h6),
body[class*="awp-font-"] span:not(.awp-widget-container span),
body[class*="awp-font-"] a:not(.awp-widget-container a),
body[class*="awp-font-"] li:not(.awp-widget-container li),
body[class*="awp-font-"] td:not(.awp-widget-container td),
body[class*="awp-font-"] th:not(.awp-widget-container th),
body[class*="awp-font-"] label:not(.awp-widget-container label) {
    font-size: -webkit-calc(1em * var(--awp-font-scale)) !important;
    font-size: calc(1em * var(--awp-font-scale)) !important;
}

body.awp-font-100 { --awp-font-scale: 1.00; }
body.awp-font-105 { --awp-font-scale: 1.05; }
body.awp-font-110 { --awp-font-scale: 1.10; }
body.awp-font-115 { --awp-font-scale: 1.15; }
body.awp-font-120 { --awp-font-scale: 1.20; }
body.awp-font-125 { --awp-font-scale: 1.25; }
body.awp-font-130 { --awp-font-scale: 1.30; }
body.awp-font-135 { --awp-font-scale: 1.35; }
body.awp-font-140 { --awp-font-scale: 1.40; }
body.awp-font-145 { --awp-font-scale: 1.45; }
body.awp-font-150 { --awp-font-scale: 1.50; }
body.awp-font-155 { --awp-font-scale: 1.55; }
body.awp-font-160 { --awp-font-scale: 1.60; }
body.awp-font-165 { --awp-font-scale: 1.65; }
body.awp-font-170 { --awp-font-scale: 1.70; }
body.awp-font-175 { --awp-font-scale: 1.75; }
body.awp-font-180 { --awp-font-scale: 1.80; }
body.awp-font-185 { --awp-font-scale: 1.85; }
body.awp-font-190 { --awp-font-scale: 1.90; }
body.awp-font-195 { --awp-font-scale: 1.95; }
body.awp-font-200 { --awp-font-scale: 2.00; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .awp-widget {
        bottom: 90px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        max-width: none !important;
    }
    
    .awp-widget-container.awp-right .awp-widget,
    .awp-widget-container.awp-left .awp-widget {
        bottom: 90px !important;
        left: 16px !important;
        right: 16px !important;
    }
}

/* ==========================================================================
   MOBILE - Synchronisiert mit CookieConsent bei 640px
   ========================================================================== */
@media (max-width: 640px) {
    .awp-widget {
        left: 12px !important;
        right: 12px !important;
        bottom: 70px !important;
    }
    
    /* WCAG 2.2.2: Minimum Touch-Target bleibt 44x44px auch auf Mobile */
    .awp-toggle {
        width: 44px !important;
        height: 44px !important;
        /* Mobile: Standalone-Position am linken Rand */
        left: 12px !important;
        right: auto !important;
        bottom: 12px !important;
    }
    
    .awp-toggle-icon {
        width: 20px !important;
        height: 20px !important;
        font-size: 20px !important;
        line-height: 20px !important;
    }
    
    .awp-widget-container.awp-right .awp-toggle,
    .awp-widget-container.awp-left .awp-toggle {
        left: 12px !important;
        right: auto !important;
        bottom: 12px !important;
    }

    /* Mobile: Offset wenn CookieConsent aktiv */
    /* Berechnung: 12px (CC-Position) + 44px (CC-Breite) + 8px Gap = 64px */
    body.awp-has-cc .awp-toggle,
    body.awp-has-cc .awp-widget-container.awp-right .awp-toggle,
    body.awp-has-cc .awp-widget-container.awp-left .awp-toggle {
        left: 64px !important;
    }
    
    .awp-footer-actions {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    
    /* Buttons bleiben einspaltig auf allen Bildschirmgrößen */
    .awp-buttons-grid,
    .awp-button-grid {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
    
    .awp-button {
        padding: 12px 14px;
        min-height: 48px;
    }
    
    .awp-button-text,
    .awp-button-label {
        font-size: 14px;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .awp-toggle,
    .awp-button,
    .awp-close,
    .awp-reset-button,
    .awp-slider::-webkit-slider-thumb,
    .awp-slider::-moz-range-thumb {
        -webkit-transition: none !important;
        -o-transition: none !important;
        transition: none !important;
    }
    
    .awp-toggle:hover {
        -webkit-transform: none !important;
        -ms-transform: none !important;
        transform: none !important;
    }
}

/* ==========================================================================
   HIGH CONTRAST MODE
   ========================================================================== */

@media (prefers-contrast: high) {
    .awp-widget {
        border: 3px solid #000000;
    }
    
    .awp-button {
        border-width: 3px;
    }
    
    .awp-toggle {
        border: 3px solid #ffffff;
    }
}

/* ==========================================================================
   FORCED COLORS (Windows High Contrast)
   ========================================================================== */

@media (forced-colors: active) {
    .awp-toggle,
    .awp-button,
    .awp-reset-button,
    .awp-close {
        border: 2px solid ButtonText;
        forced-color-adjust: none;
    }
    
    .awp-toggle:focus,
    .awp-button:focus,
    .awp-reset-button:focus,
    .awp-close:focus {
        outline: 3px solid Highlight;
    }
    
    .awp-button[aria-checked="true"] {
        background: Highlight;
        color: HighlightText;
    }
}

/* ==========================================================================
   STOP ANIMATIONS - WCAG 2.2.2 Pause, Stop, Hide (v3.6.0)
   ==========================================================================
   
   Robuste Implementation die keine Theme-Konflikte verursacht:
   - Verwendet nur animation und transition Overrides
   - Widget-Container wird ausgeschlossen
   - Keine Änderungen an Layout oder anderen Eigenschaften
   - Cross-Browser kompatibel (Chrome, Firefox, Safari, Edge, IE11)
   - prefers-reduced-motion wird respektiert
   ========================================================================== */

/* Manuelle Aktivierung durch Benutzer */
body.awp-stop-animations *:not(.awp-widget-container):not(.awp-widget-container *),
body.awp-stop-animations *:not(.awp-widget-container):not(.awp-widget-container *)::before,
body.awp-stop-animations *:not(.awp-widget-container):not(.awp-widget-container *)::after {
    /* Animationen stoppen - setze auf Endzustand mit 0.001ms Dauer */
    -webkit-animation-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    -webkit-animation-delay: 0s !important;
    animation-delay: 0s !important;
    -webkit-animation-play-state: paused !important;
    animation-play-state: paused !important;
    
    /* Transitions deaktivieren */
    -webkit-transition-duration: 0.001ms !important;
    -o-transition-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    -webkit-transition-delay: 0s !important;
    -o-transition-delay: 0s !important;
    transition-delay: 0s !important;
    
    /* Scroll-Verhalten auf instant setzen */
    scroll-behavior: auto !important;
}

/* Parallax-Effekte deaktivieren */
body.awp-stop-animations [data-parallax]:not(.awp-widget-container *),
body.awp-stop-animations .parallax:not(.awp-widget-container *),
body.awp-stop-animations .has-parallax:not(.awp-widget-container *),
body.awp-stop-animations [style*="background-attachment: fixed"]:not(.awp-widget-container *) {
    background-attachment: scroll !important;
}

/* Marquee und Auto-Scroll stoppen */
body.awp-stop-animations marquee:not(.awp-widget-container marquee) {
    -webkit-animation: none !important;
    animation: none !important;
    overflow: visible !important;
}

/* SVG Animationen stoppen */
body.awp-stop-animations svg:not(.awp-widget-container svg) animate,
body.awp-stop-animations svg:not(.awp-widget-container svg) animateTransform,
body.awp-stop-animations svg:not(.awp-widget-container svg) animateMotion,
body.awp-stop-animations svg:not(.awp-widget-container svg) set {
    -webkit-animation: none !important;
    animation: none !important;
}

/* Canvas Animationen stoppen (visueller Hint) */
body.awp-stop-animations canvas:not(.awp-widget-container canvas) {
    -webkit-animation: none !important;
    animation: none !important;
}

/* Lottie Player Container */
body.awp-stop-animations lottie-player:not(.awp-widget-container lottie-player),
body.awp-stop-animations dotlottie-player:not(.awp-widget-container dotlottie-player) {
    -webkit-animation: none !important;
    animation: none !important;
}

/* Carousel/Slider Auto-Play visueller Hint */
body.awp-stop-animations .slick-slider:not(.awp-widget-container *),
body.awp-stop-animations .swiper:not(.awp-widget-container *),
body.awp-stop-animations .owl-carousel:not(.awp-widget-container *),
body.awp-stop-animations .flickity-slider:not(.awp-widget-container *) {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

/* GIF Animationen - ersetzt durch erstes Frame via JS */
body.awp-stop-animations img[data-awp-gif-stopped]:not(.awp-widget-container img) {
    /* Platzhalter für gestoppte GIFs */
}

/* Elementor Animationen */
body.awp-stop-animations .elementor-invisible:not(.awp-widget-container *) {
    visibility: visible !important;
    opacity: 1 !important;
}

body.awp-stop-animations [data-settings*="animation"]:not(.awp-widget-container *) {
    -webkit-animation: none !important;
    animation: none !important;
}

/* Divi Animationen */
body.awp-stop-animations .et_animated:not(.awp-widget-container *) {
    -webkit-animation: none !important;
    animation: none !important;
    opacity: 1 !important;
}

/* WPBakery Animationen */
body.awp-stop-animations .wpb_animate_when_almost_visible:not(.awp-widget-container *) {
    -webkit-animation: none !important;
    animation: none !important;
    opacity: 1 !important;
}

/* Gutenberg Animationen */
body.awp-stop-animations .wp-block-cover.has-parallax:not(.awp-widget-container *) {
    background-attachment: scroll !important;
}

/* AOS (Animate on Scroll) */
body.awp-stop-animations [data-aos]:not(.awp-widget-container *) {
    -webkit-animation: none !important;
    animation: none !important;
    opacity: 1 !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
}

/* GSAP ScrollTrigger visueller Hint */
body.awp-stop-animations [data-scroll]:not(.awp-widget-container *),
body.awp-stop-animations [data-scroll-trigger]:not(.awp-widget-container *) {
    -webkit-animation: none !important;
    animation: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
}

/* Hover-Animationen bei aktivem Stop */
body.awp-stop-animations *:not(.awp-widget-container):not(.awp-widget-container *):hover,
body.awp-stop-animations *:not(.awp-widget-container):not(.awp-widget-container *):focus {
    -webkit-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

/* Will-change zurücksetzen für Performance */
body.awp-stop-animations *:not(.awp-widget-container):not(.awp-widget-container *) {
    will-change: auto !important;
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
    .awp-widget-container,
    .awp-reading-guide,
    .awp-structure-overlay {
        display: none !important;
    }
}

/* ==========================================================================
   FEEDBACK FORM & BARRIEREFREIHEITSERKLÄRUNG
   v4.6.3: Aus inline CSS in externe Datei ausgelagert
   ========================================================================== */

:root { --awp-font-family: inherit; }

.accessibility-statement h2 { margin-top: 30px; margin-bottom: 20px; }

.awp-feedback-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 2px solid currentColor; }
.awp-feedback-section h2 { margin-bottom: 1rem; }
.awp-feedback-intro { margin-bottom: 1.5rem; }
.awp-feedback-form { max-width: 600px; }
.awp-form-group { margin-bottom: 1.25rem; }
.awp-form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.awp-required { color: #c00; }

.awp-form-input,
.awp-form-textarea {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    color: inherit;
    background-color: inherit;
    border: 2px solid currentColor;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.awp-form-input:focus,
.awp-form-textarea:focus {
    outline: 3px solid transparent;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.25);
}

.awp-form-input.awp-error,
.awp-form-textarea.awp-error { border-color: #c00; }

.awp-error-message { display: block; margin-top: 0.375rem; color: #c00; font-size: 0.875rem; min-height: 1.25rem; }
.awp-hint { display: block; margin-top: 0.375rem; opacity: 0.7; font-size: 0.875rem; }

.awp-form-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; }
.awp-form-checkbox-input { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: 0.125rem; }
.awp-form-checkbox-label { font-weight: normal; }

.awp-required-hint { margin: 1rem 0; font-size: 0.875rem; opacity: 0.8; }
.awp-recaptcha-notice { margin: 1rem 0; font-size: 0.75rem; opacity: 0.7; }
.awp-form-actions { margin-top: 1.5rem; }

.awp-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background-color: #0066cc;
    border: 2px solid #0066cc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.awp-form-submit:hover { background-color: #0052a3; border-color: #0052a3; }
.awp-form-submit:focus { outline: 3px solid transparent; box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.5); }
.awp-form-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.awp-feedback-messages { margin-bottom: 1rem; }
.awp-feedback-messages:focus { outline: none; }
.awp-message { padding: 1rem; border-radius: 4px; font-weight: 500; }
.awp-message-success { background-color: #d4edda; border: 1px solid #28a745; color: #155724; }
.awp-message-error { background-color: #f8d7da; border: 1px solid #dc3545; color: #721c24; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-contrast: high) {
    .awp-form-input,
    .awp-form-textarea,
    .awp-form-submit { border-width: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    .awp-form-input,
    .awp-form-textarea,
    .awp-form-submit { transition: none; }
}
