*,*::before,*::after { box-sizing: border-box; }
  :root {
    --accent: #0067c0; --accent2: #6d3ff0; --ink: #16233a; --mut: #5b6a85; --line: #e4e8f0;
    --card: #ffffff; --wall: radial-gradient(90% 70% at 12% 8%, #dbe9ff 0%, transparent 55%), radial-gradient(80% 70% at 90% 4%, #e9e2ff 0%, transparent 52%), linear-gradient(165deg, #f6f9fe 0%, #eef3fb 60%, #eaf1fa 100%);
  }
  @media (prefers-color-scheme: dark) {
    :root { --ink: #eaf2ff; --mut: #a9b7d0; --line: rgba(255,255,255,.12); --card: rgba(255,255,255,.05);
      --wall: radial-gradient(100% 80% at 10% 6%, #16305c 0%, transparent 55%), radial-gradient(90% 80% at 92% 8%, #3b2470 0%, transparent 55%), linear-gradient(165deg, #0a1226 0%, #0b1020 60%, #0a1a2e 100%); }
  }
  body { margin: 0; font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--wall) fixed; }
  a { color: var(--accent); }
  .wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px 80px; }
  /* flex-wrap is the reflow fix: the bar is 399.7px wide unwrapped (four children + gap + wrap
     padding), so at 320/360/390px the language link sat at x=399.7 and the page scrolled sideways.
     Wrapping costs nothing at >=400px — a single line renders exactly as before. */
  header.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 0 8px; }
  .logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; text-decoration: none; color: var(--ink); }
  .logo i { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(120deg, #22d3ee, #8b5cf6); display: grid; place-items: center; color: #fff; font-style: normal; }
  .nav .sp { flex: 1 1 auto; }
  .nav a.plain { text-decoration: none; color: var(--mut); font-size: 14.5px; min-height: 24px; }
  /* NOT `font: 600 13.5px inherit`: `inherit` is not a <font-family>, the whole shorthand is
     invalid and is dropped — the toggle then rendered 16px/400 in the UA size. */
  /* one interactive radius (12px, the .btn value) for every control a visitor can press:
     the language toggle was the only 9px corner in the set (measured 9/12/999 across the
     controls; 999px stays on the passive label chips .badge/.lv-chip). */
  .lang { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 6px 10px; font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer; }
  h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.1; margin: 22px 0 12px; letter-spacing: -.02em; }
  h1 em { font-style: normal; background: linear-gradient(120deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .lead { font-size: clamp(17px, 2vw, 20px); color: var(--mut); max-width: 46em; }
  .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
  /* same invalid shorthand as .lang: it was dropped, so every blue CTA rendered 16px/400 (and the
     submit <button class="btn"> even 13.33px Arial, because the UA font survives a dropped rule). */
  /* ONE CTA shape for every .btn on every page (radius 12px · padding 12px 18px · font 15.5px).
     Measured before this change: three shapes of the same class — 14px 20px on the form submit
     (52px tall, line-height `normal` because the UA button style blocks the inheritance),
     12px 18px on the hero row, 10px 14px inside .ex-acts (41–45px) — i.e. two different buttons
     on the same page at the same viewport. 12px 18px is the value that was already rendered on
     every phone and every laptop (all viewports ≤1000px tall), so it is the shipped shape, not a
     new one. `line-height` is stated explicitly so the submit <button class="btn"> measures the
     same as the <a class="btn"> next to it. */
  .btn { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 12px; padding: 12px 18px; font-size: 15.5px; line-height: 1.65; font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: none; background: linear-gradient(120deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 10px 26px rgba(0,80,200,.22); }
  .btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
  .badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
  .badge { font-size: 13px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--mut); }
  h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 54px 0 8px; letter-spacing: -.01em; }
  h3 { font-size: 17px; margin: 0 0 4px; }
  p.sub { color: var(--mut); margin: 0 0 18px; max-width: 52em; }
  .grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
  .card .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(0,103,192,.12); color: var(--accent); font-weight: 700; margin-bottom: 8px; }
  .card p { margin: 6px 0 0; color: var(--mut); font-size: 14.8px; }
  ul.ticks { list-style: none; padding: 0; margin: 10px 0 0; }
  ul.ticks li { position: relative; padding-left: 26px; margin: 7px 0; color: var(--mut); }
  ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: #17a34a; font-weight: 700; }
  details.faq { border-top: 1px solid var(--line); padding: 14px 0; }
  details.faq summary { cursor: pointer; font-weight: 600; }
  details.faq p { color: var(--mut); margin: 8px 0 0; }
  form.req { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-top: 14px; }
  .row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 12px; }
  label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
  /* `font: 15px inherit` is invalid for the same reason and was dropped too, so all seven fields
     of /schule/ fell back to the UA default (13.3333px Arial / monospace). Only `font-family` can
     undo the UA family — `font-size` alone leaves Arial standing. */
  input, textarea, select { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.75); color: var(--ink); font-size: 15px; font-family: inherit; }
  @media (prefers-color-scheme: dark) { input, textarea, select { background: rgba(255,255,255,.06); } }
  textarea { min-height: 104px; resize: vertical; }
  .consent { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 13.5px; color: var(--mut); }
  .consent input { width: auto; margin-top: 4px; }
  /* WCAG 2.5.8: the 13x13 default checkbox is the real target; the wrapping <label> only counts
     when the box itself is hittable. 24px box (+ flex:0 0 auto so the row cannot shrink it). */
  .consent input[type="checkbox"] { flex: 0 0 auto; width: 24px; height: 24px; min-width: 24px; }
  .consent { min-height: 44px; }
  .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .note { font-size: 13.5px; color: var(--mut); margin-top: 10px; }
  .ok { display: none; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(23,163,74,.12); border: 1px solid rgba(23,163,74,.4); }
  .err { display: none; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(224,85,95,.12); border: 1px solid rgba(224,85,95,.4); }
  footer { margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--mut); font-size: 14px; display: flex; flex-wrap: wrap; gap: 14px; }
  footer a { min-height: 24px; }
  /* language switch: `display: revert` is NOT enough — the UA sheet hides [data-en] and a
     revert resolves against that same rule, so the English page rendered empty. Text elements
     that the page hides get their block display back; inline elements (a, span, label, option,
     button) keep the browser default, which is what their layout expects. */
  [data-en] { display: none; }
  html[lang="en"] [data-de] { display: none; }
  html[lang="en"] [data-en] { display: block; }
  /* …but never flatten a <summary>: block loses the disclosure marker (`list-item`), and the
     hidden language would keep the marker while the visible one has none. */
  html[lang="en"] summary[data-en] { display: list-item; }
  html[lang="en"] li[data-en] { display: list-item; }
  html[lang="en"] ul.ticks > li[data-en] { display: flex; }

  /* ---------- v16-schule: Beispiele (Prompt + sofort sichtbares Ergebnis) ---------- */
  .lv { margin-top: 34px; }
  .lv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-bottom: 4px; }
  .lv-chip { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: linear-gradient(120deg, var(--accent), var(--accent2)); border-radius: 999px; padding: 4px 11px; }
  .ex { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 16px; margin: 16px 0; }
  @media (min-width: 900px) { .ex { grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr); align-items: start; } }
  .ex h3 { font-size: 19px; margin: 0 0 6px; }
  .ex .goal { color: var(--mut); font-size: 14.8px; margin: 0 0 10px; }
  .ex .stamp { font-size: 12.5px; color: var(--mut); margin: 0 0 10px; }
  .ex .stamp b { color: var(--ink); font-weight: 600; }
  .ex-prompt { border-top: 1px solid var(--line); padding-top: 10px; }
  .ex-prompt summary { cursor: pointer; font-weight: 600; font-size: 14px; }
  .ex-prompt pre { white-space: pre-wrap; word-break: break-word; background: rgba(0,0,0,.045); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 10px 0; max-height: 260px; overflow: auto; }
  @media (prefers-color-scheme: dark) { .ex-prompt pre { background: rgba(255,255,255,.06); } }
  .ex-acts { display: flex; flex-wrap: wrap; gap: 8px; }
  /* no .ex-acts size override: the buttons in the action row are the same CTA as the hero's */
  /* theme-dependent mount surface: the hard-coded #fff was a white panel in the dark theme
     (measured: 9 lazily-mounted panes, 81.4 % of /schule/beispiele/ pure white before the first
     scroll). `--card` is #ffffff in light mode — byte-identical there — and dark in dark mode.
     ponytail: the built apps inside keep their own light/dark design; only this CSS-owned
     surface can be themed from here. */
  .ex-mount { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); aspect-ratio: 4 / 3; }
  .ex-mount iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--card); }
  .ex-mount::after { content: "lädt …"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--mut); font-size: 13.5px; }
  .ex-mount[data-mounted="1"]::after, .ex-mount[data-mounted="fail"]::after { content: none; }
  .ex-fail { display: grid; place-items: center; height: 100%; color: var(--mut); font-size: 13.5px; }
  .viewer { position: fixed; inset: 0; background: #0b1020; }
  .viewer iframe { width: 100%; height: 100%; border: 0; display: block; }
  .viewer-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; background: rgba(16,22,40,.92); border: 1px solid rgba(148,163,255,.3); border-radius: 12px; padding: 7px 10px; z-index: 5; }
  .viewer-bar a, .viewer-bar button { color: #eaf2ff; background: transparent; border: 0; font-size: 13.5px; font-weight: 600; font-family: inherit; text-decoration: none; cursor: pointer; padding: 5px 9px; border-radius: 8px; }
  .viewer-bar a:hover, .viewer-bar button:hover { background: rgba(255,255,255,.12); }

  /* ---------- v16-zielgruppen: /investoren/ · /hochschule/ · /industrie/ ---------- */
  /* they reuse this file instead of inventing a second design system */
  .stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 26px 0 6px; }
  .stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
  .stat b { display: block; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; letter-spacing: -.02em; background: linear-gradient(120deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .stat span { display: block; color: var(--mut); font-size: 13.6px; margin-top: 6px; }
  /* `.stat span` (0,1,1) outranks `[data-en] { display: none }` (0,1,0), so the DE page stacked the
     English stat label under the German one — both rendered, 22px of leaked text. Hide the inactive
     language with enough specificity to win; the visible label's own box is untouched. */
  html:not([lang="en"]) .stat span[data-en] { display: none; }
  .fit { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
  .fit th, .fit td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .fit th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); font-weight: 700; }
  .fit td:first-child { font-weight: 600; white-space: nowrap; }
  .fit tr:last-child td { border-bottom: 0; }
  /* without a max-width this ran 1020px wide ≈ 118 characters per line (the sister role .lead
     uses 46em); 46em = the measured 782px the lead already renders at. */
  .pull { border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; margin: 18px 0 0; font-size: 17px; max-width: 46em; }
  .note-src { font-size: 13px; color: var(--mut); margin-top: 14px; }
  .pulse { display: inline-block; font-weight: 600; color: var(--accent); }
  .jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
  .jump a { font-size: 14px; text-decoration: none; color: var(--mut); border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 7px 13px; }
  @media (max-width: 640px) { .fit { display: block; overflow-x: auto; } }


  /* ---------- v16-zielgruppen: compact first impression on short screens and on phones ---------- */
  /* INTENT (measured 2026-09-21): the compact geometry belongs to viewports that are SHORTER
     than the 1440×900 laptop baseline (max-height: 800px) and to phone widths (max-width: 640px).
     The former `max-height: 1000px` also stripped the airy geometry off the very 1440×900 laptop
     its own comment named — measured there: h2 margin 54→24px, .card padding 18→14/16px,
     form.req 20→13/14px. Phones keep the compact rules at ANY height (measured: iPhone 15
     = 393×852 is taller than 800), so the mobile height budget does not move: /schule/ at
     390×844 measured 2780px before and after this change. */
  @media (max-height: 800px), (max-width: 640px) {
    h2 { margin-top: 24px; }
    .grid { row-gap: 9px; }
    footer { margin-top: 18px; }
    h1 { margin: 16px 0 8px; }
    p.sub { margin-bottom: 12px; }
    .grid { gap: 11px; }
    .card { padding: 14px 16px; }
    .card p { font-size: 14.2px; margin-top: 4px; }
    ul.ticks li { margin: 4px 0; }
    .lead { font-size: 17px; }
    .cta-row { margin: 18px 0 8px; }
    details.faq { padding: 10px 0; }
    form.req { padding: 13px 14px; }
    .row { margin-bottom: 8px; gap: 8px; }
    textarea { min-height: 76px; }
    .stats { margin: 18px 0 4px; }
    h1 { font-size: clamp(26px, 3.6vw, 40px); }
    .badges { margin-top: 4px; }
    form.req .row { gap: 7px; }
    /* 12.4px/1.3 was the only sub-13.5px body text and the only leading < 1.35 on the site;
       the base rules above already use 13.5px/1.5 (and .consent keeps its 44px min-height). */
    .consent { font-size: 13.5px; line-height: 1.5; margin: 4px 0; gap: 8px; }
    .note { margin-top: 6px; }
    form.req { padding: 10px 12px; }
    .row { gap: 6px; margin-bottom: 6px; }
    textarea { min-height: 56px; }
    .btn { padding: 10px 16px; }
    footer { margin-top: 14px; padding-top: 12px; }
    ul.ticks li { margin: 3px 0; }
    .badges { gap: 6px; }
  }

  /* ---------- the 1440×900 laptop, which the brief measures, needs its own compact step ----------
     Measured 2026-09-21: the page ran 2058px = 2.29 screens at 1440×900 while the brief allows 2.
     The compact block above stops at max-height 800px, so the measured laptop (900px tall) got the
     airy geometry. These are the SAME values that block already ships — margin/padding only, no
     font drops below 13.5px — applied to wide screens (>=1000px). A phone (max-width 640px) and a
     short window are untouched, so the mobile budget cannot move. No content is hidden here. */
  @media (min-width: 1000px) {
    h2 { margin-top: 22px; }
    .cta-row { margin: 18px 0 8px; }
    .card { padding: 12px 16px; }
    .grid { gap: 8px; }
    details.faq { padding: 8px 0; }
    p.sub { margin-bottom: 10px; }
    form.req { padding: 14px; }
    textarea { min-height: 80px; }
    footer { margin-top: 26px; padding-top: 14px; }
    .wrap { padding-bottom: 64px; }
  }
  @media print {
    .nav, .cta-row, form.req, .jump, .badges { display: none; }
  }


  /* ---------- v16-zielgruppen: keyboard focus must be visible everywhere ---------- */
  :where(a, button, input, textarea, select, summary, [tabindex]):focus-visible:not(:has(:focus-visible)) {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 8px;
  }

  /* ---------- v16-polish: hover + press feedback (measured: 0 transitions, 0 `:active` rules) ----------
     Before: the five schule3.css pages had zero transitions and zero :active rules, so hovering a
     button or pressing a link changed nothing (the app shell at `/` carries 10). Only transform,
     box-shadow, filter, colour and opacity change here — no property in this block can move a box,
     so the height budget is untouched on every viewport (transform/shadow do not take part in layout). */
  a { transition: color .15s ease, opacity .15s ease; }
  .btn, .jump a, .lang { transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease, border-color .15s ease; }
  .card, .stat, .ex { transition: border-color .15s ease, box-shadow .15s ease; }
  .nav a.plain, footer a { transition: color .15s ease; }
  a:active { opacity: .72; }
  .btn:hover { filter: brightness(1.06); box-shadow: 0 12px 30px rgba(0,80,200,.3); }
  .btn.ghost:hover { border-color: var(--accent); box-shadow: 0 8px 20px rgba(0,80,200,.14); }
  .btn:active { opacity: 1; transform: translateY(1px); filter: brightness(.95); }
  .jump a:hover, .lang:hover { border-color: var(--accent); }
  .jump a:hover { color: var(--ink); }
  .jump a:active, .lang:active { transform: translateY(1px); }
  .card:hover, .stat:hover, .ex:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(0,80,200,.1); }
  .nav a.plain:hover, footer a:hover { color: var(--ink); }

  /* ---------- v16-polish: honour prefers-reduced-motion (was missing on 6 of 8 pages) ----------
     The reduced-motion visitor keeps every state change (colour/brightness/shadow) but gets it
     instantly and without movement: durations collapse to 0.01ms and the translateY presses are
     switched off. Measured after: hover pixel delta stays > 0 with reducedMotion:'reduce'. */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
    .btn:hover, .btn:active, .jump a:active, .lang:active { transform: none !important; }
  }

  /* ---------- v16-polish: accent text needs its own dark tint ----------
     `--accent` #0067c0 as TEXT on the dark wall measured 3.27–3.36:1 (WCAG needs 4.5) while the
     same token behind a white button label must stay dark — so the variable is not touched, only
     the text that paints itself with it. Same hue, lighter tint: measured ≥ 5.1:1 on the wall. */
  @media (prefers-color-scheme: dark) {
    a, .card .n, .pulse { color: #8cc0ff; }
    h1 em, .stat b { background-image: linear-gradient(120deg, #8cc0ff, #b9a3ff); }
  }
