/* gymiprep.ai · Neon Ink theme: fonts, tokens, base, shell (header, phone tab bar, footer) and components.
 *
 * Every rule sits under html[data-brand="gymiprep"]: a page that does not carry the attribute is untouched.
 * Practice pages load /gp/ueben.css after /ueben/ueben.css as well; the iframe embeds load /gp/embed.css.
 * Colour roles (approved direction, 2026-11-20):
 *   ink      text, outlines, hard offset shadows, dark bands
 *   lime     actions, highlights, progress, the correct state. A FILL only: 1.05:1 on paper, never a line or text there.
 *   violet   reserved for the AI tutor (and the .ai of the wordmark). Nothing else is violet.
 *   pink     the wrong-answer icon only (the box itself is pink tint with ink text).
 *   accents  deep lime, amber, deep pink: the line-legible colours for figure strokes, chapter markers and text accents.
 * Motion and glow exist only for people who have not asked for less (prefers-reduced-motion).
 */

/* ---- Fonts · no request to another origin ------------------------------------------------------------------------
   Archivo (SIL OFL 1.1, /vendor/fonts/OFL-Archivo.txt) is vendored in this brand's folder. It has no Greek and none
   of the maths signs the tasks use (α β γ π ω √ ≤ ≥ ≈ → and more): every stack below names a vendored face that
   has the Greek letters (Source Sans 3, Source Serif 4, JetBrains Mono, served from the shared /vendor/fonts/), and
   the maths stack adds the vendored KaTeX face for √ ≤ ≥ ≈ → ∠. Figures keep their own face (Source Serif 4): their
   label positions are computed for it. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/vendor/fonts/archivo-normal-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: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/vendor/fonts/archivo-normal-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: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/vendor/fonts/source-sans-3-normal-greek-ext.woff2) format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/vendor/fonts/source-sans-3-normal-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/vendor/fonts/source-sans-3-normal-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: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/vendor/fonts/source-sans-3-normal-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: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/vendor/fonts/source-serif-4-normal-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/vendor/fonts/source-serif-4-normal-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/vendor/fonts/source-serif-4-normal-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: 'Source Serif 4'; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url(/vendor/fonts/source-serif-4-italic-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url(/vendor/fonts/source-serif-4-italic-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url(/vendor/fonts/source-serif-4-italic-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: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/vendor/fonts/jetbrains-mono-normal-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/vendor/fonts/jetbrains-mono-normal-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/vendor/fonts/jetbrains-mono-normal-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; }
/* Until Archivo has arrived, the display lines (weight 900, width 112 or 125 %) are set in the system's Arial Black,
   scaled to Archivo's width and given its vertical metrics, so the swap moves no line (measured with the font held
   back 1.5 s: layout shift of the landing page 0.077 before, 0.002 after). Latin only, so the Greek letters keep their
   vendored face. Text at normal width keeps the system face, which sets within about 1 % of Archivo. */
@font-face { font-family: 'Archivo Fallback'; src: local('Arial Black'), local('Arial-Black'), local('ArialMT-Black');
  font-weight: 100 900; font-stretch: 118% 125%; size-adjust: 116%; ascent-override: 75.7%; descent-override: 18.1%; line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Archivo Fallback'; src: local('Arial Black'), local('Arial-Black'), local('ArialMT-Black');
  font-weight: 100 900; font-stretch: 62% 117%; size-adjust: 105.3%; ascent-override: 83.4%; descent-override: 19.9%; line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

/* ---- Tokens ---------------------------------------------------------------------------------------------------- */
html[data-brand="gymiprep"] {
  /* colour */
  --gp-paper: #F3F3F0; --gp-card: #FFFFFF; --gp-ink: #0E0E10; --gp-ink-2: #47474F; --gp-ink-3: #5E5E66;
  --gp-on-ink: #F3F3F0; --gp-on-ink-2: #C9C9D1; --gp-ink-hover: #2C2C33;
  --gp-lime: #CCFF33; --gp-lime-tint: #F1FFC4; --gp-lime-wash: #FAFFE6;
  --gp-violet: #5B3DF5; --gp-violet-tint: #E9E4FF;
  --gp-pink: #FF6B8B; --gp-pink-tint: #FFE3E9;
  --gp-grid: #DEDEE5; --gp-track: #E4E4EA; --gp-hair: #CFCFD8; --gp-line-2: #8E8E98;
  --gp-acc-lime: #3F6600; --gp-acc-amber: #B45309; --gp-acc-pink: #B0124F;
  /* type */
  --gp-font-display: 'Archivo', 'Archivo Fallback', 'Source Sans 3', 'Arial Black', system-ui, sans-serif;
  --gp-font-ui: 'Archivo', 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gp-font-math: 'Archivo', 'Source Sans 3', 'KaTeX_Main', system-ui, sans-serif;
  --gp-font-mono: 'JetBrains Mono', 'Source Sans 3', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gp-fs-xs: 12px; --gp-fs-sm: 14.5px; --gp-fs-md: 15.5px; --gp-fs-base: 17px; --gp-fs-lg: 19px;
  --gp-fs-h3: clamp(1.25rem, .8vw + 1rem, 1.6rem);
  --gp-fs-h2: clamp(1.6rem, 2vw + 1rem, 2.3rem);
  --gp-fs-h1: clamp(1.9rem, 3vw + 1rem, 3rem);
  --gp-fs-display: clamp(2.4rem, 4vw + 1.2rem, 4.6rem);
  --gp-lh-tight: 1.04; --gp-lh-snug: 1.2; --gp-lh: 1.5;
  /* space */
  --gp-s1: 4px; --gp-s2: 8px; --gp-s3: 12px; --gp-s4: 16px; --gp-s5: 24px; --gp-s6: 32px; --gp-s7: 48px; --gp-s8: 64px;
  --gp-gutter: 16px; --gp-wrap: 1240px;
  /* shape */
  --gp-bw: 3px; --gp-bn: 2px; --gp-r: 16px; --gp-r-sm: 12px; --gp-r-xs: 8px; --gp-pill: 999px;
  /* depth: hard offset shadows on top-level parts only; parts inside a 3 px part get 2 px and no shadow */
  --gp-sh: 6px 6px 0 var(--gp-ink); --gp-sh-sm: 4px 4px 0 var(--gp-ink); --gp-sh-xs: 3px 3px 0 var(--gp-ink);
  --gp-sh-lime: 6px 6px 0 var(--gp-lime), 6px 6px 0 3px var(--gp-ink);
  --gp-glow: 0 0 0 5px rgba(204, 255, 51, .45);
  /* focus */
  --gp-focus: var(--gp-violet); --gp-focus-w: 3px;
  /* motion */
  --gp-dur-1: .12s; --gp-dur-2: .2s; --gp-dur-3: .3s; --gp-ease: cubic-bezier(.2, .8, .2, 1);
  /* shell */
  --gp-head-h: 60px; --gp-tab-h: 64px;
  color-scheme: light;
}
@media (min-width: 760px) { html[data-brand="gymiprep"] { --gp-gutter: 32px; --gp-head-h: 66px; } }
@media (prefers-reduced-motion: reduce) {
  html[data-brand="gymiprep"] { --gp-dur-1: 0s; --gp-dur-2: 0s; --gp-dur-3: 0s; --gp-glow: 0 0 0 0 transparent; }
}

/* ---- Base ------------------------------------------------------------------------------------------------------ */
html[data-brand="gymiprep"], html[data-brand="gymiprep"] body {
  background: var(--gp-paper); color: var(--gp-ink);
  font-family: var(--gp-font-ui); font-stretch: 100%;
}
html[data-brand="gymiprep"] body { margin: 0; font-size: var(--gp-fs-base); line-height: var(--gp-lh); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html[data-brand="gymiprep"] *, html[data-brand="gymiprep"] *::before, html[data-brand="gymiprep"] *::after { box-sizing: border-box; }
html[data-brand="gymiprep"] :focus-visible { outline: var(--gp-focus-w) solid var(--gp-focus); outline-offset: 3px; }
html[data-brand="gymiprep"] [tabindex="-1"]:focus { outline: none; }
html[data-brand="gymiprep"] .gp-on-ink { --gp-focus: var(--gp-lime); }
html[data-brand="gymiprep"] h1, html[data-brand="gymiprep"] h2, html[data-brand="gymiprep"] h3 {
  overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 18 7 6;
}
html[data-brand="gymiprep"] .gp-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html[data-brand="gymiprep"] [hidden] { display: none !important; }
/* a text that exists in one shell language only */
html[data-brand="gymiprep"][data-gp-lang="de"] [data-gp-only="en"], html[data-brand="gymiprep"][data-gp-lang="en"] [data-gp-only="de"] { display: none !important; }
html[data-brand="gymiprep"] .gp-wrap { width: 100%; max-width: var(--gp-wrap); margin: 0 auto; padding: 0 var(--gp-gutter); }
html[data-brand="gymiprep"] .gp-noscript { display: block; padding: 40px var(--gp-gutter); text-align: center; font-weight: 700; }
html[data-brand="gymiprep"] .gp-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* skip link: off screen until it has the keyboard focus (never display:none, which takes it from the keyboard too) */
html[data-brand="gymiprep"] .kr-skip, html[data-brand="gymiprep"] .gp-skip {
  position: absolute; left: 16px; top: -200px; z-index: 1000;
  padding: 10px 14px; background: var(--gp-lime); color: var(--gp-ink);
  border: var(--gp-bw) solid var(--gp-ink); border-radius: 10px;
  font-family: var(--gp-font-ui); font-weight: 800; font-size: 16px; letter-spacing: 0; text-decoration: none;
  transition: none;
}
html[data-brand="gymiprep"] .kr-skip:focus, html[data-brand="gymiprep"] .gp-skip:focus { top: 10px; outline: var(--gp-focus-w) solid var(--gp-focus); outline-offset: 3px; }

/* ---- Header · .site-head is the one sticky top bar every shared script measures -------------------------------- */
html[data-brand="gymiprep"] .site-head.gp-head {
  display: block; position: sticky; top: 0; z-index: 50; padding: 0; gap: 0;
  background: var(--gp-paper); border-bottom: var(--gp-bw) solid var(--gp-ink);
  font-family: var(--gp-font-ui); letter-spacing: 0;
}
html[data-brand="gymiprep"] .gp-head-in { display: flex; align-items: center; gap: 12px; min-height: var(--gp-head-h);
  width: 100%; max-width: var(--gp-wrap); margin: 0 auto; padding: 8px var(--gp-gutter); }
html[data-brand="gymiprep"] .gp-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; border-radius: 8px;
  color: var(--gp-ink); text-decoration: none; font-family: var(--gp-font-display); font-weight: 900; font-stretch: 125%;
  font-size: 18px; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
html[data-brand="gymiprep"] .gp-logo-mark { display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--gp-lime); border: var(--gp-bw) solid var(--gp-ink); border-radius: 9px; box-shadow: var(--gp-sh-xs);
  transform: rotate(-6deg); font-size: 19px; line-height: 1; }
html[data-brand="gymiprep"] .gp-tld { color: var(--gp-violet); }
@media (min-width: 760px) { html[data-brand="gymiprep"] .gp-logo { font-size: 20px; } }
@media (max-width: 359.98px) { html[data-brand="gymiprep"] .gp-logo-word { display: none; } }

html[data-brand="gymiprep"] .site-head.gp-head nav.gp-nav { display: none; align-items: center; gap: 4px; width: auto; margin: 0 0 0 10px; padding: 0;
  flex-wrap: nowrap; overflow: visible; -webkit-mask-image: none; mask-image: none;
  font-family: var(--gp-font-ui); font-weight: 700; font-size: var(--gp-fs-md); letter-spacing: 0; }
html[data-brand="gymiprep"] .site-head.gp-head nav.gp-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 13px;
  border: var(--gp-bn) solid transparent; border-radius: var(--gp-pill); color: var(--gp-ink); text-decoration: none;
  white-space: nowrap; opacity: 1; margin: 0; }
html[data-brand="gymiprep"] .site-head.gp-head nav.gp-nav a:hover { border-color: var(--gp-ink); color: var(--gp-ink); }
html[data-brand="gymiprep"] .site-head.gp-head nav.gp-nav a[aria-current="page"] { background: var(--gp-ink); color: var(--gp-paper); border-color: var(--gp-ink); }
@media (min-width: 900px) { html[data-brand="gymiprep"] .site-head.gp-head nav.gp-nav { display: flex; } }

html[data-brand="gymiprep"] .gp-head-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
html[data-brand="gymiprep"] .gp-prod { display: none; align-items: center; min-height: 36px; padding: 4px 12px; border: var(--gp-bn) solid var(--gp-ink);
  border-radius: var(--gp-pill); background: var(--gp-card); color: var(--gp-ink); text-decoration: none;
  font-family: var(--gp-font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
html[data-brand="gymiprep"] .gp-prod:hover { background: var(--gp-lime-tint); }
@media (min-width: 560px) { html[data-brand="gymiprep"] .gp-prod { display: inline-flex; } }
html[data-brand="gymiprep"] .gp-lang { display: inline-flex; flex: none; padding: 2px; border: var(--gp-bn) solid var(--gp-ink); border-radius: var(--gp-pill); background: var(--gp-card); }
html[data-brand="gymiprep"] .gp-lang button { min-width: 44px; min-height: 36px; padding: 4px 9px; border: 0; border-radius: var(--gp-pill);
  background: transparent; color: var(--gp-ink); font-family: var(--gp-font-mono); font-size: 13px; font-weight: 600; cursor: pointer; }
html[data-brand="gymiprep"] .gp-lang button[aria-pressed="true"] { background: var(--gp-ink); color: var(--gp-lime); }
html[data-brand="gymiprep"] .gp-lang button:focus-visible { outline-offset: 2px; }
html[data-brand="gymiprep"] .gp-me { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  min-width: 44px; min-height: 44px; padding: 0; border-radius: var(--gp-pill); color: var(--gp-ink); text-decoration: none;
  font-weight: 700; font-size: var(--gp-fs-md); white-space: nowrap; }
html[data-brand="gymiprep"] .gp-me-ic { display: grid; place-items: center; width: 40px; height: 40px; border: var(--gp-bw) solid var(--gp-ink); border-radius: 50%; }
html[data-brand="gymiprep"] .gp-me[data-state="in"] .gp-me-ic { background: var(--gp-ink); color: var(--gp-lime); }
html[data-brand="gymiprep"] .gp-me-ic .gp-ic { width: 20px; height: 20px; }
html[data-brand="gymiprep"] .gp-me-lb { display: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (min-width: 900px) {
  html[data-brand="gymiprep"] .gp-me { padding: 0 4px; }
  html[data-brand="gymiprep"] .gp-me-ic { display: none; }
  html[data-brand="gymiprep"] .gp-me-lb { display: inline; }
}
/* the child's header holds four areas, the exam and the language from 900 px on: there the account keeps its round
   icon (its name is the link's label) up to 1000 px, where «Mein Bereich» fits beside them */
@media (min-width: 900px) and (max-width: 999.98px) {
  html[data-brand="gymiprep"] .gp-head[data-gp-mode="app"] .gp-me { padding: 0; }
  html[data-brand="gymiprep"] .gp-head[data-gp-mode="app"] .gp-me-ic { display: grid; }
  html[data-brand="gymiprep"] .gp-head[data-gp-mode="app"] .gp-me-lb { display: none; }
}
/* the parents' header: a call to action beside the login on wide screens */
html[data-brand="gymiprep"] .gp-head-cta { display: none !important; }
@media (min-width: 1000px) { html[data-brand="gymiprep"] .gp-head-cta { display: inline-flex !important; } }

/* ---- Phone tab bar · class kp-tabbar and html[data-kp-tabs="on"]: the shared scripts keep clear of it ------------ */
html[data-brand="gymiprep"] .kp-tabbar.gp-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: none;
  padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: var(--gp-card); border-top: var(--gp-bw) solid var(--gp-ink); box-shadow: none; }
html[data-brand="gymiprep"] .gp-tabbar .kp-tabbar-inner { display: flex; justify-content: space-around; gap: 4px; max-width: 560px; margin: 0 auto; }
html[data-brand="gymiprep"] .gp-tabbar .kp-tab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-height: 52px; padding: 4px 2px; border-radius: var(--gp-r-sm); color: var(--gp-ink-2); text-decoration: none;
  font-family: var(--gp-font-ui); position: relative; }
html[data-brand="gymiprep"] .gp-tabbar .kp-tab .gp-tab-ic { display: grid; place-items: center; width: 44px; height: 28px; border: var(--gp-bn) solid transparent; border-radius: var(--gp-pill); }
html[data-brand="gymiprep"] .gp-tabbar .kp-tab svg { width: 22px; height: 22px; display: block; stroke-width: 2.2; }
html[data-brand="gymiprep"] .gp-tabbar .kp-tab .kp-lbl { font-family: var(--gp-font-ui); font-weight: 700; font-size: 12px; letter-spacing: 0; line-height: 1.15;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-brand="gymiprep"] .gp-tabbar .kp-tab[aria-current="page"] { color: var(--gp-ink); }
html[data-brand="gymiprep"] .gp-tabbar .kp-tab[aria-current="page"] .gp-tab-ic { background: var(--gp-lime); border-color: var(--gp-ink); }
html[data-brand="gymiprep"] .gp-tabbar .kp-tab.on::after { content: none; }
html[data-brand="gymiprep"] .gp-tabbar .kp-tab:hover { color: var(--gp-ink); }
html[data-brand="gymiprep"] .gp-tabbar .kp-tab:focus-visible { outline: var(--gp-focus-w) solid var(--gp-focus); outline-offset: -3px; }
@media (max-width: 899px) {
  html[data-brand="gymiprep"][data-kp-tabs="on"] .kp-tabbar.gp-tabbar { display: block; }
  html[data-brand="gymiprep"][data-kp-tabs="on"] body { padding-bottom: calc(var(--gp-tab-h) + 6px + env(safe-area-inset-bottom, 0px)); }
  html[data-brand="gymiprep"][data-kp-tabs="on"] .ms-toast { bottom: calc(var(--gp-tab-h) + 20px + env(safe-area-inset-bottom, 0px)); }
  /* a part that takes the keyboard focus is scrolled above the fixed bar, never behind it (WCAG 2.4.11); only the
     focused part, so the scroll places of the shared scripts (their own scroll margins) stay as they are */
  html[data-brand="gymiprep"][data-kp-tabs="on"] :focus { scroll-margin-bottom: calc(var(--gp-tab-h) + 24px + env(safe-area-inset-bottom, 0px)); }
}
/* small phones: each tab takes the whole quarter and the labels a hair smaller, so «Mein Bereich» shows whole */
@media (max-width: 359.98px) {
  html[data-brand="gymiprep"] .kp-tabbar.gp-tabbar { padding-left: max(4px, env(safe-area-inset-left)); padding-right: max(4px, env(safe-area-inset-right)); }
  html[data-brand="gymiprep"] .gp-tabbar .kp-tabbar-inner { gap: 0; }
  html[data-brand="gymiprep"] .gp-tabbar .kp-tab { padding-left: 0; padding-right: 0; }
  html[data-brand="gymiprep"] .gp-tabbar .kp-tab .kp-lbl { font-size: 11.5px; }
}
@media (min-width: 900px) { html[data-brand="gymiprep"] .kp-tabbar.gp-tabbar { display: none !important; } }
@media print { html[data-brand="gymiprep"] .kp-tabbar.gp-tabbar { display: none !important; } }

/* ---- Footer ---------------------------------------------------------------------------------------------------- */
html[data-brand="gymiprep"] .site-foot.gp-foot { position: static; margin-top: var(--gp-s8); padding: 20px 0 28px;
  background: var(--gp-paper); border-top: var(--gp-bw) solid var(--gp-ink); font-family: var(--gp-font-ui); font-size: var(--gp-fs-sm); color: var(--gp-ink); }
html[data-brand="gymiprep"] .site-foot.gp-foot::before { content: none; }
html[data-brand="gymiprep"] .gp-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  width: 100%; max-width: var(--gp-wrap); margin: 0 auto; padding: 0 var(--gp-gutter); }
html[data-brand="gymiprep"] .gp-foot .gp-logo { font-size: 16px; }
/* phones: the wordmark has its own row, so the links do not jump beside it when the font arrives (404 page, 390 px) */
@media (min-width: 360px) and (max-width: 479.98px) { html[data-brand="gymiprep"] .gp-foot .gp-logo { flex: 0 0 100%; } }
html[data-brand="gymiprep"] .gp-foot .gp-logo-mark { width: 28px; height: 28px; font-size: 15px; box-shadow: none; }
html[data-brand="gymiprep"] .gp-foot-note { flex: 1 1 100%; order: 3; margin: 0; max-width: 70ch; color: var(--gp-ink-2); line-height: 1.5; }
html[data-brand="gymiprep"] .gp-foot-note code { font-family: var(--gp-font-mono); font-size: .95em; padding: 0 4px; border: 1px solid var(--gp-hair); border-radius: 5px; background: var(--gp-card); }
html[data-brand="gymiprep"] .gp-foot nav { display: flex; flex-wrap: wrap; gap: 0 14px; }
html[data-brand="gymiprep"] .gp-foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--gp-ink); text-underline-offset: 3px; }
html[data-brand="gymiprep"] .gp-foot-line { color: var(--gp-ink-2); }

/* ---- Components ------------------------------------------------------------------------------------------------ */
/* buttons: lime = the main action, ink = strong secondary, white = secondary, ghost = text link */
html[data-brand="gymiprep"] .gp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 20px;
  border: var(--gp-bw) solid var(--gp-ink); border-radius: var(--gp-r-sm); background: var(--gp-card); color: var(--gp-ink);
  font-family: var(--gp-font-ui); font-weight: 800; font-size: var(--gp-fs-base); line-height: 1.15; text-align: center; text-decoration: none;
  box-shadow: var(--gp-sh-sm); cursor: pointer; }
html[data-brand="gymiprep"] .gp-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--gp-sh); }
html[data-brand="gymiprep"] .gp-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--gp-ink); }
html[data-brand="gymiprep"] .gp-btn-lime { background: var(--gp-lime); }
html[data-brand="gymiprep"] .gp-btn-ink { background: var(--gp-ink); color: var(--gp-paper); }
html[data-brand="gymiprep"] .gp-btn-ink:hover { background: var(--gp-ink-hover); }
html[data-brand="gymiprep"] .gp-btn-sm { min-height: 44px; padding: 8px 14px; font-size: var(--gp-fs-md); box-shadow: var(--gp-sh-xs); }
html[data-brand="gymiprep"] .gp-btn-ghost { padding-inline: 10px; border-color: transparent; background: transparent; box-shadow: none;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
html[data-brand="gymiprep"] .gp-btn-ghost:hover, html[data-brand="gymiprep"] .gp-btn-ghost:active { transform: none; box-shadow: none; border-color: var(--gp-ink); background: var(--gp-card); }
html[data-brand="gymiprep"] .gp-btn[aria-disabled="true"], html[data-brand="gymiprep"] .gp-btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
html[data-brand="gymiprep"] .gp-on-ink .gp-btn { box-shadow: 4px 4px 0 var(--gp-lime); }
html[data-brand="gymiprep"] .gp-on-ink .gp-btn-lime { box-shadow: 4px 4px 0 var(--gp-paper); }
html[data-brand="gymiprep"] .gp-on-ink .gp-btn:hover { box-shadow: var(--gp-glow), 6px 6px 0 var(--gp-lime); }
/* inside a 3 px part: 2 px and no offset shadow */
html[data-brand="gymiprep"] .gp-card .gp-btn { border-width: var(--gp-bn); box-shadow: none; }
html[data-brand="gymiprep"] .gp-card .gp-btn:hover { transform: none; box-shadow: inset 0 0 0 1.5px var(--gp-ink); }
html[data-brand="gymiprep"] .gp-card .gp-btn:active { transform: translateY(1px); box-shadow: none; }
html[data-brand="gymiprep"] .gp-card .gp-btn-ghost:hover { box-shadow: none; }

/* surfaces */
html[data-brand="gymiprep"] .gp-card { min-width: 0; padding: 20px; border: var(--gp-bw) solid var(--gp-ink); border-radius: var(--gp-r);
  background: var(--gp-card); box-shadow: var(--gp-sh); }
html[data-brand="gymiprep"] .gp-card-lime { background: var(--gp-lime); }
html[data-brand="gymiprep"] .gp-card-ink { background: var(--gp-ink); color: var(--gp-paper); box-shadow: var(--gp-sh-lime); }
html[data-brand="gymiprep"] .gp-band { background: var(--gp-ink); color: var(--gp-paper); }
html[data-brand="gymiprep"] .gp-grid-paper { background-color: var(--gp-paper);
  background-image: linear-gradient(var(--gp-grid) 1px, transparent 1px), linear-gradient(90deg, var(--gp-grid) 1px, transparent 1px);
  background-size: 32px 32px; }

/* labels, chips, highlight */
html[data-brand="gymiprep"] .gp-eyebrow { display: inline-flex; align-items: center; gap: 9px; width: fit-content; max-width: 100%; margin: 0; padding: 6px 12px;
  border: var(--gp-bn) solid var(--gp-ink); border-radius: 10px; background: var(--gp-card); color: var(--gp-ink);
  font-family: var(--gp-font-mono); font-size: var(--gp-fs-xs); font-weight: 600; line-height: 1.35; letter-spacing: .05em; text-transform: uppercase; }
html[data-brand="gymiprep"] .gp-tick { flex: none; width: 9px; height: 9px; border: var(--gp-bn) solid var(--gp-ink); background: var(--gp-lime); transform: rotate(45deg); }
html[data-brand="gymiprep"] .gp-label { font-family: var(--gp-font-mono); font-size: var(--gp-fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gp-ink-2); }
html[data-brand="gymiprep"] .gp-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: var(--gp-bn) solid var(--gp-ink);
  border-radius: var(--gp-pill); background: var(--gp-card); color: var(--gp-ink); font-family: var(--gp-font-ui); font-weight: 700; font-size: var(--gp-fs-sm); line-height: 1.2; }
html[data-brand="gymiprep"] .gp-chip-lime { background: var(--gp-lime); }
html[data-brand="gymiprep"] .gp-mark { color: var(--gp-ink); background: var(--gp-lime); border: var(--gp-bw) solid var(--gp-ink); border-radius: .14em;
  padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html[data-brand="gymiprep"] .gp-ph { display: inline-flex; align-items: center; padding: 1px 8px; border: 1.5px dashed currentColor; border-radius: var(--gp-pill);
  font-family: var(--gp-font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* type */
html[data-brand="gymiprep"] .gp-display { margin: 0; font-family: var(--gp-font-display); font-weight: 900; font-stretch: 125%;
  font-size: var(--gp-fs-display); line-height: var(--gp-lh-tight); letter-spacing: -.03em; text-wrap: balance; }
html[data-brand="gymiprep"] .gp-h1 { margin: 0; font-family: var(--gp-font-ui); font-weight: 900; font-stretch: 100%; font-size: var(--gp-fs-h1); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
html[data-brand="gymiprep"] .gp-h2 { margin: 0; font-family: var(--gp-font-display); font-weight: 900; font-stretch: 112%; font-size: var(--gp-fs-h2); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
html[data-brand="gymiprep"] .gp-h3 { margin: 0; font-family: var(--gp-font-ui); font-weight: 800; font-size: var(--gp-fs-h3); line-height: 1.15; letter-spacing: -.01em; }
html[data-brand="gymiprep"] .gp-lead { margin: 0; max-width: 34em; font-size: clamp(1.06rem, .5vw + .95rem, 1.3rem); line-height: 1.5; }
html[data-brand="gymiprep"] .gp-small { font-size: var(--gp-fs-sm); color: var(--gp-ink-2); }
html[data-brand="gymiprep"] .gp-math { font-family: var(--gp-font-math); font-weight: 700; font-stretch: 100%; white-space: nowrap; }
html[data-brand="gymiprep"] .gp-mono { font-family: var(--gp-font-mono); }
html[data-brand="gymiprep"] sup { font-size: .62em; line-height: 0; position: relative; top: -.52em; vertical-align: baseline; margin-left: .03em; }

/* states: never colour alone, always an icon and a word */
html[data-brand="gymiprep"] .gp-fb { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: var(--gp-bn) solid var(--gp-ink);
  border-radius: var(--gp-r-sm); background: var(--gp-card); }
html[data-brand="gymiprep"] .gp-fb-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: var(--gp-bn) solid var(--gp-ink); border-radius: 9px; background: var(--gp-card); }
html[data-brand="gymiprep"] .gp-fb-ic .gp-ic { width: 18px; height: 18px; stroke-width: 3; }
html[data-brand="gymiprep"] .gp-fb-h { margin: 0; font-weight: 800; font-size: var(--gp-fs-base); line-height: 1.3; }
html[data-brand="gymiprep"] .gp-fb-p { margin: 2px 0 0; font-size: var(--gp-fs-md); line-height: 1.45; }
html[data-brand="gymiprep"] .gp-fb.is-ok { background: var(--gp-lime); }
html[data-brand="gymiprep"] .gp-fb.is-near { background: var(--gp-lime-tint); }
html[data-brand="gymiprep"] .gp-fb.is-bad { background: var(--gp-pink-tint); }
html[data-brand="gymiprep"] .gp-fb.is-bad .gp-fb-ic { background: var(--gp-pink); }
html[data-brand="gymiprep"] .gp-fb.is-info { background: var(--gp-paper); border-style: dashed; }

/* stars: an ink-filled star is earned, an outlined one is not (readable without colour) */
html[data-brand="gymiprep"] .gp-stars { display: inline-flex; align-items: center; gap: 2px; vertical-align: -.18em; white-space: nowrap; line-height: 1; }
html[data-brand="gymiprep"] .gp-star { width: 1.1em; height: 1.1em; fill: none; stroke: var(--gp-ink); stroke-width: 2; stroke-linejoin: round; }
html[data-brand="gymiprep"] .gp-star.on { fill: var(--gp-ink); }
html[data-brand="gymiprep"] .gp-stars.big .gp-star { width: 1.45em; height: 1.45em; }

/* the AI note: the tutor is an AI and can be wrong (shown wherever the tutor appears, from T5 on) */
html[data-brand="gymiprep"] .gp-ai-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--gp-ink-2); }
html[data-brand="gymiprep"] .gp-ai-note .gp-ic { width: 16px; height: 16px; margin-top: 1px; }
html[data-brand="gymiprep"] .gp-ai-badge { display: inline-flex; align-items: center; padding: 3px 9px; border: var(--gp-bn) solid var(--gp-ink); border-radius: var(--gp-pill);
  background: var(--gp-lime); color: var(--gp-ink); font-family: var(--gp-font-mono); font-size: 12px; font-weight: 600; line-height: 1.3; }
html[data-brand="gymiprep"] .gp-tutor-swatch { background: var(--gp-violet); color: #fff; }

/* folded details: one thing per block, the rest one click away */
html[data-brand="gymiprep"] .gp-fold { border: var(--gp-bn) solid var(--gp-ink); border-radius: var(--gp-r-sm); background: var(--gp-card); }
html[data-brand="gymiprep"] .gp-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px;
  padding: 10px 14px 10px 16px; border-radius: 10px; font-weight: 800; font-size: var(--gp-fs-base); line-height: 1.3; cursor: pointer; list-style: none; }
html[data-brand="gymiprep"] .gp-fold > summary::-webkit-details-marker { display: none; }
html[data-brand="gymiprep"] .gp-fold > summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 30px; height: 30px;
  border: var(--gp-bn) solid var(--gp-ink); border-radius: 8px; font-family: var(--gp-font-mono); font-weight: 600; font-size: 18px; line-height: 1; }
html[data-brand="gymiprep"] .gp-fold[open] > summary::after { content: "\2212"; background: var(--gp-lime); }
html[data-brand="gymiprep"] .gp-fold > :not(summary) { margin: 0; padding: 0 16px 16px; }

/* ---- Doors · while the instance keeps sign-up or login closed (docs/GYMIPREP.md Amendment D) ---------------------
   /api/site/doors.js sets <html data-gp-doors="signup login"> (or "signup") before the first paint. Then every link into
   the sign-up and the parents' account link of the header are gone, and a page whose main call stood there says once,
   in its place, that sign-up and login open soon (an empty .gp-doors-note that gp/shell.js fills in the page's language).
   With both doors open there is no attribute: nothing here applies, and every page reads as before. */
html[data-brand="gymiprep"][data-gp-doors~="signup"] a[href*="#konto-erstellen"],
html[data-brand="gymiprep"][data-gp-doors~="login"] a.gp-me[href$="#konto"] { display: none !important; }
html[data-brand="gymiprep"] .gp-doors-note { display: none; }
html[data-brand="gymiprep"][data-gp-doors~="signup"] .gp-doors-note { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 52px;
  margin: 0; padding: 10px 16px; border: var(--gp-bn) dashed var(--gp-ink); border-radius: var(--gp-r-sm); background: var(--gp-card); color: var(--gp-ink);
  font-family: var(--gp-font-ui); font-weight: 800; font-size: var(--gp-fs-base); line-height: 1.3; }

/* ---- Motion: only for people who have not asked for less; nothing runs endlessly -------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html[data-brand="gymiprep"] .gp-btn, html[data-brand="gymiprep"] .gp-chip, html[data-brand="gymiprep"] .gp-nav a,
  html[data-brand="gymiprep"] .gp-lang button, html[data-brand="gymiprep"] .gp-tabbar .kp-tab .gp-tab-ic {
    transition: transform var(--gp-dur-1) ease, box-shadow var(--gp-dur-1) ease, background-color var(--gp-dur-1) ease, border-color var(--gp-dur-1) ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-brand="gymiprep"] *, html[data-brand="gymiprep"] *::before, html[data-brand="gymiprep"] *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  html[data-brand="gymiprep"] .gp-btn:hover, html[data-brand="gymiprep"] .gp-btn:active { transform: none; }
}
