Volle Mindflux-App ins Deploy-Repo übernehmen

Ersetzt das Hello-World-Gerüst durch die vollständige Anwendung
(com.example.mindflux: 64 Klassen, Thymeleaf-Templates, Static-Assets,
Flyway V1–V6). Deploy-Infrastruktur (.gitea, Dockerfile) bleibt erhalten.

- pom: volle Abhängigkeiten (Security, Thymeleaf, JPA, Flyway), Spring Boot 3.4.4 / Java 17
- docker-compose: SPRING_DATASOURCE_* unverändert; App lauscht auf 8080
  (nginx -> mindflux:8080); Uploads-Volume; Admin-Passwörter via Gitea-Secrets
- Workflow: Deploy-Step injiziert MINDFLUX_ADMIN*_PASSWORD aus Secrets
- .dockerignore ergänzt; Hello-World (com.mindflux) und Test-Datei 'main' entfernt

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
AliceDarkest
2026-06-26 14:51:30 +02:00
parent f3309c1574
commit 9022961762
185 changed files with 22772 additions and 142 deletions
@@ -0,0 +1,165 @@
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(145deg, #1f1f2e, #2c2c3d);
color: #ffffff;
margin: 0;
padding: 0;
}
.achievements-container {
max-width: 1400px;
margin: 2rem auto;
padding: 2rem;
display: flex;
flex-direction: column;
gap: 2rem;
animation: fadeInUp 0.8s ease-out;
}
h1, h2 {
color: #00e5ff;
text-shadow: 0 0 5px rgba(0, 229, 255, 0.2);
text-align: center;
}
.slogan {
text-align: center;
color: #ccc;
margin-bottom: 2rem;
font-style: italic;
}
/* === Zurück-Button === */
.back-button {
position: absolute;
top: 20px;
left: 20px;
background-color: #00d9ff;
color: #0d1117;
padding: 10px 18px;
border-radius: 10px;
font-weight: bold;
text-decoration: none;
box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
transition: background-color 0.3s ease, transform 0.3s ease;
font-size: 1rem;
z-index: 1000;
}
.back-button:hover {
background-color: #00aacc;
transform: scale(1.05);
}
/* Responsives Verhalten */
@media (max-width: 768px) {
.back-button {
top: 10px;
left: 10px;
padding: 8px 14px;
font-size: 0.9rem;
}
}
.achievements-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}
.achievement-card {
background-color: rgba(10, 15, 25, 0.95);
padding: 2rem;
border-radius: 20px;
text-align: center;
box-shadow:
0 0 15px rgba(0, 229, 255, 0.07),
0 4px 10px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(4px);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.achievement-card:hover {
transform: scale(1.02);
box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}
.trophy-icon {
font-size: 3rem;
margin-bottom: 1rem;
}
.achievement-card h2 {
margin-bottom: 0.5rem;
}
.achievement-card p {
margin: 0.5rem 0;
}
.status {
margin-top: 1rem;
font-weight: bold;
color: #00e5ff;
}
.locked {
opacity: 0.6;
filter: grayscale(70%);
}
/* === Unlock-Effekt für freigeschaltete Achievements === */
.achievement-card.unlocked {
animation: unlock-glow 1s ease-out;
}
/* Animation für Unlock-Glow */
@keyframes unlock-glow {
0% {
box-shadow: 0 0 0 rgba(0, 229, 255, 0);
transform: scale(1);
}
50% {
box-shadow: 0 0 20px rgba(0, 229, 255, 0.7);
transform: scale(1.05);
}
100% {
box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
transform: scale(1);
}
}
/* Sanftes Pulsieren beim Hover über freigeschaltete Achievements */
.achievement-card.unlocked:hover {
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}
50% {
box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}
100% {
box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}
}
/* === Footer === */
footer {
background-color: #111122;
padding: 1rem;
text-align: center;
font-size: 0.9rem;
color: #aaa;
}
footer a {
color: #66d9ef;
text-decoration: none;
margin: 0 0.5rem;
}
footer a:hover {
text-decoration: underline;
+273
View File
@@ -0,0 +1,273 @@
body.finalflux-shell,
body.finalflux-page {
background: var(--bg-glow), var(--bg);
color: var(--text);
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.finalflux-shell {
min-height: 100vh;
display: grid;
grid-template-columns: 320px minmax(0, 1fr);
}
.finalflux-sidebar {
background: var(--surface);
border-right: 1px solid var(--border-accent);
padding: 1.5rem;
overflow-y: auto;
}
.finalflux-sidebar h1,
.finalflux-main h2,
.finalflux-main h3,
.finalflux-page h1,
.finalflux-page h2,
.finalflux-page h3 {
color: var(--accent);
}
.finalflux-sidebar p,
.finalflux-main p,
.finalflux-page p,
.finalflux-page li {
line-height: 1.65;
}
.finalflux-back,
.finalflux-page .back-link {
display: inline-block;
margin-bottom: 1rem;
padding: 0.65rem 1rem;
background: var(--accent);
color: var(--accent-ink);
border-radius: 8px;
font-weight: 700;
text-decoration: none;
}
.finalflux-nav section {
margin-top: 1.5rem;
}
.finalflux-nav h2 {
color: var(--accent-2);
font-size: 1rem;
margin-bottom: 0.7rem;
}
.finalflux-nav a {
display: block;
color: var(--muted);
text-decoration: none;
padding: 0.42rem 0.6rem;
border-radius: 6px;
}
.finalflux-nav a:hover {
background: var(--surface-2);
color: var(--accent);
}
.finalflux-main {
padding: 2rem;
max-width: 1100px;
}
.finalflux-hero,
.finalflux-panel,
.finalflux-page section {
background: var(--surface);
border-left: 4px solid var(--accent);
border-radius: 8px;
padding: 1.25rem;
margin-bottom: 1.5rem;
}
.finalflux-hero h2 {
font-size: 2rem;
margin: 0.4rem 0 1rem;
}
.eyebrow {
color: var(--accent-2);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.finalflux-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1rem;
margin-bottom: 1.5rem;
}
.finalflux-grid article,
.fluxcheck {
background: var(--surface);
border: 1px solid var(--border-accent);
border-radius: 8px;
padding: 1rem;
}
.finalflux-actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-top: 1rem;
}
.finalflux-actions a,
.fluxcheck button {
background: var(--accent);
color: var(--accent-ink);
border: 0;
border-radius: 8px;
cursor: pointer;
font-weight: 700;
padding: 0.65rem 1rem;
text-decoration: none;
}
.finalflux-page {
padding: 2rem;
}
.finalflux-page main {
display: block;
max-width: 980px;
margin: 0 auto;
padding: 0;
}
.finalflux-page code {
background: var(--surface-2);
border-radius: 4px;
color: var(--accent-2);
padding: 0.15rem 0.35rem;
}
.key-list {
padding-left: 1.2rem;
}
.fluxcheck label {
display: block;
margin: 0.5rem 0;
}
.fluxcheck-result {
font-weight: 700;
margin-top: 0.8rem;
}
.fluxcheck-result.correct {
color: #00ff88;
}
.fluxcheck-result.wrong {
color: #ff6b6b;
}
.finalflux-test {
background: var(--surface);
border-left: 4px solid var(--accent);
border-radius: 8px;
padding: 1.25rem;
margin-bottom: 1.5rem;
}
.test-meta {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
justify-content: space-between;
color: var(--accent-2);
font-weight: 700;
margin-bottom: 1rem;
}
.category-block {
background: var(--surface-2);
border: 1px solid var(--border-accent);
border-radius: 8px;
padding: 1rem;
margin-bottom: 1rem;
}
.category-block h2 {
margin: 0.2rem 0 0.5rem;
}
.question-card {
background: var(--bg);
border-radius: 8px;
padding: 1rem;
}
.answer-options {
display: grid;
gap: 0.65rem;
margin: 1rem 0;
}
.answer-options label {
align-items: flex-start;
background: var(--surface);
border: 1px solid var(--border-accent);
border-radius: 8px;
cursor: pointer;
display: flex;
gap: 0.65rem;
padding: 0.75rem;
}
.answer-options label:hover {
border-color: var(--accent);
}
.test-actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-top: 1rem;
}
.test-actions button,
[data-restart-test] {
background: var(--accent);
border: 0;
border-radius: 8px;
color: var(--accent-ink);
cursor: pointer;
font-weight: 700;
padding: 0.65rem 1rem;
}
.test-actions button.secondary {
background: var(--surface-2);
border: 1px solid var(--border-accent);
color: var(--text);
}
.test-actions button:disabled {
cursor: not-allowed;
opacity: 0.45;
}
@media (max-width: 820px) {
.finalflux-shell {
grid-template-columns: 1fr;
}
.finalflux-sidebar {
border-right: 0;
border-bottom: 1px solid var(--border-accent);
}
.finalflux-main,
.finalflux-page {
padding: 1rem;
}
}
+351
View File
@@ -0,0 +1,351 @@
/* === MindMatch === Farben über zentrale Theme-Tokens (theme.css):
Dark = Grün-Neon, Light = heller Grund + Magenta. Layout: feste Viewport-Höhe,
kein Scrollen – das Spielfeld füllt den verbleibenden Platz und skaliert die Karten. */
/* Overlay-Einblendung (kam früher aus style.css). */
@keyframes fadeInUp {
0% { opacity: 0; transform: translateY(20px); }
100% { opacity: 1; transform: translateY(0); }
}
/* body bekommt Layout (Shell füllt 100vh über flex:1). Farben/Hintergrund liefert theme.css. */
body.mm-body {
height: 100vh;
min-height: 100vh;
overflow: hidden; /* Seite scrollt nie */
display: flex;
flex-direction: column;
color: var(--text);
}
.mm-shell {
flex: 1; /* body ist flex-column -> Shell füllt 100vh */
min-height: 0;
display: flex;
flex-direction: column;
padding: 0.6rem 0.85rem;
gap: 0.55rem;
}
/* --- Kopfzeile (kompakt) --- */
.mm-header {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.5rem 1.1rem;
background-color: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: var(--g-soft), 0 0 8px var(--glow-w);
}
.mm-header-tools {
display: flex;
align-items: center;
gap: 0.7rem;
}
.mm-title {
font-size: 1.3rem;
color: var(--accent);
margin: 0;
text-shadow: 0 0 8px var(--glow-s);
}
.mm-back, .mm-logout { text-decoration: none; font-weight: bold; }
.mm-back { color: var(--accent); }
.mm-logout { color: var(--danger); }
/* --- Leiste: Steuerung + Werte --- */
.mm-bar {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 0.55rem 0.85rem;
}
.mm-bar-group {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.5rem;
}
.mm-field {
display: flex;
align-items: center;
gap: 0.45rem;
font-weight: 700;
color: var(--accent);
}
.mm-field select {
padding: 0.5rem 0.7rem;
border-radius: 8px;
border: 1px solid var(--border-accent);
background: var(--surface-2);
color: var(--text);
font-size: 0.95rem;
min-width: 200px;
}
.mm-btn {
padding: 0.5rem 1.1rem;
border: 0;
border-radius: 8px;
background: var(--accent);
color: var(--accent-ink);
font-weight: 700;
font-size: 0.95rem;
cursor: pointer;
text-decoration: none;
display: inline-block;
box-shadow: 0 0 14px var(--glow-w);
transition: filter 0.25s ease, transform 0.15s ease, background-color 0.25s ease;
}
.mm-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.mm-btn-secondary {
background: var(--surface-2);
border: 1px solid var(--border-accent);
color: var(--text);
box-shadow: none;
}
/* Abbrechen-Button (rötlich, klar als Abbruch erkennbar) */
.mm-btn-cancel {
background: rgba(255, 107, 107, 0.14);
border: 1px solid rgba(255, 107, 107, 0.55);
color: var(--danger);
box-shadow: none;
}
.mm-btn-cancel:hover {
background: rgba(255, 107, 107, 0.28);
color: #ffffff;
}
/* Damit das hidden-Attribut den display:inline-block der .mm-btn überstimmt */
.mm-btn[hidden] { display: none; }
/* --- HUD als kompakte Chips --- */
.mm-hud { gap: 0.4rem; }
.mm-stat {
display: inline-flex;
align-items: baseline;
gap: 0.4rem;
padding: 0.35rem 0.7rem;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 10px;
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--muted);
white-space: nowrap;
}
.mm-stat b { font-size: 1.05rem; color: var(--accent); }
/* --- Spielfeld: füllt den Rest, kein Scrollen --- */
.mm-stage {
flex: 1;
min-height: 0;
display: flex;
justify-content: center;
overflow: hidden;
}
.mm-board {
display: grid;
gap: clamp(0.3rem, 1.2vmin, 0.75rem);
width: 100%;
height: 100%;
min-height: 0;
margin: 0 auto;
/* grid-template-columns + max-width werden per JS gesetzt;
gleich hohe Reihen über grid-auto-rows, damit alles in die Höhe passt. */
grid-auto-rows: 1fr;
}
.mm-idle {
margin: auto;
color: var(--muted);
text-align: center;
padding: 2rem 1rem;
font-size: 1rem;
}
/* --- Karte (füllt ihre Zelle) --- */
.mm-card {
position: relative;
min-width: 0;
min-height: 0;
perspective: 900px;
cursor: pointer;
border: 0;
background: transparent;
padding: 0;
}
.mm-card-inner {
position: absolute;
inset: 0;
transform-style: preserve-3d;
transition: transform 0.45s ease;
}
.mm-card.flipped .mm-card-inner,
.mm-card.matched .mm-card-inner {
transform: rotateY(180deg);
}
.mm-card-face {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 0.4rem;
border-radius: 10px;
overflow: hidden;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
}
/* Rückseite (verdeckt): leuchtendes Mindflux-Emblem statt ⚡ */
.mm-card-front {
background: linear-gradient(145deg, var(--surface), var(--surface-2));
border: 1px solid var(--border-accent);
box-shadow: inset 0 0 18px var(--glow-w);
font-size: 0; /* versteckt das alte ⚡-Zeichen */
}
.mm-card-front::after {
content: "";
display: block;
width: 56%;
height: 56%;
background: var(--accent);
-webkit-mask: url("/img/mindflux-emblem.png") center/contain no-repeat;
mask: url("/img/mindflux-emblem.png") center/contain no-repeat;
filter: drop-shadow(0 0 9px var(--glow-s));
}
/* Vorderseite (Inhalt) */
.mm-card-back {
background: var(--surface);
border: 1px solid var(--border-accent);
transform: rotateY(180deg);
flex-direction: column;
gap: 0.2rem;
color: var(--text);
font-weight: 600;
line-height: 1.2;
hyphens: auto;
}
.mm-card-back.mm-term {
color: var(--accent);
font-size: clamp(0.72rem, 1.7vw, 1.15rem);
font-weight: 800;
}
.mm-card-back.mm-def {
font-size: clamp(0.62rem, 1.25vw, 0.9rem);
}
.mm-kind {
font-size: clamp(0.5rem, 1vw, 0.65rem);
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--muted);
opacity: 0.9;
}
.mm-text {
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
}
.mm-card:not(.matched):hover .mm-card-front {
border-color: var(--accent);
box-shadow: 0 0 14px var(--glow-s), inset 0 0 18px var(--glow-w);
}
.mm-card.matched { cursor: default; }
.mm-card.matched .mm-card-back {
border-color: #00ff88;
box-shadow: 0 0 14px rgba(0, 255, 136, 0.3);
animation: mm-pop 0.4s ease;
}
@keyframes mm-pop {
0% { transform: rotateY(180deg) scale(1); }
50% { transform: rotateY(180deg) scale(1.06); }
100% { transform: rotateY(180deg) scale(1); }
}
.mm-card.wrong .mm-card-back {
border-color: #ff6b6b;
box-shadow: 0 0 14px rgba(255, 107, 107, 0.3);
}
/* --- Ergebnis-Overlay --- */
.mm-result {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg-glow), rgba(0, 0, 0, 0.55);
backdrop-filter: blur(4px);
z-index: 1000;
}
.mm-result[hidden] { display: none; }
.mm-result-card {
background: var(--surface);
border: 1px solid var(--border-accent);
border-radius: 18px;
padding: 2rem 2.5rem;
text-align: center;
max-width: 420px;
width: 90%;
box-shadow: 0 0 30px var(--glow-w);
animation: fadeInUp 0.5s ease-out;
}
.mm-result-card h2 { color: var(--accent); margin-bottom: 0.5rem; }
.mm-stars { font-size: 1.8rem; letter-spacing: 0.2rem; margin-bottom: 0.5rem; color: var(--accent); }
.mm-result-score { font-size: 1.3rem; margin-bottom: 0.3rem; color: var(--text); }
.mm-result-score strong { color: var(--accent); }
.mm-result-detail { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.mm-result-highscore { color: #00ff88; font-weight: 800; margin-bottom: 1rem; }
.mm-result-highscore[hidden] { display: none; }
.mm-result-actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
justify-content: center;
margin-top: 1rem;
}
/* --- Mobil --- */
@media (max-width: 600px) {
.mm-header { padding: 0.45rem 0.8rem; }
.mm-title { font-size: 1.15rem; }
.mm-field select { min-width: 150px; }
.mm-stat { font-size: 0.65rem; padding: 0.3rem 0.55rem; }
.mm-stat b { font-size: 0.95rem; }
}
+184
View File
@@ -0,0 +1,184 @@
/* === Zurück-Button === */
.back-button {
position: absolute;
top: 20px;
left: 20px;
background-color: #00d9ff;
color: #0d1117;
padding: 10px 18px;
border-radius: 10px;
font-weight: bold;
text-decoration: none;
box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
transition: background-color 0.3s ease, transform 0.3s ease;
font-size: 1rem;
z-index: 1000;
}
.back-button:hover {
background-color: #00aacc;
transform: scale(1.05);
}
/* Responsives Verhalten */
@media (max-width: 768px) {
.back-button {
top: 10px;
left: 10px;
padding: 8px 14px;
font-size: 0.9rem;
}
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(145deg, #1f1f2e, #2c2c3d);
color: #ffffff;
margin: 0;
padding: 0;
}
.progress-container {
max-width: 1400px;
margin: 2rem auto;
padding: 2rem;
display: flex;
flex-direction: column;
gap: 2rem;
animation: fadeInUp 0.8s ease-out;
}
h1, h2, h3 {
color: #00e5ff;
text-shadow: 0 0 5px rgba(0, 229, 255, 0.2);
}
/* === Gesamtfortschritt === */
.section-overall-progress {
display: flex;
justify-content: space-between;
align-items: stretch;
flex-wrap: wrap;
gap: 2rem;
}
.progress-summary {
display: flex;
flex: 1;
gap: 2rem;
background: rgba(0, 9, 22, 0.95);
padding: 2rem;
border-radius: 20px;
box-shadow:
0 0 15px rgba(0, 229, 255, 0.05),
0 4px 10px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(4px);
}
.circular-progress {
position: relative;
width: 160px;
height: 160px;
}
.percentage-label {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 1.6rem;
font-weight: bold;
}
/* XP-Leiste */
.xp-bar {
background-color: #1a1a2e;
border-radius: 10px;
overflow: hidden;
height: 20px;
margin: 0.5rem 0;
}
.xp-fill {
height: 100%;
background: linear-gradient(90deg, #00e5ff, #4cc3dd);
}
/* === Lernzeitbereich === */
.section-learn-time {
background: rgba(0, 9, 22, 0.9);
padding: 1.5rem;
border-radius: 20px;
box-shadow:
0 0 10px rgba(0, 229, 255, 0.05),
0 4px 10px rgba(0, 0, 0, 0.3);
max-width: 600px;
margin: 0 auto;
}
#learnTimeChart {
max-width: 100%;
height: 180px !important;
}
/* === Spielkarten === */
.section-game-progress {
display: flex;
flex-direction: column;
gap: 1rem;
}
.game-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
.game-card {
background-color: rgba(10, 15, 25, 0.95);
padding: 1.5rem;
border-radius: 16px;
box-shadow:
0 0 15px rgba(0, 229, 255, 0.07),
0 4px 10px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(4px);
transition: transform 0.2s ease;
}
.game-card:hover {
transform: scale(1.02);
}
.game-progress-bar {
background-color: #1a1a2e;
border-radius: 10px;
overflow: hidden;
height: 10px;
margin: 0.5rem 0;
}
.game-progress-bar .fill {
height: 100%;
background-color: #00e5ff;
}
/* === Footer === */
footer {
background-color: #111122;
padding: 1rem;
text-align: center;
font-size: 0.9rem;
color: #aaa;
}
footer a {
color: #66d9ef;
text-decoration: none;
margin: 0 0.5rem;
}
footer a:hover {
text-decoration: underline;
+207
View File
@@ -0,0 +1,207 @@
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(145deg, #1f1f2e, #2c2c3d);
color: #ffffff;
margin: 0;
padding: 0;
}
header {
position: relative; /* wichtig für .back-button */
text-align: center;
padding: 2rem 1rem 1rem;
margin-bottom: 1rem;
}
header h1 {
font-size: 2.5rem;
color: #00e5ff;
margin-bottom: 0.5rem;
}
header .slogan {
font-size: 1.2rem;
color: #ccc;
text-shadow: 0 0 5px rgba(0, 229, 255, 0.2);
}
/* === Zurück-Button === */
.back-button {
position: absolute;
top: 20px;
left: 20px;
background-color: #00d9ff;
color: #0d1117;
padding: 10px 18px;
border-radius: 10px;
font-weight: bold;
text-decoration: none;
box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
transition: background-color 0.3s ease, transform 0.3s ease;
font-size: 1rem;
z-index: 1000;
}
.back-button:hover {
background-color: #00aacc;
transform: scale(1.05);
}
/* Responsives Verhalten */
@media (max-width: 768px) {
.back-button {
top: 10px;
left: 10px;
padding: 8px 14px;
font-size: 0.9rem;
}
}
@media (max-width: 480px) {
.back-button {
top: 8px;
left: 8px;
padding: 6px 10px;
font-size: 0.8rem;
}
}
.settings-container {
max-width: 1000px;
margin: 2rem auto;
padding: 2rem;
background: rgba(0, 9, 22, 0.95);
border-radius: 20px;
box-shadow:
0 0 15px rgba(0, 229, 255, 0.05),
0 4px 10px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(4px);
display: flex;
flex-direction: column;
gap: 2rem;
}
.section {
background-color: rgba(10, 15, 25, 0.95);
padding: 1.5rem;
border-radius: 16px;
box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
transition: transform 0.3s ease;
}
.section:hover {
transform: translateY(-5px);
box-shadow: 0 6px 20px rgba(0, 229, 255, 0.2);
}
.section h2 {
margin-bottom: 1rem;
color: #00e5ff;
}
.switch-row {
display: flex;
justify-content: space-between;
align-items: center;
margin: 1rem 0;
}
.switch {
position: relative;
display: inline-block;
width: 50px;
height: 26px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0; left: 0; right: 0; bottom: 0;
background-color: #888;
transition: 0.4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 4px;
bottom: 4px;
background-color: white;
transition: 0.4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #00e5ff;
}
input:checked + .slider:before {
transform: translateX(24px);
}
.settings-form {
display: flex;
flex-direction: column;
gap: 1rem;
}
.settings-form input {
padding: 0.8rem;
border-radius: 8px;
border: none;
background: #1a1a2e;
color: #fff;
}
.settings-form button {
padding: 0.8rem;
border: none;
border-radius: 8px;
background-color: #00e5ff;
color: #00172e;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}
.settings-form button:hover {
background-color: #4cc3dd;
transform: scale(1.02);
}
.danger-zone button {
background-color: #ff4d4d;
color: #fff;
}
.danger-zone button:hover {
background-color: #cc0000;
}
/* === Footer === */
footer {
background-color: #111122;
padding: 1rem;
text-align: center;
font-size: 0.9rem;
color: #aaa;
}
footer a {
color: #66d9ef;
text-decoration: none;
margin: 0 0.5rem;
}
footer a:hover {
text-decoration: underline;
}
@@ -0,0 +1,78 @@
body {
background-color: #0d1117;
color: #00d9ff;
font-family: 'Poppins', sans-serif; /* oder deine Mindflux-Schrift */
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
text-align: center;
}
.container {
padding: 40px;
border: 1px solid #00d9ff; /* feiner als dashed */
border-radius: 20px;
background-color: #121826;
box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}
h1 {
font-size: 2.2rem;
margin-bottom: 20px;
}
p {
font-size: 1.1rem;
}
.time-machine {
font-size: 2.5rem;
margin: 20px 0;
}
.small-hint {
font-size: 0.9rem;
margin-top: 20px;
color: #7f8c8d;
}
.back-button {
position: absolute;
top: 20px;
left: 20px;
background-color: #00d9ff;
color: #0d1117;
padding: 10px 18px;
border-radius: 10px;
font-weight: bold;
text-decoration: none;
box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
transition: background-color 0.3s ease, transform 0.3s ease;
font-size: 1rem;
z-index: 1000;
}
.back-button:hover {
background-color: #00aacc;
transform: scale(1.05); /* leichter "Hover-Zoom" */
}
/* Responsives Verhalten */
@media (max-width: 768px) {
.back-button {
top: 10px;
left: 10px;
padding: 8px 14px;
font-size: 0.9rem;
}
}
@media (max-width: 480px) {
.back-button {
top: 8px;
left: 8px;
padding: 6px 10px;
font-size: 0.8rem;
}
}
+551
View File
@@ -0,0 +1,551 @@
/* === Reset === */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* === Animationen === */
@keyframes fadeInUp {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
/* Glanz-Effekt für Hover */
@keyframes shine {
0% {
background-position: -100%;
}
100% {
background-position: 200%;
}
}
/* Fade-In für Container beim Laden */
@keyframes fadeInUp {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
/* === Body Hintergrund === */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(145deg, #1f1f2e, #2c2c3d);
color: #ffffff;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* === Header === */
header {
text-align: center;
padding: 2rem;
margin: 2rem auto 1rem;
width: 90%;
max-width: 1200px;
background-color: #000916;
border-radius: 20px;
box-shadow:
0 8px 20px rgba(0, 229, 255, 0.15),
0 4px 12px rgba(0, 0, 0, 0.4);
transition: all 0.3s ease-in-out;
animation: fadeInUp 0.8s ease-out;
}
header:hover {
box-shadow:
0 10px 30px rgba(0, 229, 255, 0.25),
0 6px 16px rgba(0, 0, 0, 0.5);
}
.logo {
max-height: 350px;
width: auto;
margin-bottom: 1rem;
}
header img {
max-height: 80px;
margin-bottom: 1rem;
}
header p.slogan {
font-style: italic;
color: #00e5ff;
font-size: 1.1rem;
letter-spacing: 0.5px;
text-shadow: 0 0 5px rgba(0, 229, 255, 0.2);
}
/* === Main Bereich === */
main {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 2rem;
padding: 2rem;
flex: 1;
width: 90%;
max-width: 1200px;
margin: 0 auto;
animation: fadeInUp 0.8s ease-out;
}
/* === Info-Textfeld === */
.info-box {
flex: 1 1 400px;
max-width: 600px;
background: rgba(0, 9, 22, 0.9);
padding: 2rem;
border-radius: 16px;
box-shadow:
0 0 15px rgba(0, 229, 255, 0.05),
0 4px 10px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(4px);
animation: fadeInUp 0.9s ease-out;
}
/* === Login/Register Box === */
.login-box {
flex: 1 1 300px;
max-width: 400px;
background: rgba(10, 15, 25, 0.95);
padding: 2rem;
border-radius: 16px;
box-shadow:
0 0 15px rgba(0, 229, 255, 0.07),
0 4px 10px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(4px);
animation: fadeInUp 1s ease-out;
}
.login-box h2 {
margin-bottom: 1rem;
color: #66d9ef;
}
.login-box form {
display: flex;
flex-direction: column;
}
.login-box input,
.login-box button {
padding: 0.75rem;
margin-bottom: 1rem;
border: none;
border-radius: 6px;
font-size: 1rem;
}
/* === Input === */
.login-box input {
background-color: #ffffff;
color: #000;
}
/* === Button mit Glanz- und Licht-Effekt === */
.login-box button {
background-color: #00e5ff;
color: #000;
font-weight: bold;
cursor: pointer;
position: relative;
overflow: hidden;
transition: background-color 0.3s ease-in-out, transform 0.2s ease;
box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}
.login-box button::before {
content: '';
position: absolute;
top: 0;
left: -75%;
width: 50%;
height: 100%;
background: linear-gradient(
120deg,
rgba(255, 255, 255, 0.2) 0%,
rgba(255, 255, 255, 0.5) 50%,
rgba(255, 255, 255, 0.2) 100%
);
transform: skewX(-20deg);
animation: shine 2s infinite;
}
.login-box button:hover {
background-color: #4cc3dd;
transform: scale(1.02);
box-shadow: 0 0 15px rgba(0, 229, 255, 0.4), 0 0 30px rgba(0, 229, 255, 0.1) inset;
}
/* === Footer === */
footer {
background-color: #111122;
padding: 1rem;
text-align: center;
font-size: 0.9rem;
color: #aaa;
}
footer a {
color: #66d9ef;
text-decoration: none;
margin: 0 0.5rem;
}
footer a:hover {
text-decoration: underline;
}
.theme-toggle {
position: absolute;
top: 16px;
right: 16px;
z-index: 10;
}
/* Kleinere Switch-Größe */
.switch {
position: relative;
display: inline-block;
width: 42px;
height: 22px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0; left: 0; right: 0; bottom: 0;
background-color: #888;
transition: 0.4s;
border-radius: 30px;
box-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 6px;
font-size: 0.8rem;
color: silver;
}
.slider:before {
content: "";
position: absolute;
height: 16px;
width: 16px;
left: 3px;
bottom: 3px;
background-color: #fff;
transition: 0.4s;
border-radius: 50%;
}
/* Bei aktiviertem Switch */
input:checked + .slider {
background-color: #00e5ff;
color: #fff;
}
input:checked + .slider:before {
transform: translateX(20px);
}
.icon {
pointer-events: none;
user-select: none;
}
.dashboard-tile {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: rgba(0, 9, 22, 0.95);
border-radius: 20px;
padding: 2rem;
width: 100%;
height: 100%;
text-decoration: none;
color: #00e5ff;
font-weight: bold;
font-size: 1.2rem;
box-shadow:
0 0 10px rgba(0, 229, 255, 0.1),
0 4px 12px rgba(0, 0, 0, 0.3);
transition: all 0.3s ease-in-out;
}
.dashboard-tile:hover {
background-color: rgba(0, 229, 255, 0.1);
transform: translateY(-3px);
box-shadow:
0 6px 16px rgba(0, 229, 255, 0.2),
0 0 20px rgba(0, 229, 255, 0.1) inset;
}
.dashboard-tile span {
color: #00e5ff;
text-shadow: 0 0 5px rgba(0, 229, 255, 0.2);
}
/* === Profilbereich === */
.profile-container {
max-width: 800px;
margin: 2rem auto;
background: rgba(0, 9, 22, 0.95);
padding: 2rem;
border-radius: 20px;
box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
animation: fadeInUp 0.8s ease-out;
}
.profile-form {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 2rem;
}
.profile-form label {
font-weight: bold;
color: #00e5ff;
}
.profile-form input {
padding: 0.75rem;
background-color: #1a1a2e;
color: #fff;
border: none;
border-radius: 8px;
font-size: 1rem;
}
.btn {
padding: 0.75rem 1.5rem;
border: none;
border-radius: 8px;
font-weight: bold;
cursor: pointer;
transition: 0.3s ease;
}
.btn.save {
background-color: #00e5ff;
color: #00172e;
}
.btn.save:hover {
background-color: #4cc3dd;
}
.btn.danger {
background-color: #ff4d4d;
color: white;
}
.btn.danger:hover {
background-color: #cc0000;
}
/* Profilbild */
.profile-picture img {
max-height: 150px;
border-radius: 12px;
margin-bottom: 1rem;
}
/* === Tab-Navigation oben === */
.tab-nav {
display: flex;
justify-content: center;
gap: 1rem;
margin: 1rem auto 2rem;
flex-wrap: wrap;
}
.tab-nav .tab {
padding: 0.6rem 1.2rem;
background-color: rgba(0, 229, 255, 0.1);
color: #00e5ff;
border-radius: 12px;
text-decoration: none;
font-weight: bold;
transition: all 0.3s ease-in-out;
box-shadow: 0 2px 6px rgba(0, 229, 255, 0.1);
}
.tab-nav .tab:hover {
background-color: rgba(0, 229, 255, 0.25);
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(0, 229, 255, 0.2);
}
.tab-nav .tab.active {
background-color: #00e5ff;
color: #000;
}
.success-message {
background-color: #00d9ff;
color: #0d1117;
padding: 1rem;
margin: 1rem auto;
max-width: 600px;
border-radius: 10px;
text-align: center;
font-weight: bold;
box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}
.success-message {
background-color: #00d9ff;
color: #0d1117;
padding: 1rem;
margin: 1rem auto;
max-width: 600px;
border-radius: 10px;
text-align: center;
font-weight: bold;
box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
opacity: 1;
transition: opacity 1.5s ease-out;
}
.back-button {
position: absolute;
top: 20px;
left: 20px;
background-color: #00e5ff;
color: #0d1117;
padding: 10px 18px;
border-radius: 10px;
font-weight: bold;
text-decoration: none;
box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
transition: background-color 0.3s ease, transform 0.3s ease;
font-size: 1rem;
z-index: 1000;
}
.back-button {
position: absolute;
top: 20px;
left: 20px;
background-color: #00d9ff;
color: #0d1117;
padding: 10px 18px;
border-radius: 10px;
font-weight: bold;
text-decoration: none;
box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
transition: background-color 0.3s ease, transform 0.3s ease;
font-size: 1rem;
z-index: 1000;
}
.back-button:hover {
background-color: #00aacc;
transform: scale(1.05);
}
@media (max-width: 768px) {
.back-button {
top: 10px;
left: 10px;
padding: 8px 14px;
font-size: 0.9rem;
}
}
<style>
/* Admin-Button Stil */
.admin-btn {
background-color: #00e5ff;
color: #0d1117;
padding: 0.5rem 1rem;
border-radius: 8px;
text-decoration: none;
font-weight: bold;
transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}
.admin-btn:hover {
background-color: #4cc3dd;
box-shadow: 0 0 15px rgba(0, 229, 255, 0.6), 0 0 25px rgba(0, 229, 255, 0.4);
transform: scale(1.05);
color: #00172e;
}
</style>
.admin-actions {
display: flex;
flex-direction: column;
gap: 1rem;
margin-top: 1rem;
}
.admin-card {
display: block;
background-color: rgba(0, 229, 255, 0.1);
padding: 1rem 1.5rem;
border-radius: 12px;
color: #00e5ff;
text-decoration: none;
font-weight: bold;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(0, 229, 255, 0.05);
}
.admin-card:hover {
background-color: rgba(0, 229, 255, 0.25);
transform: translateY(-2px);
box-shadow: 0 6px 18px rgba(0, 229, 255, 0.15);
}
.admin-card.disabled {
opacity: 0.4;
pointer-events: none;
cursor: default;
}
.admin-actions {
text-align: left;
margin: 1.5rem 2rem;
}
.btn-create {
display: inline-block;
padding: 0.6rem 1.2rem;
font-size: 1rem;
background-color: #00e5ff;
color: #0d1117;
border: none;
border-radius: 10px;
font-weight: bold;
text-decoration: none;
box-shadow: 0 4px 10px rgba(0, 229, 255, 0.2);
transition: background-color 0.3s, transform 0.2s;
}
.btn-create:hover {
background-color: #00bcd4;
transform: translateY(-2px);
}
@@ -0,0 +1,264 @@
/* === TechTacular === Jeopardy-Board, Farben über zentrale Theme-Tokens (theme.css):
Dark = Grün-Neon, Light = heller Grund + Magenta. Feste Viewport-Höhe (kein Scrollen). */
/* Overlay-Einblendung (kam früher aus style.css). */
@keyframes fadeInUp {
0% { opacity: 0; transform: translateY(20px); }
100% { opacity: 1; transform: translateY(0); }
}
/* body bekommt Layout (Shell füllt 100vh über flex:1). Farben/Hintergrund liefert theme.css. */
body.tt-body {
height: 100vh;
min-height: 100vh;
overflow: hidden;
display: flex;
flex-direction: column;
color: var(--text);
}
.tt-shell {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
padding: 0.6rem 0.85rem;
gap: 0.55rem;
}
/* --- Kopf + Leiste --- */
.tt-header {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.5rem 1.1rem;
background-color: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: var(--g-soft), 0 0 8px var(--glow-w);
}
.tt-header-tools {
display: flex;
align-items: center;
gap: 0.7rem;
}
.tt-title { font-size: 1.3rem; color: var(--accent); margin: 0; text-shadow: 0 0 8px var(--glow-s); }
.tt-back, .tt-logout { text-decoration: none; font-weight: bold; }
.tt-back { color: var(--accent); }
.tt-logout { color: var(--danger); }
.tt-bar {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 0.55rem 0.85rem;
}
.tt-bar-group { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.tt-btn {
padding: 0.5rem 1.1rem;
border: 0;
border-radius: 8px;
background: var(--accent);
color: var(--accent-ink);
font-weight: 700;
font-size: 0.95rem;
cursor: pointer;
text-decoration: none;
display: inline-block;
box-shadow: 0 0 14px var(--glow-w);
transition: filter 0.25s ease, transform 0.15s ease, background-color 0.25s ease;
}
.tt-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.tt-btn[hidden] { display: none; }
.tt-btn-secondary {
background: var(--surface-2);
border: 1px solid var(--border-accent);
color: var(--text);
box-shadow: none;
}
.tt-btn-cancel {
background: rgba(255, 107, 107, 0.14);
border: 1px solid rgba(255, 107, 107, 0.55);
color: var(--danger);
box-shadow: none;
}
.tt-btn-cancel:hover { background: rgba(255, 107, 107, 0.28); color: #fff; }
.tt-hud { gap: 0.4rem; }
.tt-stat {
display: inline-flex;
align-items: baseline;
gap: 0.4rem;
padding: 0.35rem 0.7rem;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 10px;
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--muted);
white-space: nowrap;
}
.tt-stat b { font-size: 1.05rem; color: var(--accent); }
/* --- Board --- */
.tt-stage {
flex: 1;
min-height: 0;
display: flex;
justify-content: center;
overflow: hidden;
}
.tt-board {
display: grid;
gap: clamp(0.3rem, 1vmin, 0.7rem);
width: 100%;
height: 100%;
min-height: 0;
/* grid-template-columns wird per JS gesetzt (eine Spalte je Kategorie) */
}
.tt-col {
display: flex;
flex-direction: column;
gap: clamp(0.3rem, 1vmin, 0.7rem);
min-height: 0;
}
.tt-cat-title {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 0.5rem 0.4rem;
background: var(--surface-2);
border: 1px solid var(--border-accent);
border-radius: 8px;
color: var(--accent);
font-weight: 800;
font-size: clamp(0.7rem, 1.1vw, 0.95rem);
line-height: 1.15;
hyphens: auto;
}
.tt-tile {
flex: 1;
min-height: 0;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid var(--border-accent);
border-radius: 8px;
background: linear-gradient(145deg, var(--surface), var(--surface-2));
color: var(--accent);
font-weight: 800;
font-size: clamp(1rem, 2.2vw, 1.8rem);
cursor: pointer;
transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tt-tile:hover:not(.answered) {
border-color: var(--accent);
box-shadow: 0 0 14px var(--glow-s), inset 0 0 18px var(--glow-w);
transform: translateY(-2px);
}
.tt-tile.answered {
cursor: default;
font-size: clamp(1.2rem, 3vw, 2rem);
}
.tt-tile.answered.correct { border-color: #00ff88; color: #00ff88; background: rgba(0, 255, 136, 0.08); }
.tt-tile.answered.wrong { border-color: #ff6b6b; color: #ff6b6b; background: rgba(255, 107, 107, 0.08); }
/* --- Overlays --- */
.tt-overlay {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg-glow), rgba(0, 0, 0, 0.55);
backdrop-filter: blur(4px);
z-index: 1000;
padding: 1rem;
}
.tt-overlay[hidden] { display: none; }
.tt-q-card, .tt-result-card {
background: var(--surface);
border: 1px solid var(--border-accent);
border-radius: 16px;
padding: 1.5rem 1.8rem;
width: min(640px, 94vw);
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 0 30px var(--glow-w);
animation: fadeInUp 0.4s ease-out;
}
.tt-q-head {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.6rem;
}
.tt-q-cat { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }
.tt-q-points { color: var(--accent); font-weight: 800; font-size: 1.3rem; }
.tt-q-instruction { color: var(--muted); font-size: 0.85rem; font-weight: 700; margin-bottom: 0.35rem; }
.tt-q-text {
color: var(--heading); font-size: 1.3rem; margin-bottom: 1.1rem; line-height: 1.4;
border-left: 3px solid var(--accent); padding-left: 0.75rem; font-style: italic;
}
.tt-q-answers { display: grid; gap: 0.6rem; }
.tt-answer {
text-align: left;
padding: 0.75rem 1rem;
border: 1px solid var(--border-accent);
border-radius: 10px;
background: var(--surface-2);
color: var(--text);
font-size: 1rem;
cursor: pointer;
transition: border-color 0.2s ease, background 0.2s ease;
}
.tt-answer:hover:not(:disabled) { border-color: var(--accent); background: var(--surface); }
.tt-answer:disabled { cursor: default; }
.tt-answer.correct { border-color: #00ff88; background: rgba(0, 255, 136, 0.12); color: #b8ffdc; }
.tt-answer.wrong { border-color: #ff6b6b; background: rgba(255, 107, 107, 0.12); color: #ffd0d0; }
.tt-q-feedback { margin-top: 0.9rem; font-weight: 700; min-height: 1.2rem; }
.tt-q-feedback.correct { color: #00ff88; }
.tt-q-feedback.wrong { color: #ff6b6b; }
.tt-q-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.tt-result-card { text-align: center; width: min(440px, 94vw); }
.tt-result-card h2 { color: var(--accent); margin-bottom: 0.6rem; }
.tt-result-score { font-size: 1.4rem; margin-bottom: 0.4rem; color: var(--text); }
.tt-result-score strong { color: var(--accent); }
.tt-result-detail { color: var(--muted); margin-bottom: 0.6rem; }
.tt-result-high { color: #00ff88; font-weight: 800; margin-bottom: 1rem; }
.tt-result-high[hidden] { display: none; }
.tt-result-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1rem; }
.tt-idle { margin: auto; color: var(--muted); text-align: center; padding: 2rem 1rem; }
@media (max-width: 600px) {
.tt-title { font-size: 1.15rem; }
.tt-stat { font-size: 0.62rem; padding: 0.3rem 0.5rem; }
.tt-q-text { font-size: 1.05rem; }
}
+170
View File
@@ -0,0 +1,170 @@
/* ============================================================
MINDFLUX THEME – zentrale Design-Tokens + Komponenten
Dark = Grün-Neon | Light = heller Grund + Magenta-Glow
Umschaltung über <html data-theme="dark|light"> (siehe theme.js)
============================================================ */
:root, [data-theme="dark"] {
--bg:#06090a; --bg-glow: radial-gradient(900px 420px at 60% -10%, rgba(43,217,106,.10), transparent 60%);
--panel:#0c1110; --panel-2:#0e1513; --surface:#0b100e; --surface-2:#101713;
--border:#1a2520; --line:#16201b;
--border-accent:rgba(43,217,106,.45); --accent:#2bd96a; --accent-2:#6ef58f; --accent-ink:#04140a;
--text:#d7e0d9; --muted:#717c74; --heading:#ffffff; --danger:#ff5f6b;
--glow-s:rgba(43,217,106,.55); --glow-w:rgba(43,217,106,.16);
--g-soft:0 0 18px var(--glow-w);
}
[data-theme="light"] {
--bg:#f4eef3; --bg-glow: radial-gradient(900px 420px at 60% -10%, rgba(209,29,146,.10), transparent 60%);
--panel:#ffffff; --panel-2:#fbf6fa; --surface:#ffffff; --surface-2:#faf4f9;
--border:#e9dee8; --line:#efe6ee;
--border-accent:rgba(209,29,146,.40); --accent:#d11d92; --accent-2:#ff5bc0; --accent-ink:#ffffff;
--text:#3c2c39; --muted:#8a7d88; --heading:#1b1019; --danger:#d12942;
--glow-s:rgba(209,29,146,.40); --glow-w:rgba(209,29,146,.12);
--g-soft:0 6px 18px var(--glow-w);
}
* { box-sizing:border-box; margin:0; padding:0; }
html,body { height:100%; }
body {
font-family:"Inter","Segoe UI",system-ui,-apple-system,Roboto,sans-serif;
background:var(--bg-glow), var(--bg); color:var(--text);
min-height:100vh; transition:background-color .35s ease,color .35s ease;
}
a { color:var(--accent); }
::-webkit-scrollbar{width:10px;height:10px} ::-webkit-scrollbar-thumb{background:var(--line);border-radius:9px}
/* ===== App-Shell (Sidebar | Mitte | rechte Spalte) ===== */
.mf-shell { display:grid; grid-template-columns:264px 1fr 332px; grid-template-rows:auto 1fr; min-height:100vh; }
.mf-shell.no-right { grid-template-columns:264px 1fr; }
.mf-sidebar { grid-column:1; grid-row:1 / 3; background:var(--panel); border-right:1px solid var(--border); padding:1.2rem 1rem; display:flex; flex-direction:column; gap:1.1rem; }
.mf-topbar { grid-column:2 / 4; grid-row:1; display:flex; align-items:flex-start; gap:1rem; padding:1.4rem 1.6rem 0; }
.mf-shell.no-right .mf-topbar { grid-column:2; }
.mf-main { grid-column:2; grid-row:2; padding:1.3rem 1.2rem 1.6rem 1.6rem; min-width:0; }
.mf-rightbar { grid-column:3; grid-row:2; padding:1.3rem 1.6rem 1.6rem 0; display:flex; flex-direction:column; gap:1rem; }
/* ===== Logo ===== */
.mf-logo { display:flex; align-items:center; gap:.6rem; padding:.2rem .3rem .4rem; text-decoration:none; }
.mf-logo .mark { width:38px; height:38px; flex:0 0 auto; background:var(--accent);
-webkit-mask:url("/img/mindflux-emblem.png") center/contain no-repeat; mask:url("/img/mindflux-emblem.png") center/contain no-repeat;
filter:drop-shadow(0 0 8px var(--glow-s)); }
.mf-logo .txt b { color:var(--accent); font-weight:800; letter-spacing:.13em; font-size:1.02rem; display:block; text-shadow:0 0 12px var(--glow-s); }
.mf-logo .txt span { color:var(--muted); font-size:.56rem; letter-spacing:.22em; }
/* ===== Sidebar-Navigation ===== */
.mf-nav { display:flex; flex-direction:column; gap:.25rem; }
.mf-nav a { display:flex; align-items:center; gap:.75rem; padding:.7rem .85rem; border-radius:11px; color:var(--muted); text-decoration:none; font-size:.9rem; font-weight:600; border:1px solid transparent; transition:all .18s ease; }
.mf-nav a:hover { color:var(--text); background:var(--surface-2); }
.mf-nav a.active { color:var(--accent-ink); background:linear-gradient(100deg,var(--accent),var(--accent-2)); box-shadow:0 0 20px var(--glow-s); }
.mf-nav a.active svg { color:var(--accent-ink); }
.mf-nav svg { width:18px; height:18px; color:var(--accent); flex:0 0 auto; }
/* ===== Profil / Level / Streak ===== */
.mf-profile { border:1px solid var(--border); border-radius:13px; padding:.7rem; background:var(--surface); }
.mf-profile .row { display:flex; align-items:center; gap:.6rem; }
.mf-avatar { width:38px; height:38px; border-radius:50%; background:linear-gradient(135deg,var(--accent),var(--accent-2)); display:inline-flex; align-items:center; justify-content:center; color:var(--accent-ink); font-weight:800; box-shadow:0 0 14px var(--glow-s); overflow:hidden; }
.mf-avatar img { width:100%; height:100%; object-fit:cover; }
.mf-profile b { color:var(--heading); font-size:.86rem; display:block; }
.mf-profile .role { color:var(--accent); font-size:.72rem; }
.mf-meta { font-size:.74rem; }
.mf-meta .lvl { color:var(--muted); letter-spacing:.04em; } .mf-meta .lvl b { color:var(--heading); }
.mf-meta .xp { color:var(--muted); margin:.2rem 0 .35rem; }
.mf-streak { display:flex; align-items:center; gap:.55rem; margin-top:.2rem; }
.mf-streak .fire { font-size:1.1rem; filter:drop-shadow(0 0 6px var(--glow-s)); }
.mf-streak b { color:var(--heading); font-size:.82rem; display:block; } .mf-streak small { color:var(--muted); }
.mf-brain { margin-top:auto; opacity:.55; display:flex; justify-content:center; filter:drop-shadow(0 0 10px var(--glow-s)); }
.mf-brain svg { width:150px; height:auto; }
/* ===== Topbar ===== */
.mf-hello h1 { color:var(--heading); font-size:1.85rem; font-weight:800; letter-spacing:-.01em; }
.mf-hello h1 .nm { color:var(--accent); text-shadow:0 0 16px var(--glow-s); }
.mf-hello p { color:var(--muted); margin-top:.35rem; font-size:.95rem; }
.mf-pulse { flex:1; min-width:0; display:flex; justify-content:center; align-items:center; }
.mf-pulse svg { width:200px; max-width:100%; filter:drop-shadow(0 0 7px var(--glow-s)); }
.mf-tools { display:flex; align-items:center; gap:.6rem; margin-left:auto; }
.mf-iconbtn { width:38px; height:38px; border-radius:10px; border:1px solid var(--border); background:var(--surface); color:var(--muted); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; text-decoration:none; transition:all .18s; }
.mf-iconbtn:hover { color:var(--accent); border-color:var(--border-accent); box-shadow:0 0 14px var(--glow-w); }
.mf-iconbtn svg { width:18px; height:18px; }
.mf-search { display:flex; align-items:center; gap:.5rem; background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:.5rem .8rem; color:var(--muted); }
.mf-search input { background:none; border:0; outline:none; color:var(--text); font-size:.86rem; width:130px; }
.mf-search svg { width:15px; height:15px; }
/* ===== Theme-Umschalter ===== */
.mf-theme { width:42px; height:38px; border-radius:50%; border:1px solid var(--border-accent); background:var(--surface); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; color:var(--accent); box-shadow:0 0 14px var(--glow-w); }
.mf-theme svg { width:18px; height:18px; }
/* ===== HUD-Spielkarten ===== */
.mf-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.1rem; }
.mf-card { position:relative; display:flex; flex-direction:column; padding:1.15rem 1.2rem 1.1rem; background:var(--surface);
border:1px solid var(--border-accent); --n:18px;
clip-path:polygon(0 0, calc(100% - var(--n)) 0, 100% var(--n), 100% 100%, 0 100%);
text-decoration:none; color:inherit; filter:drop-shadow(0 0 7px var(--glow-w)); transition:transform .16s ease, filter .25s ease, background-color .2s; }
.mf-card::before { content:""; position:absolute; left:10px; top:10px; width:14px; height:14px; border-left:2px solid var(--accent); border-top:2px solid var(--accent); opacity:.7; }
.mf-card:hover { transform:translateY(-4px); background:var(--surface-2); filter:drop-shadow(0 0 16px var(--glow-s)); }
.mf-card .ico { width:58px; height:58px; color:var(--accent); margin-bottom:.7rem; filter:drop-shadow(0 0 6px var(--glow-s)); }
.mf-card .ico svg { width:100%; height:100%; }
.mf-card h3 { color:var(--heading); font-size:1.06rem; font-weight:700; margin-bottom:.4rem; }
.mf-card p { color:var(--muted); font-size:.83rem; line-height:1.5; flex:1; }
.mf-play { margin-top:.9rem; align-self:flex-start; display:inline-flex; align-items:center; gap:.45rem; font-size:.74rem; font-weight:800; letter-spacing:.08em; color:var(--accent); border:1px solid var(--border-accent); border-radius:8px; padding:.5rem .85rem; text-decoration:none; transition:all .18s; }
.mf-card:hover .mf-play { background:var(--accent); color:var(--accent-ink); box-shadow:0 0 16px var(--glow-s); }
.mf-play svg { width:14px; height:14px; }
/* ===== Panels / Widgets ===== */
.mf-panel { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:1.1rem; box-shadow:var(--g-soft); }
.mf-panel.accent { border-color:var(--border-accent); box-shadow:0 0 20px var(--glow-w); }
.mf-panel h4 { display:flex; align-items:center; gap:.5rem; color:var(--accent); font-size:.74rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom:.9rem; }
.mf-panel h4 svg { width:15px; height:15px; }
.mf-eyebrow { color:var(--accent); font-weight:700; text-transform:uppercase; letter-spacing:.08em; font-size:.8rem; }
.mf-bar { height:7px; border-radius:99px; background:var(--surface-2); border:1px solid var(--border); overflow:hidden; }
.mf-bar > i { display:block; height:100%; background:linear-gradient(90deg,var(--accent),var(--accent-2)); box-shadow:0 0 10px var(--glow-s); }
/* ===== Buttons ===== */
.mf-btn { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; font-weight:800; font-size:.82rem; letter-spacing:.04em; border:0; border-radius:9px; padding:.6rem 1.1rem; cursor:pointer; text-decoration:none; background:var(--accent); color:var(--accent-ink); box-shadow:0 0 18px var(--glow-s); transition:all .18s; }
.mf-btn:hover { filter:brightness(1.05); transform:translateY(-1px); }
.mf-btn svg { width:15px; height:15px; }
.mf-btn.outline { background:transparent; color:var(--accent); border:1px solid var(--border-accent); box-shadow:none; }
.mf-btn.outline:hover { background:var(--surface-2); }
.mf-btn.ghost { background:var(--surface-2); color:var(--text); border:1px solid var(--border); box-shadow:none; }
.mf-btn.danger { background:var(--danger); color:#fff; box-shadow:none; }
/* ===== Formulare ===== */
.mf-field { display:flex; flex-direction:column; gap:.35rem; margin-bottom:.9rem; }
.mf-label { color:var(--accent); font-weight:700; font-size:.82rem; }
.mf-input, .mf-select, input.mf-input, select.mf-select, textarea.mf-input {
width:100%; padding:.65rem .8rem; border-radius:10px; border:1px solid var(--border);
background:var(--surface-2); color:var(--text); font-size:.95rem; font-family:inherit; }
.mf-input:focus, .mf-select:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--glow-w); }
.mf-input::placeholder { color:var(--muted); }
/* ===== Tabellen ===== */
.mf-table { width:100%; border-collapse:collapse; }
.mf-table th, .mf-table td { text-align:left; padding:.7rem .8rem; border-bottom:1px solid var(--border); font-size:.9rem; }
.mf-table th { color:var(--accent); text-transform:uppercase; font-size:.72rem; letter-spacing:.08em; }
.mf-table tr:hover td { background:var(--surface-2); }
/* ===== Badges ===== */
.mf-badge { font-size:.68rem; text-transform:uppercase; letter-spacing:.05em; padding:.18rem .5rem; border-radius:7px; background:var(--accent-dim,rgba(43,217,106,.12)); color:var(--accent); border:1px solid var(--border-accent); }
/* ===== Standalone-Karte (Login/Auth, einzelne Inhaltsseiten) ===== */
.mf-center { display:flex; align-items:center; justify-content:center; min-height:100vh; padding:1.5rem; }
.mf-cardbox { width:100%; max-width:420px; background:var(--surface); border:1px solid var(--border-accent); border-radius:18px; padding:2rem; box-shadow:0 0 30px var(--glow-w); }
.mf-container { max-width:1000px; margin:0 auto; padding:1.5rem; }
.mf-page-head { display:flex; align-items:center; gap:1rem; margin-bottom:1.4rem; }
.mf-back { color:var(--accent); text-decoration:none; font-weight:700; font-size:.88rem; }
/* schwebender Theme-Umschalter für Seiten ohne Topbar */
.mf-theme-float { position:fixed; top:16px; right:16px; z-index:1000; }
/* ===== Fußzeile (Support / AGB / Impressum …) ===== */
.mf-footer {
display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
gap:.35rem 1rem; padding:1.1rem 1.5rem;
border-top:1px solid var(--border); background:var(--panel);
font-size:.82rem; color:var(--muted);
}
.mf-footer a { color:var(--muted); text-decoration:none; position:relative; }
.mf-footer a:hover { color:var(--accent); }
.mf-footer a + a::before { content:"·"; position:absolute; left:-.6rem; color:var(--border); }
@media (max-width:1180px){ .mf-shell{grid-template-columns:240px 1fr;} .mf-rightbar{display:none;} .mf-topbar{grid-column:2;} .mf-main{grid-column:2;} }
@media (max-width:820px){ .mf-shell{grid-template-columns:1fr;} .mf-sidebar{display:none;} .mf-topbar,.mf-main{grid-column:1;} .mf-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .mf-grid{grid-template-columns:1fr;} }