Living Websites
German version: SKILL.de.md
This skill describes how a website should be built so it feels alive, polished and trustworthy. It was developed on a real project, Antritt (workshops for apprentices), and condensed into a method. What carries over is the method and the quality bar, not Antritt's look.
0. Precedence: read the project rules first
- Read the current project's
CLAUDE.mdandNEXT-STEP.md(or similar handoff files). They win every conflict. - Do not copy colors, logo, fonts or copy from another project. Every project has its own brand.
- Match the amount of motion to the product, and say up front how much you plan to use:
- Sales page, offer, young audience: lots of motion.
- Sensitive content, reports, trust products: calm, little motion.
- Learning tools: usability first, motion only as feedback.
- If something in this skill contradicts a project rule: follow the project rule and name the conflict in one sentence before acting.
1. Working with the user
- Raise concerns before executing, not afterwards. If the user sticks with the request, carry it out fully.
- Focus instead of overload: always name exactly one next step, tick off what is done visibly, avoid long lists of equal-weight items.
- Design is decided by looking: show variants with a switch (a small toggle on the real page) instead of describing them. Remove the toggle once a choice is made.
- After every round: re-run all checks (section 8) and give a short list of further improvements, sorted by impact.
- Keep handoff files for new sessions up to date after every round:
CLAUDE.md(for Claude) and a short next-step file (for the user). - Never publish, buy or send anything without an explicit yes.
- File finished work in an orderly way: numbered top-level folders, a
00 START HERE.mdwith the folder map, naming rules and a log. Build in a workshop folder; a script copies finished versions to their place. One file, one location; nothing loose on the desktop; never delete, only archive.
2. Language
- When writing German: always use ä ö ü ß, never ae oe ue ss.
- No dashes as punctuation (– or —). Readers recognize them as AI text. Use a comma, colon or period.
- Non-breaking spaces between number and unit (
890 €,29.7 %,20 minutes,§ 19). - Short sentences, active verbs, one term per intent (a button has the same name everywhere).
3. What "alive" means (and what was rejected)
Rejected as "extremely bad, zoomed in, not alive": a huge headline filling the whole first screen, hard edges, heavy type everywhere, almost no motion, no figures, nothing reacts. Also rejected: muted, "dated" palettes.
Alive means:
- A stage in the first screen: headline, one sentence and two buttons on the left. On the right, a moving scene from the audience's everyday life (for Antritt: chat bubbles with typical apprentice lines typing in one after another), surrounded by floating cards with key facts and a rotating round stamp.
- Round, soft shapes with one consistent radius system (pills for buttons, 22 to 32 px for cards).
- One strong accent color on top of the base palette, used as a role token, not scattered around.
- Varied section shapes instead of three identical boxes three times: timeline, stacked cards, uneven tiles (one large, two small), progress line, pills, expandable FAQs.
- No marquee of buzzwords ("Give feedback ✦ Resolve conflicts ✦ …"). It reads as inauthentic. Instead show concrete moments from the audience's life, with month, the situation in one sentence and the matching offer. The visitor controls the motion (timeline slides sideways on scroll, swipe on mobile; or flip cards). Original file:
momente.astro. - Real photos are strongest. Never invented ones. Until real ones exist: illustrative scenes instead of stock photos.
4. Design system
- Colors as roles, not names:
--bg,--ink,--surface,--emphasis,--lead/--on-lead,--accent/--on-accent,--button… Variants can then be switched with an attribute on<html>. - One variable-width font family (Antritt: Archivo), self-hosted and preloaded. Wide and bold for headings, regular for body. No fonts from third-party servers.
- Scales as tokens for type (
--fs-0to--fs-6, usingclamp) and spacing (--sp-1to--sp-6). No fixed px values in body text. - Grids with
minmax(0, 1fr); every multi-column layout has a mobile version. Headings withtext-wrap: balance. - Font sizes that depend on a card's width use container queries (
cqi) on the element that holds the text, not on the whole card.
5. Building blocks
| Block | What it does | Original file |
|---|---|---|
| Pressable button | colored bottom edge, lifts on hover, colors swap, light streak, sinks in on press and springs back, click ripple from the click point, slight magnet towards the cursor | knoepfe.css, ripple and magnet in bewegung.ts |
| Tabs with pills | a white pill marks the current page, a second pill glides springily to the cursor; mobile: menu button turns into an X, items fly in staggered, Escape closes | header.astro, kopf.css |
| Logo with meaning | a mark that tells a story and moves (Antritt: a three-step staircase, a dot jumps up, "the jumping point"). On load, on touch, and now and then a small hop | logo.astro, logo.css |
| Reveal on scroll | elements glide in staggered (IntersectionObserver, only transform and opacity) | bewegung.ts |
| Counters | numbers count up when they come into view, formatted with Intl.NumberFormat | bewegung.ts |
| Word swap | one word in the stage changes every 2.8 s | bewegung.ts |
| Word by word | a key sentence fills in word by word while scrolling | bewegung.ts |
| Stacked cards | cards slide over each other on scroll (sticky), the covered one shrinks slightly | bewegung.ts |
| Progress line | a line fills while scrolling, steps get marked | bewegung.ts |
| Finder / quiz | three questions, a recommendation with price, then pre-fills the contact form | paket-finder.astro |
| Pause button | stops all continuous motion and remembers the choice (WCAG 2.2.2) | bewegung.ts |
| Progress bar, page transitions | reading progress under the header, soft transitions between pages, CSS only | kopf.css |
| Jumping dot (physics) | a real jump: wind-up (squash), a parabola sampled at 15 points, stretch in flight, squash on landing, a short settle. Step by step, also backwards, jumps chained (never two at once) | sprung.ts |
| Moments instead of a marquee | a timeline of real situations that slides sideways on scroll | momente.astro |
| Clickable pricing | formats as cards, packages as check cards with rules, group size with a stepper; on the right a price that softly counts to its new value, price per person, a single button carries everything into the form. Without JS a normal GET form | preiswahl.astro |
| Inquiry form | two numbered parts, choices as large chips instead of dropdowns, labels on top, check marks for valid input, errors only after leaving a field or submitting, a carried-over selection is announced | anfrage.astro |
| Mobile bar | after the first screen a bottom bar "From 890 € · Inquire", hidden wherever an inquiry path is already visible | bewegung.ts, antritt-global.css |
Rules for every animation:
- Only
transform,opacity, rarelyclip-path. Nevertransition: all. - Hover only inside
@media (hover: hover) and (pointer: fine). - One orchestrated entrance on load, not separate effects everywhere.
prefers-reduced-motion: everything still and visible. Without JS: everything visible (never reveal content only via script).- Anything that gets paused and has an entrance animation (for example a logo dot) gets
animation: nonewhen paused, notpaused, otherwise it freezes invisibly. - Balls and jumps never as CSS keyframes with few points: it looks like the ball "jumps up weirdly". Sample a real parabola with the Web Animations API (
sprung.ts), squash and stretch, then commitstyle.transformand discard the animation. Measure it: record the path withrequestAnimationFrame; rise and fall must be even. - Rhythm: build several jumps in a row as ONE animation on a beat grid (
takt()insprung.ts), not as a chain of separate animations, or the timing drifts. Antritt: 4/4 at 125 BPM, an upbeat from the side tapping on "and", landings exactly on 1, 2, 3, 4. Ground contact and flight time equal for every jump. Measure it: the gaps between landings must be equal (measured 476 to 483 ms). - Elements that appear via script need a CSS safety net (visible after 2.5 s if the script is missing).
5a. Forms and choices
Dropdowns (<select>) for questions like "How many people?" look very cheap. Guidelines based on Baymard and web.dev:
- A few fixed options (up to about 6) as large chips or cards, not a dropdown. Real
radio/checkboxinputs stay underneath (invisible but focusable), focus ring via:focus-visible + spanor:has(). - Label above the field, never a placeholder as the label. Examples go in a hint line under the label.
- Validate on blur (leaving a field empty is not an error) or on submit; after that on every input. Errors disappear right after correction, valid input gets a small check mark.
- Fields at least 48 px high, font at least 16 px (otherwise iOS zooms),
autocomplete,inputmode,spellcheck=falsefor email. - Split into parts (1 Your request, 2 Your contact details), promises right at the button ("Reply within two business days").
- Carry earlier choices (pricing, finder) over via the URL and announce them: "Your selection is already filled in. You can still change everything."
- Pricing: everything clickable, one result field, one button. Not three price boxes you cannot take anything from.
- Set the global rule
[hidden] { display: none !important; }. Otherwisedisplay: flexoverrides the attribute and error messages show from the start (this happened on Antritt).
6. Psychological check of the copy
Read every page twice: as the decision maker who pays, and as the user.
- Don't accuse. No sentence implying the buyer is doing something wrong. No examples where the buyer is the bad guy.
- Ability over endurance ("handle criticism" instead of "put up with criticism").
- Make the price tangible: price per person, real savings on packages, fixed prices before the inquiry.
- Lower the barrier right at the button: "free, 20 minutes, no obligation".
- Answer objections in a FAQ section before they slow the decision.
- An honest limit after numbers or promises ("A half day alone won't solve this …").
- A small commitment before the big one: a finder or quiz that then pre-fills the form.
- Forbidden: invented testimonials, logos or numbers, countdown timers, artificial scarcity, "today only". Every number has a source, checked against the original.
7. Law and data (short version)
- No trackers, no cookies, no Meta pixel, no fonts or scripts from third-party servers without need.
- No unsolicited marketing emails (in Germany § 7 (2) UWG), not even to companies.
- Legal notice (Impressum) and privacy policy before any launch,
noindexuntil approved. - Never copy other websites 1:1; only adopt techniques and credit sources.
8. Verification routine after every change
- Build without errors, no errors in the browser console.
- Contrast of every text ≥ 4.5:1 (large text 3:1), measured by script over all text nodes, with semi-transparent backgrounds blended. Write the script once and reuse it.
- Widths 320, 390, 768, 1280, 1440: no text overflows the page and none overflows its own box (the second case was found late on Antritt).
- All internal links and anchors reachable.
- Play through interactions: form empty, wrong, right; finder all paths; menu with keyboard and Escape; pause button.
- Without JS (iframe with
sandbox="allow-same-origin") and with reduced motion (chrome --headless --force-prefers-reduced-motion --screenshot). - Look yourself: screenshots at 1440 and 390, animations frame by frame (pause the animation, set a negative
animation-delay). - Pitfalls while checking:
- Chrome pauses animations and transitions in background tabs. Before measuring, run
document.getAnimations().forEach(a => a.finish())and disable transitions, otherwise things look invisible. - Start long checks (many iframes) in the background, store the result on
windowand collect it later. - Invisible screen-reader text and horizontal swipe tracks cause false overflow alarms.
- Inject the check script only once per loaded page, otherwise the old result stays.
- Check draft toggles (variant A/B) too: on Antritt exactly that toggle shifted the page sideways at 320 px.
- Files with Windows line endings: if the edit tool struggles, work line by line.
- If a result is not as expected, measure instead of guessing.
- Chrome pauses animations and transitions in background tabs. Before measuring, run
9. About the file names
The file names in section 5 (knoepfe.css, bewegung.ts, sprung.ts …) refer to the original
project and are not included in this repo. They show how the code can be split up. Build each
block fresh for the new project, following the descriptions above, with its own colors, copy and
logo motif.