Die Dateien, die mit dem Commit verknüpft sind, umfassen:

This commit is contained in:
2025-06-12 10:28:43 +02:00
parent 07e9a7607d
commit fe8c0997f6
569 changed files with 1413 additions and 302 deletions

View File

@ -1,24 +1,25 @@
/* =============================================
SIMPLIFIED RESPONSIVE NAVBAR - MYP PLATFORM
MINIMAL RESPONSIVE NAVBAR - MYP PLATFORM
============================================= */
/* CSS Variables für einfache Anpassung */
:root {
--navbar-height: 4rem;
--navbar-bg: rgba(255, 255, 255, 0.85);
--navbar-border: rgba(209, 213, 219, 0.3);
--navbar-blur: 12px;
--nav-item-gap: clamp(0.25rem, 1vw, 0.75rem);
--nav-item-padding: clamp(0.5rem, 2vw, 1rem);
--mobile-menu-height: calc(100vh - var(--navbar-height));
--navbar-height: 3.5rem;
--navbar-bg: rgba(255, 255, 255, 0.9);
--navbar-border: rgba(229, 231, 235, 0.5);
--navbar-blur: 8px;
--nav-item-gap: 0.25rem;
--nav-item-padding: 0.5rem 0.75rem;
--button-size: 2rem;
--icon-size: 1rem;
}
.dark {
--navbar-bg: rgba(15, 23, 42, 0.85);
--navbar-border: rgba(51, 65, 85, 0.3);
--navbar-bg: rgba(17, 24, 39, 0.9);
--navbar-border: rgba(55, 65, 81, 0.5);
}
/* Basis Navbar - Simplified */
/* Basis Navbar - Minimal */
.navbar {
position: sticky;
top: 0;
@ -29,66 +30,52 @@
backdrop-filter: blur(var(--navbar-blur));
-webkit-backdrop-filter: blur(var(--navbar-blur));
border-bottom: 1px solid var(--navbar-border);
transition: all 0.2s ease;
transition: all 0.15s ease;
}
/* Navbar Scroll State */
/* Navbar Scroll State - Subtiler */
.navbar.scrolled {
--navbar-height: 3.5rem;
--navbar-bg: rgba(255, 255, 255, 0.95);
--navbar-blur: 20px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
--navbar-height: 3rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.dark .navbar.scrolled {
--navbar-bg: rgba(15, 23, 42, 0.95);
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
/* Container mit flexibler Breite */
/* Container - Vereinfacht */
.navbar > div {
height: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 clamp(0.75rem, 3vw, 2rem);
padding: 0 1rem;
max-width: 100%;
}
/* Navbar Brand - Flexible Größe */
/* Navbar Brand - Kompakter */
.navbar-brand {
display: flex;
align-items: center;
gap: clamp(0.5rem, 2vw, 0.75rem);
gap: 0.5rem;
text-decoration: none;
flex-shrink: 0;
}
.navbar-brand svg {
width: clamp(1.25rem, 4vw, 1.75rem);
height: clamp(1.25rem, 4vw, 1.75rem);
width: 1.25rem;
height: 1.25rem;
}
.navbar-brand span {
font-size: clamp(0.75rem, 2vw, 1rem);
font-size: 0.875rem;
font-weight: 600;
}
/* Desktop Navigation - Simplified */
/* Desktop Navigation - Minimalistisch */
.navbar-menu-new {
display: none;
align-items: center;
gap: var(--nav-item-gap);
padding: 0.25rem;
flex: 1;
justify-content: center;
max-width: 100%;
overflow-x: auto;
scrollbar-width: none;
-ms-overflow-style: none;
}
.navbar-menu-new::-webkit-scrollbar {
display: none;
padding: 0;
}
@media (min-width: 1024px) {
@ -97,58 +84,76 @@
}
}
/* Navigation Items - Simplified */
/* Navigation Items - Klein und einfach */
.nav-item {
display: flex;
align-items: center;
gap: 0.5rem;
gap: 0.375rem;
padding: var(--nav-item-padding);
border-radius: 0.5rem;
color: rgb(100, 116, 139);
border-radius: 0.375rem;
color: rgb(107, 114, 128);
text-decoration: none;
font-size: clamp(0.8rem, 1.5vw, 0.875rem);
font-size: 0.8125rem;
font-weight: 500;
white-space: nowrap;
transition: all 0.15s ease;
transition: color 0.15s ease, background-color 0.15s ease;
}
.dark .nav-item {
color: rgb(148, 163, 184);
color: rgb(156, 163, 175);
}
.nav-item:hover,
.nav-item.active {
background: rgba(59, 130, 246, 0.1);
/* Minimale Hover-Effekte */
.nav-item:hover {
color: rgb(59, 130, 246);
background: rgba(59, 130, 246, 0.05);
}
.dark .nav-item:hover {
color: rgb(147, 197, 253);
background: rgba(59, 130, 246, 0.1);
}
.nav-item.active {
color: rgb(59, 130, 246);
background: rgba(59, 130, 246, 0.08);
}
.dark .nav-item:hover,
.dark .nav-item.active {
background: rgba(59, 130, 246, 0.2);
color: rgb(96, 165, 250);
color: rgb(147, 197, 253);
background: rgba(59, 130, 246, 0.15);
}
/* Mobile Menu Button - Größere Touch Target */
/* Icons - Klein */
.nav-item i,
.nav-item svg {
width: var(--icon-size);
height: var(--icon-size);
flex-shrink: 0;
}
/* Mobile Menu Button - Minimal */
#mobileMenuToggle {
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
width: var(--button-size);
height: var(--button-size);
padding: 0;
background: transparent;
border: none;
border-radius: 0.5rem;
border-radius: 0.375rem;
cursor: pointer;
transition: background-color 0.15s ease;
}
#mobileMenuToggle:hover {
background: rgba(0, 0, 0, 0.05);
#mobileMenuToggle svg {
width: 1.25rem;
height: 1.25rem;
color: rgb(107, 114, 128);
}
.dark #mobileMenuToggle:hover {
background: rgba(255, 255, 255, 0.05);
.dark #mobileMenuToggle svg {
color: rgb(156, 163, 175);
}
@media (min-width: 1024px) {
@ -157,7 +162,107 @@
}
}
/* Mobile Menu - Fullscreen Simplified */
/* Rechte Navbar Sektion - Kompakt */
.navbar .flex.items-center {
gap: 0.5rem;
}
/* Notification & User Buttons - Minimal */
#notificationToggle,
#user-menu-button {
width: var(--button-size);
height: var(--button-size);
padding: 0;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
border-radius: 0.375rem;
cursor: pointer;
transition: background-color 0.15s ease;
}
#notificationToggle:hover,
#user-menu-button:hover {
background: rgba(0, 0, 0, 0.05);
}
.dark #notificationToggle:hover,
.dark #user-menu-button:hover {
background: rgba(255, 255, 255, 0.05);
}
/* Button Icons */
#notificationToggle i {
font-size: var(--icon-size);
color: rgb(107, 114, 128);
}
.dark #notificationToggle i {
color: rgb(156, 163, 175);
}
/* User Avatar - Klein */
#user-menu-button .rounded-full {
width: 1.5rem;
height: 1.5rem;
font-size: 0.625rem;
}
/* Notification Badge - Minimal */
#notificationBadge {
position: absolute;
top: 0.25rem;
right: 0.25rem;
width: 0.75rem;
height: 0.75rem;
font-size: 0.5rem;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
}
/* Dark Mode Toggle - Ultra Minimal */
.dark-mode-toggle {
width: 2rem;
height: 1rem;
background: rgb(229, 231, 235);
border-radius: 0.5rem;
cursor: pointer;
border: none;
padding: 0;
position: relative;
transition: background-color 0.15s ease;
}
.dark .dark-mode-toggle {
background: rgb(55, 65, 81);
}
.dark-mode-toggle-slider {
position: absolute;
top: 0.125rem;
left: 0.125rem;
width: 0.75rem;
height: 0.75rem;
background: white;
border-radius: 50%;
transition: transform 0.15s ease;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.dark .dark-mode-toggle-slider {
transform: translateX(1rem);
}
/* Icon Größen in Toggle */
.dark-mode-toggle-icon {
font-size: 0.5rem;
}
/* Mobile Menu - Vereinfacht */
.mobile-menu-new {
position: fixed;
top: var(--navbar-height);
@ -170,237 +275,123 @@
transform: translateX(-100%);
transition: transform 0.2s ease;
overflow-y: auto;
overscroll-behavior: contain;
}
.mobile-menu-new.active {
transform: translateX(0);
}
/* Mobile Navigation Container */
.mobile-menu-new nav {
padding: 1rem 0;
min-height: 100%;
display: flex;
flex-direction: column;
}
/* Mobile Navigation Items - Größere Touch Targets */
/* Mobile Navigation Items - Einfacher */
.mobile-nav-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 1rem clamp(1rem, 4vw, 2rem);
color: rgb(71, 85, 105);
gap: 0.75rem;
padding: 0.875rem 1rem;
color: rgb(107, 114, 128);
text-decoration: none;
font-size: clamp(0.9rem, 3vw, 1rem);
font-size: 0.875rem;
font-weight: 500;
transition: background-color 0.15s ease;
min-height: 3rem;
}
.dark .mobile-nav-item {
color: rgb(148, 163, 184);
color: rgb(156, 163, 175);
}
.mobile-nav-item:active {
background: rgba(59, 130, 246, 0.1);
background: rgba(0, 0, 0, 0.03);
}
.dark .mobile-nav-item:active {
background: rgba(255, 255, 255, 0.03);
}
.mobile-nav-item.active {
color: rgb(59, 130, 246);
background: rgba(59, 130, 246, 0.05);
color: rgb(37, 99, 235);
border-left: 3px solid rgb(37, 99, 235);
border-left: 2px solid rgb(59, 130, 246);
}
.dark .mobile-nav-item.active {
color: rgb(147, 197, 253);
background: rgba(59, 130, 246, 0.1);
color: rgb(96, 165, 250);
border-left-color: rgb(96, 165, 250);
}
/* Icons - Consistent Sizing */
.nav-item i,
.nav-item svg,
.mobile-nav-item i,
.mobile-nav-item svg {
width: 1.25rem;
height: 1.25rem;
flex-shrink: 0;
width: 1.125rem;
height: 1.125rem;
}
/* Rechte Navbar Sektion - Flexible */
.navbar .flex.items-center.space-x-2 {
gap: clamp(0.5rem, 2vw, 1rem);
}
/* Dark Mode Toggle - Simplified */
.dark-mode-toggle {
position: relative;
width: 2.5rem;
height: 1.5rem;
background: rgb(229, 231, 235);
border-radius: 0.75rem;
cursor: pointer;
border: none;
padding: 0;
transition: background-color 0.2s ease;
}
.dark .dark-mode-toggle {
background: rgb(71, 85, 105);
}
.dark-mode-toggle-slider {
position: absolute;
top: 0.125rem;
left: 0.125rem;
width: 1.25rem;
height: 1.25rem;
background: white;
border-radius: 50%;
transition: transform 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.dark .dark-mode-toggle-slider {
transform: translateX(1rem);
}
/* User & Notification Buttons - Consistent Sizing */
#notificationToggle,
#user-menu-button {
min-width: 2.5rem;
min-height: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
}
/* Dropdowns - Simplified */
/* Dropdowns - Einfacher */
#notificationDropdown,
#user-dropdown {
position: absolute;
top: 100%;
right: 0;
margin-top: 0.5rem;
background: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
margin-top: 0.25rem;
background: white;
border: 1px solid var(--navbar-border);
border-radius: 0.75rem;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
min-width: min(20rem, 90vw);
border-radius: 0.5rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
min-width: 16rem;
max-width: 90vw;
}
.dark #notificationDropdown,
.dark #user-dropdown {
background: rgba(15, 23, 42, 0.98);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
background: rgb(17, 24, 39);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* Responsive Font Sizes */
/* Responsive Anpassungen */
@media (max-width: 640px) {
:root {
--navbar-height: 3rem;
--button-size: 1.75rem;
}
.navbar > div {
padding: 0 0.75rem;
}
.navbar-brand svg {
width: 1.125rem;
height: 1.125rem;
}
.navbar-brand span {
font-size: 0.8125rem;
}
.navbar-brand .text-xs {
display: none;
}
#notificationDropdown,
#user-dropdown {
position: fixed;
left: 1rem;
right: 1rem;
width: auto;
}
}
/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
@media (max-width: 360px) {
:root {
--navbar-height: 3rem;
--button-size: 1.625rem;
--icon-size: 0.875rem;
}
.mobile-nav-item {
min-height: 2.5rem;
padding: 0.75rem clamp(1rem, 4vw, 2rem);
.navbar-brand span {
display: none;
}
}
/* Tablet Optimization */
/* Tablet - Nur Icons */
@media (min-width: 768px) and (max-width: 1023px) {
.navbar-menu-new {
display: flex;
gap: 0.25rem;
}
.nav-item {
font-size: 0.8rem;
padding: 0.5rem 0.75rem;
padding: 0.5rem;
}
.nav-item span {
display: none;
}
.nav-item i,
.nav-item svg {
width: 1.5rem;
height: 1.5rem;
}
}
/* Ultra-Wide Screens */
@media (min-width: 1920px) {
.navbar > div {
max-width: 1920px;
margin: 0 auto;
}
}
/* Print Styles */
@media print {
.navbar {
position: relative;
box-shadow: none;
}
#mobileMenuToggle,
.mobile-menu-new {
display: none !important;
}
}
/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
.nav-item:hover {
background: transparent;
}
.mobile-nav-item {
-webkit-tap-highlight-color: rgba(59, 130, 246, 0.1);
}
}
/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.navbar {
border-bottom-width: 0.5px;
}
}
/* Remove all duplicate glassmorphism effects */
/* Entferne alle Glassmorphism-Duplikate */
.navbar::before,
.navbar::after,
.glass-nav,
@ -408,80 +399,25 @@
display: none !important;
}
/* Ensure smooth scrolling on mobile */
.mobile-menu-new {
-webkit-overflow-scrolling: touch;
}
/* Dynamic Viewport Units für bessere Mobile-Anpassung */
@supports (height: 100dvh) {
:root {
--mobile-menu-height: calc(100dvh - var(--navbar-height));
}
.mobile-menu-new {
height: calc(100dvh - var(--navbar-height));
max-height: calc(100dvh - var(--navbar-height));
}
}
/* Flexible Container für alle Bildschirmgrößen */
.navbar .max-w-7xl {
width: 100%;
max-width: none;
}
/* Auto-Layout für sehr kleine Screens */
@media (max-width: 360px) {
:root {
--navbar-height: 3.5rem;
}
.navbar-brand span {
display: none;
}
.navbar-brand svg {
width: 1.5rem;
height: 1.5rem;
}
.nav-item {
padding: 0.5rem;
font-size: 0.75rem;
}
}
/* Notch/Safe Area Support für moderne Smartphones */
@supports (padding: max(0px)) {
.navbar {
padding-top: max(0px, env(safe-area-inset-top));
}
.mobile-menu-new {
padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
}
/* Flexbox Fallbacks für ältere Browser */
.navbar > div {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
-webkit-box-align: center;
-ms-flex-align: center;
}
/* Smooth Transitions für alle interaktiven Elemente */
.navbar *:focus {
outline: 2px solid transparent;
outline-offset: 2px;
}
/* Focus States - Minimal */
.navbar *:focus-visible {
outline: 2px solid rgb(59, 130, 246);
outline-offset: 2px;
border-radius: 0.25rem;
outline: 1px solid rgb(59, 130, 246);
outline-offset: 1px;
}
/* Performance */
@media (prefers-reduced-motion: reduce) {
* {
animation: none !important;
transition: none !important;
}
}
/* Touch Optimierung */
@media (hover: none) {
.nav-item:hover,
#notificationToggle:hover,
#user-menu-button:hover {
background: transparent;
}
}