/* IBM Plex, SIL Open Font License 1.1. Self-hosted so no visitor data goes to a font service. */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-sans-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-sans-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-sans-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-sans-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Cyrillic, for Ukrainian and Russian. A browser fetches these files only when a page shows such letters. */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-500-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-sans-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-sans-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/ibm-plex-sans-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/ibm-plex-sans-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* Text pages: Impressum, Datenschutz, Privacy, 404. */
:root { --ink: #16201C; --ground: #E9ECEA; --felt: #1F3B33; --muted: #4A5650; --amber: #F2B233; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 'IBM Plex Sans', system-ui, sans-serif; }
header { background: var(--felt); padding: 16px 20px; }
header a { color: #FFFFFF; font-weight: 700; font-size: 18px; text-decoration: none; }
main { max-width: 720px; margin: 0 auto; padding: 32px 20px 24px; }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 19px; margin: 28px 0 6px; }
p { margin: 0 0 12px; }
.stand { color: var(--muted); font-size: 14px; }
a { color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { background: var(--amber); }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
footer { max-width: 720px; margin: 0 auto; padding: 20px 20px 40px; font-size: 14px; color: var(--muted); border-top: 1px solid #C3CAC6; }

footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.maker { margin-left: auto; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; border: 1.5px solid currentColor; font: 500 12px 'IBM Plex Mono', monospace; letter-spacing: 0.04em; text-decoration: none; }

header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
header nav { display: flex; align-items: center; gap: 16px; font-size: 15px; }
header nav a { font-weight: 500; font-size: 15px; }
header nav a.play { background: var(--amber); color: #16201C; padding: 6px 12px; border-radius: 6px; font-weight: 700; }
.crumb { font-size: 14px; margin-bottom: 8px; }
.alt { color: var(--muted); margin-top: -4px; }
.lead { font-size: 19px; line-height: 1.55; }
.watch { border: 1.5px solid rgba(242, 178, 51, 0.6); padding: 9px 14px; background: rgba(242, 178, 51, 0.14); border-radius: 8px; }
.note { margin-top: 32px; font-size: 14px; color: var(--muted); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; border: 1.5px solid currentColor; border-radius: 16px; padding: 3px 12px; text-decoration: none; font-size: 15px; }
.cta { margin-top: 28px; }
.button { display: inline-block; background: var(--amber); color: #16201C; font-weight: 700; padding: 10px 18px; border-radius: 8px; text-decoration: none; margin-right: 10px; box-shadow: 0 4px 0 #A8770F; }
.terms dt { font-weight: 700; margin-top: 16px; }
.terms dt span { font-weight: 400; color: var(--muted); margin-left: 6px; }
.terms dd { margin: 2px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
th, td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid #C3CAC6; vertical-align: top; }

.theme { width: 36px; height: 32px; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 8px; background: transparent; color: #FFFFFF; cursor: pointer; padding: 0; }
/* A medal draws itself: one inline SVG from badges.js with its own box and colors. */
.medal { --s: 56px; display: inline-block; flex: none; width: var(--ms, var(--s)); height: var(--ms, var(--s)); line-height: 0; }
.medal svg { display: block; }
/* On a narrow screen the medal stands above a long term, and the term may break. */
.termhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 8px; }
.termhead h1 { margin: 0; overflow-wrap: anywhere; }
.family { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 36px 0 12px; }
.family i { width: 14px; height: 14px; border-radius: 7px; background: var(--c); border: 1.5px solid var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cards a { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px; background: var(--card); text-decoration: none; border: 1.5px solid transparent; }
.cards a:hover { background: var(--card); border-color: var(--amber); }
.cards b { font-size: 17px; line-height: 1.2; }
.cards span { font-size: 13px; color: var(--muted); }
.cards p { font-size: 14px; line-height: 1.4; margin: 0; }
.calctabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.calctabs a { padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.calctabs a[aria-current='page'] { background: var(--ink); color: var(--ground); }
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; background: var(--card); color: var(--ink); border-radius: 12px; padding: 0; margin: 16px 0 24px; overflow: hidden; border: 1.5px solid var(--ink); }
.calc .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 20px; align-content: start; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.calc label.wide, .calc label.check { grid-column: 1 / -1; }
.calc label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; min-height: 44px; }
.calc input[type='number'], .calc select { height: 46px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 6px; font: 500 17px 'IBM Plex Sans', system-ui, sans-serif; background: var(--ground); color: var(--ink); width: 100%; }
.calc input[type='checkbox'] { width: 20px; height: 20px; }
.calc output { display: flex; flex-direction: column; gap: 4px; background: #1F3B33; color: #FFFFFF; padding: 22px 20px; }
.calc output .big { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.calc output .big span { font-size: 14px; color: #C9D6D0; }
.calc output .big b { font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; color: #F2B233; }
.calc output .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 15px; }
.calc output .row span { color: #C9D6D0; }
.calc output .row b { white-space: nowrap; }
.calc output .bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 6px 0 2px; background: rgba(255, 255, 255, 0.18); }
.calc output .bar i { background: #F2B233; }
.calc output .bar em { background: #F5A08A; }
.calc output .key { display: flex; gap: 14px; font-size: 12px; color: #C9D6D0; }
.calc output .key i, .calc output .key em { display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: 5px; background: #F2B233; }
.calc output .key em { background: #F5A08A; }
@media (max-width: 700px) { .calc { grid-template-columns: 1fr; } .calc output .big b { font-size: 34px; } }

:root { --card: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']) { --ink: #E9ECEA; --ground: #121916; --muted: #A9B5AF; --card: #1D2925; }
}
html[data-theme='dark'] { --ink: #E9ECEA; --ground: #121916; --muted: #A9B5AF; --card: #1D2925; }
html[data-theme='dark'] header, html[data-theme='dark'] .calc output { background: #1D2925; }
html[data-theme='dark'] footer, html[data-theme='dark'] th, html[data-theme='dark'] td { border-color: #33413B; }
html[data-theme='dark'] a:hover { color: #16201C; }
html[data-theme='dark'] .cards a:hover { color: var(--ink); }

html[data-calm] *, html[data-calm] *::before, html[data-calm] *::after { animation: none !important; transition: none !important; }
html[data-contrast] { --muted: var(--ink); }
html[data-large] body { font-size: 20px; }
html[data-large] .lead { font-size: 22px; }
