Style Guide v1.0.0: Indigo-Palette + lokale Web-Fonts

Komplette visuelle Umstellung nach dem generierten Style-Guide
(3d-lehrstun-de-v1.0.0). 3D-Druck-AG bekommt eine eigene Marke,
getrennt vom Teal der arduino.lehrstun.de-Schwester.

Farben: Teal #00979D -> Indigo #5B6EAE, warmes Off-White Surface
  #F0EEE9 statt Kuehlweiss, Lavendel-Akzent #9B8EC4.
Fonts: Raleway (Headings), Lato (Body), Inconsolata (Mono) — lokal
  gehostet in static/fonts/ (DSGVO-konform, kein Google-CDN),
  via @font-face + unicode-range (latin + latin-ext).
Form: Radius/Schatten/Spacing als Tokens (--radius-*, --shadow-*).

Technik:
  - base.html :root: neue --color-*/--font-*/--radius-* Tokens,
    alte Variablennamen (--primary etc.) als Aliase -> alle 33
    Templates ziehen sofort mit, kein Template-Rewrite noetig.
  - Semantische Banner-Tokens (--info/warn/success/error-bg+text+border)
    loesen ~130 Hardcoded-Pastelle ab (per sed gemappt).
  - Komponenten (Card, Button, Badge, Flash, Table, Code) auf Tokens.

Alle 13 Hauptseiten gegengeprueft (HTTP 200, keine Render-Fehler).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-04 12:52:14 +02:00
parent ae68da996f
commit 8a55e175a2
33 changed files with 349 additions and 110 deletions

View File

@@ -5,30 +5,120 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}3D-Druck-AG{% endblock %}</title>
<style>
/* ===========================================================================
Web-Fonts (lokal gehostet, DSGVO-konform — kein Google-CDN).
Raleway = Headings, Lato = Body, Inconsolata = Mono.
Raleway ist ein Variable Font (deckt 400-700 ab).
=========================================================================== */
@font-face {
font-family: 'Raleway'; font-style: normal; font-weight: 400 700; font-display: swap;
src: url('/static/fonts/raleway-400-latin.woff2') format('woff2');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
font-family: 'Raleway'; font-style: normal; font-weight: 400 700; font-display: swap;
src: url('/static/fonts/raleway-400-latin-ext.woff2') format('woff2');
unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap;
src: url('/static/fonts/lato-400-latin.woff2') format('woff2');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap;
src: url('/static/fonts/lato-400-latin-ext.woff2') format('woff2');
unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap;
src: url('/static/fonts/lato-700-latin.woff2') format('woff2');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap;
src: url('/static/fonts/lato-700-latin-ext.woff2') format('woff2');
unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
font-family: 'Inconsolata'; font-style: normal; font-weight: 400; font-display: swap;
src: url('/static/fonts/inconsolata-400-latin.woff2') format('woff2');
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
font-family: 'Inconsolata'; font-style: normal; font-weight: 400; font-display: swap;
src: url('/static/fonts/inconsolata-400-latin-ext.woff2') format('woff2');
unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
:root {
--primary: #00979D; /* Teal — identisch zum Arduino-Kurs fuer einheitliches Wirken */
--primary-dark: #007A80;
--secondary: #E67E22;
--bg: #F8F9FA;
/* === Style Guide v1.0.0 (2026-06-04): Indigo-Palette "Cloud Dancer" === */
--color-primary: #5B6EAE;
--color-primary-hover: #4A5B96;
--color-secondary: #2C3E50;
--color-accent: #9B8EC4;
--color-surface: #F0EEE9;
--color-surface-muted: #E8E5DF;
--color-border: #D5D1CC;
--color-text: #2C3E50;
--color-text-muted: #6B7C8D;
--color-error: #C0392B;
--color-success: #27AE60;
--color-warning: #E67E22;
--font-heading: 'Raleway', system-ui, sans-serif;
--font-body: 'Lato', system-ui, sans-serif;
--font-mono: 'Inconsolata', 'Consolas', monospace;
--radius-sm: 2px;
--radius-md: 4px;
--radius-lg: 8px;
--spacing-xs: 4px;
--spacing-sm: 8px;
--spacing-md: 16px;
--spacing-lg: 24px;
--spacing-xl: 40px;
--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
--shadow-md: 0 2px 8px rgba(0,0,0,0.08);
--shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
/* === Alte Variablennamen als Aliase — alle 33 Templates ziehen sofort mit === */
--primary: var(--color-primary);
--primary-dark: var(--color-primary-hover);
--secondary: var(--color-accent);
--bg: var(--color-surface);
--card-bg: #FFFFFF;
--text: #2C3E50;
--text-light: #7F8C8D;
--border: #DEE2E6;
--code-bg: #2D2D2D;
--success: #27AE60;
--warning: #F39C12;
--danger: #E74C3C;
--text: var(--color-text);
--text-light: var(--color-text-muted);
--border: var(--color-border);
--code-bg: #2C3E50;
--success: var(--color-success);
--warning: var(--color-warning);
--danger: var(--color-error);
/* === Semantische Banner-/Status-Toene (loesen Hardcoded-Pastelle ab) === */
--info-bg: #ECEEF7; --info-border: #C8CEE8; --info-text: #41508A;
--warn-bg: #FBF2E2; --warn-border: #F0DBBC; --warn-text: #8A5A12;
--success-bg: #E5F4EB; --success-border: #B6E0C4; --success-text: #1E8449;
--error-bg: #F8E5E2; --error-border: #EFC4BD; --error-text: #A5352A;
--surface-soft: #FAF9F6; /* sehr helles Off-White (war #fafafa) */
--surface-muted: var(--color-surface-muted);
--surface-hover: #DDD9D2;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-family: var(--font-body);
background: var(--bg);
color: var(--text);
line-height: 1.6;
}
h1, h2, h3, h4, nav .brand { font-family: var(--font-heading); }
/* Navigation */
nav {
background: var(--primary);
@@ -81,11 +171,11 @@
/* Karten */
.card {
background: var(--card-bg);
border-radius: 8px;
border-radius: var(--radius-lg);
padding: 1.5rem;
margin-bottom: 1rem;
border: 1px solid var(--border);
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
box-shadow: var(--shadow-md);
}
.card h2, .card h3 {
@@ -109,55 +199,56 @@
font-weight: 600;
text-transform: uppercase;
}
.badge-pflicht { background: #FDEBD0; color: #BA4A00; }
.badge-frei { background: #D5F5E3; color: #1E8449; }
.badge-anfaenger { background: #D5F5E3; color: #1E8449; }
.badge-mittel { background: #FEF9E7; color: #B7950B; }
.badge-fortgeschritten { background: #FADBD8; color: #943126; }
.badge-pflicht { background: var(--warn-bg); color: var(--warn-text); }
.badge-frei { background: var(--success-bg); color: var(--success-text); }
.badge-anfaenger { background: var(--success-bg); color: var(--success-text); }
.badge-mittel { background: var(--warn-bg); color: var(--warn-text); }
.badge-fortgeschritten { background: var(--error-bg); color: var(--error-text); }
/* Buttons */
.btn {
display: inline-block;
padding: 0.5rem 1.2rem;
border-radius: 6px;
border-radius: var(--radius-md);
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
font-weight: 600;
border: none;
cursor: pointer;
transition: background 0.2s;
box-shadow: var(--shadow-sm);
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #ECF0F1; color: var(--text); }
.btn-secondary:hover { background: #D5DBDB; }
.btn-secondary { background: var(--surface-muted); color: var(--text); }
.btn-secondary:hover { background: var(--surface-hover); }
/* Tabellen */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #F2F3F4; font-weight: 600; font-size: 0.85rem; }
th { background: var(--surface-muted); font-weight: 600; font-size: 0.85rem; }
/* Code */
pre {
background: var(--code-bg);
color: #F8F8F2;
color: #F0EEE9;
padding: 1.2rem;
border-radius: 8px;
border-radius: var(--radius-lg);
overflow-x: auto;
font-size: 0.85rem;
line-height: 1.5;
margin: 0.5rem 0;
}
code { font-family: 'Fira Code', 'Consolas', 'Monaco', monospace; }
code { font-family: var(--font-mono); }
/* Flash Messages */
.flash {
padding: 0.8rem 1.2rem;
border-radius: 6px;
border-radius: var(--radius-md);
margin-bottom: 1rem;
}
.flash-success { background: #D5F5E3; color: #1E8449; border: 1px solid #A9DFBF; }
.flash-error { background: #FADBD8; color: #943126; border: 1px solid #F5B7B1; }
.flash-success { background: var(--success-bg); color: var(--success-text); border: 1px solid var(--success-border); }
.flash-error { background: var(--error-bg); color: var(--error-text); border: 1px solid var(--error-border); }
h1 { font-size: 1.6rem; margin-bottom: 1rem; }
h2 { font-size: 1.3rem; }