# Parea design system

Version 1.0.0, 2026-11-24. Canonical source: https://brand.parea.health

Parea is a digital companion for medical practices in Austria and the German-speaking region. Its products are used by two groups of people: practice teams (doctors and assistants) and their patients. This document is the complete design language for every Parea product. If you are an agent building or changing Parea interface, follow it exactly.

## How to use this

1. Load the stylesheet or the tokens (see Implementation). Never hard-code a colour, size or radius that a token already names. Hairlines of 1px, percentages, `fr` and media query values are plain values.
2. Decide the audience of the screen before anything else. If a patient can see it, it is a patient screen.
3. Build from the components and patterns below. If something is missing, compose it from tokens in the same style.
4. Write all interface copy in German (Austria), formal "Sie". Documentation and code stay in English.
5. Run the checklist at the end before you finish.

## The twelve rules

These override habit. When in doubt, re-read them.

1. **Two audiences, one system.** `data-audience="patient"` for anything a patient sees: 18px text, 52px controls, one column, one question at a time. The default is `practice`: 15px text, 40px controls, dense and quiet.
2. **The primary action is Tanne.** One primary button per view, filled with `--foreground`. Never a coloured primary button.
3. **Green means selected, done or confirmed.** `--accent` marks the chosen option, the active item, progress and links. It is not decoration.
4. **Flieder belongs to the assistant.** Lilac (`--assistant`) marks content Parea prepared that no person has approved. Nothing else is ever lilac. After approval the lilac disappears.
5. **Parea prepares, people decide.** Nothing the assistant produces is sent, saved to a record or shown to a patient without a named person approving it. Always offer edit and discard next to approve.
6. **Status is never colour alone.** Every status has a word and a dot or icon. Red is only for failure and destruction, amber only for waiting or attention.
7. **Two weights, one family.** Google Sans Flex at 400 and 500. Display lines, page titles and section headings use the rounded cut, everything else the plain cut. No bold, no uppercase, no italics for emphasis.
8. **Identifiers are monospaced.** Insurance numbers, codes, doses and anything a person reads aloud or types is set in Google Sans Code.
9. **Sentence case, formal, short.** German, "Sie", verbs on buttons, no exclamation marks, no em dashes, no jargon for patients.
10. **Austrian formats.** Use `Intl` with `de-AT` and `Europe/Vienna`. Dates for patients are written out ("Dienstag, 12. Jänner 2027"), times are 24 hour ("09:30 Uhr").
11. **Calm motion.** 100 to 360ms, ease out, nothing bounces. Only the two signs of waiting loop: the button spinner and the skeleton. Respect reduced motion.
12. **WCAG 2.2 AA is the floor.** 4.5:1 text, 3:1 control outlines, visible keyboard focus, 44px targets on touch for staff and 48px for patients, works at 320px wide and 200 percent zoom.

## Names

- **Parea**: the company and the platform. Written "Parea", never "PAREA" or "parea".
- **Parea Health**: the public brand on the website. The logo wordmark reads "Parea".
- **Parea Agenda**: online booking and the practice calendar.
- **Parea Folio**: recording, transcription and report drafts with clinician approval.
- In German copy the assistant is simply "Parea" ("Von Parea vorbereitet"). Do not call it "die KI", "der Bot" or give it a human name.
- Roles: **Behandler** (clinician), **Assistenz** (assistant), **Admin**, **Betreiber** (platform operator). These are names of permissions, shown where access is managed ("Rolle: Behandler"). Next to a person's name show their title and specialty instead: "Dr. Jana Höfler, Orthopädie". Patients are "Patientin oder Patient" in running text.
- A practice is an **Ordination** in patient-facing Austrian copy and a **Praxis** in marketing copy for the wider region.

## Foundations

### The idea: on both sides

Parea's own line is "Für Menschen. Auf beiden Seiten." The mark shows it: two rounded tiles, leaning the same way, holding on to each other. One side is the practice, the other is the patient, and Parea is the place where they meet. Every design decision follows from serving both sides with the same care and different needs.

### Principles

Each principle is taken from how Parea describes itself and turned into something you can check.

| Principle | Parea's words | What it means in the interface |
| --- | --- | --- |
| People decide | "Parea bereitet vor, Ihr Team gibt frei." | Assistant output is a draft in Flieder until a named person approves it. Approve, edit and discard are always together. |
| Time is the product | "Mehr Zeit für Menschen." | Fewer steps, sensible defaults, no decoration that slows reading. A returning user finishes without thinking. |
| Both sides | "Für Menschen. Auf beiden Seiten." | Two audiences with their own scale. Never show a patient a staff screen, never slow staff down with a patient layout. |
| Trust starts with data | "Vertrauen beginnt bei den Daten." | Show who can see what. Show identifiers only where the task needs them. No clinical detail in emails or notifications. Consent is explicit and reversible. |
| Clear, not clever | "Gute Technologie ordnet sich dem Praxisalltag unter." | Plain words, large type, visible focus, real labels. If a rule of the system makes something harder to understand, clarity wins. |
| No miracles | "Wir versprechen auch keine Wunder." | Report states truthfully. No fake precision, no confidence percentages, no celebratory animation for routine work. |

### Audiences

The audience is the first decision on every screen. Set it with `data-audience` on `<html>` or on any container. On `<html>` it sets the scale of the whole page, on a container only of what is inside. It changes type size, control height, radius and minimum target.

| | Practice (default) | Patient |
| --- | --- | --- |
| Attribute | `data-audience="practice"` | `data-audience="patient"` |
| Who | Trained people who use Parea all day. Dense, quiet, fast. | Anyone, any age, often on a phone, often anxious. Large, calm, one thing at a time. |
| Body text `--text-base` | 15px | 18px |
| Smallest text `--text-xs` | 12px | 14px |
| Typed text `--text-field` | 14px, 16px on phones | 18px |
| Line height `--leading-body` | 1.45 | 1.55 |
| Control heights sm, md, lg | 32, 40, 44px (44, 44, 48px on touch) | 44, 52, 60px |
| Radius control, panel, surface | 12, 18, 24px | 16, 22, 28px |
| Minimum target `--target-min` | 44px | 48px |
| Layout | Sidebar and content, tables, drawers | One column up to 36rem, one question per step |

**Practice** (`data-audience="practice"`, the default). Behandler and Assistenz use Parea for hours each day, on a desktop at reception or in the consulting room, often interrupted. Optimise for scanning and speed: dense tables, keyboard access, persistent navigation, status visible at a glance. Dark theme is available for dim rooms.

**Patient** (`data-audience="patient"`). Anyone from 16 to 90, on their own phone, sometimes unwell or worried, using Parea a few times a year. Optimise for confidence: one column of at most 36rem, one question per step, large type and targets, plain language, always a way back and a phone number. Light theme by default.

Public marketing pages use the patient scale plus the display sizes.

Rules that follow:

- A patient screen never contains a data table, a sidebar, a tab bar with more than three tabs, or text below 14px.
- A practice screen may use 12px for meta text but never for anything a decision depends on.
- A screen shared with a patient (a tablet handed over at reception, a link sent by email) is a patient screen.

### Themes

- Light is the default. Dark is set with `data-theme="dark"` on `<html>` or any container. `data-theme="system"` on `<html>` follows the operating system.
- Offer dark as a user choice in practice tools (see Patterns, Theme switch). Patient pages ship `data-theme="light"`.
- Both themes come from the same semantic tokens. If a screen uses only semantic tokens, it works in both.
- `prefers-contrast: more` strengthens lines and quiet text automatically. Forced colour modes get real borders.

## Colour

### The palette in one paragraph

Parea is pine on fresh white, with mint for its own moments, sand for warmth and lilac for the assistant. **Tanne** (pine) is the ink: all text and the primary button. **Parea Grün** marks what is selected, done or confirmed. **Minze** is its light end and carries brand moments. **Sand** warms guidance and reassurance. **Flieder** (lilac) is reserved for the assistant. Red, amber and blue appear only as status.

Rough share of a typical screen: white and near-white 75 percent, Tanne 15, Minze and Parea Grün 6, Sand 3, Flieder 1.

### Semantic tokens

Use these in product code. The first group has the same names as the Arc foundation, so Arc components pick them up unchanged.

| Token | Light | Dark | Role |
| --- | --- | --- | --- |
| `--background` | #f7faf8 | #0a1310 | Page ground. A fresh, barely green white. |
| `--surface` | #ffffff | #0f1a17 | Cards, fields, sheets. White. |
| `--surface-raised` | #ffffff | #15211e | Menus, popovers, dialogs. |
| `--surface-muted` | #f0f5f3 | #192724 | Hover fills, quiet panels, table headers. |
| `--surface-warm` | #f6f2ea | #25211a | Sand. Reassurance and guidance for patients, editorial sections. |
| `--surface-brand` | #b3efd7 | #113e31 | Minze. One brand block per view at most. |
| `--surface-inverse` | #092a24 | #edf4f1 | Tanne. Footers, inverse bars. |
| `--foreground` | #092a24 | #edf4f1 | Tanne. All primary text and the primary button. |
| `--text-secondary` | #3e544e | #b1beb9 | Supporting text, descriptions. |
| `--text-muted` | #556863 | #8b9994 | Placeholders, captions, meta. Still 4.5:1 on white. |
| `--text-inverse` | #f5fcf9 | #092a24 | Text on surface-inverse. |
| `--text-on-brand` | #092a24 | #e0f9ee | Text on surface-brand. |
| `--border` | #dee7e3 | #222e2b | Default hairline around surfaces. |
| `--border-subtle` | #eaf0ee | #192422 | Dividers inside a surface. |
| `--border-strong` | #7a8a86 | #62736e | Field outlines. 3:1 against the surface. |
| `--accent` | #007856 | #5ed7ae | Selection, links, progress, the active item. |
| `--accent-strong` | #005e42 | #a2edd0 | Accent text on tints, hover on accent. |
| `--accent-subtle` | #007856 at 11% | #1fc094 at 16% | Tint behind accent text or a selected option. |
| `--accent-foreground` | #ffffff | #031814 | Text on accent. |
| `--control-on` | #007856 | #009e77 | Fill of a chosen control. |
| `--control-glyph` | #ffffff | #ffffff | Check or dot on control-on. |
| `--control-track` | #d3ddda | #2d3b38 | Unchosen track. |
| `--control-track-hover` | #c7d2ce | #364642 | Unchosen track, hover. |
| `--control-thumb` | #ffffff | #f2f6f4 | Thumb. |
| `--control-thumb-on` | #ffffff | #ffffff | Thumb when on. |
| `--control-fill` | #007856 | #009e77 | Slider and progress fill. |
| `--success` | #007856 | #5ed7ae | Confirmed, saved, done. |
| `--warning` | #a26300 | #f2bd68 | Needs attention, waiting on someone. |
| `--danger` | #be2e31 | #fb817f | Failed, destructive, cancelled. |
| `--info` | #006da2 | #7cc4f0 | Neutral information. |
| `--success-subtle` | #007856 at 10% | #1fc094 at 15% | Tint behind success. |
| `--warning-subtle` | #a16300 at 13% | #e8aa4e at 15% | Tint behind warning. |
| `--danger-subtle` | #be2e31 at 9% | #ec5b59 at 17% | Tint behind danger. |
| `--info-subtle` | #006da3 at 9% | #44a2d9 at 17% | Tint behind info. |
| `--assistant` | #724db0 | #c5aaf7 | Flieder. Marks content prepared by Parea, awaiting review. |
| `--assistant-strong` | #5a3b8d | #dbcaff | Assistant text on its tint. |
| `--assistant-subtle` | #724db0 at 8% | #9e7be1 at 16% | Tint behind assistant content. |
| `--assistant-border` | #d4baff | #5c4785 | Outline of an assistant draft. |
| `--focus-outline` | #005e42 at 85% | #7ce2bd at 90% | Keyboard focus ring. |
| `--tone-teal` | #007373 | #62cfce | Categorical. |
| `--tone-sky` | #136d9e | #7cc4f0 | Categorical. |
| `--tone-indigo` | #445dad | #97b2f8 | Categorical. |
| `--tone-rose` | #ab3f70 | #ed90b5 | Categorical. |
| `--tone-amber` | #9f6202 | #f2bd68 | Categorical. |
| `--tone-green` | #0b7643 | #72d699 | Categorical. |
| `--tone-sand` | #746349 | #c7b597 | Categorical. |
| `--series-1` | #007856 | #6bddb5 | Chart series 1. |
| `--series-2` | #1b69ad | #5599e2 | Chart series 2. |
| `--series-3` | #c68206 | #f5d073 | Chart series 3. |
| `--series-4` | #b93f65 | #d24d75 | Chart series 4. |

### Usage rules

- **Surfaces.** `--background` is the page, `--surface` is a card or field on it. `--surface-muted` is for hover and quiet panels. Use `--surface-warm` (Sand) for guidance to patients ("Vor Ihrem Termin") and `--surface-brand` (Minze) for one brand moment per view at most. Never stack Minze on Sand.
- **Text.** `--foreground` for anything that must be read, `--text-secondary` for support, `--text-muted` for placeholders and meta only. Do not lower opacity to make text quieter.
- **Accent.** `--accent` for links, the selected option, the active navigation item, progress and the one data series that matters. Tint with `--accent-subtle` behind it. Do not colour headings, icons in general or card backgrounds with it.
- **Primary button.** Filled `--foreground` with `--background` text. This is deliberate: the darkest thing on the screen is the thing to press.
- **Status.** `--success`, `--warning`, `--danger`, `--info`, each with a `-subtle` tint. Put the colour on the dot or icon and a faint tint behind, keep the text close to `--foreground`. Success shares the green of the accent on purpose: one green means "this is settled".
- **Assistant.** `--assistant`, `--assistant-strong`, `--assistant-subtle`, `--assistant-border`. Only for assistant content awaiting review. Never as a category colour, chart colour, illustration colour or hover state.
- **Tones.** `--tone-teal`, `-sky`, `-indigo`, `-rose`, `-amber`, `-green`, `-sand` are categorical: appointment types, people, tags. They carry no meaning by themselves, so always pair them with a label. There is no violet tone.
- **Charts.** `--series-1` to `--series-4` in that order. One series: use `--series-1`. Label lines directly where possible.

### Ramps

Primitive ramps exist for illustration, charts and edge cases. Product code should not reach for them when a semantic token fits. CSS name: `--parea-<ramp>-<step>`.

| Ramp | 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950 |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| pine (Tanne) | #f7faf8 | #f0f5f3 | #e4ebe8 | #d2dcd8 | #aab8b3 | #7f8f8a | #5b6e69 | #3e544e | #213d37 | #092a24 | #061613 |
| green (Parea Grün) | #e7fcf3 | #d4f8e9 | #b3efd7 | #85e0be | #4fc59e | #009c76 | #007856 | #005e42 | #004731 | #003322 | #002115 |
| sand (Sand) | #fbf9f5 | #f6f2ea | #ede7db | #dfd6c5 | #c0b49f | #998c75 | #776a56 | #5b4f3f | #42392c | #2e261d | #1a150f |
| lilac (Flieder) | #f9f2ff | #f2e8ff | #e5d5ff | #d4baff | #b995ff | #936dd9 | #724db0 | #5a3b8d | #442b6c | #301d4f | #1f1235 |
| red (Rot) | #ffedea | #ffe2de | #ffccc5 | #ffaba3 | #ff746e | #e44a49 | #be2e31 | #971f23 | #741418 | #550c0f | #390507 |
| amber (Bernstein) | #fff4e4 | #ffebcf | #ffdbad | #ffc581 | #eea952 | #cd8725 | #a26300 | #7e4a00 | #5f3600 | #452500 | #2d1700 |
| blue (Himmel) | #e8f9ff | #d6f3ff | #b6e7ff | #8cd4ff | #5cb6f1 | #2c8fc9 | #006da2 | #005582 | #004063 | #002d48 | #001d30 |

### Checked contrast

Every pair below is verified on each build. Body text pairs reach at least 7:1, other text 4.5:1, control outlines and glyphs 3:1.

| Text | Ground | Light | Dark | Minimum |
| --- | --- | --- | --- | --- |
| `foreground` | `background` | 14.55:1 | 16.89:1 | 7:1 |
| `foreground` | `surface` | 15.3:1 | 15.92:1 | 7:1 |
| `foreground` | `surface-warm` | 13.7:1 | 14.3:1 | 7:1 |
| `text-on-brand` | `surface-brand` | 11.85:1 | 10.71:1 | 7:1 |
| `text-inverse` | `surface-inverse` | 14.7:1 | 13.66:1 | 7:1 |
| `text-secondary` | `background` | 7.76:1 | 9.85:1 | 4.5:1 |
| `text-secondary` | `surface` | 8.16:1 | 9.29:1 | 4.5:1 |
| `text-secondary` | `surface-muted` | 7.41:1 | 8.03:1 | 4.5:1 |
| `text-secondary` | `surface-warm` | 7.31:1 | 8.34:1 | 4.5:1 |
| `text-muted` | `surface` | 5.92:1 | 6.01:1 | 4.5:1 |
| `text-muted` | `background` | 5.63:1 | 6.37:1 | 4.5:1 |
| `accent` | `surface` | 5.51:1 | 10.07:1 | 4.5:1 |
| `accent` | `background` | 5.24:1 | 10.67:1 | 4.5:1 |
| `accent-foreground` | `accent` | 5.51:1 | 10.35:1 | 4.5:1 |
| `accent-strong` | `accent-subtle over surface` | 6.7:1 | 10.04:1 | 4.5:1 |
| `control-glyph` | `control-on` | 5.51:1 | 3.4:1 | 3:1 |
| `control-on` | `surface` | 5.51:1 | 5.25:1 | 3:1 |
| `border-strong` | `surface` | 3.6:1 | 3.57:1 | 3:1 |
| `success` | `surface` | 5.51:1 | 10.07:1 | 4.5:1 |
| `warning` | `surface` | 4.88:1 | 10.44:1 | 4.5:1 |
| `danger` | `surface` | 5.79:1 | 7.25:1 | 4.5:1 |
| `info` | `surface` | 5.65:1 | 9.38:1 | 4.5:1 |
| `assistant` | `surface` | 6.15:1 | 8.92:1 | 4.5:1 |
| `assistant-strong` | `assistant-subtle over surface` | 7.67:1 | 9.52:1 | 4.5:1 |
| `foreground` | `assistant-subtle over surface` | 13.67:1 | 12.85:1 | 7:1 |
| `focus-outline over background` | `background` | 5.25:1 | 9.93:1 | 3:1 |

Do not create new text and background pairs from the ramps without checking them the same way.

## Typography

### Typefaces

| Role | Family | Token | Use |
| --- | --- | --- | --- |
| Display | Google Sans Flex, roundness axis at 100 | `--font-display` with `font-variation-settings: var(--font-round-display)` | Display lines, page titles, section headings, dialog titles |
| Text | Google Sans Flex, roundness 0 | `--font-body` | Everything else: body, labels, controls, group headings |
| Data | Google Sans Code | `--font-mono` | Identifiers a person may read aloud or type |

Both are open source (SIL Open Font License 1.1) and self-hosted from `https://brand.parea.health/assets/fonts/`. `parea.css` loads them. In React projects install `@fontsource-variable/google-sans-flex` (import the `rond` or `full` axis file so the roundness axis is available) and `@fontsource-variable/google-sans-code`.

The rounded display cut is the typographic signature: the terminals of the letters soften like the corners of the mark. It is used large and sparingly. Small text stays in the plain cut because it reads better.

### Rules

- Weights are 400 (regular) and 500 (medium). Never 600 or above. Hierarchy comes from size, colour and space.
- No uppercase text, no letter-spaced labels, no eyebrow line above a heading.
- No italics for emphasis. Use medium weight, sparingly.
- Sentence case everywhere, including buttons, headings and navigation.
- Line length: 45 to 75 characters for running text (`--measure` is 66ch). Left aligned. Never justified, never centred for more than three lines.
- Letter spacing: `--tracking-display` (-0.03em) for display, `--tracking-heading` (-0.015em) for headings up to 28px, `--tracking-body` (-0.005em) for text.
- Line height: `--leading-display` 1.04, `--leading-heading` 1.2, `--leading-body` 1.45 for practice and 1.55 for patients.
- Numbers that change or line up use `font-variant-numeric: tabular-nums` (class `pa-num`).
- Monospace for: SV-Nummer, booking and access codes, doses with units, IDs, IBAN, one-time codes. Not for times, dates, prices or phone numbers.

### Scale

Sizes come from the scale only. The same token gives a different size per audience.

| Token | Practice | Patient |
| --- | --- | --- |
| `--text-xs` | 12px | 14px |
| `--text-sm` | 13px | 16px |
| `--text-base` | 15px | 18px |
| `--text-lg` | 17px | 20px |
| `--text-xl` | 20px | 24px |
| `--text-2xl` | 22px | 28px |
| `--text-3xl` | 28px | 34px |
| `--text-4xl` | 34px | 42px |
| `--text-5xl` | 40px | 52px |

Roles:

| Role | Token | Class | Element |
| --- | --- | --- | --- |
| Display | `--text-display-sm`, `-md`, `-lg` | `pa-display` | Brand and public pages only |
| Page title | `--text-4xl` | `pa-title` | `h1`, one per page |
| Section heading | `--text-2xl` | `pa-heading` | `h2` |
| Group heading | `--text-lg` | `pa-subheading` | `h3` |
| Lead | `--text-xl` | `pa-lead` | First paragraph of a public page |
| Body | `--text-base` | `pa-body` | Paragraphs, list rows, choices |
| Small | `--text-sm` | `pa-small` | Labels, hints, buttons, table cells |
| Caption | `--text-xs` | `pa-caption` | Meta, timestamps, badges |

The stylesheet gives bare `h1` and `h2` the rounded cut and bare `h3` and `h4` the plain cut. A role class overrides that on any element, so the outline can follow the content: `<h2 class="pa-subheading">` is a second-level heading that looks like a group heading.

For patients the heading of a step is the question itself ("Welcher Tag passt Ihnen?"), set as the page title.

## Space and layout

- A 4px grid. `--space-N` is N times 4px for N = 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24.
- Inside a group 8 to 16px, between groups 24px, between sections 32 to 48px in products and 64 to 96px on public pages.
- Space siblings with `gap` (classes `pa-stack`, `pa-cluster`, `pa-split`, `pa-grid`), not with margins on children.
- Page gutter is `--gutter` (16px on phones, up to 40px).

| Container | Token | Width | Use |
| --- | --- | --- | --- |
| Patient | `--container-patient` | 36rem | Every patient flow. One column. |
| Reading | `--container-reading` | 44rem | Articles, legal text, help |
| Page | `--container-page` | 82rem | Practice tools and public pages |

Breakpoints for layouts: 390 (phone), 640, 768, 1024, 1280, 1440. Design patient screens at 390 first and practice screens at 1280 first, then check the other. Nothing scrolls sideways at 320px except a table inside its own scrolling card. Two components change by themselves: the practice shell turns its sidebar into a row below 860px, and `pa-facts` stacks label over value below 480px.

## Shape

The mark is two rounded squares. The system uses the same family of corners.

| Token | Practice | Patient | Use |
| --- | --- | --- | --- |
| `--radius-control` | 12px | 16px | Buttons, fields, slots, nav items |
| `--radius-panel` | 18px | 22px | Alerts, choices, menus, nested panels |
| `--radius-surface` | 24px | 28px | Cards, dialogs, large surfaces |
| `--radius-small` | 8px | 8px | Tiny elements: skeleton lines, keys |
| `--radius-pill` | full | full | Badges, switches. Not buttons. |
| `--radius-tile` | 18% | 18% | Tiles that carry the mark or a result |

- Buttons are rounded rectangles, not pills. Pills are for badges and switches.
- Nested corners are concentric where the padding is smaller than the outer radius: inner radius = outer radius minus the padding. With more padding than that, the inner element keeps its own radius (an alert in a card).
- The tile is the corner of the mark (18 percent of the side). Use it for the app icon, the result mark and brand illustrations. The 13 degree tilt (`--tilt`) belongs to brand graphics and the result mark only. Never tilt interface elements, text or photos.
- Icons are Lucide, stroke 1.75, at 16, 20 or 24px, in the text colour. A plain icon beside its label. No icons in coloured circles as decoration.

## Elevation

- Cards rest on a 1px `--border`. No shadow.
- `--shadow-floating` only for things that float: menus, popovers, dialogs, toasts. `--shadow-raised` for a lifted element such as a dragged appointment. Never stack shadows.
- No gradients, glows or coloured shadows in interface elements.

## Motion

Motion explains what changed. It settles and never bounces.

| Token | Value | Use |
| --- | --- | --- |
| `--duration-instant` | 100ms | Press feedback |
| `--duration-fast` | 150ms | Colour, hover, small state changes |
| `--duration-standard` | 200ms | Menus, dialogs, things entering |
| `--duration-considered` | 360ms | A view arriving, a meter filling |
| `--duration-spring` | 440ms | Thumbs, heights, moving highlights, with `--ease-spring` |
| `--ease-enter` | cubic-bezier(0.16, 1, 0.3, 1) | Entering |
| `--ease-standard` | cubic-bezier(0.22, 1, 0.36, 1) | Default |
| `--ease-exit` | cubic-bezier(0.7, 0, 0.84, 0) | Leaving |
| `--ease-in-out` | cubic-bezier(0.65, 0, 0.35, 1) | Moving while on screen |

- Colour and hover changes: `--duration-fast` with `--ease-standard`.
- Something entering: `--duration-standard` to `--duration-considered` with `--ease-enter`. Leaving is quicker, with `--ease-exit`.
- A thumb, a height change or a moving highlight: `--duration-spring` with `--ease-spring` (critically damped).
- One entrance per view (`pa-arrive`): a 10px rise and fade. Do not animate on scroll and do not celebrate routine actions.
- Nothing loops except the two signs of waiting: the spinner of a busy button and the shimmer of a skeleton.
- Under `prefers-reduced-motion` everything appears at once. `parea.css` handles this globally.

## Components

Class names are from `parea.css` (prefix `pa-`). In React products built on Arc, use the Arc component named in each entry: the Parea theme styles it. The rules apply either way.

Conventions that hold for every component:

- State is carried by real attributes, and the stylesheet reads them: `aria-current="page"` (navigation), `aria-pressed` (buttons that toggle, segments, slots), `aria-selected` (tabs), `aria-invalid`, `aria-busy`, `disabled`, `hidden`.
- A role class does not depend on the element. `pa-subheading` on an `h2` is fine when the outline needs an `h2`.
- A few components take a knob as a custom property on the element: `--pa-gap` and `--pa-min` (layout helpers), `--pa-tone` (badge, avatar), `--pa-avatar` (avatar size), `--pa-row` (row height), `--pa-tile-size`.
- Hairlines of `1px`, percentages, `fr` and media query values are plain values. Everything else is a token.

### Icons

Lucide, stroke 1.75, at 16, 20 or 24px, in the text colour. In React use `lucide-react` with `strokeWidth={1.75}`. In plain HTML use inline SVG or a sprite from your own origin (a sprite cannot be loaded across origins). The portal's sprite is at `/assets/icons.svg`:

```html
<svg class="pa-icon" aria-hidden="true"><use href="/assets/icons.svg#calendar"/></svg>
```

Symbols in that sprite: `arrow-left`, `arrow-right`, `arrow-up-right`, `calendar`, `calendar-check`, `calendar-days`, `check`, `check-circle-2`, `chevron-down`, `chevron-left`, `chevron-right`, `circle-alert`, `clock`, `copy`, `download`, `file-text`, `info`, `inbox`, `lock`, `mail`, `map-pin`, `message-square`, `mic`, `moon`, `pencil`, `phone`, `plus`, `search`, `settings`, `shield-check`, `sun`, `sun-moon`, `triangle-alert`, `user-round`, `users-round`, `x`, `eye`, `eye-off`, `stethoscope`, `clipboard-list`, `log-out`, `bell`, `rotate-ccw`, `trash-2`, `external-link`, `menu`, `credit-card`, `smartphone`, `parea-mark`, `parea-logo`. `parea-mark` and `parea-logo` are filled shapes, so give their `<svg>` a `viewBox` (`0 0 108 120` and `0 0 413 120`) and let the lockup or the assistant label colour them.

Icon by level: `info` for information, `triangle-alert` for warning, `circle-alert` for danger and errors, `check` for success.

### Button

`pa-button`. Variants: default (primary), `pa-button--secondary`, `pa-button--ghost`, `pa-button--danger`, `pa-button--danger-solid`. Sizes: `pa-button--sm`, default, `pa-button--lg`. Also `pa-button--block` (full width) and `pa-button--icon` (square, icon only). Arc: `button`.

```html
<div class="pa-actions">
  <button class="pa-button">Termin buchen</button>
  <button class="pa-button pa-button--secondary">Abbrechen</button>
</div>
```

- At most one primary button per view. A view that only shows things may have none. A dialog counts as its own view.
- The label is a verb and its object: "Termin buchen", "Befund freigeben", "Änderungen speichern". Not "OK", "Ja", "Weiter zum nächsten Schritt".
- In a patient flow the main action is `pa-button--lg`, full width on phones, and the forward button is "Weiter".
- In a page the main action comes first and sits on the left (`pa-actions`). On patient phones the actions stack with the main action on top. A dialog is the exception: see Dialog.
- Busy: set `aria-busy="true"` and keep the width. Disabled buttons are a last resort: prefer letting people press and then explaining what is missing.
- `pa-button--danger` is for an action whose whole purpose is destructive ("Termin absagen") and opens a confirmation. `pa-button--danger-solid` is only the final button inside that confirmation. A destructive option among several ("Verwerfen" next to approve and edit) stays `pa-button--ghost` and still opens a confirmation.
- Icon-only buttons need an `aria-label` in German. They follow the control height: 40px with a pointer, 44px on touch.

### Field

`pa-field` wraps `pa-label`, optional `pa-hint`, the control (`pa-input`, `pa-textarea`, `pa-select`) and optional `pa-error`. Arc: `input`, `textarea`, `select`.

```html
<div class="pa-field">
  <label class="pa-label" for="mail">E-Mail-Adresse</label>
  <span class="pa-hint" id="mail-hint">Hierhin senden wir die Bestätigung.</span>
  <input class="pa-input" id="mail" type="email" autocomplete="email"
         aria-invalid="true" aria-describedby="mail-hint mail-error">
  <span class="pa-error" id="mail-error">
    <svg class="pa-icon pa-icon--sm" aria-hidden="true"><use href="/assets/icons.svg#circle-alert"/></svg>
    <span><span class="pa-sr-only">Fehler: </span>Geben Sie eine E-Mail-Adresse wie name@beispiel.at ein.</span>
  </span>
</div>

<div class="pa-field">
  <label class="pa-label" for="sv">SV-Nummer <span class="pa-optional">(optional)</span></label>
  <span class="pa-hint" id="sv-hint">10 Ziffern, zum Beispiel 1237 010180</span>
  <input class="pa-input pa-input--mono pa-input--w20" id="sv" inputmode="numeric" autocomplete="off" aria-describedby="sv-hint">
</div>
```

- Every field has a visible label above it. Placeholders are never labels. Use a hint for format examples.
- Mark optional fields with "(optional)". Do not mark required fields with an asterisk.
- Size a field to its content: `pa-input--w4` for a postcode, `pa-input--w10` for a date, `pa-input--w20` for an insurance number.
- Set `autocomplete`, `inputmode` and `type` so phones show the right keyboard and can fill the value.
- Accept spaces, hyphens and brackets in numbers and strip them yourself. Never reject a phone number for its formatting.
- Error: `aria-invalid="true"` on the control, a `pa-error` below it linked with `aria-describedby`. The message says what to do.
- A group of controls is a `fieldset` with the class `pa-fieldset` (no border, no padding) and a `legend`.
- One-time codes use `pa-code`: a `div` with one `input` per digit, `inputmode="numeric"`, `autocomplete="one-time-code"` on the first. Allow paste.

### Checkbox, radio, switch

`pa-check`, `pa-radio`, `pa-switch`: a `label` wrapping the `input` and a `span` with the text. Arc: `checkbox`, `radio-group`, `switch`.

```html
<label class="pa-check"><input type="checkbox"><span>Erinnerung per SMS</span></label>
<label class="pa-switch"><input type="checkbox" role="switch"><span>Namen kürzen</span></label>
```

- Checkbox for consent and multi-select, radio for one of a few, switch only for a setting that takes effect at once.
- The whole row is the target. Never a bare 16px box.
- Consent is never pre-checked.

### Choice

`pa-choice` inside `pa-choices`: a radio or checkbox drawn as a card with `pa-choice-title` and `pa-choice-text`. `pa-choices--columns` lays short choices out side by side. Arc: `radio-cards`.

```html
<fieldset class="pa-fieldset pa-choices">
  <legend class="pa-sr-only">Terminart</legend>
  <label class="pa-choice"><input type="radio" name="art">
    <span><span class="pa-choice-title">Erstgespräch</span><span class="pa-choice-text">30 Minuten, Kasse</span></span></label>
  <label class="pa-choice"><input type="radio" name="art">
    <span><span class="pa-choice-title">Kontrolle</span><span class="pa-choice-text">15 Minuten, Kasse</span></span></label>
</fieldset>
```

The default way for a patient to answer a question with two to six options. More than six: a select or a search. When the page heading is the question, the legend repeats it for screen readers (`pa-sr-only`).

### Slot

`pa-slot` inside `pa-slots`: one bookable time as a `button` with `aria-pressed`. Group slots under "Vormittag", "Nachmittag", "Abend". Show times as "09:30". A taken slot is not shown. Arc Pro: `availability-picker`.

```html
<h2 class="pa-subheading">Vormittag</h2>
<div class="pa-slots">
  <button class="pa-slot" type="button" aria-pressed="false">08:30</button>
  <button class="pa-slot" type="button" aria-pressed="true">09:30</button>
</div>
```

### Card

`pa-card`, with `--compact`, `--muted`, `--warm` (Sand), `--brand` (Minze), `--inverse` (Tanne). Arc: `card`.

- A card is a real boundary: one object, one task or one summary. Do not nest cards. Do not put every block in a card.
- `--warm` for guidance to patients, `--brand` once per view at most.

### Badge

`pa-badge` draws its own dot. Add a tone: `--success`, `--warning`, `--danger`, `--info`, `--assistant`, or a categorical tone (`--teal`, `--sky`, `--indigo`, `--rose`, `--amber`, `--green`, `--sand`). `pa-badge--pending` outlines a state that is not settled yet. `pa-badge--plain` removes the dot, for a category label that is not a status. Arc: `badge`.

```html
<span class="pa-badge pa-badge--success">Bestätigt</span>
<span class="pa-badge pa-badge--warning pa-badge--pending">Angefragt</span>
<span class="pa-badge">Erledigt</span>
```

Appointment states, always with these words:

| State | Badge | German label |
| --- | --- | --- |
| requested | `pa-badge--warning pa-badge--pending` | Angefragt |
| confirmed | `pa-badge--success` | Bestätigt |
| done | `pa-badge` (neutral) | Erledigt |
| cancelled | `pa-badge--danger` | Abgesagt |
| no-show | `pa-badge--danger pa-badge--pending` | Nicht erschienen (to the patient: "Nicht wahrgenommen") |

Report states:

| State | Badge | German label |
| --- | --- | --- |
| recording | `pa-badge` (neutral) | Aufnahme |
| processing | `pa-badge` (neutral) | Verarbeitung |
| processing failed | `pa-badge--danger` | Fehlgeschlagen |
| draft | `pa-badge--assistant` | Entwurf |
| approved | `pa-badge--success` | Freigegeben |
| discarded | `pa-badge` (neutral) | Verworfen |

### Alert

`pa-alert` with `--success`, `--warning`, `--danger`, `--neutral` (the default is info). Inside: an icon, then one wrapper with `pa-alert-title`, `pa-alert-text` and, if needed, `pa-alert-actions`. Arc: `alert`.

```html
<div class="pa-alert pa-alert--warning">
  <svg class="pa-icon" aria-hidden="true"><use href="/assets/icons.svg#triangle-alert"/></svg>
  <div>
    <span class="pa-alert-title">Anfrage verfällt heute um 12:10</span>
    <span class="pa-alert-text">Bestätigen Sie die Anfrage oder schlagen Sie eine andere Zeit vor.</span>
    <div class="pa-alert-actions"><button class="pa-button pa-button--secondary pa-button--sm">Termin bestätigen</button></div>
  </div>
</div>
```

Three levels of urgency and no more:

1. **Information** stays in the page (neutral or info alert, a hint). It never interrupts.
2. **Attention** is an inline warning alert next to what it concerns, with one action.
3. **Stop** is a dialog, only when continuing would cause harm or loss.

- Write alerts as: what happened, what it means, what to do. Mixed case, no exclamation marks.
- An alert that is part of the page from the start has no role. One that appears after an action has `role="alert"` (errors) or `role="status"` (confirmations).
- The buttons inside an alert are secondary and small. The view keeps its one primary button.

### Assistant

`pa-assistant` marks content Parea prepared. It holds `pa-assistant-label`, the content, `pa-assistant-source` and the actions. `pa-assistant-mark` marks one uncertain passage and `pa-assistant-note` says why. `data-assistant` on a field marks a value the assistant filled in. After approval the same element gets `data-state="approved"` and a `pa-approved` line replaces the label. See the assistant pattern for the behaviour.

```html
<!-- Prepared -->
<section class="pa-assistant" aria-labelledby="draft-title">
  <span class="pa-assistant-label">
    <svg viewBox="0 0 108 120" aria-hidden="true"><use href="/assets/icons.svg#parea-mark"/></svg>Von Parea vorbereitet
  </span>
  <h2 class="pa-subheading" id="draft-title">Entwurf: Befund für Gruber, Maria</h2>
  <p>Schmerzen im rechten Knie seit drei Wochen, belastungsabhängig.
     <span class="pa-assistant-mark" aria-describedby="note-1">Ibuprofen 400 mg bei Bedarf</span> besprochen.</p>
  <p class="pa-assistant-note" id="note-1">Bitte prüfen: Dosierung nicht eindeutig verstanden.</p>
  <p class="pa-assistant-source">Aus der Aufnahme vom 12.01.2027, 09:34. <a class="pa-link" href="#aufnahme">Aufnahme öffnen</a></p>
  <div class="pa-actions">
    <button class="pa-button">Befund freigeben</button>
    <button class="pa-button pa-button--secondary">Bearbeiten</button>
    <button class="pa-button pa-button--ghost">Verwerfen</button>
  </div>
  <p class="pa-caption">Sie geben als Dr. Jana Höfler frei. Nur Behandler können Befunde freigeben.</p>
</section>

<!-- Approved: the same box, the lilac gone -->
<section class="pa-assistant" data-state="approved" aria-labelledby="doc-title">
  <span class="pa-approved">
    <svg class="pa-icon pa-icon--sm" aria-hidden="true"><use href="/assets/icons.svg#check"/></svg>Freigegeben von Dr. Jana Höfler, 12.01.2027, 10:02
  </span>
  <h2 class="pa-subheading" id="doc-title">Befund für Gruber, Maria</h2>
  <p>Schmerzen im rechten Knie seit drei Wochen, belastungsabhängig. Ibuprofen 400 mg bei Bedarf besprochen.</p>
</section>
```

### List and row

A `ul` with the class `pa-list`. Each `li` is a row (`pa-row`) or holds one link or button that is the row. The divider belongs to the list item. Inside a row: optional `pa-row-time`, `pa-row-main` with `pa-row-title` and `pa-row-text`, then a badge or a chevron.

```html
<ul class="pa-list">
  <!-- A row that only shows -->
  <li class="pa-row">
    <span class="pa-row-time">09:30</span>
    <span class="pa-row-main"><span class="pa-row-title">Gruber, Maria</span><span class="pa-row-text">Kontrolle, 15 Min.</span></span>
    <span class="pa-badge pa-badge--success">Bestätigt</span>
  </li>
  <!-- A row that opens something: the whole row is the link -->
  <li><a class="pa-row" href="#befund-1">
    <span class="pa-row-main"><span class="pa-row-title">Novak, Petra</span><span class="pa-row-text">Erstgespräch, Aufnahme 08:33</span></span>
    <span class="pa-badge pa-badge--assistant">Entwurf</span>
    <svg class="pa-icon pa-icon--sm" aria-hidden="true"><use href="/assets/icons.svg#chevron-right"/></svg>
  </a></li>
</ul>
```

- The row that is open in a detail view beside the list has `aria-current="true"`.
- The title is cut with an ellipsis when it does not fit. The badge never is.
- Set `--pa-row` on the list to change the row height (default 56px).

### Table

`pa-table` inside `pa-table-wrap`. Practice only. Left align text, right align numbers (`pa-table-num` on `th` and `td`), 44px rows, sorting and filters above. Wide tables scroll inside their wrap. Arc: `sortable-data-table`.

### Facts

`pa-facts`: a `dl` of label and value rows. Used for record details and for the summary before a patient submits. Each row is a `div` with a `dt` and a `dd`. An optional action goes in a second `dd` with the class `pa-facts-action`, so the list stays valid.

```html
<dl class="pa-facts">
  <div>
    <dt>Termin</dt>
    <dd>Dienstag, 12. Jänner 2027, 09:30 Uhr</dd>
    <dd class="pa-facts-action"><a class="pa-link" href="#termin">Ändern<span class="pa-sr-only"> Termin</span></a></dd>
  </div>
</dl>
```

Below 480px the label moves above the value.

### Patient banner

`pa-patient-banner`: who a clinical view is about. Add `pa-patient-banner--sticky` so it stays pinned while the record scrolls.

```html
<header class="pa-patient-banner pa-patient-banner--sticky">
  <span class="pa-patient-banner-name">Gruber, Maria</span>
  <dl>
    <div><dt>Geboren</dt><dd>14.03.1958 (68 Jahre)</dd></div>
    <div><dt>SV-Nr.</dt><dd class="pa-mono">1237 140358</dd></div>
    <div><dt>Standort</dt><dd>Ordination am Park</dd></div>
  </dl>
</header>
```

- Family name first, comma, given name, in staff lists and banners: "Gruber, Maria". To the patient: "Maria Gruber" or "Frau Gruber".
- At least two identifiers beside the name (date of birth with age, SV-Nummer), shown in full. Truncate the name with an ellipsis if needed, never the identifiers.
- Show the active Standort wherever recording, editing, approving or sending happens.

### Tabs and segmented control

`pa-tabs` for sections of one object (Stammdaten, Standorte, Aktivität): `role="tablist"` with `button role="tab"` and `aria-selected`, or links with `aria-current="page"`. `pa-segmented` for two to four options of one setting or view (Tag, Woche, Monat, or Hell, Dunkel, System): buttons with `aria-pressed` in a `role="group"` with an `aria-label`. Patient screens use neither, except a segmented control with up to three options.

### Progress

`pa-progress` with `pa-progress-label` ("Schritt 2 von 4") and `pa-progress-bar` holding one `span` per step, `data-done` on the finished ones and the current one. Words first, bar second. `pa-meter` with one inner `span` and a width for a single value.

### Dialog and toast

`pa-dialog` on a native `<dialog>` opened with `showModal()`, for a decision that must be made now. Arc: `dialog`, and `drawer` for editing a record.

```html
<dialog class="pa-dialog" aria-labelledby="d-title">
  <h2 class="pa-dialog-title" id="d-title">Termin wirklich absagen?</h2>
  <p class="pa-dialog-text">Die Person erhält eine Absage per E-Mail. Die Zeit wird wieder frei.</p>
  <div class="pa-dialog-actions">
    <button class="pa-button pa-button--secondary" autofocus>Termin behalten</button>
    <button class="pa-button pa-button--danger-solid">Termin absagen</button>
  </div>
</dialog>
```

- The title is the question, the text is the consequence, the buttons name both outcomes.
- Actions are right aligned: the safe option first, the action that changes something last. Focus starts on the safe option and returns to the trigger when the dialog closes.
- Plain HTML has no drawer class. Edit in place, in a detail view that replaces the list (with `pa-back` to return), or in a dialog for a short form.

`pa-toast` confirms something that happened in the background. Never the only confirmation of an action the person just took: show the result in place.

### Empty, loading, result

```html
<div class="pa-empty">
  <svg class="pa-icon" aria-hidden="true"><use href="/assets/icons.svg#inbox"/></svg>
  <p class="pa-empty-title">Keine offenen Anfragen</p>
  <p class="pa-empty-text">Neue Online-Anfragen erscheinen hier, sobald sie eingehen.</p>
</div>

<div aria-busy="true">
  <span class="pa-skeleton" style="width:45%"></span>
  <span class="pa-sr-only">Inhalte werden geladen</span>
</div>

<div class="pa-result">
  <span class="pa-result-mark"><svg class="pa-icon" aria-hidden="true"><use href="/assets/icons.svg#check"/></svg></span>
  <h1>Termin bestätigt</h1>
  <p class="pa-secondary">Eine Bestätigung ist unterwegs an maria.gruber@beispiel.at.</p>
</div>
```

- `pa-empty`: say what will appear here and offer at most one next step, as a `pa-button` after the text.
- `pa-skeleton`: one line per line of text, with widths that follow the shape of what is loading. Show nothing for the first 300ms, then the skeleton. No spinners for whole pages.
- `pa-result` with `pa-result-mark`: the end of a task. The heading says what happened, the text says what happens next, then the facts and one action. `pa-result-mark--pending` with a `clock` icon when the outcome still waits on someone ("Terminanfrage gesendet").

### Lockup and avatar

`pa-lockup`: the Parea logo and, for a single product, its name. The logo is always the drawing, never typed. The product name is typed, in `pa-lockup-product`. A screen that spans products shows the logo alone.

```html
<a class="pa-lockup" href="/" aria-label="Parea Agenda">
  <svg viewBox="0 0 413 120" aria-hidden="true"><use href="/assets/icons.svg#parea-logo"/></svg>
  <span class="pa-lockup-product">Agenda</span>
</a>
```

`pa-avatar`: initials on a categorical tone, in a circle. Set the tone with `--pa-tone` and the size with `--pa-avatar`.

### Practice shell

`pa-shell` is the layout of every practice tool: navigation on the left, the work on the right.

```html
<div class="pa-shell">
  <header class="pa-shell-nav">
    <a class="pa-lockup pa-shell-brand" href="/" aria-label="Parea, Mein Tag">
      <svg viewBox="0 0 413 120" aria-hidden="true"><use href="/assets/icons.svg#parea-logo"/></svg>
    </a>
    <nav class="pa-shell-items" aria-label="Hauptnavigation">
      <a class="pa-nav-item" href="/" aria-current="page"><svg class="pa-icon" aria-hidden="true">…</svg>Mein Tag</a>
      <a class="pa-nav-item" href="/anfragen"><svg class="pa-icon" aria-hidden="true">…</svg>Anfragen<span class="pa-nav-count">3</span></a>
    </nav>
    <div class="pa-shell-user">
      <span class="pa-avatar">JH</span>
      <span>Dr. Jana Höfler<br><span class="pa-caption">Orthopädie</span></span>
      <button class="pa-button pa-button--ghost pa-button--icon" aria-label="Abmelden">…</button>
    </div>
  </header>
  <main class="pa-shell-main" id="inhalt">…</main>
</div>
```

- The navigation column stays in place while the work scrolls. Below 860px it becomes one row that scrolls sideways, with the brand first and the person last.
- The current item has `aria-current="page"`. A count at the end of an item is `pa-nav-count`.
- The active Standort and the person are always visible: the Standort in the view header, the person in `pa-shell-user`.
- Usual labels: Mein Tag, Kalender, Anfragen, Patienten, Aufnahmen, Befunde, Einstellungen, Abmelden.
- `pa-appbar` is the alternative for a tool with one or two views: a single line at the top with the lockup on the left and the person on the right, no sidebar.
- `pa-back` returns from a detail view to its list ("Zurück zu Mein Tag").
- Page title: "View · Product", for example "Mein Tag · Parea".

### Patient frame

`pa-patient-frame` is the layout of every patient page. The practice leads, Parea signs off.

```html
<body class="pa-patient-frame" data-audience="patient">
  <a class="pa-skip-link" href="#inhalt">Zum Inhalt springen</a>
  <header class="pa-patient-header">
    <span>Ordination am Park</span>
    <a class="pa-patient-phone" href="tel:+4312345678"><svg class="pa-icon" aria-hidden="true">…</svg>+43 1 234 56 78</a>
  </header>
  <main class="pa-patient-main pa-page pa-page--patient pa-stack pa-gap-6" id="inhalt">…</main>
  <footer class="pa-patient-footer"><span>Ordination am Park, Währinger Straße 12, 1090 Wien</span><span>Online-Terminbuchung mit Parea Agenda</span></footer>
</body>
```

A practice without a logo shows its name. Page title: "Step · Practice", for example "Termin buchen · Ordination am Park".

### Helpers

- `pa-page`, `pa-page--reading`, `pa-page--patient`: the three containers. `pa-stack`, `pa-cluster`, `pa-split`, `pa-grid` lay out siblings with a gap, and `pa-gap-1` to `pa-gap-12` set it (`pa-gap-6` is 24px).
- `pa-actions`: a row of buttons, main action first. It stacks on a patient's phone.
- `pa-display` (with `--sm`, `--lg`), `pa-title`, `pa-heading`, `pa-subheading`, `pa-lead`, `pa-body`, `pa-small`, `pa-caption`: the type roles.
- `pa-link`: a text link in the accent colour. `pa-mono`: an identifier. `pa-num`: tabular figures. `pa-kbd`: a key, for shortcut hints in practice tools.
- `pa-secondary`, `pa-muted`, `pa-medium`: text colour and weight. `pa-sr-only`: for screen readers only. `pa-skip-link`: the first link on a page, "Zum Inhalt springen", visible on focus.
- `pa-tile`: a rounded square with the corner of the mark, with `--assistant`, `--warm`, `--inverse` and `--tilt`. `pa-divider`: a hairline.
- `pa-arrive`: the one entrance animation of a view.

### Class index

Every class in `parea.css`. If a class is not in this list, it does not exist: compose from tokens instead of inventing one.

| Group | Classes |
| --- | --- |
| Base and helpers | `pa-skip-link`, `pa-sr-only` |
| Type and layout | `pa-body`, `pa-caption`, `pa-cluster`, `pa-display`, `pa-display--lg`, `pa-display--sm`, `pa-divider`, `pa-gap-1`, `pa-gap-10`, `pa-gap-12`, `pa-gap-2`, `pa-gap-3`, `pa-gap-4`, `pa-gap-5`, `pa-gap-6`, `pa-gap-8`, `pa-grid`, `pa-heading`, `pa-icon`, `pa-icon--lg`, `pa-icon--sm`, `pa-lead`, `pa-link`, `pa-medium`, `pa-mono`, `pa-muted`, `pa-num`, `pa-page`, `pa-page--patient`, `pa-page--reading`, `pa-secondary`, `pa-small`, `pa-split`, `pa-stack`, `pa-subheading`, `pa-tile`, `pa-tile--assistant`, `pa-tile--inverse`, `pa-tile--tilt`, `pa-tile--warm`, `pa-title` |
| Actions and navigation | `pa-actions`, `pa-button`, `pa-button--block`, `pa-button--danger`, `pa-button--danger-solid`, `pa-button--ghost`, `pa-button--icon`, `pa-button--lg`, `pa-button--secondary`, `pa-button--sm`, `pa-segmented`, `pa-tabs` |
| Forms | `pa-check`, `pa-choice`, `pa-choice-text`, `pa-choice-title`, `pa-choices`, `pa-choices--columns`, `pa-code`, `pa-error`, `pa-error-summary`, `pa-error-summary-title`, `pa-field`, `pa-fieldset`, `pa-hint`, `pa-input`, `pa-input--mono`, `pa-input--w10`, `pa-input--w20`, `pa-input--w4`, `pa-label`, `pa-optional`, `pa-radio`, `pa-select`, `pa-slot`, `pa-slots`, `pa-switch`, `pa-textarea` |
| Display | `pa-avatar`, `pa-badge`, `pa-badge--amber`, `pa-badge--assistant`, `pa-badge--danger`, `pa-badge--green`, `pa-badge--indigo`, `pa-badge--info`, `pa-badge--pending`, `pa-badge--plain`, `pa-badge--rose`, `pa-badge--sand`, `pa-badge--sky`, `pa-badge--success`, `pa-badge--teal`, `pa-badge--warning`, `pa-card`, `pa-card--brand`, `pa-card--compact`, `pa-card--inverse`, `pa-card--muted`, `pa-card--warm`, `pa-empty`, `pa-empty-text`, `pa-empty-title`, `pa-facts`, `pa-facts-action`, `pa-kbd`, `pa-list`, `pa-meter`, `pa-patient-banner`, `pa-patient-banner--sticky`, `pa-patient-banner-name`, `pa-progress`, `pa-progress-bar`, `pa-progress-label`, `pa-row`, `pa-row-main`, `pa-row-text`, `pa-row-time`, `pa-row-title`, `pa-skeleton`, `pa-table`, `pa-table-num`, `pa-table-wrap` |
| Feedback and assistant | `pa-alert`, `pa-alert--danger`, `pa-alert--neutral`, `pa-alert--success`, `pa-alert--warning`, `pa-alert-actions`, `pa-alert-text`, `pa-alert-title`, `pa-approved`, `pa-arrive`, `pa-assistant`, `pa-assistant-label`, `pa-assistant-mark`, `pa-assistant-note`, `pa-assistant-source`, `pa-dialog`, `pa-dialog-actions`, `pa-dialog-text`, `pa-dialog-title`, `pa-result`, `pa-result-mark`, `pa-result-mark--pending`, `pa-toast` |
| Shell | `pa-appbar`, `pa-back`, `pa-lockup`, `pa-lockup-product`, `pa-nav-count`, `pa-nav-item`, `pa-patient-footer`, `pa-patient-frame`, `pa-patient-header`, `pa-patient-main`, `pa-patient-phone`, `pa-shell`, `pa-shell-brand`, `pa-shell-items`, `pa-shell-main`, `pa-shell-nav`, `pa-shell-user` |

## Patterns

### Assistant review: prepare, review, approve

The most important pattern in Parea. It is how "Parea bereitet vor, Ihr Team gibt frei" looks. The markup is in Components, Assistant.

1. **Prepared.** Assistant output appears in a `pa-assistant` block (lilac tint and border) with the label "Von Parea vorbereitet" and the Parea mark. In a list it is a row with a `pa-badge--assistant` "Entwurf".
2. **Sourced.** Every draft names what it was made from ("Aus der Aufnahme vom 12.01.2027, 09:34", "Auf Basis Ihrer Praxisinformationen") in `pa-assistant-source`, with a link to the source where one exists ("Aufnahme öffnen").
3. **Reviewed.** The person reads, edits or discards. A passage the assistant is unsure about is wrapped in `pa-assistant-mark` and explained in a `pa-assistant-note` directly under its paragraph ("Bitte prüfen: Dosierung nicht eindeutig verstanden."), linked with `aria-describedby`. No percentages, no confidence scores.
4. **Approved.** One explicit action by a named person with the right role, on a button that names the object and the outcome: "Befund freigeben", "Antwort senden". Under the actions, one line says who is acting: "Sie geben als Dr. Jana Höfler frei." Only Behandler approve medical documents.
5. **Settled.** The same box stays where it is and loses the lilac (`data-state="approved"`). A `pa-approved` line replaces the label: "Freigegeben von Dr. Jana Höfler, 12.01.2027, 10:02". Below the document a short "Verlauf" lists what happened, newest first: who approved, who edited, when Parea prepared it.

Buttons and their names:

| Where | Button | What it does |
| --- | --- | --- |
| A list row or a summary | the row itself, or "Entwurf prüfen" | Opens the draft. Approves nothing. |
| The draft, fully visible | "Befund freigeben", "Antwort senden" | Approves at once. Primary. |
| The draft | "Bearbeiten" | Switches to editing. Secondary. |
| The draft | "Verwerfen" | Opens a confirmation. Ghost. |

Editing:

- "Bearbeiten" replaces the text with fields in the same box: one `pa-textarea` per section, each with `data-assistant` until the person changes it.
- While editing, the actions are "Änderungen speichern" (primary) and "Abbrechen". Approve and discard come back after saving. A draft with unsaved changes cannot be approved.
- Unsaved changes are announced with a `pa-badge pa-badge--warning pa-badge--pending` "Ungespeicherte Änderungen" in a `role="status"` region. Leaving with unsaved changes asks once in a dialog: "Änderungen verwerfen?", "Weiter bearbeiten", "Änderungen verwerfen".
- A flagged passage keeps its note until the person edits that passage.

Discarding:

- "Verwerfen" opens a dialog: "Entwurf verwerfen?", "Der Entwurf wird gelöscht. Die Aufnahme bleibt erhalten.", "Entwurf behalten", "Entwurf verwerfen".
- Afterwards a `pa-alert--neutral` stands in place of the draft: "Entwurf verworfen."

Rules:

- Nothing prepared by the assistant is sent to a patient, written to a record or acted on without step 4. There is no auto-send and no "alle freigeben" for medical content.
- Approve, edit and discard appear together whenever a draft is shown and not being edited. Discard is never hidden in a menu.
- Before sending anything to a patient, confirm the patient's name, the full email address and the approved document on one screen.
- If a patient talks to an automated assistant, say so in the first message, in plain words: "Ich bin der digitale Assistent der Ordination am Park."
- The assistant never states a diagnosis or a medical decision as its own. Drafts attribute what they say: "Die Patientin berichtet", "laut Gespräch". Keep the practice's own section names for a report.
- Do not use sparkle icons, gradients or glow for AI. The mark and Flieder are the whole signal.

### Patient flow: one thing per page

Booking, intake forms, consent and follow-up all use the same structure. The frame markup is in Components, Patient frame.

- `data-audience="patient"` and `data-theme="light"` on `<html>`, `pa-patient-frame` on `<body>`, content in `pa-page--patient`.
- One question or one decision per step. The heading (`h1`) is the question. A summary and a result are statements.
- Above the heading: `pa-back` "Zurück" (not on the first step, not on the result) and, for flows of three or more steps, `pa-progress` with "Schritt 2 von 6". Questions and the summary are counted, the result is not. The bar is `aria-hidden="true"`, the words carry it.
- Answer with `pa-choice` cards, `pa-slot` buttons or one to four fields. Then one `pa-button pa-button--lg` "Weiter" inside `pa-actions`.
- Below the action, earlier answers stay visible under the heading "Ihre bisherigen Angaben": a `pa-card` with `pa-facts` and "Ändern" per row.
- The last step before submitting shows every answer once (`pa-facts`), says who sees the data and how long it is kept (`pa-alert--neutral`), and has the action with its real name ("Termin buchen").
- "Ändern" goes to that step. "Weiter" there returns to the summary. If the change makes later answers invalid (a new day needs a new time), those are asked again.
- Never lose what the person entered: not on back, not on error, not on reload. Keep the answers in `sessionStorage` for the length of the flow and clear them after submitting. Never keep patient data in `localStorage`.
- End with `pa-result`: what happened, what happens next, then the facts, then at most one action, which is secondary ("Zum Kalender hinzufügen"). The task is done, so nothing is primary.
- The practice's phone number is in the header of every step as a `tel:` link (`pa-patient-phone`).
- Say how long things take and how long data is kept, in plain numbers: "Die Buchung dauert etwa 2 Minuten.", "Die Ordination speichert Ihre Angaben 12 Monate."
- The footer holds the practice's name and address, "Impressum", "Datenschutz", and the line "Online-Terminbuchung mit Parea Agenda" as text.

Booking steps, each only when needed:

| Step | Heading | Answer |
| --- | --- | --- |
| Standort (more than one) | Wo möchten Sie hinkommen? | Choices with name and address |
| Besuch (if the practice asks) | Waren Sie schon bei uns? | Two choices |
| Terminart (more than one) | Welchen Termin brauchen Sie? | Choices with duration and billing ("30 Minuten, Kasse") |
| Tag | Welcher Tag passt Ihnen? | Choices for the next six days with free times, then a secondary button "Spätere Tage anzeigen" |
| Uhrzeit | Welche Uhrzeit passt Ihnen? | Slots under Vormittag (before 12:00), Nachmittag (12:00 to 17:00), Abend (from 17:00) |
| Person | Wer kommt zum Termin? | Vorname, Nachname, Geburtsdatum |
| Kontakt | Wie erreichen wir Sie? | Telefonnummer, E-Mail-Adresse, optional reminder |
| Zusammenfassung | Ist alles richtig? | Facts, data note, "Termin buchen" |
| Result | Ihr Termin ist bestätigt | Facts, "Zum Kalender hinzufügen" |

- With Arc's `availability-picker`, day and time are one step with the heading "Wann passt es Ihnen?".
- After a slot is chosen, say it in words in a `role="status"` line: "Gewählt: Mittwoch, 13. Jänner 2027, 17:30 bis 18:00 Uhr."
- A device outside Austrian time gets the note "Alle Zeiten in österreichischer Ortszeit." under the slots. Compare the offset of `Europe/Vienna` with the device's for the chosen day.
- Whether a booking is confirmed at once depends on the practice. Confirmed: "Ihr Termin ist bestätigt", `pa-result-mark` with a check, badge "Bestätigt". Request: "Ihre Anfrage ist bei der Ordination", `pa-result-mark--pending` with a clock, badge "Angefragt", and when the answer will come.
- If the slot was taken in the meantime, return to the time step with the error "Dieser Termin ist leider nicht mehr frei. Bitte wählen Sie eine andere Zeit."
- Hold a slot only if the product really does, and then say for how long: "Wir halten diesen Termin 10 Minuten für Sie frei."
- "Zum Kalender hinzufügen" downloads an `.ics` file with the practice, address, time and phone number. No appointment type, no reason for the visit.
- A booking code is six characters without look-alikes (no O, 0, I, 1), grouped in threes and set in mono: `K7P-4QX`.

### Forms and validation

- Validate on submit, not while typing and not on blur. Keep every value.
- On error, show a `pa-error-summary` below the page heading and above the first field, move focus to it, and repeat each message at its field.

```html
<div class="pa-error-summary" role="alert" tabindex="-1">
  <h2 class="pa-error-summary-title">Bitte prüfen Sie Ihre Angaben</h2>
  <ul>
    <li><a href="#geburtsdatum">Geben Sie Ihr Geburtsdatum ein, zum Beispiel 14.03.1958.</a></li>
  </ul>
</div>
```

- A field error is a `pa-error` under the field (see Field). A choice or slot group gets its `pa-error` under the group, the `fieldset` points to it with `aria-describedby`, and the summary link focuses the first option. Copy: "Wählen Sie eine Terminart aus.", "Wählen Sie einen Tag aus.", "Wählen Sie eine Uhrzeit aus."
- A group error clears when the person chooses. Field errors clear on the next submit.
- Error text says how to fix it and never blames: "Geben Sie Ihr Geburtsdatum ein, zum Beispiel 14.03.1958." Not "Ungültige Eingabe".
- Ask only for what the next step needs. Explain why for anything sensitive ("Die Ordination braucht sie für Rückfragen").
- Date of birth: one typed field, `inputmode="numeric"`, `autocomplete="bday"`, `pa-input--w10`, hint "Zum Beispiel 14.03.1958. Die Punkte können Sie weglassen." Accept 14.03.1958, 14031958 and 14.3.1958. Not a calendar picker. For a date that cannot be right: "Geben Sie ein Geburtsdatum in der Vergangenheit ein."
- Phone: `type="tel"`, `autocomplete="tel"`. Strip spaces, hyphens, slashes and brackets. It is only wrong with fewer than seven digits: "Geben Sie eine Telefonnummer wie +43 1 234 56 78 ein." Show it back as it was typed.
- In practice tools, editing happens in place, in a detail view or in a drawer, with "Speichern" and "Abbrechen".

### Identity and sensitive data

- The patient banner is pinned whenever a record is open, and shows the identifiers in full.
- Identifiers appear only where the task needs them: in the banner of an open record and in a search result that has to tell two people apart. Lists show names, not SV-Nummern. There are no half-masked numbers.
- Lists that others may see (a reception screen) offer a privacy switch in the view header: `pa-switch` "Namen kürzen", off by default, remembered on the device. It shortens names in lists and alerts to "Gruber, M." and never touches the banner of an open record.
- SV-Nummer is 10 digits shown as "1237 010180" in mono. Never derive or validate a date of birth from it.
- Emails, SMS and push notifications contain no clinical detail: not the reason for the visit, not a result. They say that something is ready and link to a protected page.
- A protected link needs a second factor the patient already has (an access code sent separately).
- Show who can see what, in words: "Nur Behandler können Befunde freigeben."
- Every operator or support access is announced: "Betreiberzugriff auf Ordination am Park. Jeder Zugriff wird im Audit-Log vermerkt."

### Theme switch

Practice tools offer the theme in the account menu or the settings: a `pa-segmented` with "Hell", "Dunkel" and "System", `aria-pressed` on the chosen one, in a group labelled "Darstellung". It sets `data-theme` on `<html>` and is remembered on the device. Patient pages ship `data-theme="light"` and have no switch.

### Sign-in

- Email plus a one-time code (`pa-code`) or a password. Allow paste and password managers. No puzzles.
- "Code anfordern", then "Prüfen Sie Ihr Postfach" with the address shown, "Neuen Code senden in 30 s", "Andere E-Mail-Adresse".
- Say how long the code is valid.

### States

Every region that loads data has four designed states: loading (`pa-skeleton`), empty (`pa-empty`), error (inline `pa-alert--danger` with "Erneut versuchen") and success shown in place. Conflicts are reported, not overwritten: "Der Eintrag wurde inzwischen geändert. Bitte laden Sie ihn neu."

Something that needs attention before a deadline (a request about to lapse) is an inline `pa-alert--warning` above the list it belongs to, with one action. Something that failed in the background (a recording that could not be processed) is a `pa-alert--danger` next to where its result would have appeared, with "Erneut versuchen".

### Destructive actions

Cancelling an appointment, removing access, deleting, discarding: the button opens a dialog whose title is the question, whose text is the consequence and whose buttons name both outcomes. If it can be undone, say so. If it notifies someone, say whom: "Die Person erhält eine Absage per E-Mail. Die Zeit wird wieder frei."

### Dates, numbers, names

Dates, times, numbers and money come from `Intl` with locale `de-AT` and time zone `Europe/Vienna`. Do not build them from parts by hand.

| Thing | Patient | Practice |
| --- | --- | --- |
| Date | Dienstag, 12. Jänner 2027 | Di., 12.01.2027 |
| Date in a short list | Dienstag, 12. Jänner | Di., 12.01. |
| Time | 09:30 Uhr | 09:30 |
| Range | 09:30 bis 10:00 Uhr | 09:30–10:00 |
| Date and time | Dienstag, 12. Jänner 2027, 09:30 Uhr | 12.01.2027, 09:30 |
| Relative | heute, morgen, in 3 Tagen | heute, morgen |
| Duration | 30 Minuten | 30 Min. |
| Money | € 80,00 and € 1.234,50 | € 80,00 |
| Number | 1 234,5 | 1 234,5 |
| Phone | +43 1 234 56 78 | +43 1 234 56 78 |
| Date of birth | 14. März 1958 | 14.03.1958 (68 Jahre) |
| Name | Maria Gruber, Frau Gruber | Gruber, Maria |

```js
const at = { timeZone: 'Europe/Vienna' };
const f = (options) => new Intl.DateTimeFormat('de-AT', { ...at, ...options });

f({ weekday: 'long', day: 'numeric', month: 'long', year: 'numeric' }).format(d); // Dienstag, 12. Jänner 2027
f({ weekday: 'short', day: '2-digit', month: '2-digit', year: 'numeric' }).format(d); // Di., 12.01.2027
f({ day: '2-digit', month: '2-digit', year: 'numeric' }).format(d); // 12.01.2027
f({ hour: '2-digit', minute: '2-digit' }).format(d); // 09:30
new Intl.NumberFormat('de-AT', { style: 'currency', currency: 'EUR' }).format(80); // € 80,00
new Intl.NumberFormat('de-AT', { style: 'unit', unit: 'minute', unitDisplay: 'long' }).format(30); // 30 Minuten
new Intl.RelativeTimeFormat('de-AT', { numeric: 'auto' }).format(1, 'day'); // morgen
new Intl.PluralRules('de-AT').select(1); // one: "1 Termin", other: "3 Termine"
new Intl.ListFormat('de-AT', { type: 'conjunction' }).format(['A', 'B', 'C']); // A, B und C
```

- "Uhr" and "bis" are words you put around the output of `Intl`: `${time} Uhr`, `${from} bis ${to} Uhr`. The practice range joins two times with an en dash.
- Three things are assembled by hand because `Intl` has no format for them: the SV-Nummer (four digits, a space, six digits), the age after a date of birth ("(68 Jahre)"), and phone numbers, which are shown as stored.
- January is "Jänner", and `de-AT` produces it. Write numerals for all numbers. For patients prefer "1 von 7" over percentages.
- The year is shown in confirmations, records and anything that is kept. A list of the coming days leaves it out.

### Email and SMS

- One message, one purpose, one action. Subject says what happened: "Ihr Termin ist bestätigt".
- Sender name is the practice. Parea signs off in the footer.
- White card on `--background`, logo or name of the practice, heading, two sentences, the facts, one button, then phone and "Termin verwalten".
- Plain text version always. No clinical detail. Buttons are real links that also appear as text.
- SMS: under 160 characters, practice name first, date and time, one short link.

## Voice and content

Interface copy is German as written in Austria. The voice is the same person on both sides of the desk: calm, clear, on your side.

### Principles

| Principle | Means | Write | Not |
| --- | --- | --- | --- |
| Ruhig | No alarm, no hype, no exclamation marks | Der Termin wurde abgesagt. | Achtung! Termin storniert! |
| Klar | Short sentences, one statement each, the usual word | Bitte bringen Sie Ihre e-card mit. | Die Vorlage der e-card ist obligatorisch. |
| Konkret | Say what happens next, with real numbers | Die Ordination bestätigt den Termin innerhalb von 24 Stunden. | Wir melden uns zeitnah. |
| Ehrlich | Name limits and errors plainly, promise nothing extra | Das hat nicht geklappt. Bitte versuchen Sie es erneut. | Ups, da ist etwas schiefgelaufen :( |
| Respektvoll | Formal "Sie", no blame, no baby talk | Geben Sie Ihre Telefonnummer ein. | Du hast deine Nummer vergessen! |

### Rules

- Formal "Sie" for patients and staff. Capitalise Sie, Ihr, Ihnen.
- Sentence case. Buttons are verb plus object without a full stop: "Termin buchen".
- Sentences of at most 20 words for patients. One idea per sentence. Paragraphs of at most three sentences.
- Plain word first, medical term in brackets if needed: "Blutabnahme (Laborkontrolle)".
- No em dashes. Use a full stop, comma, colon or brackets.
- Quotation marks are „so“. Ranges use an en dash without spaces in practice tools ("9–17 Uhr") and "bis" for patients.
- No anglicisms where a German word is usual: Termin, Rückruf, Anmeldung, Befund. Product and feature names stay as they are.
- Austrian usage: Ordination, Jänner, e-card, SV-Nummer, Kassenarzt, Wahlarzt, Befund, Überweisung.
- Inclusive forms: prefer neutral words (Team, Ordination, Person). In patient interface text write both forms once ("Patientin oder Patient"). In editorial text the colon form is in use ("Ärzt:innen"). Do not mix forms on one screen.
- The assistant is "Parea". "Parea hat einen Entwurf vorbereitet." Never "Die KI hat entschieden".
- Never write that Parea diagnoses, decides, guarantees or saves a number of hours. Do not invent customers, certifications or figures.

### Two tones of one voice

| Situation | To a patient | To the practice |
| --- | --- | --- |
| Booking done | Ihr Termin ist bestätigt. Wir freuen uns auf Sie. | Termin bestätigt. |
| Booking as a request | Ihre Anfrage ist bei der Ordination. | Neue Anfrage |
| Request received, next step | Sie erhalten eine E-Mail, sobald der Termin bestätigt ist. | 3 offene Anfragen |
| Something missing | Bitte geben Sie noch Ihre Telefonnummer ein. Die Ordination braucht sie für Rückfragen. | Telefonnummer fehlt. |
| Slot gone | Dieser Termin ist leider nicht mehr frei. Bitte wählen Sie eine andere Zeit. | Dieser Termin ist inzwischen vergeben. |
| Cancelling | Möchten Sie Ihren Termin wirklich absagen? Sie können danach einen neuen buchen. | Termin absagen? Die Person erhält eine Absage per E-Mail. |
| Draft ready | not shown to patients | Parea hat einen Entwurf vorbereitet. Bitte prüfen Sie ihn vor der Freigabe. |
| Error | Das hat nicht geklappt. Bitte versuchen Sie es erneut oder rufen Sie in der Ordination an. | Die Verbindung wurde unterbrochen. Bitte versuchen Sie es erneut. |

Patients get a little warmth and always the next step. Staff get the fact first and nothing extra.

### Standard labels

Speichern, Änderungen speichern, Abbrechen, Weiter, Zurück, Ändern, Schließen, Erneut versuchen, Suchen, Alle anzeigen, Abmelden, Termin buchen, Termin verschieben, Termin absagen, Termin behalten, Termin bestätigen, Entwurf prüfen, Befund freigeben, Antwort senden, Bearbeiten, Verwerfen, Entwurf behalten, Entwurf verwerfen, Aufnahme öffnen, Zum Kalender hinzufügen, Spätere Tage anzeigen, Route planen, Code anfordern, Neuen Code senden.

Avoid as button labels: OK, Ja, Nein, Absenden, Bestätigen without an object, Hier klicken, Mehr erfahren. A choice a patient picks may start with "Ja" or "Nein" when the rest of the line says what it means: "Ja, ich war schon in der Ordination".

Navigation in practice tools: Mein Tag, Kalender, Anfragen, Patienten, Aufnahmen, Befunde, Einstellungen.

Settings and switches: Darstellung (Hell, Dunkel, System), Namen kürzen, Abgesagte anzeigen.

### Copy for common situations

| Situation | Copy |
| --- | --- |
| Drafts waiting, one | Parea hat einen Entwurf vorbereitet. Bitte prüfen Sie ihn vor der Freigabe. |
| Drafts waiting, several | Parea hat 3 Entwürfe vorbereitet. Bitte prüfen Sie sie vor der Freigabe. |
| No drafts | Keine Entwürfe zur Prüfung. Neue Entwürfe erscheinen hier, sobald eine Aufnahme verarbeitet ist. |
| Nothing approved yet | Noch nichts freigegeben. Befunde erscheinen hier, sobald Sie einen Entwurf freigegeben haben. |
| No appointments | Heute keine Termine. |
| Recording failed | Aufnahme von 10:17 nicht verarbeitet. Die Aufnahme ist gespeichert. |
| Request about to lapse | Anfrage verfällt heute um 12:10. Bestätigen Sie die Anfrage oder schlagen Sie eine andere Zeit vor. |
| Unsaved changes | Ungespeicherte Änderungen |
| Leaving with unsaved changes | Änderungen verwerfen? Ihre Änderungen an diesem Entwurf gehen verloren. |
| Discarding a draft | Entwurf verwerfen? Der Entwurf wird gelöscht. Die Aufnahme bleibt erhalten. |
| Saved | Änderungen gespeichert. |
| Who is approving | Sie geben als Dr. Jana Höfler frei. |
| Loading | Inhalte werden geladen |
| Nothing chosen | Wählen Sie eine Terminart aus. |
| Example data | Beispielansicht. Alle Personen und Daten sind erfunden. |

### Brand lines

In use and approved: "Mehr Zeit für Menschen." (claim), "Für Menschen. Auf beiden Seiten.", "Für die Menschen, die für Menschen da sind.", "Parea begleitet Ihren Praxisalltag.", "Ihre Praxis zuerst. Dann die Technologie.", "Parea bereitet vor, Ihr Team gibt frei." Use them as written. Do not write new claims.

## Accessibility

Parea serves everyone who visits a doctor, which is everyone. WCAG 2.2 level AA is the minimum for every screen, and patient screens go further where the table says so.

| Requirement | Practice | Patient |
| --- | --- | --- |
| Text contrast | 4.5:1, body text 7:1 on standard surfaces | same |
| Control outlines, icons that carry meaning, focus ring | 3:1 | 3:1 |
| Smallest text | 12px for meta, 13px otherwise | 14px for meta, 18px body |
| Touch and click targets | Every control 44px on touch. With a pointer 32, 40 or 44px by size | 48 by 48px, main action 60px high, 8px between targets |
| Keyboard | Everything reachable and operable, visible 2px focus ring | same, 3px ring |
| Zoom and reflow | Usable at 200 percent zoom and at 320px width | same |
| Motion | Honours reduced motion | same |
| Colour | Never the only carrier of meaning | same |
| Language | `lang="de-AT"` on `<html>` | same |

Build rules:

- Use real elements: `button` for actions, `a` for navigation, `label` for every control, `fieldset` and `legend` for groups, one `h1`, headings in order, landmarks (`header`, `nav`, `main`, `footer`).
- Do not remove the focus ring. `parea.css` shows it for keyboard users and hides it for pointer users.
- Announce changes: `role="status"` for confirmations, `role="alert"` for errors, `aria-busy` while loading, `aria-live` regions for results that appear without navigation.
- Move focus on purpose: to the heading of a new step, to the error summary after a failed submit, into a dialog and back to its trigger.
- Every icon-only control has an `aria-label` in German. Decorative icons have `aria-hidden="true"`.
- Any action that can be done by dragging (moving an appointment) can also be done with a click or keys.
- Do not rely on hover. Do not use tooltips for anything a person needs.
- Sign-in never requires solving a puzzle or retyping a code from memory. Allow paste and password managers.
- Do not ask for the same information twice in one flow.
- Help (the practice's phone number) is in the same place on every patient page.
- Time limits are generous, announced, and extendable. A booking hold says how long it lasts.
- Test with the keyboard only, with a screen reader, at 200 percent zoom, at 320px, in dark and with reduced motion. Products run an automated check (`@axe-core/playwright`) in their browser tests. An automated check finds about a third of the problems, so it never replaces the manual pass.

Context: the Austrian Barrierefreiheitsgesetz (in force since 28 June 2025, implementing the European Accessibility Act) covers consumer-facing digital services such as online booking. Parea builds every patient surface to WCAG 2.2 AA regardless of how the scope is finally interpreted.

## Implementation

Everything below is generated from one token source and versioned together. Current version: 1.0.0.

| File | What it is | Use it when |
| --- | --- | --- |
| [`/parea.css`](https://brand.parea.health/parea.css) | Fonts, tokens, base styles and all `pa-` components in one file | A static page, a prototype, an email preview, anything without a framework |
| [`/tokens.css`](https://brand.parea.health/tokens.css) | CSS custom properties only | You bring your own components |
| [`/arc-theme.css`](https://brand.parea.health/arc-theme.css) | Token overrides for the Arc component library | A Parea React product built on Arc (admin, app, Agenda, website) |
| [`/tailwind.css`](https://brand.parea.health/tailwind.css) | Tailwind CSS v4 `@theme` mapping | A Tailwind project |
| [`/r/parea.json`](https://brand.parea.health/r/parea.json) | shadcn/ui registry theme | A shadcn/ui project |
| [`/tokens.json`](https://brand.parea.health/tokens.json) | Design Tokens Format Module 2025.10 | Figma, Style Dictionary, native apps |
| [`/assets/icons.svg`](https://brand.parea.health/assets/icons.svg) | Lucide subset and the Parea mark as symbols | Static pages served from the same origin |
| [`/assets/logo/`](https://brand.parea.health/#logo) | Logo, mark, wordmark and app icon as SVG | Anywhere the logo appears |

### Plain HTML

```html
<!doctype html>
<html lang="de-AT" data-theme="light" data-audience="patient">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://brand.parea.health/parea.css">
</head>
<body class="pa-patient-frame">
  <header class="pa-patient-header">
    <span>Ordination am Park</span>
    <a class="pa-patient-phone" href="tel:+4312345678">+43 1 234 56 78</a>
  </header>
  <main class="pa-patient-main pa-page pa-page--patient pa-stack pa-gap-6">
    <h1>Welche Uhrzeit passt Ihnen?</h1>
    <div class="pa-slots">
      <button class="pa-slot" type="button" aria-pressed="false">09:30</button>
      <button class="pa-slot" type="button" aria-pressed="true">10:15</button>
    </div>
    <div class="pa-actions"><button class="pa-button pa-button--lg">Weiter</button></div>
  </main>
  <footer class="pa-patient-footer">Online-Terminbuchung mit Parea Agenda</footer>
</body>
</html>
```

Set `data-audience` and `data-theme` on `<html>`. Put buttons in `pa-actions` so they keep their own width. For production, copy `parea.css` and the fonts into the project instead of hot-linking. The two reference screens on the portal, `/examples/booking/` and `/examples/praxis/`, are complete pages built this way: read their source.

### React with Arc

All Parea products use Arc components (uiarc.dev) with CSS Modules. Arc is themed by overriding tokens, never by editing component CSS.

```ts
// main.tsx
import '@fontsource-variable/google-sans-flex/rond.css';
import '@fontsource-variable/google-sans-code';
import './components/arc/foundation.css';
import './parea/arc-theme.css'; // a copy of https://brand.parea.health/arc-theme.css, after the foundation
```

```html
<html lang="de-AT" data-theme="light" data-accent="neutral" data-audience="practice">
```

- Keep `data-accent="neutral"` or any other value: the theme resolves every accent to Parea Grün.
- Wrap patient routes in `<div data-audience="patient">`. Arc components read the same `--text-*`, `--control-height-*` and `--radius-*` tokens and grow with it.
- Arc's primary button is already Tanne because it uses `--foreground`.
- For assistant content there is no Arc component. Build it from tokens: `--assistant-subtle` background, `--assistant-border` outline, `--radius-panel`, label in `--assistant-strong`. Arc's `badge` with `tone="violet"` renders as the assistant tone and is reserved for "Entwurf".
- Icons: `lucide-react` with `strokeWidth={1.75}` at 16, 20 or 24.
- Motion: Arc's `spring.smooth` (no overshoot). Do not use presets that bounce.
- The theme does not change `--space-*`, so each product keeps its Arc density.
- Remove product-level overrides of `--background`, `--surface`, `--font-body` and `--font-display` (the app and admin set these in `src/styles.css`) or import the theme after them. The theme has to be the last word on colour and type.
- Use the Tanne logo file from the portal in light products and the white one in dark products, instead of inverting a black logo with a CSS filter.

### Tailwind CSS v4

```css
@import "tailwindcss";
@import "./parea/tokens.css";
@import "./parea/tailwind.css";
```

Utilities then read the live variables: `bg-surface text-foreground border-border rounded-control`, `text-fg-secondary`, `bg-accent-subtle text-accent-strong`, `bg-assistant-subtle`, `font-display`, `ease-standard`. Ramps are available as `bg-green-200`, `text-pine-900`. Dark theme and patient audience still switch with the data attributes.

### shadcn/ui

```bash
npx shadcn@latest add https://brand.parea.health/r/parea.json
```

This maps Parea onto shadcn's variable names (`primary` is Tanne, `ring` is the focus colour, `destructive` is danger) and adds `brand`, `mint`, `sand`, `assistant`, `success`, `warning` and `info` colours.

### Native and design tools

`tokens.json` follows the Design Tokens Format Module 2025.10. Colours are OKLCH with a hex fallback. Each semantic colour carries its dark value under `$extensions["health.parea.mode"].dark` and its CSS name under `$extensions["health.parea.css"]`. In SwiftUI and similar, map the semantic names one to one and use the patient audience values for anything a patient sees.

### Versioning

Tokens, stylesheet and documentation share one version number. Additions are minor versions. A renamed or removed token, or a visible change to an existing semantic colour, is a major version and is listed on the portal. Products should copy the files at a version, not hot-link them.

## Brand

### Logo

The Parea logo is the mark (two interlocking rounded tiles) and the wordmark "Parea". Use the supplied files. Never redraw, retype, stretch, outline, rotate or recolour them outside the three logo colours.

| Form | File | Use |
| --- | --- | --- |
| Logo | `/assets/logo/parea-logo-tanne.svg`, `-weiss.svg`, `-minze.svg` | The default. Mark and wordmark together. |
| Mark | `/assets/logo/parea-mark-tanne.svg`, `-weiss.svg`, `-minze.svg` | Where "Parea" is already written nearby, and from 32px down. |
| Wordmark | `/assets/logo/parea-wordmark-tanne.svg`, `-weiss.svg` | Rarely: next to a partner logo in a line of text. |
| App icon | `/assets/logo/parea-app-icon-minze.svg`, `-tanne.svg` | Home screens, favicons, avatars for Parea itself. |
| Arrival | `/assets/logo/parea-logo-arrive.svg` | The logo drawing itself once, for a first load or a film. |

- Colours: Tanne on white, Sand and Minze. White on Tanne and on photographs. Minze on Tanne for the app icon. No other colours.
- Clear space: half the height of the logo on every side.
- Minimum size: logo 72px wide on screen (20mm in print), mark 16px.
- Product lockup: the logo followed by the product name in the text face, regular weight, secondary colour, at the cap height of the wordmark ("Parea Agenda", "Parea Folio"). Class `pa-lockup`.
- On a patient page the practice's own name and logo lead. Parea appears in the footer.
- Geometry of the mark: each tile is a square with corners of 18 percent of its side, turned 13 degrees clockwise. The second tile sits a fifth of a side to the right and an eighth up. The system borrows the corner and the turn (`--radius-tile`, `--tilt`).

### Imagery

- Photographs show real moments in a practice: reception, the consulting room, a phone call, a waiting patient. People are in conversation or at work, not posing for the camera.
- Warm daylight, natural materials, calm colours. No blue-tinted technology scenes, no robots, no glowing brains, no stock handshakes.
- People of different ages. Patients are shown with dignity: no pain close-ups, no hospital drama.
- Interface is shown honestly: real screens with example data, never invented dashboards.
- Illustrative scenes are labelled as illustrative. Never show a person as a named patient or customer unless they are one and agreed.
- Photos sit in `--radius-surface` corners on a plain ground. Text on a photo needs a dark scrim and white text at 4.5:1 or better.
- Alt text describes what is shown in one German sentence.

## Checklist before you finish

Run through this for every screen you build or change.

**Audience and structure**
- [ ] The audience is set (`data-audience`) and is `patient` if a patient can see the screen.
- [ ] `lang="de-AT"` is on `<html>`. There is one `h1`. Landmarks and headings are in order.
- [ ] Patient screens: one column up to 36rem, one question per step, a back link, the practice's phone number.
- [ ] Practice screens: the patient banner is visible wherever a record is open.

**Colour and type**
- [ ] No raw hex, rgb or oklch values in product code. Only tokens.
- [ ] At most one primary button per view, filled `--foreground`. No coloured primary buttons.
- [ ] Lilac appears only on unapproved assistant content. Nothing else is lilac.
- [ ] Every status has a word and a dot or icon. Red and amber are used only as status.
- [ ] Weights are 400 and 500. No uppercase, no bold, no italics for emphasis.
- [ ] Identifiers are in the mono face. Columns of numbers use tabular figures.

**Behaviour**
- [ ] Assistant output cannot reach a patient or a record without a named person approving it. Edit and discard sit next to approve.
- [ ] Loading, empty, error and success states exist for every region that loads data.
- [ ] Forms validate on submit, keep every value and say how to fix each error.
- [ ] Destructive actions ask once, in a dialog that names the consequence.
- [ ] Notifications, emails and SMS contain no clinical detail.

**Copy**
- [ ] German, formal "Sie", sentence case, verbs on buttons, no exclamation marks, no em dashes.
- [ ] Dates, times, numbers and money come from `Intl` with `de-AT` and `Europe/Vienna`.
- [ ] No invented claims, customers, certifications or figures.

**Accessibility**
- [ ] Works with the keyboard alone, with a visible focus ring.
- [ ] Text contrast at least 4.5:1, control outlines at least 3:1.
- [ ] Targets at least 44px for staff on touch and 48px for patients, 8px apart.
- [ ] No sideways scrolling at 320px. Usable at 200 percent zoom.
- [ ] Checked in light and dark, and with reduced motion.
