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>
314 lines
13 KiB
HTML
314 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<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 {
|
|
/* === 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: 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: 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);
|
|
color: white;
|
|
padding: 0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
nav .nav-inner {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
nav .brand {
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
padding: 0.8rem 1.2rem;
|
|
text-decoration: none;
|
|
color: white;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
nav a {
|
|
color: rgba(255,255,255,0.85);
|
|
text-decoration: none;
|
|
padding: 0.8rem 1rem;
|
|
font-size: 0.9rem;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
nav a:hover, nav a.active {
|
|
background: rgba(255,255,255,0.15);
|
|
color: white;
|
|
}
|
|
|
|
/* Main */
|
|
main {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
/* Karten */
|
|
.card {
|
|
background: var(--card-bg);
|
|
border-radius: var(--radius-lg);
|
|
padding: 1.5rem;
|
|
margin-bottom: 1rem;
|
|
border: 1px solid var(--border);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.card h2, .card h3 {
|
|
margin-bottom: 0.8rem;
|
|
color: var(--primary-dark);
|
|
}
|
|
|
|
/* Grid */
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* Badges */
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 0.2rem 0.6rem;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
.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: var(--radius-md);
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
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: 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: var(--surface-muted); font-weight: 600; font-size: 0.85rem; }
|
|
|
|
/* Code */
|
|
pre {
|
|
background: var(--code-bg);
|
|
color: #F0EEE9;
|
|
padding: 1.2rem;
|
|
border-radius: var(--radius-lg);
|
|
overflow-x: auto;
|
|
font-size: 0.85rem;
|
|
line-height: 1.5;
|
|
margin: 0.5rem 0;
|
|
}
|
|
code { font-family: var(--font-mono); }
|
|
|
|
/* Flash Messages */
|
|
.flash {
|
|
padding: 0.8rem 1.2rem;
|
|
border-radius: var(--radius-md);
|
|
margin-bottom: 1rem;
|
|
}
|
|
.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; }
|
|
|
|
/* Drucker-Status-spezifisch */
|
|
.drucker-kachel {
|
|
background: var(--card-bg);
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
border: 1px solid var(--border);
|
|
border-left: 4px solid var(--text-light);
|
|
}
|
|
.drucker-kachel.drucker-printing { border-left-color: var(--success); }
|
|
.drucker-kachel.drucker-idle { border-left-color: var(--text-light); }
|
|
.drucker-kachel.drucker-failed { border-left-color: var(--danger); }
|
|
.drucker-kachel.drucker-offline { border-left-color: var(--warning); }
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.grid { grid-template-columns: 1fr; }
|
|
nav .nav-inner { flex-direction: column; align-items: stretch; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<nav>
|
|
<div class="nav-inner">
|
|
<a href="/" class="brand">3D-Druck-AG</a>
|
|
<a href="/lektionen" {% if request.path.startswith('/lektion') %}class="active"{% endif %}>Lektionen</a>
|
|
<a href="/software" {% if request.path.startswith('/software') %}class="active"{% endif %} style="font-size:0.85rem;">Software</a>
|
|
<a href="/drucker" {% if request.path.startswith('/drucker') %}class="active"{% endif %} style="font-size:0.85rem;">Drucker</a>
|
|
<a href="/projekte" {% if request.path.startswith('/projekte') %}class="active"{% endif %} style="font-size:0.85rem;">Projekte</a>
|
|
<a href="/troubleshooting" {% if request.path.startswith('/troubleshooting') %}class="active"{% endif %} style="font-size:0.85rem;">Hilfe</a>
|
|
{% if session.profil_id %}
|
|
<a href="/cockpit" {% if request.path.startswith('/cockpit') %}class="active"{% endif %}
|
|
style="margin-left:auto;">{{ tier_emoji(session.get('tier','')) }} {{ session.get('vorname','') }}</a>
|
|
<a href="/logout" style="font-size:0.8rem; opacity:0.7;">Abmelden</a>
|
|
{% else %}
|
|
<a href="/login" {% if request.path.startswith('/login') %}class="active"{% endif %} style="margin-left:auto;">Login</a>
|
|
{% endif %}
|
|
<a href="/admin/dashboard" {% if request.path.startswith('/admin') %}class="active"{% endif %} style="font-size:0.8rem; opacity:0.7;">Admin</a>
|
|
</div>
|
|
</nav>
|
|
|
|
<main>
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
<div class="flash flash-{{ category }}">{{ message }}</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
{% block scripts %}{% endblock %}
|
|
|
|
{# Alph-PummelHummel-Feedback-Widget — wird in einer spaeteren Etappe integriert. #}
|
|
{{ alph_widget_snippet|default('')|safe }}
|
|
</body>
|
|
</html>
|