/* Copyright (c) 2026 Lernen Leben Retten. Alle Rechte vorbehalten. */
:root,:root[data-llr-appearance="green-light"]{color-scheme:light;--ui-bg:#f7f9f7;--ui-surface:#ffffff;--ui-surface-alt:#edf2ee;--ui-ink:#172b23;--ui-muted:#4b5d54;--ui-line:#d9e2dc;--ui-control-line:#7c9082;--ui-accent:#5e735f;--ui-accent-hover:#465947;--ui-on-accent:#ffffff;--ui-focus:#125f97;--ui-shadow:0 18px 50px #1736270c}
:root[data-llr-appearance="blue-light"]{color-scheme:light;--ui-bg:#f6f8fb;--ui-surface:#ffffff;--ui-surface-alt:#eaf1f9;--ui-ink:#172c42;--ui-muted:#4d6074;--ui-line:#d5dfeb;--ui-control-line:#7a8fa7;--ui-accent:#506a76;--ui-accent-hover:#354e5a;--ui-on-accent:#ffffff;--ui-focus:#215fc3;--ui-shadow:0 18px 50px #1734530c}
:root[data-llr-appearance="green-dark"]{color-scheme:dark;--ui-bg:#101b16;--ui-surface:#192820;--ui-surface-alt:#24372c;--ui-ink:#f0f6f1;--ui-muted:#b3c5b8;--ui-line:#354d3f;--ui-control-line:#668473;--ui-accent:#9cd6b3;--ui-accent-hover:#bbe7cb;--ui-on-accent:#102a1b;--ui-focus:#83c5f6;--ui-shadow:0 18px 50px #0003}
:root[data-llr-appearance="blue-dark"]{color-scheme:dark;--ui-bg:#101a27;--ui-surface:#192839;--ui-surface-alt:#23374e;--ui-ink:#f0f5fb;--ui-muted:#b3c6dc;--ui-line:#354e69;--ui-control-line:#657f9b;--ui-accent:#94c9f4;--ui-accent-hover:#b4dcff;--ui-on-accent:#102841;--ui-focus:#b9d8ff;--ui-shadow:0 18px 50px #0003}
.llr-appearance-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:9px 13px;border:1px solid var(--ui-control-line);border-radius:999px;background:var(--ui-surface);color:var(--ui-ink);font:inherit;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}
.llr-appearance-toggle:hover{background:var(--ui-surface-alt)}.llr-appearance-symbol{display:grid;grid-template-columns:repeat(2,5px);gap:2px;flex:none;transform:rotate(-12deg)}.llr-appearance-symbol i{display:block;width:5px;height:5px;border-radius:50%;background:currentColor}.llr-appearance-symbol i:first-child{opacity:.55}.llr-appearance-symbol i:last-child{opacity:.75}
.llr-appearance-dialog{box-sizing:border-box;width:min(650px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:28px;border:1px solid var(--ui-control-line);border-radius:24px;background:var(--ui-surface);color:var(--ui-ink);box-shadow:0 32px 100px #0005;font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.llr-appearance-dialog::backdrop{background:#07130db3;backdrop-filter:blur(5px)}.llr-appearance-dialog *{box-sizing:border-box}.llr-appearance-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px}.llr-appearance-dialog .llr-appearance-heading h2{margin:0;font-size:26px;line-height:1.2;letter-spacing:-.7px;color:var(--ui-ink)}.llr-appearance-close{width:40px;height:40px;flex:none;border:1px solid var(--ui-control-line);border-radius:50%;background:var(--ui-surface);color:var(--ui-ink);font-family:inherit;font-size:26px;line-height:1;cursor:pointer}
.llr-appearance-help{margin:0 0 22px;color:var(--ui-muted);font-size:14px}.llr-appearance-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:0;padding:0;margin:0}.llr-appearance-options legend{padding:0;margin-bottom:12px;font-weight:650;font-size:14px}.llr-appearance-option{position:relative;display:flex;flex-direction:column;gap:10px;min-width:0;padding:13px;border:2px solid var(--ui-control-line);border-radius:16px;cursor:pointer;color:var(--ui-ink);background:var(--ui-surface)}
.llr-appearance-option:has(input:checked){border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-accent)}.llr-appearance-option:has(input:focus-visible){outline:3px solid var(--ui-focus);outline-offset:5px}.llr-appearance-option input{position:absolute;opacity:0;width:1px;height:1px}.llr-appearance-option strong{font-size:14px;font-weight:650}.llr-appearance-preview{display:flex;gap:7px;padding:9px;border-radius:9px;height:64px;background:#f3f6f3;overflow:hidden}.llr-appearance-preview>span{width:23%;background:#dde8df;border-radius:5px}.llr-appearance-preview>span+span{width:70%;background:#fff;position:relative}.llr-appearance-preview>span+span:before,.llr-appearance-preview>span+span:after{content:"";position:absolute;left:8px;height:5px;width:55%;top:10px;border-radius:3px;background:#5e735f}.llr-appearance-preview>span+span:after{top:22px;width:75%;height:3px;opacity:.4}
[data-appearance-choice="blue-light"] .llr-appearance-preview{background:#f3f6fb}[data-appearance-choice="blue-light"] .llr-appearance-preview>span{background:#d8e5f1}[data-appearance-choice="blue-light"] .llr-appearance-preview>span+span{background:#fff}[data-appearance-choice="blue-light"] .llr-appearance-preview>span+span:before,[data-appearance-choice="blue-light"] .llr-appearance-preview>span+span:after{background:#506a76}
[data-appearance-choice="green-dark"] .llr-appearance-preview{background:#101b16}[data-appearance-choice="green-dark"] .llr-appearance-preview>span{background:#24372c}[data-appearance-choice="green-dark"] .llr-appearance-preview>span+span{background:#192820}[data-appearance-choice="green-dark"] .llr-appearance-preview>span+span:before,[data-appearance-choice="green-dark"] .llr-appearance-preview>span+span:after{background:#9cd6b3}
[data-appearance-choice="blue-dark"] .llr-appearance-preview{background:#101a27}[data-appearance-choice="blue-dark"] .llr-appearance-preview>span{background:#23374e}[data-appearance-choice="blue-dark"] .llr-appearance-preview>span+span{background:#192839}[data-appearance-choice="blue-dark"] .llr-appearance-preview>span+span:before,[data-appearance-choice="blue-dark"] .llr-appearance-preview>span+span:after{background:#94c9f4}
.llr-appearance-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;flex-wrap:wrap}.llr-appearance-actions button{min-height:44px;padding:10px 20px;border-radius:999px;border:1px solid var(--ui-control-line);background:var(--ui-surface);color:var(--ui-ink);font:inherit;font-weight:650;cursor:pointer}.llr-appearance-actions .llr-appearance-save{background:var(--ui-accent);border-color:var(--ui-accent);color:var(--ui-on-accent)}.llr-appearance-actions .llr-appearance-save:hover{background:var(--ui-accent-hover)}
.llr-appearance-status{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:10000;max-width:calc(100vw - 32px);padding:12px 20px;border:1px solid var(--ui-control-line);border-radius:14px;color:var(--ui-ink);background:var(--ui-surface);box-shadow:var(--ui-shadow);font:14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.llr-appearance-status:empty{display:none}
html[data-llr-appearance$="-dark"] img.llr-brand-logo{filter:brightness(0) invert(1)}html[data-llr-appearance$="-dark"] img.llr-custom-logo{background:#fff;padding:8px;border-radius:9px}
.llr-appearance-toggle:focus-visible,.llr-appearance-dialog button:focus-visible{outline:3px solid var(--ui-focus);outline-offset:4px}
@media(max-width:480px){.llr-appearance-dialog{padding:20px}.llr-appearance-dialog .llr-appearance-heading h2{font-size:23px}.llr-appearance-option{padding:10px}.llr-appearance-option strong{font-size:13px}.llr-appearance-actions button{flex:1}.llr-appearance-toggle{padding:9px 11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.llr-appearance-dialog,.llr-appearance-dialog *{animation:none!important;transition:none!important}}
@media(forced-colors:active){.llr-appearance-option:has(input:checked){outline:3px solid Highlight}.llr-appearance-preview{forced-color-adjust:none}img.llr-brand-logo{filter:none!important;background:white!important;forced-color-adjust:none}.llr-appearance-toggle,.llr-appearance-dialog,.llr-appearance-dialog button{border-color:ButtonText}}
@media print{.llr-appearance-toggle,.llr-appearance-dialog,.llr-appearance-status{display:none!important}img.llr-brand-logo{filter:none!important}}

/* One compact palette control, in the LLR brand colors. */
.llr-appearance-toggle{width:44px;height:44px;min-width:44px;min-height:44px;padding:9px;border-radius:50%;flex:none}
.llr-appearance-palette{display:block;width:24px;height:24px;flex:none;overflow:visible}
.crm-suite-top-links .llr-appearance-toggle,.site-header .nav-inner .llr-appearance-toggle{order:100;margin-left:0}

.llr-appearance-palette circle{stroke:var(--ui-ink);stroke-width:.45}
