/* =========================== Standard Layout =========================== */ body { } /* App Logo */ .app-logo .img-fluid { max-height: 90px; padding: 0 5px 0 5px; } .table > :not(caption) > * > * { box-shadow: none; } .table .form-control { background-color: #ffffff !important; border-width: 0.5px !important; border-bottom-color: #ccc !important; color: #000 !important; } .table .form-select { background-color: #ffffff !important; border-width: 0.5px !important; border-bottom-color: #ccc !important; color: #000 !important; } .bg-primary { background-color: gray !important; } .table .btn-primary { background-color: var(--bs-primary); } .table .btn-secondary { background-color: var(--bs-secondary); } .alert-dismissible .btn-close { z-index: 1; } .dropdown-menu { background-color: grey; } .controls { z-index: 2000; padding-top: 15px; padding-bottom: 15px; margin-right: 10px; } .footer { padding-top: 15px; min-height: 40px; text-align: center; color: #ffffff; z-index: 1000; } /* =================================================== NAVBAR / BURGER / SIDEBAR =================================================== */ /* Navbar als durchgehende Flex-Zeile */ .app-navbar { display: flex; flex-wrap: nowrap; /* NICHT umbrechen auf Desktop */ align-items: center; justify-content: flex-start; z-index: 1000; } .app-navbar-left, .app-navbar-right { display: flex; align-items: center; } /* etwas Luft zwischen Logo und Menü */ .app-navbar-left { margin-right: 1rem; } /* Versteckte Checkbox steuert die Sidebar */ .nav-toggle { display: none; } /* Burger-Icon (wird nur auf Mobil eingeblendet) */ .nav-toggle-label { display: none; /* nur auf Mobil sichtbar */ cursor: pointer; padding: 0.25rem 0.5rem; margin-left: auto; } .nav-toggle-label span { display: block; width: 22px; height: 2px; margin: 4px 0; background-color: #ffffff; } /* Menü-Container */ .app-menu { display: flex; } /* Bereich für die Seitenlinks – Basis: horizontales Flex */ .app-menu-items { display: flex; flex-wrap: wrap; gap: 0.75rem; align-content: center; } /* Bereich für Login/Register */ .app-menu-footer { display: flex; gap: 0.5rem; } /* Untermenü (Kinder-Seiten) etwas eingerückt */ .app-submenu { margin-left: 1rem; } /* Nav-Items */ .app-menu .nav-item { padding-bottom: 0.25rem; } /* Hover-/Active-Style für Links */ .app-menu .nav-link { padding: 6px 12px; border-radius: 6px; transition: background-color 0.2s ease, color 0.2s ease; } .app-menu .nav-link:hover { background-color: #4a4a4a; color: #ffffff !important; } .app-menu .nav-link.active { background-color: #3b3b3b; color: #ffffff !important; } /* =========================== DESKTOP (ab 768px) =========================== */ @media (min-width: 768px) { /* Navbar: eine Zeile, Positionierungs-Referenz für Absolut-Elemente */ .app-navbar { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: flex-start !important; position: relative !important; } /* Menübereich in der Mitte */ .app-menu { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; /* Menüpunkte in der Mitte */ flex: 1 1 auto !important; /* füllt Platz zwischen Logo und rechts */ gap: 0.75rem !important; position: static !important; width: auto !important; } /* Menüpunkte horizontal zentriert */ .app-menu-items { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; align-items: center !important; gap: 0.75rem !important; width: auto !important; } /* Login/Register GANZ RECHTS in der Navbar */ .app-menu-footer { display: flex !important; position: absolute !important; right: 1rem !important; /* Abstand vom rechten Rand */ top: 50% !important; transform: translateY(-50%); /* vertikal mittig ausrichten */ gap: 0.75rem !important; padding: 0 !important; border: none !important; background: none !important; width: auto !important; } .app-menu .nav-item { display: inline-block !important; } } /* =========================== MOBILE (unter 768px) =========================== */ @media (max-width: 767px) { .navbar { position: fixed; top: 0; width: 100%; z-index: 1000; } /* Platz unter der Navbar */ .content { position: relative; top: 60px; } /* Burger sichtbar machen */ .nav-toggle-label { display: flex; flex-direction: column; justify-content: center; } /* Sidebar-Wrapper rechts */ .app-menu { position: fixed; top: 80px; /* Abstand von oben (über der Navbar + Burger) */ right: 0; width: 70%; max-width: 280px; height: calc(100vh - 80px); /* Höhe an das neue top anpassen */ background-color: grey; flex-direction: column; align-items: stretch; padding: 1rem; gap: 0.5rem; transform: translateX(100%); transition: transform 0.3s ease; z-index: 1500; } /* Seitenlinks vertikal + scrollbar + zentriert */ .app-menu-items { flex: 1; overflow-y: auto; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.25rem; } /* Footer (Login/Register) fixiert unten */ .app-menu-footer { width: 100%; padding-top: 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.25); display: flex; justify-content: space-between; align-items: center; } /* Sidebar öffnen/schließen über Checkbox */ .nav-toggle:checked ~ .app-menu { transform: translateX(0); } .app-menu .nav-link { width: 100%; display: block; font-size: clamp(12px, 3.5vw, 15px); } }