{
"event": "PreToolUse",
"tool_name": "mcp__mcp-docs__docs_create",
"tool_input": {
"title": "CSS Architektur",
"slug": "css",
"parent_id": 144,
"description": "Design Tokens, CSS-Variablen und Styling-System",
"status": "published",
"content": "<nav class=\"breadcrumb\">\n <a href=\"\/docs\">Dokumentation<\/a> »\n <a href=\"\/docs\/frontend\">Frontend<\/a> »\n CSS\n<\/nav>\n\n<h1>CSS Architektur<\/h1>\n<p class=\"doc-meta\"><strong>Erstellt:<\/strong> 2025-12-27 | <strong>Aktualisiert:<\/strong> 2025-12-27<\/p>\n\n<h2>Übersicht<\/h2>\n\n<p>Das CSS-System basiert auf <strong>CSS Custom Properties<\/strong> (Design Tokens) und einer modularen Dateistruktur.<\/p>\n\n<h3>Dateien<\/h3>\n\n<table>\n <thead>\n <tr><th>Datei<\/th><th>Zweck<\/th><\/tr>\n <\/thead>\n <tbody>\n <tr><td><code>designtokens.css<\/code><\/td><td>CSS-Variablen (Farben, Spacing, etc.)<\/td><\/tr>\n <tr><td><code>style.css<\/code><\/td><td>Basis-Styles und Docs-Komponenten<\/td><\/tr>\n <tr><td><code>admin.css<\/code><\/td><td>Admin-Komponenten (Buttons, Forms, Cards)<\/td><\/tr>\n <tr><td><code>nav.css<\/code><\/td><td>Navigation<\/td><\/tr>\n <tr><td><code>chat-redesign.css<\/code><\/td><td>Chat-UI spezifisch<\/td><\/tr>\n <tr><td><code>graph.css<\/code><\/td><td>Graph-Visualisierungen<\/td><\/tr>\n <\/tbody>\n<\/table>\n\n<hr>\n\n<h2>Design Tokens<\/h2>\n\n<p>Alle Variablen in <code>:root<\/code> definiert (<code>designtokens.css<\/code>).<\/p>\n\n<h3>Farben - Primary<\/h3>\n<pre><code>--color-primary: #007bff;\n--color-primary-hover: #0056b3;\n--color-primary-light: #cce5ff;<\/code><\/pre>\n\n<h3>Farben - Status<\/h3>\n<pre><code>--color-success: #28a745;\n--color-success-bg: #d4edda;\n--color-success-text: #155724;\n\n--color-warning: #ffc107;\n--color-warning-bg: #fff3cd;\n--color-warning-text: #856404;\n\n--color-danger: #dc3545;\n--color-danger-bg: #f8d7da;\n--color-danger-text: #721c24;\n\n--color-info: #17a2b8;\n--color-info-bg: #cce5ff;\n--color-info-text: #004085;<\/code><\/pre>\n\n<h3>Farben - Neutral<\/h3>\n<pre><code>--color-text: #333;\n--color-text-muted: #666;\n--color-text-light: #999;\n--color-heading: #2c3e50;\n\n--color-bg: #fff;\n--color-bg-light: #f8f9fa;\n--color-bg-muted: #f5f5f5;\n--color-bg-dark: #2c3e50;\n\n--color-border: #e0e0e0;\n--color-border-light: #eee;<\/code><\/pre>\n\n<h3>Spacing<\/h3>\n<pre><code>--space-xs: 0.25rem; \/* 4px *\/\n--space-sm: 0.5rem; \/* 8px *\/\n--space-md: 1rem; \/* 16px *\/\n--space-lg: 1.5rem; \/* 24px *\/\n--space-xl: 2rem; \/* 32px *\/\n--space-xxl: 3rem; \/* 48px *\/<\/code><\/pre>\n\n<h3>Border Radius<\/h3>\n<pre><code>--radius-sm: 4px;\n--radius-md: 6px;\n--radius-lg: 8px;\n--radius-pill: 50px;<\/code><\/pre>\n\n<h3>Shadows<\/h3>\n<pre><code>--shadow-sm: 0 1px 3px rgba(0,0,0,0.1);\n--shadow-md: 0 2px 8px rgba(0,0,0,0.1);\n--shadow-lg: 0 4px 12px rgba(0,0,0,0.1);<\/code><\/pre>\n\n<h3>Typography<\/h3>\n<pre><code>--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n--font-mono: 'SF Mono', Monaco, monospace;\n\n--font-size-xs: 0.75rem; \/* 12px *\/\n--font-size-sm: 0.85rem; \/* 13.6px *\/\n--font-size-md: 1rem; \/* 16px *\/\n--font-size-lg: 1.1rem; \/* 17.6px *\/\n--font-size-xl: 1.5rem; \/* 24px *\/\n--font-size-xxl: 1.75rem; \/* 28px *\/\n\n--line-height: 1.6;<\/code><\/pre>\n\n<h3>Transitions<\/h3>\n<pre><code>--transition-fast: 0.15s ease;\n--transition-normal: 0.2s ease;\n--transition-slow: 0.3s ease;<\/code><\/pre>\n\n<h3>Layout<\/h3>\n<pre><code>--max-width: 1200px;\n--max-width-narrow: 800px;\n--max-width-wide: 1400px;<\/code><\/pre>\n\n<hr>\n\n<h2>Responsive Breakpoints<\/h2>\n\n<table>\n <thead>\n <tr><th>Breakpoint<\/th><th>Verwendung<\/th><\/tr>\n <\/thead>\n <tbody>\n <tr><td><code>max-width: 1024px<\/code><\/td><td>Tablet - Config-Panel ausblenden<\/td><\/tr>\n <tr><td><code>max-width: 900px<\/code><\/td><td>Grid 2-spaltig → 1-spaltig<\/td><\/tr>\n <tr><td><code>max-width: 768px<\/code><\/td><td>Mobile - Sidebar als Overlay<\/td><\/tr>\n <tr><td><code>max-width: 600px<\/code><\/td><td>Small Mobile - Grid 1-spaltig<\/td><\/tr>\n <\/tbody>\n<\/table>\n\n<hr>\n\n<h2>Verwendung<\/h2>\n\n<h3>In PHP-Templates<\/h3>\n<pre><code><link rel=\"stylesheet\" href=\"\/css\/designtokens.css\">\n<link rel=\"stylesheet\" href=\"\/css\/admin.css\"><\/code><\/pre>\n\n<h3>In CSS<\/h3>\n<pre><code>.my-element {\n padding: var(--space-md);\n background: var(--color-bg-light);\n border: 1px solid var(--color-border);\n border-radius: var(--radius-md);\n transition: all var(--transition-normal);\n}<\/code><\/pre>\n\n<h2>Verwandte Themen<\/h2>\n<ul>\n <li><a href=\"\/docs\/frontend\/components\">Components<\/a> - UI-Komponenten Referenz<\/li>\n <li><a href=\"\/docs\/frontend\/htmx\">HTMX<\/a> - Interaktivität<\/li>\n<\/ul>"
}
}
{
"tool_response": [
{
"type": "text",
"text": "{\n \"success\": true,\n \"doc\": {\n \"id\": 150,\n \"parent_id\": 144,\n \"slug\": \"css\",\n \"path\": \"\/frontend\/css\",\n \"title\": \"CSS Architektur\",\n \"description\": \"Design Tokens, CSS-Variablen und Styling-System\",\n \"content\": \"<nav class=\\\"breadcrumb\\\">\\n <a href=\\\"\/docs\\\">Dokumentation<\/a> »\\n <a href=\\\"\/docs\/frontend\\\">Frontend<\/a> »\\n CSS\\n<\/nav>\\n\\n<h1>CSS Architektur<\/h1>\\n<p class=\\\"doc-meta\\\"><strong>Erstellt:<\/strong> 2025-12-27 | <strong>Aktualisiert:<\/strong> 2025-12-27<\/p>\\n\\n<h2>Übersicht<\/h2>\\n\\n<p>Das CSS-System basiert auf <strong>CSS Custom Properties<\/strong> (Design Tokens) und einer modularen Dateistruktur.<\/p>\\n\\n<h3>Dateien<\/h3>\\n\\n<table>\\n <thead>\\n <tr><th>Datei<\/th><th>Zweck<\/th><\/tr>\\n <\/thead>\\n <tbody>\\n <tr><td><code>designtokens.css<\/code><\/td><td>CSS-Variablen (Farben, Spacing, etc.)<\/td><\/tr>\\n <tr><td><code>style.css<\/code><\/td><td>Basis-Styles und Docs-Komponenten<\/td><\/tr>\\n <tr><td><code>admin.css<\/code><\/td><td>Admin-Komponenten (Buttons, Forms, Cards)<\/td><\/tr>\\n <tr><td><code>nav.css<\/code><\/td><td>Navigation<\/td><\/tr>\\n <tr><td><code>chat-redesign.css<\/code><\/td><td>Chat-UI spezifisch<\/td><\/tr>\\n <tr><td><code>graph.css<\/code><\/td><td>Graph-Visualisierungen<\/td><\/tr>\\n <\/tbody>\\n<\/table>\\n\\n<hr>\\n\\n<h2>Design Tokens<\/h2>\\n\\n<p>Alle Variablen in <code>:root<\/code> definiert (<code>designtokens.css<\/code>).<\/p>\\n\\n<h3>Farben - Primary<\/h3>\\n<pre><code>--color-primary: #007bff;\\n--color-primary-hover: #0056b3;\\n--color-primary-light: #cce5ff;<\/code><\/pre>\\n\\n<h3>Farben - Status<\/h3>\\n<pre><code>--color-success: #28a745;\\n--color-success-bg: #d4edda;\\n--color-success-text: #155724;\\n\\n--color-warning: #ffc107;\\n--color-warning-bg: #fff3cd;\\n--color-warning-text: #856404;\\n\\n--color-danger: #dc3545;\\n--color-danger-bg: #f8d7da;\\n--color-danger-text: #721c24;\\n\\n--color-info: #17a2b8;\\n--color-info-bg: #cce5ff;\\n--color-info-text: #004085;<\/code><\/pre>\\n\\n<h3>Farben - Neutral<\/h3>\\n<pre><code>--color-text: #333;\\n--color-text-muted: #666;\\n--color-text-light: #999;\\n--color-heading: #2c3e50;\\n\\n--color-bg: #fff;\\n--color-bg-light: #f8f9fa;\\n--color-bg-muted: #f5f5f5;\\n--color-bg-dark: #2c3e50;\\n\\n--color-border: #e0e0e0;\\n--color-border-light: #eee;<\/code><\/pre>\\n\\n<h3>Spacing<\/h3>\\n<pre><code>--space-xs: 0.25rem; \/* 4px *\/\\n--space-sm: 0.5rem; \/* 8px *\/\\n--space-md: 1rem; \/* 16px *\/\\n--space-lg: 1.5rem; \/* 24px *\/\\n--space-xl: 2rem; \/* 32px *\/\\n--space-xxl: 3rem; \/* 48px *\/<\/code><\/pre>\\n\\n<h3>Border Radius<\/h3>\\n<pre><code>--radius-sm: 4px;\\n--radius-md: 6px;\\n--radius-lg: 8px;\\n--radius-pill: 50px;<\/code><\/pre>\\n\\n<h3>Shadows<\/h3>\\n<pre><code>--shadow-sm: 0 1px 3px rgba(0,0,0,0.1);\\n--shadow-md: 0 2px 8px rgba(0,0,0,0.1);\\n--shadow-lg: 0 4px 12px rgba(0,0,0,0.1);<\/code><\/pre>\\n\\n<h3>Typography<\/h3>\\n<pre><code>--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\\n--font-mono: 'SF Mono', Monaco, monospace;\\n\\n--font-size-xs: 0.75rem; \/* 12px *\/\\n--font-size-sm: 0.85rem; \/* 13.6px *\/\\n--font-size-md: 1rem; \/* 16px *\/\\n--font-size-lg: 1.1rem; \/* 17.6px *\/\\n--font-size-xl: 1.5rem; \/* 24px *\/\\n--font-size-xxl: 1.75rem; \/* 28px *\/\\n\\n--line-height: 1.6;<\/code><\/pre>\\n\\n<h3>Transitions<\/h3>\\n<pre><code>--transition-fast: 0.15s ease;\\n--transition-normal: 0.2s ease;\\n--transition-slow: 0.3s ease;<\/code><\/pre>\\n\\n<h3>Layout<\/h3>\\n<pre><code>--max-width: 1200px;\\n--max-width-narrow: 800px;\\n--max-width-wide: 1400px;<\/code><\/pre>\\n\\n<hr>\\n\\n<h2>Responsive Breakpoints<\/h2>\\n\\n<table>\\n <thead>\\n <tr><th>Breakpoint<\/th><th>Verwendung<\/th><\/tr>\\n <\/thead>\\n <tbody>\\n <tr><td><code>max-width: 1024px<\/code><\/td><td>Tablet - Config-Panel ausblenden<\/td><\/tr>\\n <tr><td><code>max-width: 900px<\/code><\/td><td>Grid 2-spaltig → 1-spaltig<\/td><\/tr>\\n <tr><td><code>max-width: 768px<\/code><\/td><td>Mobile - Sidebar als Overlay<\/td><\/tr>\\n <tr><td><code>max-width: 600px<\/code><\/td><td>Small Mobile - Grid 1-spaltig<\/td><\/tr>\\n <\/tbody>\\n<\/table>\\n\\n<hr>\\n\\n<h2>Verwendung<\/h2>\\n\\n<h3>In PHP-Templates<\/h3>\\n<pre><code><link rel=\\\"stylesheet\\\" href=\\\"\/css\/designtokens.css\\\">\\n<link rel=\\\"stylesheet\\\" href=\\\"\/css\/admin.css\\\"><\/code><\/pre>\\n\\n<h3>In CSS<\/h3>\\n<pre><code>.my-element {\\n padding: var(--space-md);\\n background: var(--color-bg-light);\\n border: 1px solid var(--color-border);\\n border-radius: var(--radius-md);\\n transition: all var(--transition-normal);\\n}<\/code><\/pre>\\n\\n<h2>Verwandte Themen<\/h2>\\n<ul>\\n <li><a href=\\\"\/docs\/frontend\/components\\\">Components<\/a> - UI-Komponenten Referenz<\/li>\\n <li><a href=\\\"\/docs\/frontend\/htmx\\\">HTMX<\/a> - Interaktivität<\/li>\\n<\/ul>\",\n \"status\": \"published\",\n \"sort_order\": 0,\n \"depth\": 1,\n \"created_at\": \"2025-12-27T16:00:40\",\n \"updated_at\": \"2025-12-27T16:00:40\"\n },\n \"message\": \"Document 'CSS Architektur' created with ID 150\"\n}"
}
]
}