/* ── Reset ────────────────────────────────────────────────────────────────── */ * { box-sizing: border-box; margin: 0; padding: 0; } /* ── Basis ────────────────────────────────────────────────────────────────── */ body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; color: #222; background: #fff; } /* ── Layout ───────────────────────────────────────────────────────────────── */ /* Zweispaltiges Layout: Sidebar links, Inhalt rechts */ .layout { display: flex; min-height: 100vh; } /* ── Sidebar ──────────────────────────────────────────────────────────────── */ .sidebar { width: 220px; flex-shrink: 0; background: #f5f5f5; border-right: 1px solid #e0e0e0; /* Oben etwas mehr Platz als früher — macht Raum für den fest positionierten Ein-/Ausklapp-Button (siehe Abschnitt "Sidebar: Ein-/Ausklappen & Responsive"). */ padding: 3.5rem 1rem 2rem; overflow: hidden; transition: width 0.2s ease, padding 0.2s ease; } /* Navigation: flache Liste ohne Bullet-Punkte */ .sidebar ul { list-style: none; } .sidebar ul li a { display: block; padding: 0.25rem 0.5rem; color: #444; text-decoration: none; border-radius: 4px; font-size: 0.9rem; } .sidebar ul li a:hover { background: #e8e8e8; color: #000; } /*
ist das HTML-Element für aufklappbare Bereiche (kein JavaScript nötig) */ .sidebar details { margin-bottom: 0.1rem; } /* ist der klickbare Kopfbereich eines
-Elements */ .sidebar summary { display: flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.5rem; font-size: 0.9rem; font-weight: 600; color: #555; cursor: pointer; border-radius: 4px; list-style: none; user-select: none; } /* Standard-Pfeil in WebKit-Browsern (Safari, Chrome) entfernen */ .sidebar summary::-webkit-details-marker { display: none; } .sidebar summary:hover { background: #e8e8e8; color: #000; } /* Eigener Pfeil per CSS — dreht sich wenn
offen ist */ .sidebar summary::before { content: "▶"; font-size: 0.6rem; color: #999; transition: transform 0.15s ease; flex-shrink: 0; } .sidebar details[open] > summary::before { transform: rotate(90deg); } /* Einträge innerhalb eines Ordners einrücken */ .sidebar details ul { padding-left: 1rem; margin-top: 0.1rem; } /* ── Sidebar: Ein-/Ausklappen & Responsive ─────────────────────────────────── Siehe static/sidebar.js für die Logik dahinter. Kurz zusammengefasst: - "sidebar-collapsed" auf → Desktop: Sidebar auf Breite 0 einklappen - "sidebar-mobile-open" auf → Mobile: Sidebar als Overlay einblenden Ohne JavaScript bleibt die Sidebar einfach immer sichtbar (kein kaputter Zustand, nur kein Ein-/Ausklappen möglich). */ /* Fest positionierte Kopfzeile: Toggle-Button + "Wiki"-Beschriftung daneben, bleibt an derselben Stelle sichtbar unabhängig vom Sidebar-Zustand. */ .topbar { position: fixed; top: 1rem; left: 1rem; z-index: 110; /* über Sidebar (100) und Overlay (90) */ display: flex; align-items: center; gap: 0.6rem; } .topbar-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #888; } .sidebar-toggle { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #333; font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .sidebar-toggle:hover { background: #eee; border-color: #999; color: #000; } /* Desktop: eingeklappt bedeutet Breite 0 — der Inhalt rutscht dank Flexbox automatisch nach links und füllt den frei gewordenen Platz. */ body.sidebar-collapsed .sidebar { width: 0; padding-left: 0; padding-right: 0; border-right: 0; } /* Dunkles Overlay hinter der Sidebar auf Mobile — schließt sie per Klick daneben. */ .sidebar-backdrop { display: none; } @media (max-width: 768px) { /* Auf schmalen Bildschirmen ist die Sidebar immer ein Overlay über dem Inhalt, unabhängig vom Desktop-Einklapp-Zustand — deshalb hier alle relevanten Werte (Breite, Padding, Rahmen) explizit neu gesetzt statt sich auf die Desktop-Regeln oben zu verlassen. */ .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; width: 260px; padding: 3.5rem 1rem 2rem; border-right: 1px solid #e0e0e0; transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15); } body.sidebar-mobile-open .sidebar { transform: translateX(0); } body.sidebar-mobile-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 90; } .content { padding: 3.5rem 1.25rem 2rem; } } /* ── Hauptinhalt ──────────────────────────────────────────────────────────── */ .content { flex: 1; /* Oben etwas mehr Platz als früher, aus demselben Grund wie bei .sidebar. */ padding: 3.5rem 3rem 2.5rem; max-width: 800px; } /* Markdown-Elemente */ .content h1 { font-size: 2rem; margin-bottom: 1rem; } .content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; } .content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; } .content p { margin-bottom: 1rem; } .content ul, .content ol { margin: 0 0 1rem 1.5rem; } .content a { color: #0066cc; } .content code { background: #f0f0f0; padding: 0.1em 0.4em; border-radius: 3px; font-size: 0.9em; font-family: "SF Mono", "Fira Code", monospace; } .content pre { background: #1e1e1e; color: #d4d4d4; padding: 1rem; border-radius: 6px; overflow-x: auto; margin-bottom: 1rem; } .content pre code { background: none; padding: 0; color: inherit; } .content blockquote { border-left: 3px solid #ccc; padding-left: 1rem; color: #666; margin-bottom: 1rem; } .content table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; } .content th, .content td { border: 1px solid #ddd; padding: 0.5rem 0.75rem; text-align: left; } .content th { background: #f5f5f5; font-weight: 600; } /* ── Team-Leiste (aktives Team, Logout, Team wechseln) ───────────────────── */ /* Menü-Links untereinander (Team wechseln, Audit-Log, Logout) */ .sidebar-menu { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; } .sidebar-menu a { font-size: 0.8rem; color: #666; text-decoration: none; } .sidebar-menu a:hover { color: #0066cc; text-decoration: underline; } /* Trennlinie + aktives Team, unterhalb der Menü-Links */ .team-bar { margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid #e0e0e0; } .team-name { font-size: 0.8rem; font-weight: 600; color: #444; } /* ── Suchfeld in der Sidebar ─────────────────────────────────────────────── */ .search-form { margin-bottom: 1.25rem; } .search-form input[type="search"] { width: 100%; padding: 0.35rem 0.6rem; border: 1px solid #d0d0d0; border-radius: 4px; font-size: 0.85rem; background: #fff; color: #222; outline: none; /* WebKit-Standard-Suchfeld-Styling entfernen */ -webkit-appearance: none; appearance: none; } .search-form input[type="search"]:focus { border-color: #0066cc; box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15); } /* ── Suchergebnisseite ────────────────────────────────────────────────────── */ .search-query { font-weight: normal; color: #555; } .search-count { color: #888; font-size: 0.875rem; margin-bottom: 2rem; } .search-empty { color: #666; margin-top: 0.75rem; } .search-results { list-style: none; padding: 0; margin: 0; } .search-result { padding: 1rem 0; border-bottom: 1px solid #eee; } .search-result:last-child { border-bottom: none; } .search-result-title { display: block; font-size: 1.05rem; font-weight: 600; color: #0066cc; text-decoration: none; margin-bottom: 0.15rem; } .search-result-title:hover { text-decoration: underline; } .search-result-url { display: block; font-size: 0.8rem; color: #888; margin-bottom: 0.35rem; } .search-result-snippet { font-size: 0.9rem; color: #444; line-height: 1.5; margin: 0; } /* ── Audit-Log-Seite ──────────────────────────────────────────────────────── */ .audit-page { max-width: 1100px; } .audit-intro { color: #666; font-size: 0.9rem; margin-bottom: 1.5rem; } .audit-table-wrap { overflow-x: auto; } .audit-table { border-collapse: collapse; width: 100%; font-size: 0.85rem; } .audit-table th, .audit-table td { border: 1px solid #eee; padding: 0.5rem 0.75rem; text-align: left; white-space: nowrap; } .audit-table th { background: #f5f5f5; font-weight: 600; } .audit-table tr:nth-child(even) { background: #fafafa; } /* ── Passwort-Formular ────────────────────────────────────────────────────── */ .password-page { background: #f5f5f5; display: flex; align-items: center; justify-content: center; min-height: 100vh; } .card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 2rem; width: 100%; max-width: 380px; } .card h1 { font-size: 1.2rem; margin-bottom: 0.5rem; } .card p { color: #666; font-size: 0.9rem; margin-bottom: 1.5rem; } .error { background: #fff0f0; border: 1px solid #ffcccc; color: #cc0000; padding: 0.5rem 0.75rem; border-radius: 4px; font-size: 0.875rem; margin-bottom: 1rem; } label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; } input[type="password"] { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; margin-bottom: 1rem; outline: none; } input[type="password"]:focus { border-color: #0066cc; box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15); } button { width: 100%; padding: 0.6rem; background: #0066cc; color: #fff; border: none; border-radius: 4px; font-size: 1rem; cursor: pointer; } button:hover { background: #0052a3; } /* Mehrere Buttons untereinander (z.B. Team-Auswahl) brauchen etwas Abstand */ .card form button { margin-bottom: 0.5rem; } .card form button:last-child { margin-bottom: 0; }