/* Phylax · Marke B "Papier & Bordeaux" · Tokens aus phylax-tokens.css (Stand 02.11.2026). Schriften lokal (SIL OFL 1.1, fonts/OFL-*.txt). */
@font-face{font-family:"Source Sans 3";src:url(fonts/SourceSans3-VF.woff2) format("woff2");font-weight:200 900;font-style:normal;font-display:swap}
@font-face{font-family:"Newsreader";src:url(fonts/Newsreader-VF.woff2) format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
:root{
  --bg:#F6F1E7; --surface:#FCF9F3; --surface-2:#EDE5D6;
  --line:#DDD3C0; --line-strong:#857B69;
  --text:#1D1A17; --text-2:#4E4840; --text-3:#655E53;
  --accent:#7A2636; --btn:#7A2636; --on-btn:#FCF9F3; --btn-pressed:#6B222F;
  --gain:#1A4D85; --loss:#A44A0A;
  --font-text:"Source Sans 3",system-ui,sans-serif; --font-serif:"Newsreader",Georgia,serif;
  --sat:max(env(safe-area-inset-top,0px),var(--sim-t,0px)); --sab:max(env(safe-area-inset-bottom,0px),var(--sim-b,0px));
}
@media (prefers-color-scheme:dark){:root{
  --bg:#171513; --surface:#201D1A; --surface-2:#2A2622; --line:#37322C; --line-strong:#7C7468;
  --text:#EFE8DB; --text-2:#BDB4A5; --text-3:#A39A8B; --accent:#E68FA6;
  --btn:#EFE8DB; --on-btn:#171513; --btn-pressed:#DCD5C9; --gain:#88B6EA; --loss:#E0795A;
}}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{background:var(--bg);-webkit-text-size-adjust:100%}
body{font-family:var(--font-text);font-size:16px;line-height:24px;color:var(--text);font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased;background:var(--bg);max-width:560px;margin:0 auto}
.sat{position:fixed;top:0;left:0;right:0;height:var(--sat);background:var(--bg);z-index:50}
.screen{min-height:100vh;min-height:100dvh;padding:var(--sat) env(safe-area-inset-left,0px) 0 env(safe-area-inset-right,0px);display:flex;flex-direction:column;background:var(--bg)}
.demo{font-size:13px;line-height:18px;color:var(--text-2);background:var(--surface-2);padding:6px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px}
.hd{padding:14px 20px 0}
.hd img{display:block;width:108px;height:auto}
main{flex:1;padding:12px 20px calc(28px + var(--sab));display:flex;flex-direction:column;gap:20px}
h1{font-family:var(--font-serif);font-weight:500;font-size:28px;line-height:34px}
h2{font-size:18px;line-height:26px;font-weight:600}
.hint{font-size:13px;line-height:18px;color:var(--text-3)}
.sec{display:flex;flex-direction:column;gap:8px}
.dr{height:4px;border-top:1px solid var(--accent);border-bottom:1px solid var(--accent)}
.rows{border-top:1px solid var(--line)}
.row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.row .l{display:flex;flex-direction:column;min-width:0}
.row .l small{font-size:13px;line-height:18px;color:var(--text-2)}
.row .r{flex:none;text-align:right;font-weight:600;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.row .r.mono{font-feature-settings:"tnum";letter-spacing:.02em}
.gain{color:var(--gain)}.loss{color:var(--loss)}.zero{color:var(--text-2)}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;border-radius:2px;font:600 16px/24px var(--font-text);width:100%;border:1px solid transparent;cursor:pointer;-webkit-appearance:none;appearance:none;transition:transform 120ms cubic-bezier(.23,1,.32,1)}
.btn:active{transform:scale(.98)}
.btn.p{background:var(--btn);color:var(--on-btn)}
.btn.p:active{background:var(--btn-pressed)}
.btn.o{background:transparent;border-color:var(--line-strong);color:var(--text)}
.btn[disabled]{background:var(--surface-2);color:var(--text-3);border-color:var(--line);cursor:default}
.seg{display:flex;border:1px solid var(--line-strong);border-radius:2px;height:44px}
.seg button{flex:1;display:flex;align-items:center;justify-content:center;font:400 15px/20px var(--font-text);color:var(--text);background:transparent;border:0;cursor:pointer;-webkit-appearance:none;appearance:none}
.seg button+button{border-left:1px solid var(--line-strong)}
.seg button[aria-selected=true]{background:var(--text);color:var(--bg);font-weight:600}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.btn{transition:none}.btn:active{transform:none}}
@media (prefers-reduced-motion:no-preference){#ergebnis:not([hidden]){animation:ein 200ms cubic-bezier(.23,1,.32,1)}@keyframes ein{from{opacity:0}to{opacity:1}}}
