🎨 style: update base styles and templates for improved layout and design

This commit is contained in:
2025-05-02 18:46:05 +02:00
parent daf2704253
commit e8d356a27a
3 changed files with 321 additions and 887 deletions

View File

@@ -5,8 +5,8 @@
--font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
/* Light Theme */
--bg-primary-light: #f8fafc;
/* Light Theme - Verbesserte Farben */
--bg-primary-light: #f9fafb;
--bg-secondary-light: #f1f5f9;
--bg-tertiary-light: #e2e8f0;
--text-primary-light: #1e293b;
@@ -14,9 +14,9 @@
--accent-primary-light: #7c3aed;
--accent-secondary-light: #8b5cf6;
--accent-tertiary-light: #a78bfa;
--border-light: #e2e8f0;
--shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--glow-light: 0 0 15px rgba(139, 92, 246, 0.3);
--border-light: #e5e7eb;
--shadow-light: 0 4px 10px -1px rgba(0, 0, 0, 0.08), 0 2px 5px -1px rgba(0, 0, 0, 0.04);
--glow-light: 0 0 20px rgba(139, 92, 246, 0.3);
/* Dark Theme */
--bg-primary-dark: #0a0e19;
@@ -38,18 +38,24 @@
/* Light mode optimierte Farben */
--light-bg: #f9fafb;
--light-bg-gradient: linear-gradient(135deg, #f9fafb, #f3f4f6);
--light-text: #1e293b;
--light-heading: #0f172a;
--light-primary: #7c3aed;
--light-primary-hover: #6d28d9;
--light-primary-gradient: linear-gradient(135deg, #8b5cf6, #6d28d9);
--light-secondary: #6b7280;
--light-border: #e5e7eb;
--light-card-bg: rgba(255, 255, 255, 0.92);
--light-card-glass: rgba(255, 255, 255, 0.85);
--light-navbar-bg: rgba(255, 255, 255, 0.92);
--light-input-bg: #ffffff;
--light-input-border: #d1d5db;
--light-input-focus: #3b82f6;
--light-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--light-shadow: 0 4px 10px -1px rgba(0, 0, 0, 0.08), 0 2px 5px -1px rgba(0, 0, 0, 0.04);
--light-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 5px 10px -5px rgba(0, 0, 0, 0.04);
--light-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
--light-glow: 0 0 20px rgba(124, 58, 237, 0.2);
}
/* Base Styles */
@@ -464,22 +470,33 @@ body:not(.dark) h6 {
color: var(--light-heading);
}
/* Light Mode Links */
body:not(.dark) h1 {
font-weight: 700;
letter-spacing: -0.025em;
}
body:not(.dark) h2 {
font-weight: 700;
letter-spacing: -0.015em;
}
/* Light Mode Links mit verbesserten Hover-Effekten */
body:not(.dark) a {
color: var(--light-primary);
transition: all 0.2s ease;
}
body:not(.dark) a:hover {
color: var(--light-primary-hover);
}
/* Light Mode Buttons */
/* Verbesserte Light Mode Buttons */
body:not(.dark) .btn,
body:not(.dark) button:not(.toggle) {
background: linear-gradient(135deg, #6d28d9, #5b21b6);
background: var(--light-primary-gradient);
color: white;
border: none;
box-shadow: 0 2px 4px rgba(91, 33, 182, 0.25);
box-shadow: 0 2px 6px rgba(91, 33, 182, 0.25);
border-radius: 8px;
padding: 0.625rem 1.25rem;
transition: all 0.2s ease;
@@ -490,208 +507,181 @@ body:not(.dark) button:not(.toggle) {
body:not(.dark) .btn:hover,
body:not(.dark) button:not(.toggle):hover {
background: linear-gradient(135deg, #7c3aed, #6d28d9);
transform: translateY(-1px);
background: linear-gradient(135deg, #8b5cf6, #7c3aed);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}
/* Dark/Light Mode Switch Button */
.theme-toggle {
position: relative;
width: 48px;
height: 24px;
background: linear-gradient(to right, #7c3aed, #3b82f6);
border-radius: 24px;
padding: 2px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.theme-toggle::after {
content: '';
position: absolute;
width: 20px;
height: 20px;
background: white;
border-radius: 50%;
top: 2px;
left: 2px;
transition: all 0.3s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.theme-toggle.dark::after {
transform: translateX(24px);
}
.theme-toggle:hover::after {
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
/* Light Mode Cards und Panels */
body:not(.dark) .card,
body:not(.dark) .panel {
background-color: var(--light-card-bg);
border: 1px solid var(--light-border);
border-radius: 0.5rem;
box-shadow: var(--light-shadow);
}
/* Light Mode Tabelle */
body:not(.dark) table {
background-color: var(--light-card-bg);
border-collapse: collapse;
}
body:not(.dark) th {
background-color: var(--light-bg);
color: var(--light-heading);
border-bottom: 1px solid var(--light-border);
}
body:not(.dark) td {
border-bottom: 1px solid var(--light-border);
}
/* Light Mode Inputs */
body:not(.dark) input,
body:not(.dark) textarea,
body:not(.dark) select {
background-color: var(--light-input-bg);
border: 1px solid var(--light-input-border);
color: var(--light-text);
border-radius: 0.375rem;
padding: 0.5rem;
}
body:not(.dark) input:focus,
body:not(.dark) textarea:focus,
body:not(.dark) select:focus {
border-color: var(--light-input-focus);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
outline: none;
}
/* Navbar im Light Mode verbessern */
body:not(.dark) nav,
body:not(.dark) .navbar {
background-color: var(--light-navbar-bg);
box-shadow: var(--light-shadow);
border-bottom: 1px solid var(--light-border);
}
/* Erweiterte Light-Mode-spezifische Stile */
/* Optimierter Glasmorphismus im Light Mode */
body:not(.dark) .glass-effect {
background-color: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(209, 213, 219, 0.3);
background-color: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.5);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
/* Verbesserte Cards mit schönen Hover-Effekten im Light Mode */
body:not(.dark) .card {
background-color: rgba(255, 255, 255, 0.85);
border: 1px solid var(--light-border);
background-color: var(--light-card-bg);
border: 1px solid rgba(229, 231, 235, 0.7);
box-shadow: var(--light-shadow);
transition: all 0.3s ease;
border-radius: 12px;
}
body:not(.dark) .card:hover {
box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
transform: translateY(-2px);
box-shadow: var(--light-shadow-lg);
transform: translateY(-3px);
border-color: rgba(124, 58, 237, 0.2);
}
/* Light Mode Buttons mit verbesserter Lesbarkeit */
/* Glasmorphismus-Karten für besondere Elemente */
body:not(.dark) .glass-card {
background-color: var(--light-card-glass);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.7);
box-shadow: var(--light-shadow);
transition: all 0.3s ease;
border-radius: 16px;
}
body:not(.dark) .glass-card:hover {
box-shadow: var(--light-shadow-lg);
transform: translateY(-3px);
border-color: rgba(124, 58, 237, 0.25);
}
/* Light Mode Primary Buttons mit besserem Kontrast */
body:not(.dark) .btn-primary {
background: linear-gradient(135deg, #6d28d9, #5b21b6);
background: var(--light-primary-gradient);
color: white;
border: none;
transition: all 0.2s ease;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
font-weight: 600;
letter-spacing: 0.02em;
box-shadow: 0 2px 4px rgba(91, 33, 182, 0.3);
border-radius: 8px;
box-shadow: 0 3px 6px rgba(91, 33, 182, 0.25);
border-radius: 10px;
}
body:not(.dark) .btn-primary:hover {
background: linear-gradient(135deg, #7c3aed, #6d28d9);
box-shadow: 0 4px 12px rgba(109, 40, 217, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
transform: translateY(-1px);
background: linear-gradient(135deg, #8b5cf6, #7c3aed);
box-shadow: 0 6px 15px rgba(109, 40, 217, 0.35);
transform: translateY(-2px);
}
/* Verbesserte sekundäre Buttons */
body:not(.dark) .btn-secondary {
background: linear-gradient(135deg, #ffffff, #f9fafb);
color: #1f2937;
border: 2px solid #e5e7eb;
color: #374151;
border: 1px solid #e5e7eb;
font-weight: 600;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
border-radius: 10px;
}
body:not(.dark) .btn-secondary:hover {
background: linear-gradient(135deg, #f9fafb, #f3f4f6);
background: linear-gradient(135deg, #f9fafb, #f1f5f9);
border-color: #d1d5db;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
transform: translateY(-2px);
color: var(--light-primary);
}
/* Outline Buttons mit verbessertem Kontrast */
body:not(.dark) .btn-outline {
background-color: transparent;
color: var(--light-primary);
border: 1px solid var(--light-primary);
border-radius: 10px;
transition: all 0.2s ease;
}
body:not(.dark) .btn-outline:hover {
background-color: rgba(124, 58, 237, 0.05);
background-color: rgba(124, 58, 237, 0.08);
box-shadow: 0 2px 5px rgba(124, 58, 237, 0.15);
transform: translateY(-1px);
}
/* Light Mode Formulare */
/* Verbesserte Formulare im Light Mode */
body:not(.dark) input,
body:not(.dark) select,
body:not(.dark) textarea {
background-color: white;
border: 1px solid #d1d5db;
color: #1f2937;
border-radius: 8px;
transition: all 0.2s ease;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
body:not(.dark) input:focus,
body:not(.dark) select:focus,
body:not(.dark) textarea:focus {
border-color: var(--light-primary);
box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
outline: none;
}
/* Light Mode Navigation */
body:not(.dark) .sidebar {
background-color: white;
border-right: 1px solid #e5e7eb;
/* Optimierte Navigation im Light Mode */
body:not(.dark) nav,
body:not(.dark) .navbar {
background-color: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}
body:not(.dark) .sidebar-link {
/* Verbesserte Navlinks */
body:not(.dark) .nav-link {
color: #4b5563;
}
body:not(.dark) .sidebar-link:hover {
background-color: #f3f4f6;
color: var(--light-primary);
}
body:not(.dark) .sidebar-link.active {
background-color: rgba(124, 58, 237, 0.08);
color: var(--light-primary);
font-weight: 500;
transition: all 0.2s ease;
}
/* Light Mode Tabellen */
body:not(.dark) .nav-link:hover {
color: var(--light-primary);
background-color: rgba(124, 58, 237, 0.08);
transform: translateY(-1px);
}
body:not(.dark) .nav-link.active {
color: var(--light-primary);
background-color: rgba(124, 58, 237, 0.12);
font-weight: 600;
}
/* Verbesserte Sidebar */
body:not(.dark) .sidebar {
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-right: 1px solid rgba(229, 231, 235, 0.6);
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.03);
}
/* Verbesserte Tabellen im Light Mode */
body:not(.dark) table {
border-color: #e5e7eb;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
body:not(.dark) th {
background-color: #f9fafb;
color: #111827;
font-weight: 600;
border-bottom: 1px solid #e5e7eb;
padding: 12px 16px;
}
body:not(.dark) td {
border-bottom: 1px solid #f1f5f9;
padding: 12px 16px;
}
body:not(.dark) tr:nth-child(even) {
@@ -699,275 +689,160 @@ body:not(.dark) tr:nth-child(even) {
}
body:not(.dark) tr:hover {
background-color: #f3f4f6;
background-color: rgba(124, 58, 237, 0.05);
}
/* Light Mode Icons */
body:not(.dark) .icon {
color: #6b7280;
}
body:not(.dark) .icon-primary {
color: var(--light-primary);
}
/* Light Mode Alerts/Benachrichtigungen */
/* Verbesserte Benachrichtigungen im Light Mode */
body:not(.dark) .alert-info {
background-color: #eff6ff;
background-color: rgba(59, 130, 246, 0.08);
border-left: 4px solid #3b82f6;
color: #1e40af;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
body:not(.dark) .alert-success {
background-color: #ecfdf5;
background-color: rgba(16, 185, 129, 0.08);
border-left: 4px solid #10b981;
color: #065f46;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
body:not(.dark) .alert-warning {
background-color: #fffbeb;
background-color: rgba(245, 158, 11, 0.08);
border-left: 4px solid #f59e0b;
color: #92400e;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
body:not(.dark) .alert-error {
background-color: #fef2f2;
background-color: rgba(239, 68, 68, 0.08);
border-left: 4px solid #ef4444;
color: #b91c1c;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
/* Light Mode Badge */
body:not(.dark) .badge {
background-color: #e5e7eb;
color: #374151;
/* Verbesserte Hintergrundeffekte für das Netzwerk im Light Mode */
body:not(.dark) .network-background {
opacity: 0.3;
}
body:not(.dark) .badge-primary {
background-color: rgba(124, 58, 237, 0.1);
color: var(--light-primary);
body:not(.dark) .network-background .node {
fill: rgba(124, 58, 237, 0.5);
}
/* Light Mode Mindmap spezifisch */
body:not(.dark) .network-background .link {
stroke: rgba(124, 58, 237, 0.2);
}
/* Verbesserte Mindmap-Darstellung im Light Mode */
body:not(.dark) #cy {
background-color: rgba(255, 255, 255, 0.7);
border: 1px solid #e5e7eb;
background-color: rgba(255, 255, 255, 0.6);
border: 1px solid rgba(229, 231, 235, 0.7);
border-radius: 16px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
body:not(.dark) .node {
border: 2px solid white;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease;
}
body:not(.dark) .node:hover,
body:not(.dark) .node.selected {
box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.5), 0 4px 8px rgba(0, 0, 0, 0.1);
box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3), 0 5px 10px rgba(0, 0, 0, 0.1);
transform: scale(1.05);
}
body:not(.dark) .edge {
opacity: 0.7;
opacity: 0.6;
transition: all 0.2s ease;
}
body:not(.dark) .edge:hover,
body:not(.dark) .edge.selected {
opacity: 1;
stroke-width: 2.5;
}
/* Footer im Light Mode */
body:not(.dark) footer {
background-color: rgba(249, 250, 251, 0.7);
border-top: 1px solid #e5e7eb;
}
/* Alpine.js Transitions im Light Mode */
body:not(.dark) [x-cloak] {
display: none !important;
}
/* Suchfeldstyling im Light Mode */
body:not(.dark) .search-container input {
background-color: white;
border: 1px solid #d1d5db;
color: #1f2937;
}
body:not(.dark) .search-container input:focus {
border-color: var(--light-primary);
box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}
body:not(.dark) .search-results {
background-color: white;
border: 1px solid #e5e7eb;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
body:not(.dark) .search-result-item:hover {
background-color: #f3f4f6;
}
/* Profile und Benutzermenü im Light Mode */
body:not(.dark) .avatar {
border: 2px solid white;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
body:not(.dark) .user-dropdown {
background-color: white;
border: 1px solid #e5e7eb;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
body:not(.dark) .user-dropdown-item:hover {
background-color: #f3f4f6;
}
/* Medienabfragen für Responsivität */
@media (max-width: 640px) {
/* Optimierungen für Smartphones */
body {
padding-left: 0;
padding-right: 0;
}
.container {
padding-left: 1rem;
padding-right: 1rem;
}
.hero-heading {
font-size: 2rem;
}
.section-heading {
font-size: 1.75rem;
}
.card, .panel, .glass-card {
padding: 1rem;
border-radius: 10px;
}
.navbar {
padding: 0.75rem 1rem;
}
/* Optimierte Touch-Ziele für mobile Geräte */
button, .btn, .nav-link, .menu-item {
min-height: 44px;
min-width: 44px;
display: flex;
align-items: center;
justify-content: center;
}
/* Verbesserte Lesbarkeit auf kleinen Bildschirmen */
p, li, input, textarea, button, .text-sm {
font-size: 1rem;
line-height: 1.5;
}
/* Anpassungen für Tabellen auf kleinen Bildschirmen */
table {
display: block;
overflow-x: auto;
white-space: nowrap;
}
/* Optimierte Formulare */
input, select, textarea {
font-size: 16px; /* Verhindert iOS-Zoom bei Fokus */
width: 100%;
}
/* Verbesserter Abstand für Touch-Targets */
nav a, nav button, .menu-item {
margin: 0.25rem 0;
padding: 0.75rem;
}
}
@media (min-width: 641px) and (max-width: 1024px) {
/* Optimierungen für Tablets */
.container {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
/* Zweispaltige Layouts für mittlere Bildschirme */
.grid-cols-1 {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
}
/* Optimierte Navigationsleiste */
.navbar {
padding: 0.75rem 1.5rem;
}
}
@media (min-width: 1025px) {
/* Optimierungen für Desktop */
.container {
padding-left: 2rem;
padding-right: 2rem;
max-width: 1280px;
margin: 0 auto;
}
/* Mehrspaltige Layouts für große Bildschirme */
.grid-cols-1 {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
}
/* Hover-Effekte nur auf Desktop-Geräten */
.card:hover, .panel:hover, .glass-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Desktop-spezifische Animationen */
.animate-hover {
/* Verbesserte Benutzeroberfläche für Gedanken-Karten */
body:not(.dark) .thought-item {
background: white !important;
border: 1px solid rgba(229, 231, 235, 0.7) !important;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
}
.animate-hover:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-lg);
}
}
/* Responsive design improvements */
.responsive-grid {
display: grid;
gap: 1rem;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
body:not(.dark) .thought-item:hover {
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
transform: translateY(-4px);
border: 1px solid rgba(124, 58, 237, 0.3) !important;
}
.responsive-flex {
display: flex;
flex-wrap: wrap;
gap: 1rem;
/* Optimierte Pagination */
body:not(.dark) .pagination {
display: flex;
gap: 0.5rem;
}
.responsive-flex > * {
flex: 1 1 280px;
body:not(.dark) .pagination-item {
border-radius: 8px;
padding: 0.5rem 0.75rem;
color: #4b5563;
border: 1px solid #e5e7eb;
transition: all 0.2s ease;
}
/* Accessibility improvements */
.focus-visible:focus-visible {
outline: 2px solid var(--accent-primary-light);
outline-offset: 2px;
body:not(.dark) .pagination-item:hover {
background-color: rgba(124, 58, 237, 0.08);
color: var(--light-primary);
border-color: rgba(124, 58, 237, 0.2);
}
body.dark .focus-visible:focus-visible {
outline: 2px solid var(--accent-primary-dark);
body:not(.dark) .pagination-item.active {
background-color: var(--light-primary);
color: white;
border-color: var(--light-primary);
}
/* Print styles */
/* Light Mode für KI-Chat-Komponente */
body:not(.dark) .ai-assistant-container {
background-color: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(229, 231, 235, 0.7);
border-radius: 16px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
body:not(.dark) .ai-assistant-header {
border-bottom: 1px solid rgba(229, 231, 235, 0.7);
background: linear-gradient(to right, rgba(124, 58, 237, 0.08), rgba(79, 70, 229, 0.08));
}
body:not(.dark) .ai-message {
background-color: rgba(124, 58, 237, 0.08);
border-radius: 12px 12px 12px 0;
}
body:not(.dark) .user-message {
background-color: rgba(79, 70, 229, 0.15);
color: #1e293b;
border-radius: 12px 12px 0 12px;
}
/* Light Mode für Footer */
body:not(.dark) footer {
background-color: rgba(249, 250, 251, 0.8);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
border-top: 1px solid rgba(229, 231, 235, 0.5);
}
/* Print-Stile unverändert lassen */
@media print {
body {
background: white !important;

View File

@@ -136,7 +136,7 @@
--accent-primary:#7c3aed;
--accent-secondary:#8b5cf6;
--glow-effect:0 0 8px rgba(139,92,246,.08);
background-image: linear-gradient(to bottom right, rgba(248, 250, 252, 0.8), rgba(241, 245, 249, 0.8));
background-image: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.9));
background-attachment: fixed;
}
/* DarkMode */
@@ -161,42 +161,115 @@
background:linear-gradient(135deg,var(--accent-primary),var(--accent-secondary));
-webkit-background-clip:text; background-clip:text; color:transparent; text-shadow:none;
}
.glass-morphism { backdrop-filter: blur(10px); }
.glass-navbar { @apply glass-morphism border backdrop-blur-xl; }
.light .glass-navbar { background-color:rgba(255,255,255,.8); border-color:rgba(0,0,0,.05); }
.dark .glass-navbar { background-color:rgba(10,14,25,.8); border-color:rgba(255,255,255,.05); }
.glass-morphism {
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
transition: all 0.3s ease;
}
.glass-navbar {
@apply glass-morphism border backdrop-blur-xl;
}
body:not(.dark) .glass-navbar {
background-color:rgba(255,255,255,.85);
border-color:rgba(0,0,0,.05);
box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.dark .glass-navbar {
background-color:rgba(10,14,25,.8);
border-color:rgba(255,255,255,.05);
}
/* Light-Mode spezifische Stile */
body:not(.dark) {
background-color: var(--bg-primary);
color: var(--text-primary);
background-image: linear-gradient(135deg, rgba(249, 250, 251, 0.92), rgba(243, 244, 246, 0.92));
}
.nav-link-light {
body:not(.dark) .nav-link {
color: var(--text-secondary);
transition: all 0.3s ease;
}
.nav-link-light:hover {
color: var(--text-primary);
background-color: rgba(126, 34, 206, 0.1);
}
.nav-link-light-active {
color: var(--accent-primary);
background-color: rgba(126, 34, 206, 0.15);
border-radius: 0.5rem;
font-weight: 500;
padding: 0.5rem 0.75rem;
}
body:not(.dark) .nav-link:hover {
color: var(--text-primary);
background-color: rgba(124, 58, 237, 0.08);
transform: translateY(-1px);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
body:not(.dark) .nav-link-active,
body:not(.dark) .nav-link-light-active {
color: var(--accent-primary);
background-color: rgba(124, 58, 237, 0.12);
font-weight: 600;
}
/* Kartendesign im Light-Mode */
body:not(.dark) .card {
background-color: white;
border: 1px solid #e5e7eb;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
background-color: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(229, 231, 235, 0.6);
box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.05), 0 2px 8px -1px rgba(0, 0, 0, 0.03);
border-radius: 12px;
transition: all 0.3s ease;
}
body:not(.dark) .card:hover {
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
transform: translateY(-3px);
border-color: rgba(124, 58, 237, 0.2);
}
body:not(.dark) .glass-card {
background-color: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.7);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
border-radius: 16px;
transition: all 0.3s ease;
}
body:not(.dark) .glass-card:hover {
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
transform: translateY(-3px);
border-color: rgba(124, 58, 237, 0.25);
}
/* Verbesserte Buttons im Light Mode */
body:not(.dark) .btn {
background: linear-gradient(135deg, #8b5cf6, #6d28d9);
color: white;
border: none;
box-shadow: 0 3px 6px rgba(91, 33, 182, 0.25);
border-radius: 10px;
padding: 0.625rem 1.25rem;
font-weight: 600;
transition: all 0.2s ease;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
body:not(.dark) .btn:hover {
background: linear-gradient(135deg, #9f7afa, #7c3aed);
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(109, 40, 217, 0.3);
}
/* Light Mode Netzwerk-Hintergrund */
body:not(.dark) .network-background {
opacity: 0.3;
}
body:not(.dark) .network-background .node {
fill: rgba(124, 58, 237, 0.5);
}
body:not(.dark) .network-background .link {
stroke: rgba(124, 58, 237, 0.2);
stroke-width: 1.5;
}
</style>
</head>

View File

@@ -4,521 +4,7 @@
{% block extra_css %}
<style>
/* Grundstile für das Profil mit verbessertem Glasmorphismus */
.profile-container {
background: rgba(24, 28, 45, 0.75);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 24px;
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
padding: 2rem;
margin-bottom: 2rem;
transition: all 0.3s ease;
}
.profile-container:hover {
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
transform: translateY(-3px);
}
/* Verbesserte Profile-Header mit dynamischer User-Anzeige */
.profile-header {
display: flex;
align-items: flex-start;
margin-bottom: 2rem;
gap: 2.5rem;
position: relative;
}
.avatar-container {
width: 180px;
height: 180px;
border-radius: 50%;
background: rgba(32, 36, 55, 0.9);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 3px solid rgba(179, 143, 255, 0.3);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 15px rgba(179, 143, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
transition: all 0.3s ease;
flex-shrink: 0;
}
.avatar-container:hover {
transform: scale(1.05);
border: 3px solid rgba(179, 143, 255, 0.5);
box-shadow: 0 12px 45px rgba(0, 0, 0, 0.3), 0 0 25px rgba(179, 143, 255, 0.35);
}
.avatar-container img {
width: 100%;
height: 100%;
object-fit: cover;
transition: filter 0.3s ease;
}
.avatar-container:hover img {
filter: brightness(1.1);
}
.avatar-edit {
position: absolute;
bottom: 0;
right: 0;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
}
.avatar-edit:hover {
background: rgba(255, 255, 255, 0.3);
}
.user-info {
flex: 1;
padding-top: 0.5rem;
}
.user-info h1 {
font-size: 2.75rem;
font-weight: 800;
margin-bottom: 0.75rem;
background: linear-gradient(135deg, #b38fff, #58a9ff);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
text-shadow: 0 2px 10px rgba(179, 143, 255, 0.3);
letter-spacing: 0.3px;
line-height: 1.2;
}
.user-bio {
font-size: 1.15rem;
line-height: 1.7;
color: rgba(255, 255, 255, 0.9);
max-width: 650px;
margin-bottom: 1.5rem;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.user-meta {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
color: rgba(255, 255, 255, 0.7);
font-size: 1rem;
align-items: center;
}
.user-meta span {
display: flex;
align-items: center;
gap: 0.5rem;
transition: all 0.25s ease;
}
.user-meta span:hover {
color: rgba(255, 255, 255, 1);
transform: translateY(-2px);
}
.user-meta i {
opacity: 0.8;
}
/* Benutzer-Aktionsbereich */
.profile-actions {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-top: 2rem;
}
.profile-action-btn {
padding: 0.75rem 1.5rem;
border-radius: 16px;
font-weight: 600;
display: flex;
align-items: center;
gap: 0.5rem;
transition: all 0.3s ease;
background: rgba(32, 36, 55, 0.75);
color: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(255, 255, 255, 0.12);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.profile-action-btn:hover {
transform: translateY(-3px);
background: rgba(179, 143, 255, 0.25);
border: 1px solid rgba(179, 143, 255, 0.3);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 15px rgba(179, 143, 255, 0.2);
text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}
.profile-action-btn.primary {
background: rgba(179, 143, 255, 0.25);
color: #ffffff;
border: 1px solid rgba(179, 143, 255, 0.3);
}
.profile-action-btn.primary:hover {
background: rgba(179, 143, 255, 0.35);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 20px rgba(179, 143, 255, 0.35);
}
/* Verbesserte Profil-Tabs */
.profile-tabs {
display: flex;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 1.5rem;
overflow-x: auto;
scrollbar-width: thin;
scrollbar-color: rgba(179, 143, 255, 0.5) rgba(255, 255, 255, 0.05);
}
.profile-tab {
padding: 1rem 1.5rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.7);
border-bottom: 3px solid transparent;
transition: all 0.3s ease;
cursor: pointer;
white-space: nowrap;
}
.profile-tab:hover {
color: rgba(255, 255, 255, 0.9);
background: rgba(255, 255, 255, 0.05);
}
.profile-tab.active {
color: #b38fff;
border-bottom: 3px solid #b38fff;
background: rgba(179, 143, 255, 0.1);
}
/* Aktivitäten und Beiträge */
.activity-feed {
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.activity-card {
background: rgba(32, 36, 55, 0.7);
border-radius: 20px;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
}
.activity-card:hover {
transform: translateY(-3px);
border: 1px solid rgba(255, 255, 255, 0.15);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(179, 143, 255, 0.15);
}
.activity-header {
padding: 1.25rem 1.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
display: flex;
align-items: center;
justify-content: space-between;
}
.activity-title {
font-size: 1.25rem;
font-weight: 700;
color: rgba(255, 255, 255, 0.95);
}
.activity-date {
font-size: 0.85rem;
color: rgba(255, 255, 255, 0.6);
}
.activity-content {
padding: 1.5rem;
color: rgba(255, 255, 255, 0.85);
font-size: 1.05rem;
line-height: 1.6;
}
.activity-footer {
padding: 1rem 1.5rem;
border-top: 1px solid rgba(255, 255, 255, 0.06);
display: flex;
align-items: center;
justify-content: space-between;
}
.activity-reactions {
display: flex;
gap: 0.75rem;
}
.reaction-button {
display: flex;
align-items: center;
gap: 0.35rem;
padding: 0.5rem 0.75rem;
border-radius: 12px;
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.7);
background: rgba(255, 255, 255, 0.05);
border: none;
transition: all 0.3s ease;
cursor: pointer;
}
.reaction-button:hover {
background: rgba(179, 143, 255, 0.15);
color: rgba(255, 255, 255, 0.95);
transform: translateY(-2px);
}
.reaction-button.active {
background: rgba(179, 143, 255, 0.2);
color: #b38fff;
}
.activity-actions {
display: flex;
gap: 0.75rem;
}
.action-button {
padding: 0.5rem 0.75rem;
border-radius: 12px;
font-size: 0.9rem;
background: rgba(179, 143, 255, 0.1);
color: #b38fff;
border: 1px solid rgba(179, 143, 255, 0.25);
transition: all 0.3s ease;
cursor: pointer;
}
.action-button:hover {
background: rgba(179, 143, 255, 0.2);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 10px rgba(179, 143, 255, 0.2);
}
/* Verbesserte Einstellungskarten */
.settings-card {
background: rgba(32, 36, 55, 0.7);
border-radius: 20px;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 1.5rem;
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
transition: all 0.3s ease;
}
.settings-card:hover {
border: 1px solid rgba(255, 255, 255, 0.15);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(179, 143, 255, 0.15);
}
.settings-card-header {
padding: 1.25rem 1.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
font-size: 1.2rem;
font-weight: 700;
color: rgba(255, 255, 255, 0.95);
}
.settings-card-body {
padding: 1.5rem;
}
.settings-group {
margin-bottom: 1.5rem;
}
.settings-label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.85);
}
.settings-input {
width: 100%;
padding: 0.75rem 1rem;
background: rgba(24, 28, 45, 0.6);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
color: rgba(255, 255, 255, 0.95);
font-size: 1rem;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.settings-input:focus {
border-color: rgba(179, 143, 255, 0.4);
box-shadow: 0 0 0 3px rgba(179, 143, 255, 0.15);
outline: none;
}
/* Light Mode Anpassungen */
body:not(.dark) .profile-container,
body:not(.dark) .profile-tabs,
body:not(.dark) .activity-card,
body:not(.dark) .settings-card {
background: rgba(255, 255, 255, 0.92);
border: 1px solid rgba(0, 0, 0, 0.08);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
body:not(.dark) .glass-card {
background: rgba(255, 255, 255, 0.92);
border: 1px solid rgba(0, 0, 0, 0.08);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
border-radius: 16px;
}
body:not(.dark) .avatar-container {
background: rgba(255, 255, 255, 0.9);
border: 3px solid rgba(126, 63, 242, 0.3);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 0 15px rgba(126, 63, 242, 0.15);
}
body:not(.dark) .user-info h1 {
background: linear-gradient(135deg, #7e3ff2, #3282f6);
text-shadow: none;
}
body:not(.dark) .user-bio,
body:not(.dark) .activity-content {
color: #1a202c;
text-shadow: none;
}
body:not(.dark) .user-meta span {
color: #4a5568;
}
body:not(.dark) .stat-item,
body:not(.dark) .settings-input {
background: rgba(255, 255, 255, 0.7);
border: 1px solid rgba(0, 0, 0, 0.05);
}
body:not(.dark) .stat-value {
background: linear-gradient(135deg, #7e3ff2, #3282f6);
}
body:not(.dark) .stat-label {
color: #4a5568;
}
body:not(.dark) .profile-tab {
color: #4a5568;
}
body:not(.dark) .profile-tab:hover {
background: rgba(0, 0, 0, 0.03);
color: #1a202c;
}
body:not(.dark) .profile-tab.active {
color: #7e3ff2;
border-bottom: 3px solid #7e3ff2;
background: rgba(126, 63, 242, 0.08);
}
body:not(.dark) .activity-title,
body:not(.dark) .settings-card-header,
body:not(.dark) .settings-label {
color: #1a202c;
}
body:not(.dark) .activity-date {
color: #718096;
}
body:not(.dark) .activity-footer {
border-top: 1px solid rgba(0, 0, 0, 0.05);
}
body:not(.dark) .reaction-button {
color: #4a5568;
background: rgba(0, 0, 0, 0.03);
}
body:not(.dark) .reaction-button:hover {
background: rgba(126, 63, 242, 0.1);
color: #7e3ff2;
}
body:not(.dark) .reaction-button.active {
background: rgba(126, 63, 242, 0.15);
color: #7e3ff2;
}
body:not(.dark) .action-button {
background: rgba(126, 63, 242, 0.1);
color: #7e3ff2;
border: 1px solid rgba(126, 63, 242, 0.2);
}
body:not(.dark) .action-button:hover {
background: rgba(126, 63, 242, 0.2);
}
/* Verbesserte Styles für Card-Items im Light Mode */
body:not(.dark) .thought-item,
body:not(.dark) .mindmap-item,
body:not(.dark) .collection-item {
background: white !important;
border: 1px solid rgba(0, 0, 0, 0.08) !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
body:not(.dark) .thought-item:hover,
body:not(.dark) .mindmap-item:hover,
body:not(.dark) .collection-item:hover {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
transform: translateY(-3px);
border: 1px solid rgba(126, 63, 242, 0.2) !important;
}
body:not(.dark) .edit-profile-btn {
background: #7e3ff2;
color: white;
padding: 0.5rem 1rem;
border-radius: 8px;
font-weight: 500;
transition: all 0.2s ease;
border: none;
}
body:not(.dark) .edit-profile-btn:hover {
background: #6d28d9;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}
</style>
{% endblock %}
{% block content %}
@@ -790,7 +276,7 @@
<div class="text-center py-12">
<i class="fas fa-project-diagram text-5xl text-gray-400 mb-4"></i>
<p class="text-gray-500">Noch keine Verbindungen erstellt</p>
<a href="{{ url_for('mindmap') }}" class="mt-4 inline-block px-4 py-2 bg-purple-600 text-white rounded-lg">Verbindungen in der Mindmap erstellen</a>
<a href="{{ url_for('mindmap') }}" class="mt-4 inline-block px-4 py-2 bg-purple-600 text-white rounded-lg hover:bg-purple-700 transition-colors">Verbindungen in der Mindmap erstellen</a>
</div>
{% endif %}
</div>