diff --git a/.claude/commands/entwuerfe.md b/.claude/commands/entwuerfe.md new file mode 100644 index 0000000..7f989d8 --- /dev/null +++ b/.claude/commands/entwuerfe.md @@ -0,0 +1,7 @@ +--- +description: Zeigt zwei oder drei Gestaltungsrichtungen als Entwürfe zum Vergleich +--- + +Führe den Ablauf aus dieser Datei aus: @agent/ablaeufe/entwuerfe.md + +Angaben dazu: $ARGUMENTS diff --git a/.claude/commands/gestaltung.md b/.claude/commands/gestaltung.md new file mode 100644 index 0000000..4bbc459 --- /dev/null +++ b/.claude/commands/gestaltung.md @@ -0,0 +1,7 @@ +--- +description: Legt die Gestaltungsvorgabe der Website fest oder ändert sie +--- + +Führe den Ablauf aus dieser Datei aus: @agent/ablaeufe/gestaltung-festlegen.md + +Angaben dazu: $ARGUMENTS diff --git a/.claude/skills/frontend-design/HERKUNFT.md b/.claude/skills/frontend-design/HERKUNFT.md new file mode 100644 index 0000000..88d3725 --- /dev/null +++ b/.claude/skills/frontend-design/HERKUNFT.md @@ -0,0 +1,8 @@ +# Herkunft + +Unverändert übernommen aus https://github.com/anthropics/skills (skills/frontend-design), +Stand 19.11.2026, Lizenz Apache 2.0 (siehe LICENSE.txt). + +Claude Code und OpenCode finden den Skill beide unter `.claude/skills/`. +Projektspezifische Vorgaben stehen nicht hier, sondern in `GESTALTUNG.md` und `AGENTS.md`. +Aktualisieren: Datei aus dem Repository neu herunterladen, nicht von Hand ändern. diff --git a/.claude/skills/frontend-design/LICENSE.txt b/.claude/skills/frontend-design/LICENSE.txt new file mode 100644 index 0000000..f433b1a --- /dev/null +++ b/.claude/skills/frontend-design/LICENSE.txt @@ -0,0 +1,177 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS diff --git a/.claude/skills/frontend-design/SKILL.md b/.claude/skills/frontend-design/SKILL.md new file mode 100644 index 0000000..a533345 --- /dev/null +++ b/.claude/skills/frontend-design/SKILL.md @@ -0,0 +1,71 @@ +--- +name: frontend-design +description: Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. +license: Complete terms in LICENSE.txt +--- + +# Frontend Design + +Approach this as the design lead at a design studio known for giving every client a distinct visual identity that is not mistaken for anyone else's. This client has already rejected proposals that felt cliché or templated, and is paying for a distinctive point of view: make deliberate, opinionated choices about palette, typography, and layout that are specific to this brief, and take aesthetic risk if justified. + +## Ground your designs in the subject matter + +If the brief does not identify what the product or subject matter is, identify it yourself before designing, and confirm with the client. You can come up with one concrete subject, the design's audience, and the design's primary job, as a proposal. If there's any information in your memory about the client's preferences or context about what they're building, use that as a hint. The subject's industry, subject matter, materials, and vernacular are where distinctive visual choices come from — a design for a toy for girls aged 8–11 will be very aesthetically different from a dashboard for financial analysts. Build with the brief's real content and subject matter throughout. + +## Design principles + +For web designs, the hero is the first thing viewers will see. Open with the most characteristic thing in the subject's world, in the form that is most appropriate: a headline, an image, an animation, a live demo, an interactive moment, or other treatments. Be deliberate with your choice: a big number with a small label, supporting stats, and a gradient accent is the default treatment, so only use it if that's truly the best option. + +Typography carries the personality of the page. You don't need a different typeface for display or headline text and body content: use one family or two, and if two, make them clearly distinct. + +Choose your typefaces deliberately, not the default families you would reach for on any other project, and set a clear type scale following the default guidance of The Elements of Typographic Style with intentional weights, widths, and spacing. When type is used as a headline or visual element, use the type treatment itself as an active part of the design, not a neutral delivery vehicle for the content. + +Default to line lengths of less than 80 characters. Serif typefaces can have slightly longer line lengths; give serif body text slightly more line-height than a sans-serif. + +Avoid these default typographic treatments; they are the commonest tells of a generated page: +- Accenting just a single word or phrase in a headline, like putting one word in italic/bold or a different color. +- Using all caps for labels. +- Adding unnecessary typographic labels above content. + +Visual structure is information. Structural devices like outlines, borders, numbering, eyebrows, dividers, labels, etc., encode useful information about the content rather than decorate it. Many generic designs use numbered markers (01 / 02 / 03), but that's only appropriate if the content actually is a sequence — like a stepped process or a timeline. Before adding numbered markers, check the content really is a sequence. + +Use non-user-triggered motion sparingly and deliberately, only to draw attention. A single orchestrated moment — one page-load sequence or one reveal — lands better than scattered effects; fade-and-slide-up entrances on each section and hover transitions on every card are the generic default and read as AI-generated. Motion that answers a person's action (opening, expanding, confirming) is welcome when it shows what changed. + +Consider written content carefully. Often a design brief may not contain real content, and it's up to you to come up with copy and placeholder content. Copy can make a design feel as templated as the design itself. See the below section on writing for more guidance. + +## Process: plan, review against the brief, build, critique + +For calibration, AI-generated design right now clusters around some traits: +1. a warm cream background (near #F4F1EA) with a high-contrast serif display and a terracotta or warm-clay accent (often near #D97757 — Anthropic's own Claude-interaction accent, so on a user's brief it reads as a tell); +2. a near-black background with a single bright acid-green or vermilion accent; +3. a broadsheet-style layout with hairline rules, zero border-radius, and dense newspaper-like columns; +4. the SaaS-card kit: content chopped into identical rounded cards, one border-radius on everything regardless of hierarchy, the same soft grey shadow (rgba(0,0,0,.1)) under each, and gradient washes as decoration; +5. template chrome that appears whatever the subject: a tracked-out ALL-CAPS eyebrow label above every heading; meta strings joined with middle dots ('A · B · C'); labels built as 'WORD — fragment' with a spaced em dash; tinted near-black (#0B0B0B, #111) standing in for black; a monospace face for small data labels; a '→' appended to link and button text. + +All traits are legitimate for some briefs, but they are defaults rather than choices, and they appear regardless of subject. Where the brief pins down a visual direction, follow it exactly — the brief's own words always win, including when it asks for one of these looks. Where it leaves an axis free, don't spend that freedom on one of these defaults. As with a hired human designer, there's often a careful balance between doing what you're good at and taking each project as a chance to experiment and learn. + +Work in two passes. First, brainstorm a short design plan based on the client's design brief: create a compact token system with color, type, layout, and principles. +- Color: describe the core base palette as 4–6 named hex values. +- Type: the typefaces and their roles. +- Layout: a layout concept, using one-sentence prose descriptions and ASCII wireframes to ideate and compare. Include alignment guidance; should the content be left aligned, center aligned, justified? +- Principles: the high-level guidance for what makes this page unique. + +Then review that plan against the brief before building: if any part of it reads like the generic default you would produce for any similar page (work through a similar prompt to see if you arrive somewhere similar) rather than a choice made for this specific brief — revise that part, say what you changed and why. Only after you've confirmed the relative uniqueness of your design plan should you start to write the code, following the revised plan. + +When writing the code, be careful of structuring your CSS selector specificities. It's easy to generate CSS classes that cancel each other out (especially with a type-based selector like .section and an element-based selector like .cta). This can happen often with padding/margin between sections. + +## Restraint and self-critique + +Spend your boldness in one place. Let one element be the memorable thing, keep everything around it quiet and disciplined, and cut any decoration that does not serve the brief. Build to a quality floor without announcing it: responsive down to mobile, visible keyboard focus, reduced motion respected, visually accessible, harmonious color palettes. Critique your own work as you build, taking screenshots to review if your environment supports it — a picture is worth 1000 tokens. Consider Chanel's advice: before leaving the house, take a look in the mirror and remove one accessory. Human creatives have memory and always try to do something new, so if you have a space to quickly jot down notes about what you've tried, it can help you in future passes. + +## More on writing in design + +Words appear in a design for one reason: to make it easier to understand and use. They are design content, not decoration. Bring the same intentionality and minimalism to copywriting that you would bring to spacing and color. Before writing anything, ask what the design needs to say, and how it can best be said to help the person navigate the experience. + +Write from the end user's perspective. Name things by what users will understand in simple language, not by how the system is built. A user manages notifications, not webhook config. Describe what something is or does in plain terms rather than selling it. Being specific and legible to new users is always better than being clever. + +Use active voice as default. A CTA says exactly what happens when it is used: "Save changes," not "Submit." An action keeps the same name through the whole flow, so the button that says "Publish" produces a toast that says "Published." The vocabulary of an interface is the signposting for someone navigating the product. Cohesion and consistency are how people learn their way around. + +Treat failure and emptiness as moments for direction, not mood. Explain what went wrong and how to fix it, in the interface's voice rather than a person's. Errors don't apologize, and they are never vague about what happened. An empty screen is an invitation to act. + +Keep the tone conversational: plain verbs, sentence case, no filler, with tone matched to the brand and the audience. Let each written element do exactly one job. diff --git a/.opencode/commands/entwuerfe.md b/.opencode/commands/entwuerfe.md new file mode 100644 index 0000000..7f989d8 --- /dev/null +++ b/.opencode/commands/entwuerfe.md @@ -0,0 +1,7 @@ +--- +description: Zeigt zwei oder drei Gestaltungsrichtungen als Entwürfe zum Vergleich +--- + +Führe den Ablauf aus dieser Datei aus: @agent/ablaeufe/entwuerfe.md + +Angaben dazu: $ARGUMENTS diff --git a/.opencode/commands/gestaltung.md b/.opencode/commands/gestaltung.md new file mode 100644 index 0000000..4bbc459 --- /dev/null +++ b/.opencode/commands/gestaltung.md @@ -0,0 +1,7 @@ +--- +description: Legt die Gestaltungsvorgabe der Website fest oder ändert sie +--- + +Führe den Ablauf aus dieser Datei aus: @agent/ablaeufe/gestaltung-festlegen.md + +Angaben dazu: $ARGUMENTS diff --git a/AGENTS.md b/AGENTS.md index f6208ec..086a799 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,7 +6,7 @@ Dieses Projekt ist die Übergangs-Homepage der AZ-Gruppe: eine statische, mehrsp Du arbeitest mit einem Marketingmitarbeiter. Er ist Fachmann für visuelle Gestaltung und weiß, wie Websites wirken. Er programmiert nicht. Die Technik erledigst du, er entscheidet über Aussehen, Inhalt und Struktur. -- Sprich Deutsch, in ganzen Sätzen, in seinen Worten: **Seite**, **Baustein**, **Vorschau**, **speichern**, **veröffentlichen**. Technische Vorgänge (Git, Bauen, Pakete) erledigst du still und berichtest das Ergebnis so, wie es im Browser aussieht. +- Sprich Deutsch, in ganzen Sätzen, in seinen Worten: **Seite**, **Baustein**, **Vorschau**, **Entwurf**, **speichern**, **veröffentlichen**. Technische Vorgänge (Git, Bauen, Pakete) erledigst du still und berichtest das Ergebnis so, wie es im Browser aussieht. - Gestalterische Fragen entscheidet er. Stell sie ihm als Auswahl, am besten mit einem Blick in die Vorschau. - Wenn etwas an der Technik hängt, das du nicht lösen darfst oder kannst, sag ihm in einem Satz, woran es liegt, und dass die IT (Sascha König) dafür zuständig ist. @@ -14,6 +14,7 @@ Du arbeitest mit einem Marketingmitarbeiter. Er ist Fachmann für visuelle Gesta | Was | Ort | |---|---| +| **Gestaltungsvorgabe** | `GESTALTUNG.md`: Wirkung, Referenzen, Schrift, Formsprache, Bildstil, was wir vermeiden. Verbindlich für jede gestalterische Arbeit. | | Eine Seite | `src/seiten//` mit `aufbau.astro` (welche Bausteine, in welcher Reihenfolge) und je Sprache eine Textdatei `de.yaml`, `en.yaml` usw. | | Menü und Fußzeile | `src/inhalte/navigation.yaml` | | Texte, die auf allen Seiten vorkommen | `src/inhalte/allgemein/.yaml` | @@ -21,16 +22,29 @@ Du arbeitest mit einem Marketingmitarbeiter. Er ist Fachmann für visuelle Gesta | Rechtstexte | `src/inhalte/rechtstexte//.md` | | Bilder | Originale in `src/bilder/`. In einem Aufbau einbinden mit `await bild("ordner/datei.jpg", 1600)` aus `@/system/bilder`. Das liefert eine fürs Web aufbereitete Fassung. | | Downloads | Dateien in `public/downloads//`. Die Download-Seite entsteht daraus von selbst. Der Dateiname wird zum Titel. Der angezeigte Name der Rubrik steht im Feld `rubriken` der Texte der Download-Seite. | -| Gestaltungswerte | `src/styles/gestaltung.css`: Farben, Schrift, Ecken, Seitenbreite | +| Gestaltungswerte | `src/styles/gestaltung.css`: Farben, Schriften, Ecken, Seitenbreite, eigene Stilregeln | +| Schriften | Dateien (`.woff2`) in `public/schriften/`, eingebunden per `@font-face` in `src/styles/gestaltung.css` | | Aktive Sprachen | `src/einstellungen.json` | | Logo | Datei in `public/bilder/`, Pfad in `src/einstellungen.json` unter `logo`. Als SVG mit festen Maßen (`width` und `height` im ``), sonst schrumpft es in der Kopfzeile. | | Bausteine | `src/components/` | +| Entwürfe | `src/seiten/entwurf-/` und `src/components/entwuerfe/`. Nur für die Vorschau, siehe `agent/ablaeufe/entwuerfe.md`. | Die Adresse einer Seite ist `///`. `adresse` steht in der Textdatei der Seite und darf je Sprache anders lauten. Die Startseite hat `adresse: ""`. Links zwischen Seiten erzeugst du mit `linkZu("", sprache)` aus `@/system/seiten`, damit sie in jeder Sprache stimmen. +## Gestaltung + +Ziel ist eine Website, die eigenständig nach der AZ-Gruppe aussieht und nicht nach einer Vorlage. Fertige Bausteine sind der Rohbau, nicht das Ergebnis. + +- **Lies `GESTALTUNG.md`, bevor du etwas gestaltest**, und halte dich daran. Stehen dort noch `[PLATZHALTER]` bei Wirkung, Schrift oder Formsprache, schlag ihm vor, die Vorgabe zuerst festzulegen (`agent/ablaeufe/gestaltung-festlegen.md`). Entscheidet er sich, ohne Vorgabe weiterzumachen, triffst du begründete Annahmen und trägst sie als Vorschlag in `GESTALTUNG.md` ein. +- **Lade vor jeder gestalterischen Arbeit den Skill `frontend-design`.** Er beschreibt, wie man generische KI-Optik vermeidet. Wo er und `GESTALTUNG.md` sich widersprechen, gilt `GESTALTUNG.md`. Seine Beispiele und Fachbegriffe sind für dich, nicht für ihn. +- **Sieh dir Referenzen wirklich an.** Gibt er dir Bildschirmfotos oder Adressen, öffne sie und schau sie dir als Bild an. Beschreib ihm in zwei, drei Sätzen, was du daraus übernimmst: Raster, Abstände, Schriftbehandlung, Bildeinsatz. Kopiert wird nichts, übernommen werden Prinzipien. +- **Du musst Bilder sehen können.** Diese Arbeit verlangt, dass du Bildschirmfotos und Bilder ansiehst. Kannst du ein Bild nicht öffnen oder erkennen, sag ihm sofort: „Ich kann in dieser Einstellung keine Bilder sehen, damit kann ich die Gestaltung nicht beurteilen. Die IT muss ein anderes Modell einstellen.“ Arbeite dann nicht blind weiter. +- **Bei größeren Gestaltungsfragen zeigst du Entwürfe statt Beschreibungen.** Das gilt für die erste Fassung einer Seite, einen neuen Look und die Frage „wie könnte das aussehen“: zwei oder drei unterschiedliche Richtungen nach `agent/ablaeufe/entwuerfe.md`. +- **Bilder tragen die Seite.** Echte Fotos von Produkten, Fertigung, Menschen und Standorten wirken stärker als jede Gestaltung. Frag nach ihnen. Lade keine Bilder aus dem Internet und erfinde keine. Fehlt ein Bild, setz ein Beispielbild ein und nenne es ihm als offenen Punkt. + ## Seiten entstehen aus Bausteinen -Eine Seite ist eine Abfolge fertiger **Bausteine**. Du setzt zusammen, du baust nicht selbst. +Eine Seite ist eine Abfolge von **Bausteinen**. Du startest mit fertigen Bausteinen und passt sie an die Gestaltungsvorgabe an. 1. **Nimm zuerst, was da ist.** Sieh in `src/components/` nach, ob ein installierter Baustein passt. 2. **Fehlt einer, hol ihn aus einer freigegebenen Quelle**, immer mit `bun run baustein installieren `: @@ -41,10 +55,12 @@ Eine Seite ist eine Abfolge fertiger **Bausteine**. Du setzt zusammen, du baust | Fertige Seitenabschnitte (Hero, Vorteile, Team, FAQ, Kopf- und Fußzeile) | shadcnblocks | `bun run baustein installieren @shadcnblocks/hero3` | | Auffällige Effekte | Magic UI, Aceternity UI | `bun run baustein installieren @magicui/marquee` | - Welche Abschnitte es gibt, zeigt https://www.shadcnblocks.com/blocks. Zeig ihm zwei oder drei passende zur Auswahl. Meldet die Installation, dass ein Lizenzschlüssel fehlt, gehört der Abschnitt zum bezahlten Teil: Nimm einen freien oder verweise an die IT. + Welche Abschnitte es gibt, zeigt https://www.shadcnblocks.com/blocks. Wähl nach Aufbau und Inhalt, nicht nach Optik, denn die Optik passt du ohnehin an. Meldet die Installation, dass ein Lizenzschlüssel fehlt, gehört der Abschnitt zum bezahlten Teil: Nimm einen freien oder verweise an die IT. 3. **Übergib jeden Text, jedes Bild und jeden Link aus den eigenen Inhalten.** Frisch installierte Bausteine zeigen englische Beispieltexte und laden Beispielbilder vom Server des Anbieters. Fertig eingesetzt ist ein Baustein, wenn kein Beispielinhalt mehr sichtbar ist. Texte kommen aus der Textdatei der Seite (im Aufbau als `t`), Bilder aus `src/bilder/`. -4. **Das Aussehen änderst du über die Gestaltungswerte** in `src/styles/gestaltung.css` und über die Angaben, die ein Baustein von außen annimmt. Der Code der Bausteine bleibt, wie er installiert wurde. -5. **Passt kein Baustein aus den Quellen**, sag ihm das und biete zwei Wege an: einen ähnlichen vorhandenen Baustein, oder einen **Vorschlag**. Einen Vorschlag legst du in `src/components/eigene/` an. Er ist in der Vorschau sichtbar und wird erst veröffentlicht, wenn die IT ihn freigegeben hat. Dasselbe gilt für jeden Umbau an einem installierten Baustein. +4. **Pass das Aussehen an die Gestaltungsvorgabe an.** Was für alle Bausteine gilt (Farben, Schriften, Ecken, Linien), stellst du in `src/styles/gestaltung.css` ein. Was einen Baustein betrifft (Anordnung, Abstände, Größen, Schriftbehandlung, Bildzuschnitt, welche Teile er zeigt), änderst du direkt in seinem Code in `src/components/`. Die Inhalte bleiben dabei außerhalb des Bausteins. Ein Baustein, der auf mehreren Seiten vorkommt, ändert sich überall. Soll er nur auf einer Seite anders aussehen, leg eine Kopie mit eigenem Namen an. +5. **Passt kein Baustein aus den Quellen**, baust du den Abschnitt in `src/components/eigene/`. + +Angepasste und eigene Bausteine erscheinen sofort in der Vorschau. Bei der nächsten Veröffentlichung sieht die IT sie einmal durch und gibt sie frei. Sag ihm das, wenn du zum ersten Mal einen Baustein anpasst, damit er die Freigabe einplant. ### Unbewegte und interaktive Bausteine @@ -58,7 +74,7 @@ Ein Beispiel für alles steht in `src/seiten/startseite/aufbau.astro`. ### Effekte -Höchstens **ein** auffälliger animierter Moment je Seite. Mehr gibt es nur, wenn er es für diese Seite ausdrücklich so will. Effekte sind Schmuck: Angaben, auf die es ankommt (Zahlen, Namen, Aussagen), stehen als normaler Text auf der Seite. Prüfe jeden Effekt in jeder aktiven Sprache, denn manche formatieren Zahlen fest im US-Format oder zeigen ohne Browser-Code einen Startwert. +Höchstens **ein** auffälliger animierter Moment je Seite. Mehr gibt es nur, wenn er es für diese Seite ausdrücklich so will. Effekte sind Schmuck: Angaben, auf die es ankommt (Zahlen, Namen, Aussagen), stehen als normaler Text auf der Seite. Prüfe jeden Effekt in jeder aktiven Sprache, denn manche formatieren Zahlen fest im US-Format oder zeigen ohne Browser-Code einen Startwert. Bewegung schaltest du für Besucher ab, die in ihrem System reduzierte Bewegung eingestellt haben. ## Texte und Sprachen @@ -69,30 +85,30 @@ Höchstens **ein** auffälliger animierter Moment je Seite. Mehr gibt es nur, we ## Wann eine Änderung fertig ist -Eine Änderung ist fertig, wenn beides erfüllt ist: +Eine Änderung ist fertig, wenn alle drei Punkte erfüllt sind: -1. **Du hast sie im Browser gesehen.** Öffne jede geänderte Seite über die Browser-Steuerung (Playwright) in der Vorschau, in Handy-Breite (390) und Desktop-Breite (1280), in jeder aktiven Sprache. Prüfe: kein Beispielinhalt, nichts abgeschnitten oder überlappend, Menü und aufklappbare Teile reagieren. -2. **`bun run pruefen` meldet „in Ordnung“.** Behebe jeden gemeldeten Fehler. Platzhalter meldet die Prüfung nur als offen. +1. **Du hast sie im Browser gesehen.** Öffne jede geänderte Seite über die Browser-Steuerung (Playwright) in der Vorschau, in Handy-Breite (390) und Desktop-Breite (1280), in jeder aktiven Sprache. Mach von jeder ganzen Seite ein Bildschirmfoto und sieh es dir an. Prüfe: kein Beispielinhalt, nichts abgeschnitten oder überlappend, Menü und aufklappbare Teile reagieren. +2. **Die Gestaltung hält der Vorgabe stand.** Leg die Bildschirmfotos neben `GESTALTUNG.md` und beurteile sie wie ein strenger Art Director: Wirkt die Seite wie die AZ-Gruppe oder wie eine Vorlage? Trägt sie eines der Muster aus „Was wir vermeiden“? Stimmen Rhythmus, Abstände und Gewichtung? Gibt es eine klare Hauptsache? Notiere die zwei, drei schwächsten Stellen, verbessere sie und sieh erneut hin. Bei einer neuen Seite oder einem neuen Look machst du mindestens zwei solche Runden. +3. **`bun run pruefen` meldet „in Ordnung“.** Behebe jeden gemeldeten Fehler. Platzhalter und Entwürfe meldet die Prüfung nur als offen. -Danach **speicherst** du und berichtest ihm, was sich geändert hat und wo er es in der Vorschau sieht. +Danach **speicherst** du und berichtest ihm, was sich geändert hat, welche Gestaltungsentscheidungen du getroffen hast und wo er es in der Vorschau sieht. ## Speichern, Vorschau, Veröffentlichen - **Speichern** heißt: `git add -A`, `git commit` mit einem deutschen Satz, was sich geändert hat, `git push origin main`. Du speicherst nach jeder fertigen Änderung von selbst. Jeder gespeicherte Stand erscheint automatisch auf der Vorschau-Adresse. -- **Veröffentlichen** und **Zurückschalten** machst du nur auf seine ausdrückliche Bitte, nach den Abläufen unten. +- **Veröffentlichen** und **Zurückschalten** machst du nur auf seine ausdrückliche Bitte, nach den Abläufen unten. Solange es Entwürfe gibt, lässt sich nicht veröffentlichen. - Gearbeitet wird immer auf `main`. ## Geschützte Bereiche Diese Bereiche gehören der IT. Braucht eine Aufgabe dort eine Änderung, halte an, sag ihm in einem Satz, was nötig wäre, und überlass die Änderung der IT: -- Technik-Einstellungen: `astro.config.mjs`, `tsconfig.json`, `components.json`, `package.json`, `src/content.config.ts` +- Technik-Einstellungen: `astro.config.mjs`, `tsconfig.json`, `components.json`, `package.json`, `src/content.config.ts`, `src/styles/global.css` - Seitenlogik: `src/system/`, `src/pages/`, `src/lib/` - Skripte und Betrieb: `scripts/`, `betrieb/`, `.gitea/`, `bausteine.json` - Diese Regeln und die Abläufe: `AGENTS.md`, `CLAUDE.md`, `agent/`, `.opencode/`, `.claude/` -- Der Code installierter Bausteine in `src/components/` -Pakete kommen ausschließlich über `bun run baustein installieren` ins Projekt. Der Server prüft bei jeder Veröffentlichung, ob geschützte Bereiche geändert wurden, und hält sie dann an, bis die IT zugestimmt hat. +Pakete kommen ausschließlich über `bun run baustein installieren` ins Projekt. Der Server prüft bei jeder Veröffentlichung, ob geschützte Bereiche oder Bausteine geändert wurden, und hält sie dann an, bis die IT zugestimmt hat. ## Abläufe @@ -101,6 +117,8 @@ Lies den passenden Ablauf, bevor du die Aufgabe beginnst: | Aufgabe | Ablauf | |---|---| | Vorschau starten oder zeigen | `agent/ablaeufe/vorschau.md` | +| Gestaltungsvorgabe festlegen oder ändern | `agent/ablaeufe/gestaltung-festlegen.md` | +| Entwürfe zeigen und vergleichen | `agent/ablaeufe/entwuerfe.md` | | Neue Seite anlegen | `agent/ablaeufe/neue-seite.md` | | Neue Sprache hinzufügen oder Seite übersetzen | `agent/ablaeufe/neue-sprache.md` | | Website veröffentlichen | `agent/ablaeufe/veroeffentlichen.md` | diff --git a/GESTALTUNG.md b/GESTALTUNG.md new file mode 100644 index 0000000..2768a6f --- /dev/null +++ b/GESTALTUNG.md @@ -0,0 +1,84 @@ +# Gestaltungsvorgabe der AZ-Homepage + +Diese Datei legt fest, wie die Website aussehen und wirken soll. Der Agent liest sie vor jeder gestalterischen Arbeit und prüft seine Ergebnisse dagegen. Entschieden wird vom Marketing. Der Agent trägt Entscheidungen ein, sobald sie gefallen sind. + +Was mit `[PLATZHALTER]` markiert ist, ist noch offen. Festgelegt wird es nach `agent/ablaeufe/gestaltung-festlegen.md`. + +## 1. Wer wir sind und wen wir ansprechen + +- **Unternehmen:** Die AZ INTEC GmbH stellt Armaturen und Leitungstechnik für Fluide, Brenngase, technische und medizinische Gase sowie Atemschutz her: Absperrventile, Behälterbau-Armaturen, Wellschlauch- und Wellrohrsysteme, Sonderleitungen, Wärmetauscher, Verrohrungen und Sonderanfertigungen. Ihre Stärken sind die Fertigung von Grund auf, vom Bandstahl bis zum fertigen Schlauch, und die eigenen Ingenieure für Sonderlösungen. Gegründet 1979, Standorte in Olbernhau und Weilrod, Gesellschaften in mehreren Ländern Europas. +- **Besucher:** Einkäufer, Entwickler und Konstrukteure in der Industrie, OEM, Servicepartner. Sie suchen Kompetenz, Lieferfähigkeit, Ansprechpartner, Kataloge und Zertifikate. +- **Hauptaufgabe der Website:** [PLATZHALTER] zum Beispiel: Vertrauen schaffen und zur Kontaktaufnahme oder zum Katalog führen. + +## 2. Wirkung + +[PLATZHALTER] Drei bis fünf Eigenschaften, wie die Website wirken soll, und je eine, wie sie auf keinen Fall wirken soll. Beispiel: „präzise, nicht steril“, „selbstbewusst, nicht laut“. + +## 3. Referenzen + +[PLATZHALTER] Websites oder Bildschirmfotos, die dem Marketing gefallen. Zu jeder Referenz ein Satz, was genau daran gefällt: Raster, Bildeinsatz, Schrift, Ruhe, Farbe. + +| Referenz | Was wir übernehmen | +|---|---| +| | | + +## 4. Marke: feste Vorgaben aus dem Styleguide (09/2018) + +Diese Punkte stehen fest. Der Styleguide liegt unter `docs/styleguide/`. + +- **Farben:** Rot `#e3000f` (RAL 3024) und Schwarz `#000000` sind die Unternehmensfarben. Grau als Abstufung von Schwarz. Keine weiteren Farben außer für Hinweise und Fehler. +- **Logo:** auf weißem Grund, ausnahmsweise auf Rot, Grau oder Schwarz. Unverändert verwenden: kein Rahmen, kein Schatten, keine Farbfläche dahinter, nicht verzerren oder drehen. Freiraum rundum mindestens die Höhe des „E“ im Schriftzug. Im Web mindestens 100 Pixel breit. +- **Hausschrift:** Corsica, eine geometrische Serifenlose mit fast gleichmäßiger Strichstärke, auch in schmalen Schnitten (Condensed). Für das Web ist sie nicht lizenziert. Bis das geklärt ist, gilt die Ersatzschrift unter 5. +- **Linien:** dünne, durchgezogene Linien gliedern Inhalte. +- **Dreieck:** stilprägendes Zeichen, sparsam als Akzent im Text, zum Beispiel als Aufzählungszeichen. Nie als Muster. +- **Farbbalken:** Balken in Rot und Schwarz im Anschnitt, also bis an den Rand, schließen Broschüren und Datenblätter ab. +- **Titelbild:** Ein angeschnittenes Bild ist das zentrale Element einer Titelseite. Überschriften lassen ihm Raum. +- **Grafiken und Tabellen:** auf das Wesentliche reduziert, ohne 3D und Schatten. +- **Claims:** „PIPING POWER“ (Styleguide 2018), „Die leitende Kraft“ (bisherige Website). [PLATZHALTER] Welcher gilt? + +## 5. Schrift + +- **Schrift für die Website:** [PLATZHALTER] Eine frei nutzbare Schrift (Open Font License), möglichst nah an Corsica: geometrisch, ruhig, mit schmalen Schnitten für große Überschriften. Nicht Inter, Roboto, Arial, Corbel, Geist oder eine Systemschrift. +- **Rollen:** [PLATZHALTER] Welche Schrift oder welcher Schnitt für Überschriften, Fließtext, Zahlen und Kennwerte. +- **Größen und Gewichte:** [PLATZHALTER] Deutliche Sprünge zwischen Überschrift und Text statt vieler ähnlicher Größen. + +## 6. Formsprache + +- **Ecken:** [PLATZHALTER] Eckig, leicht gerundet oder rund. Der Styleguide wirkt technisch und eckig. +- **Flächen und Linien:** [PLATZHALTER] Zum Beispiel: Gliederung durch Linien und Weißraum statt Karten mit Schatten. +- **Raster und Weißraum:** [PLATZHALTER] Dicht und technisch oder großzügig und ruhig. Linksbündig oder zentriert. +- **Rot einsetzen:** [PLATZHALTER] Wo Rot vorkommt und wo nicht, zum Beispiel nur für Handlungsaufforderungen und einen einzigen großen Akzent je Seite. + +## 7. Bilder + +- **Bildwelt:** [PLATZHALTER] Was Fotos zeigen sollen: Produkte freigestellt oder im Einsatz, Fertigung, Menschen, Standorte. Licht und Stimmung. +- **Zuschnitt:** [PLATZHALTER] Zum Beispiel angeschnitten und vollflächig im Sinne des Styleguides. +- **Vorhandenes Material:** [PLATZHALTER] Welche Fotos es gibt und wo sie liegen. + +## 8. Bewegung + +Höchstens ein auffälliger Moment je Seite. [PLATZHALTER] Welcher, wenn überhaupt. + +## 9. Was wir vermeiden + +Diese Muster lassen eine Seite nach Vorlage oder KI aussehen. Sie sind ausgeschlossen, solange das Marketing nicht ausdrücklich etwas anderes entscheidet. + +- Reihen gleich großer, abgerundeter Karten mit einem Symbol oben und Schatten darunter +- Symbole auf farbigen Kreisen oder Quadraten als Ersatz für Bilder +- Farbverläufe als Schmuck, besonders Lila, Blau oder Pastell +- zentrierter Einstieg mit Hinweis-Etikett über der Überschrift, zwei Knöpfen nebeneinander und Bild darunter, wie ihn jede Vorlage hat +- ein einzelnes Wort der Überschrift farbig oder kursiv hervorgehoben +- kleine Etiketten in Großbuchstaben über jeder Überschrift +- Nummerierungen wie 01, 02, 03, wenn der Inhalt keine Reihenfolge hat +- jeder Abschnitt gleitet beim Scrollen von unten herein +- Pfeile „→“ hinter jedem Link und Knopf +- Standard-Schriften der Bausteine und gleiche Ecken an allem +- Beispielbilder, die nichts mit der AZ-Gruppe zu tun haben + +## 10. Entscheidungen + +Hier trägt der Agent jede gestalterische Entscheidung mit Datum ein, damit sie bei späteren Änderungen gilt. + +| Datum | Entscheidung | Grund | +|---|---|---| +| | | | diff --git a/agent/ablaeufe/entwuerfe.md b/agent/ablaeufe/entwuerfe.md new file mode 100644 index 0000000..b16272c --- /dev/null +++ b/agent/ablaeufe/entwuerfe.md @@ -0,0 +1,24 @@ +# Entwürfe zeigen und vergleichen + +Entwürfe sind Seiten, die nur in der Vorschau existieren. Mit ihnen vergleicht er zwei oder drei Richtungen nebeneinander, bevor eine davon zur echten Seite wird. Lade zuerst den Skill `frontend-design` und lies `GESTALTUNG.md`. + +## Entwürfe anlegen + +1. **Leg die Richtungen fest.** Jede bekommt einen kurzen Namen (`kante`, `werkstatt`, `ruhe`) und drei Sätze, die sie beschreiben. Sie müssen sich sichtbar unterscheiden: im Aufbau, in der Schriftbehandlung, im Umgang mit Bild und Rot. Drei Farbvarianten derselben Seite sind keine Richtungen. +2. **Leg je Richtung eine Seite an**: `src/seiten/entwurf-/` mit `aufbau.astro` und `de.yaml` (`adresse: entwurf-`). Übersetzungen brauchen Entwürfe nicht. Nimm echte Inhalte, keine Fülltexte. Fehlt etwas, nimm `[PLATZHALTER]`. +3. **Halte jeden Entwurf in sich geschlossen.** Ein Entwurf darf die echten Bausteine und `gestaltung.css` nicht verändern, sonst ändern sich alle Seiten. + - Bausteine, die du für einen Entwurf umbauen willst, kopierst du nach `src/components/entwuerfe//` und baust die Kopie um. + - Abweichende Gestaltungswerte setzt du nur für den Entwurf, indem du den ganzen Aufbau in einen Rahmen legst: `
…
`. Eigene Stilregeln für einen Entwurf stehen in einem `