:root {
    --bg-color: #f7f9fc;
    --header-bg: rgba(255,255,255,.78);
    --header-border: rgba(226,232,240,.72);
    --card-bg: #fff;
    --text-main: #243247;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --hover-bg: #eff6ff;
    --color-blue: #3498db;
    --shadow-sm: 0 2px 10px rgba(15,23,42,.05);
    --shadow-md: 0 12px 34px rgba(15,23,42,.09);
    --pl-line: rgba(100,116,139,.18);
    --pl-glass: rgba(255,255,255,.70);
    --pl-glass-strong: rgba(255,255,255,.90);
}
[data-theme="dark"] {
    --bg-color: #0b1220;
    --header-bg: rgba(10,18,32,.84);
    --header-border: rgba(71,85,105,.48);
    --card-bg: #111c2e;
    --text-main: #e7edf6;
    --text-muted: #9aaac0;
    --border-color: #334155;
    --hover-bg: #1e3049;
    --shadow-sm: 0 2px 10px rgba(0,0,0,.18);
    --shadow-md: 0 12px 34px rgba(0,0,0,.23);
    --pl-line: rgba(148,163,184,.18);
    --pl-glass: rgba(15,23,42,.66);
    --pl-glass-strong: rgba(15,23,42,.90);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text-main); background: var(--bg-color); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; transition: color .25s ease, background-color .25s ease; }
button, input { font: inherit; }
.pxh-skip-link { position: fixed; top: 8px; left: 8px; z-index: 20000; padding: 10px 14px; transform: translateY(-160%); border-radius: 8px; background: #ffeb3b; color: #111827; font-weight: 700; }
.pxh-skip-link:focus { transform: translateY(0); }
.top-bar { position: fixed; inset: 0 0 auto; z-index: 1100; display: flex; align-items: center; justify-content: flex-end; min-height: 76px; padding: 0 26px 0 160px; border-bottom: 1px solid var(--header-border); background: var(--header-bg); box-shadow: 0 8px 28px rgba(15,23,42,.05); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
.logo-container { position: absolute; left: 22px; top: 100%; z-index: 3; transform: translateY(-50%); }
.logo-container a { display: flex; align-items: center; gap: 8px; color: var(--text-main); text-decoration: none; }
.logo-container img { display: block; height: 82px; max-width: 140px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(15,23,42,.13)); }
.pxh-logo-text { display: none; font-weight: 850; letter-spacing: -.04em; }
.logo-container a.pxh-logo-fallback .pxh-logo-text { display: inline; }
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.nav-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text-main); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.nav-btn svg { width: 17px; height: 17px; }
.nav-btn:hover { background: rgba(62,160,255,.09); border-color: rgba(62,160,255,.18); color: var(--color-blue); }
.dropdown { position: relative; display: inline-block; }
.dropdown-content { position: absolute; top: calc(100% + 8px); right: 0; display: none; flex-direction: column; min-width: 245px; padding: 8px; gap: 3px; border: 1px solid var(--pl-line); border-radius: 14px; background: var(--pl-glass-strong); box-shadow: var(--shadow-md); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); opacity: 0; transform: translateY(-5px); transition: opacity .18s ease, transform .18s ease; }
.dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content { display: flex; opacity: 1; transform: translateY(0); }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text-main); text-decoration: none; font-size: 13px; }
.dropdown-item svg { width: 17px; height: 17px; color: var(--color-blue); }
.dropdown-item:hover { background: rgba(62,160,255,.09); }
.pxh-mobile-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--pl-line); border-radius: 10px; background: var(--pl-glass-strong); color: var(--text-main); }
.pxh-mobile-toggle svg { width: 22px; height: 22px; }
.pxh-mobile-menu { position: fixed; top: 70px; right: 12px; z-index: 1099; display: grid; gap: 3px; width: min(320px, calc(100vw - 24px)); padding: 10px; border: 1px solid var(--pl-line); border-radius: 14px; background: var(--pl-glass-strong); box-shadow: var(--shadow-md); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.pxh-mobile-menu[hidden] { display: none !important; }
.pxh-mobile-menu a, .pxh-mobile-menu button { display: flex; align-items: center; gap: 10px; padding: 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-main); text-decoration: none; text-align: left; font-size: 14px; font-weight: 650; }
.pxh-mobile-menu a:hover, .pxh-mobile-menu button:hover { background: rgba(62,160,255,.09); }
.pxh-mobile-menu svg { width: 19px; height: 19px; color: var(--color-blue); }
body.pxh-home-page { padding-bottom: 0; overflow-x: clip; }
body.pxh-home-page .top-bar { position: fixed; }
.a11y-widget-btn { position: fixed; left: 20px; bottom: 22px; z-index: 10000; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 1px solid rgba(62,160,255,.35); border-radius: 50%; background: var(--pl-glass-strong); color: var(--text-main); box-shadow: var(--shadow-md); cursor: pointer; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.a11y-widget-btn svg { width: 25px; height: 25px; }
.a11y-widget-btn:focus-visible, .a11y-close:focus-visible, .a11y-option-btn:focus-visible, .a11y-reset-btn:focus-visible, .pxh-mobile-toggle:focus-visible { outline: 3px solid #ffeb3b; outline-offset: 3px; }
.a11y-panel { display: none; position: fixed; left: 20px; bottom: 88px; z-index: 10001; width: min(370px, calc(100vw - 32px)); max-height: min(78vh, 720px); overflow: auto; padding: 18px; border: 1px solid var(--pl-line); border-radius: 16px; background: var(--pl-glass-strong); color: var(--text-main); box-shadow: 0 24px 70px rgba(15,23,42,.20); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
.a11y-panel.is-open { display: block; }
.a11y-panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.a11y-panel-header h2 { margin: 0; font-size: 17px; line-height: 1.25; }
.a11y-panel-header p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.a11y-close { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--pl-line); border-radius: 9px; background: transparent; color: var(--text-muted); cursor: pointer; }
.a11y-close svg { width: 17px; height: 17px; }
.a11y-status { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 10px; border: 1px solid var(--pl-line); border-radius: 10px; background: rgba(62,160,255,.05); font-size: 12px; font-weight: 650; }
.a11y-status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #64748b; }
.a11y-status-dot.active { background: #58d7a6; box-shadow: 0 0 0 3px rgba(88,215,166,.15); }
.a11y-options { display: grid; gap: 8px; }
.a11y-option-btn { display: grid; grid-template-columns: 36px minmax(0,1fr) 20px; align-items: center; gap: 10px; width: 100%; min-height: 62px; padding: 10px; border: 1px solid var(--pl-line); border-radius: 11px; background: transparent; color: var(--text-main); text-align: left; cursor: pointer; }
.a11y-option-btn:hover, .a11y-option-btn.active { border-color: rgba(62,160,255,.42); background: rgba(62,160,255,.065); }
.a11y-option-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(62,160,255,.18); border-radius: 9px; color: var(--color-blue); background: rgba(62,160,255,.08); }
.a11y-option-icon svg { width: 18px; height: 18px; }
.a11y-option-btn strong { display: block; margin-bottom: 3px; font-size: 12px; }
.a11y-option-btn small { display: block; color: var(--text-muted); font-size: 11px; line-height: 1.35; }
.a11y-check { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid var(--pl-line); border-radius: 5px; color: transparent; }
.a11y-check svg { width: 13px; height: 13px; }
.a11y-option-btn.active .a11y-check { color: #06281d; border-color: #58d7a6; background: #58d7a6; }
.a11y-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pl-line); color: var(--text-muted); font-size: 10px; }
.a11y-reset-btn { flex: 0 0 auto; border: 1px solid var(--pl-line); border-radius: 8px; padding: 8px 10px; background: transparent; color: var(--text-muted); font-size: 11px; font-weight: 700; cursor: pointer; }
body.a11y-text-large { font-size: 115% !important; }
body.a11y-text-large .pxh-home h1 { font-size: clamp(48px, 7vw, 88px) !important; }
body.a11y-text-large .a11y-panel, body.a11y-text-large .a11y-panel * { font-size: revert !important; }
body.a11y-contrast { --bg-color: #000 !important; --card-bg: #111 !important; --text-main: #fff !important; --text-muted: #eee !important; --border-color: #ff0 !important; --color-blue: #ff0 !important; --pl-line: #ff0 !important; --pl-glass: #000 !important; --pl-glass-strong: #111 !important; --pxh-line: #ff0 !important; --pxh-surface: #000 !important; --pxh-surface-strong: #111 !important; }
body.a11y-contrast .pxh-home *, body.a11y-contrast .a11y-panel { text-shadow: none !important; }
body.a11y-contrast .pxh-tool-card, body.a11y-contrast .pxh-download-card, body.a11y-contrast .pxh-community-panel { border: 2px solid #ff0 !important; }
body.a11y-highlight-links a { text-decoration: underline !important; text-decoration-thickness: 3px !important; text-decoration-color: #ffeb3b !important; }
body.a11y-highlight-links a:focus-visible, body.a11y-highlight-links button:focus-visible { outline: 3px solid #ffeb3b !important; outline-offset: 3px !important; }
body.a11y-dyslexia, body.a11y-dyslexia * { font-family: "Trebuchet MS", Verdana, sans-serif !important; letter-spacing: .035em !important; word-spacing: .10em !important; line-height: 1.7 !important; }
body.a11y-no-animations *, body.a11y-no-animations *::before, body.a11y-no-animations *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
body.a11y-no-animations .pxh-code-path-progress { filter: none !important; }
body.a11y-no-animations .pxh-code-fragment, body.a11y-no-animations .pxh-reveal { opacity: 1 !important; transform: none !important; visibility: visible !important; }
.pxh-impressum-modal { display: none; position: fixed; inset: 0; z-index: 15000; align-items: center; justify-content: center; padding: 20px; }
.pxh-impressum-modal:target { display: flex; }
.pxh-impressum-backdrop { position: absolute; inset: 0; background: rgba(2,8,23,.76); backdrop-filter: blur(5px); }
.pxh-impressum-dialog { position: relative; z-index: 1; width: min(540px, 100%); max-height: 85vh; overflow: auto; padding: 28px; border: 1px solid var(--pl-line); border-radius: 16px; background: var(--pl-glass-strong); color: var(--text-main); box-shadow: var(--shadow-md); line-height: 1.65; }
.pxh-impressum-dialog h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.pxh-impressum-dialog h2 svg { width: 22px; height: 22px; color: var(--color-blue); }
.pxh-impressum-dialog p { margin: 0 0 14px; }
.pxh-impressum-dialog a { color: var(--color-blue); }
.pxh-impressum-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--hover-bg); text-decoration: none; }
.pxh-impressum-note { color: var(--text-muted); font-size: 12px; }
@media (max-width: 920px) {
    .top-bar { min-height: 66px; padding: 0 14px; justify-content: flex-end; }
    .logo-container { position: relative; top: auto; left: auto; margin-right: auto; transform: none; }
    .logo-container img { height: 50px; max-width: 95px; }
    .desktop-nav { display: none; }
    .pxh-mobile-toggle { display: inline-flex; }
    .pxh-mobile-menu { top: 72px; }
    .a11y-widget-btn { left: 14px; bottom: 14px; width: 50px; height: 50px; }
    .a11y-panel { left: 14px; bottom: 75px; width: calc(100vw - 28px); max-height: 72vh; }
    .pxh-impressum-dialog { padding: 25px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .a11y-widget-btn, .a11y-panel, .a11y-option-btn { transition: none !important; }
}
