:root{--aw-surface:#10141a;--aw-surface-contrast:#fff;--aw-text:#e6e8ec;--aw-accent:#5aa6ff;--aw-focus:#ffb545;--aw-radius:14px}
.aw-root{position:fixed;bottom:20px;right:20px;z-index:99999}
.aw-toggle:hover{width:280px;height:80px;padding:16px;border-radius:40px;background:#000;color:#fff;right:0;bottom:20px}
.aw-root.aw-dragging{cursor:grabbing}
.aw-root.bottom-right{right:var(--aw-offset-x,16px);bottom:var(--aw-offset-y,16px)}
.aw-root.bottom-left{left:var(--aw-offset-x,16px);bottom:var(--aw-offset-y,16px)}
.aw-root.top-right{right:var(--aw-offset-x,16px);top:var(--aw-offset-y,16px)}
.aw-root.top-left{left:var(--aw-offset-x,16px);top:var(--aw-offset-y,16px)}

.aw-toggle{width:72px;height:72px;border-radius:50%;border:3px solid #fff;background:#fff;color:#000;display:flex;align-items:center;justify-content:center;box-shadow:0 0 20px #000000, 0 0 40px #000000, 0 4px 12px rgba(255,255,255,0.3);transition:all 0.3s ease;position:relative;font-family:system-ui, -apple-system, sans-serif;padding:8px;overflow:hidden}
.aw-toggle:hover{width:320px;height:80px;padding:20px;border-radius:40px;background:#fff;color:#000;position:fixed;right:0;bottom:20px;box-shadow:0 0 20px #000000, 0 0 40px #000000, 0 4px 12px rgba(255,255,255,0.3)}
.aw-toggle:active{cursor:grabbing;transform:scale(0.98)}
.aw-toggle:focus{outline:3px solid #000;outline-offset:2px}
.aw-toggle-content{display:flex;align-items:center;gap:20px;width:100%;transition:all 0.3s ease;padding-right:10px}
.aw-icon{display:flex;align-items:center;justify-content:center;transition:all 0.3s ease;flex-shrink:0;opacity:1;width:40px;height:40px}
.aw-toggle:hover .aw-icon{opacity:1}
.aw-toggle-text{font-size:16px;font-weight:700;color:#000;text-align:left;line-height:1.2;opacity:0;transition:opacity 0.3s ease;white-space:nowrap}
.aw-toggle:hover .aw-toggle-text{opacity:1}

.aw-panel{position:fixed;top:0;right:0;width:320px;max-width:min(92vw,380px);height:100vh;background:var(--aw-surface);color:var(--aw-text);border-radius:0;box-shadow:-10px 0 40px rgba(0,0,0,.5);padding:0;border:1px solid rgba(255,255,255,.1);display:none;overflow:hidden;z-index:999999}
@media (max-width: 480px) {
	.aw-panel{width:100vw;max-width:100vw;right:0;left:0}
}
.aw-panel[aria-hidden="false"]{display:block}
.aw-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px;border-bottom:1px solid rgba(255,255,255,.1);position:sticky;top:0;background:var(--aw-surface);z-index:1}
.aw-title{font:600 16px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;color:var(--aw-text)}
.aw-content{height:calc(100% - 73px);overflow-y:auto;overflow-x:hidden;padding:16px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0.3) transparent}
/* Webkit scrollbar styling for better browser support */
.aw-content::-webkit-scrollbar{width:6px}
.aw-content::-webkit-scrollbar-track{background:transparent}
.aw-content::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.3);border-radius:3px}
.aw-content::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,0.5)}

/* Fallback for browsers without scrollbar-color support */
@supports not (scrollbar-color: rgba(255,255,255,0.3) transparent) {
	.aw-content{scrollbar-width:thin}
}
.aw-section{display:grid;gap:12px;margin:16px 0}
.aw-row{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:36px;padding:6px 0;width:100%;box-sizing:border-box}
.aw-controls{display:flex;gap:6px;align-items:center;flex:1;justify-content:flex-end;min-width:0}
.aw-btn{height:32px;min-width:60px;max-width:100px;padding:0 6px;border-radius:6px;border:1px solid rgba(255,255,255,.2);background:transparent;color:var(--aw-text);font-size:11px;font-weight:500;transition:all 0.2s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aw-btn[aria-pressed="true"],.aw-btn.is-active{background:var(--aw-accent);color:#000;border-color:var(--aw-accent)}
.aw-btn:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.3)}
.aw-btn[aria-pressed="true"]:hover,.aw-btn.is-active:hover{background:var(--aw-accent);color:#000;border-color:var(--aw-accent)}
.aw-btn:focus{outline:2px solid var(--aw-focus);outline-offset:2px}
.aw-stepper{display:inline-flex;border:1px solid rgba(255,255,255,.2);border-radius:8px;overflow:hidden;background:rgba(255,255,255,.05);align-items:center;justify-content:center}
.aw-stepper button{height:32px;width:32px;background:transparent;color:var(--aw-text);border:0;border-right:1px solid rgba(255,255,255,.2);font-size:12px;font-weight:600;transition:all 0.2s ease;display:flex;align-items:center;justify-content:center;text-align:center}
.aw-stepper button:hover{background:rgba(255,255,255,.1)}
.aw-stepper button:last-child{border-right:0}
.aw-select{
	height:32px;
	padding:0 6px;
	border:1px solid rgba(255,255,255,.2);
	border-radius:6px;
	background:rgba(255,255,255,.1);
	color:var(--aw-text);
	font-size:11px;
	min-width:90px;
	max-width:120px;
	flex-shrink:1;
}

/* Dropdown-Optionen - ALLE ZUSTÄNDE mit gutem Kontrast */
.aw-select option{
	background:#1a1a1a !important;
	color:#ffffff !important;
	padding:8px 12px !important;
	font-size:12px !important;
}

/* Hover-Zustand für Optionen */
.aw-select option:hover{
	background:#3a3a3a !important;
	color:#ffffff !important;
}

/* Selected-Zustand für Optionen */
.aw-select option:checked{
	background:#5aa6ff !important;
	color:#000000 !important;
	font-weight:600 !important;
}

/* Focus-Zustand für Optionen */
.aw-select option:focus{
	background:#4a4a4a !important;
	color:#ffffff !important;
	outline:2px solid var(--aw-focus) !important;
}

/* Dropdown-Liste selbst */
.aw-select:focus{
	outline:2px solid var(--aw-focus);
	outline-offset:2px;
	background:rgba(255,255,255,.15);
}

/* Browser-spezifische Dropdown-Verbesserungen */
.aw-select option::-moz-focus-inner{
	background:#3a3a3a !important;
	color:#ffffff !important;
}

/* Webkit-Browser (Chrome, Safari, Edge) */
.aw-select option::-webkit-scrollbar{
	width:8px;
}
.aw-select option::-webkit-scrollbar-track{
	background:#1a1a1a;
}
.aw-select option::-webkit-scrollbar-thumb{
	background:#4a4a4a;
	border-radius:4px;
}
.aw-select option::-webkit-scrollbar-thumb:hover{
	background:#5a5a5a;
}

/* Zusätzliche Kontrast-Verbesserungen */
.aw-select option[selected]{
	background:#5aa6ff !important;
	color:#000000 !important;
	font-weight:600 !important;
}

.aw-select option[value]:hover{
	background:#3a3a3a !important;
	color:#ffffff !important;
}
.aw-row label{font-size:13px;font-weight:500;color:var(--aw-text);min-width:130px;max-width:130px;text-align:left;flex-shrink:0}
.aw-section-title{font-size:12px;font-weight:600;color:var(--aw-accent);text-transform:uppercase;letter-spacing:0.5px;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid rgba(255,255,255,0.1)}

/* States on document */
html.aw-contrast{filter:contrast(1.3) brightness(1.1) !important}
html.aw-contrast-aa{filter:contrast(1.5) brightness(1.2) !important}
html.aw-contrast-aaa{filter:contrast(1.8) brightness(1.3) !important}
html.aw-dark{color-scheme:dark}
html.aw-bluefilter{filter:hue-rotate(-10deg) saturate(.9) sepia(.15)}
html.aw-grayscale{filter:grayscale(100%)}
html.aw-hide-images img:not(.aw-root img):not(.aw-root * img):not(.aw-root):not(.aw-root *):not(.aw-fake-cursor img):not(.aw-fake-cursor * img),html.aw-hide-images picture:not(.aw-root picture):not(.aw-root * picture):not(.aw-root):not(.aw-root *):not(.aw-fake-cursor picture):not(.aw-fake-cursor * picture),html.aw-hide-images video:not(.aw-root video):not(.aw-root * video):not(.aw-root):not(.aw-root *):not(.aw-fake-cursor video):not(.aw-fake-cursor * video),html.aw-hide-images iframe:not(.aw-root iframe):not(.aw-root * iframe):not(.aw-root):not(.aw-root *):not(.aw-fake-cursor iframe):not(.aw-fake-cursor * iframe),html.aw-hide-images canvas:not(.aw-root canvas):not(.aw-root * canvas):not(.aw-root):not(.aw-root *):not(.aw-fake-cursor canvas):not(.aw-fake-cursor * canvas),html.aw-hide-images svg:not(.aw-root svg):not(.aw-root * svg):not(.aw-root):not(.aw-root *):not(.aw-fake-cursor svg):not(.aw-fake-cursor * svg),html.aw-hide-images object:not(.aw-root object):not(.aw-root * object):not(.aw-root):not(.aw-root *):not(.aw-fake-cursor object):not(.aw-fake-cursor * object),html.aw-hide-images embed:not(.aw-root embed):not(.aw-root * embed):not(.aw-root):not(.aw-root *):not(.aw-fake-cursor embed):not(.aw-fake-cursor * embed),html.aw-hide-images [style*="background-image"]:not(.aw-root):not(.aw-root *):not(.aw-fake-cursor):not(.aw-fake-cursor *),html.aw-hide-images [class*="image"]:not(.aw-root):not(.aw-root *):not(.aw-fake-cursor):not(.aw-fake-cursor *),html.aw-hide-images [class*="img"]:not(.aw-root):not(.aw-root *):not(.aw-fake-cursor):not(.aw-fake-cursor *),html.aw-hide-images [id*="image"]:not(.aw-root):not(.aw-root *):not(.aw-fake-cursor):not(.aw-fake-cursor *),html.aw-hide-images [id*="img"]:not(.aw-root):not(.aw-root *):not(.aw-fake-cursor):not(.aw-fake-cursor *){display:none !important}

/* CVD filters */
html.aw-cvd-protan{filter:url('#aw-cvd-protan')}
html.aw-cvd-deutan{filter:url('#aw-cvd-deutan')}
html.aw-cvd-tritan{filter:url('#aw-cvd-tritan')}

/* Focus management */
/* Fokus immer sichtbar - STÄRKERE SELEKTOREN */
html.aw-focus-visible *:focus,
html.aw-focus-visible button:focus,
html.aw-focus-visible input:focus,
html.aw-focus-visible select:focus,
html.aw-focus-visible a:focus,
html.aw-focus-visible [tabindex]:focus {
    outline: 3px solid var(--aw-focus) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px var(--aw-focus) !important;
}
html.aw-focus-visible *:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* Bewegung reduzieren - STÄRKERE SELEKTOREN */
html.aw-reduce-motion *,
html.aw-reduce-motion *::before,
html.aw-reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}
html.aw-reduce-motion *:hover,
html.aw-reduce-motion *:focus,
html.aw-reduce-motion *:active {
    animation: none !important;
    transition: none !important;
}

/* Parallax stoppen - STÄRKERE SELEKTOREN */
html.aw-no-parallax *,
html.aw-no-parallax *::before,
html.aw-no-parallax *::after {
    transform: none !important;
    will-change: auto !important;
    transform-style: flat !important;
    perspective: none !important;
    backface-visibility: visible !important;
}

/* Dark + Contrast combinations */
html.aw-dark.aw-contrast{filter:contrast(1.15)}
html.aw-dark.aw-contrast-aa{filter:contrast(1.3) brightness(1.1)}
html.aw-dark.aw-contrast-aaa{filter:contrast(1.5) brightness(1.2)}

/* Font scaling and typography - exclude widget completely */
html{--font-scale:1;--line-height:1.2;--word-spacing:0em}

/* Line-height und Word-spacing - IMMER anwenden */
html *:not(.aw-root):not(.aw-root *):not(.aw-panel):not(.aw-panel *):not(.aw-toggle):not(.aw-toggle *){line-height:var(--line-height) !important;word-spacing:var(--word-spacing) !important}

/* Widget font size isolation - complete separation */
.aw-root{font-size:14px !important;line-height:1.2 !important;word-spacing:0em !important}
.aw-root *{font-size:inherit !important;line-height:inherit !important;word-spacing:inherit !important}
.aw-panel{font-size:14px !important}
.aw-panel *{font-size:inherit !important}
.aw-toggle{font-size:14px !important}
.aw-toggle *{font-size:inherit !important}

/* Dyslexia font: Nur Schriftart ändern */
html.aw-dyslexia-font *:not(.aw-root):not(.aw-root *):not(.aw-panel):not(.aw-panel *):not(.aw-toggle):not(.aw-toggle *) {
	font-family: 'OpenDyslexic', 'Comic Sans MS', cursive !important;
}

/* Reading ruler */
html.aw-reading-ruler::before{
	content:'';
	position:fixed;
	top:50%;
	left:0;
	right:0;
	height:2px;
	background:rgba(255,255,0,0.8);
	z-index:99998;
	pointer-events:none;
	transform:translateY(-50%);
}

/* Big cursor */
/* FAKE-CURSOR - RIESIG UND ANIMIERBAR */
html.aw-big-cursor * {
    cursor: none !important;
}

/* EINFACHE CURSOR-LÖSUNG - Funktioniert garantiert! */
.aw-fake-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.2s ease;
    /* Hotspot-Positionierung */
    transform: translate(-2px, -2px);
}

html.aw-big-cursor .aw-fake-cursor {
    opacity: 1;
}

/* CURSOR GRÖSSEN - Großes SVG-Dreieck */
.aw-fake-cursor[data-cursor-size="normal"] {
    width: 40px;
    height: 40px;
}

.aw-fake-cursor[data-cursor-size="large"] {
    width: 60px;
    height: 60px;
}

.aw-fake-cursor[data-cursor-size="xlarge"] {
    width: 80px;
    height: 80px;
}

/* CURSOR ELEMENTE - Einfache CSS-Dreiecke */
.aw-cursor-arrow {
    position: absolute;
    top: 0;
    left: 0;
}

.aw-cursor-shaft {
    position: absolute;
}

/* Link highlighting */
html.aw-link-highlight a{text-decoration:underline !important;background:rgba(255,255,0,0.3) !important;padding:1px 2px !important;border-radius:2px !important}

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

/* Skip links */
.aw-skip-link{
	position:absolute;
	left:-9999px;
	top:auto;
	width:1px;
	height:1px;
	overflow:hidden;
	background:var(--aw-accent);
	color:#000;
	padding:8px 16px;
	text-decoration:none;
	border-radius:4px;
	font-weight:600;
	z-index:100000;
}
.aw-skip-link:focus{
	position:fixed;
	left:8px;
	top:8px;
	width:auto;
	height:auto;
	overflow:visible;
	clip:auto;
}
